Package es.bsc.dataclay.serialization
Interface DataClaySerializable
- 
- All Known Implementing Classes:
- AccountAlreadyExistException,- AccountAlreadyHasADataContractWithProvider,- AccountAlreadyRegisteredInContract,- AccountHasNoDataContractWithProvider,- AccountID,- AccountNotExistException,- AccountNotRegisteredInContract,- AccountNotResponsibleOfNamespace,- AliasAlreadyInUseException,- AnnotationDepInfoAlreadyRegisteredException,- ArrayWrapper,- AtomicIntegerWrapper,- BooleanWrapper,- ByteWrapper,- CharacterWrapper,- ClassDepInfoAlreadyRegisteredException,- ClassDeploymentException,- ClassInIncludesException,- ClassNotExistsException,- CleanExecutionClassesDirException,- CollectionWrapper,- ContractID,- ContractNotActiveException,- ContractNotExistException,- ContractNotPublicException,- CredentialID,- DataClayException,- DataClayExecutionObject,- DataClayInstanceID,- DataClayInstanceIDWrapper,- DataClayJavaWrapper,- DataClayObject,- DataClayPredicate,- DataClayRefList,- DataClayRuntimeException,- DataContractID,- DataContractNotActiveException,- DataContractNotExistException,- DataContractNotPublicException,- DataSetDoesNotExistException,- DataSetExistsException,- DataSetID,- DbHandlerException,- DbObjectAlreadyExistException,- DbObjectNotExistException,- DoubleWrapper,- ECAID,- EventListenerAlreadyRegisteredException,- EventListenerNotRegisteredException,- EventMessageAlreadyStoredException,- EventMessageID,- EventMessageNotRegisteredException,- EventObjsMeetConditionAlreadyRegisteredException,- EventObjsMeetConditionID,- ExecuteMethodException,- ExecutionEnvironmentAlreadyExistsException,- ExecutionEnvironmentID,- ExecutionEnvironmentIDWrapper,- ExecutionEnvironmentNotExistException,- ExternalDataClayNotRegisteredException,- FloatWrapper,- ID,- ImmutableParamOrReturn,- ImplementationID,- ImplementationNotExistException,- ImportedInterface,- ImportedInterfaceInUseException,- IntegerWrapper,- InterfaceAlreadyImportedException,- InterfaceID,- InterfaceNotExistsException,- InterfaceNotImportedException,- InterfaceNotInContractException,- InvalidCredentialsException,- JavaExecutionException,- LanguageExecutionException,- LanguageParamOrReturn,- LongWrapper,- Map.EntryWrapper,- MapWrapper,- MetaClassID,- MultipleAliasesException,- NamespaceDoesNotExistException,- NamespaceExistsException,- NamespaceID,- NoMoreImplementationsInOperationException,- ObjectAlreadyRegisteredException,- ObjectHasReplicas,- ObjectID,- ObjectIDWrapper,- ObjectNotExistException,- ObjectNotRegisteredException,- ObjectWithDataParamOrReturn,- ObjectWrapper,- OperationAlreadyInClassException,- OperationDepInfoAlreadyRegisteredException,- OperationID,- OperationNotExistException,- OperationNotInClassException,- PasswordCredential,- PropertyAlreadyInClassException,- PropertyDepInfoAlreadyRegisteredException,- PropertyID,- PropertyNotExistException,- PropertyNotInClassException,- QualitativeRegistryID,- ResourceID,- SessionExternalIsNotActiveException,- SessionExternalNotExistException,- SessionID,- SessionIsNotActiveException,- SessionNotExistException,- SetterOrGetterOperationsCannotBeRemoved,- ShortWrapper,- StorageLocationAlreadyExistsException,- StorageLocationID,- StorageLocationNotExistException,- StringWrapper,- TypeDepInfoAlreadyRegisteredException,- UnsupportedLanguage
 
 public interface DataClaySerializableAll classes send to/from DataClay server must implement this interface to use the binary communication protocol.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs)Deserializes the object from the buffer provided using the interface represented in the bitmap specified.voidserialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)Serializes the object into the buffer provided using the interface represented in the bitmap specified.
 
- 
- 
- 
Method Detail- 
serializevoid serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting) Serializes the object into the buffer provided using the interface represented in the bitmap specified.- Parameters:
- dcBuffer- Buffer in which to serialize the object
- ignoreUserTypes- Indicates if user types found during serialization must be ignored or not (for instance, non recursive make persistent)
- ifaceBitMaps- Map of bitmaps representing the interfaces to use
- curSerializedObjs- Current serialized objects Object -> OID tag. This structure must be different during each serialization since OID tags are not shared.
- pendingObjs- Pending objs.
- referenceCounting- Reference counting from this object.
 
 - 
deserializevoid deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs) Deserializes the object from the buffer provided using the interface represented in the bitmap specified.- Parameters:
- dcBuffer- Buffer from which to deserialize the object
- ifaceBitMaps- Map of bitmaps representing the interfaces to use
- metadata- Useful metadata of the object for execution
- curDeserializedJavaObjs- Currently deserialized Java objects
 
 
- 
 
-