Package com.j_spaces.sadapter.datasource
Class EntryPacketDataConverter
java.lang.Object
com.j_spaces.sadapter.datasource.EntryPacketDataConverter
- All Implemented Interfaces:
IDataConverter<IEntryPacket>
EntryPacketDataConverter is a wrapper for the IPojoToEntryConverter . It calls
the converter with the expected data type.- Author:
- anna
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoDocument(IEntryPacket entryPacket) toInternal(Object obj) Converts to internal representationtoObject(IEntryPacket entryPacket) Converts from internal representation
-
Field Details
-
_typeManager
-
-
Constructor Details
-
EntryPacketDataConverter
- Parameters:
typeDescRepository-type-
-
-
Method Details
-
toInternal
public IEntryPacket toInternal(Object obj) throws RemoteException, UnusableEntryException, UnknownTypeException Description copied from interface:IDataConverterConverts to internal representation- Specified by:
toInternalin interfaceIDataConverter<IEntryPacket>- Parameters:
obj- The object to convert to internal representation- Returns:
- The converted object in internal representation format
- Throws:
RemoteExceptionUnusableEntryExceptionUnknownTypeException
-
toObject
Description copied from interface:IDataConverterConverts from internal representation- Specified by:
toObjectin interfaceIDataConverter<IEntryPacket>- Parameters:
entryPacket- internal representation- Returns:
- The original user Entry Object
-
toDocument
- Specified by:
toDocumentin interfaceIDataConverter<IEntryPacket>
-