public interface StorableCodecFactory
StorableCodec
.Modifier and Type | Method and Description |
---|---|
<S extends Storable> |
createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout) |
<S extends Storable> |
createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout,
RawSupport support) |
LayoutOptions |
getLayoutOptions(java.lang.Class<? extends Storable> type)
Optionally return additional information regarding storable encoding.
|
java.lang.String |
getStorageName(java.lang.Class<? extends Storable> type)
Returns the preferred storage/database name for the given type.
|
java.lang.String getStorageName(java.lang.Class<? extends Storable> type) throws SupportException
SupportException
- if type is not supportedLayoutOptions getLayoutOptions(java.lang.Class<? extends Storable> type)
<S extends Storable> StorableCodec<S> createCodec(java.lang.Class<S> type, StorableIndex pkIndex, boolean isMaster, Layout layout) throws SupportException
type
- type of storable to create codec forpkIndex
- suggested index for primary key (optional)isMaster
- when true, version properties and sequences are managedlayout
- when non-null, attempt to encode a storable layout
generation value in each storableSupportException
- if type is not supported<S extends Storable> StorableCodec<S> createCodec(java.lang.Class<S> type, StorableIndex pkIndex, boolean isMaster, Layout layout, RawSupport support) throws SupportException
type
- type of storable to create codec forpkIndex
- suggested index for primary key (optional)isMaster
- when true, version properties and sequences are managedlayout
- when non-null, attempt to encode a storable layout
generation value in each storablesupport
- binds generated storable with a storage layerSupportException
- if type is not supportedCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.