public abstract class CustomStorableCodecFactory extends java.lang.Object implements StorableCodecFactory
Constructor and Description |
---|
CustomStorableCodecFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract <S extends Storable> |
createCodec(java.lang.Class<S> type,
boolean isMaster,
Layout layout) |
protected <S extends Storable> |
createCodec(java.lang.Class<S> type,
boolean isMaster,
Layout layout,
RawSupport support) |
<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) |
java.lang.String |
getStorageName(java.lang.Class<? extends Storable> type)
Returns null to let repository decide what the name should be.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLayoutOptions
public java.lang.String getStorageName(java.lang.Class<? extends Storable> type) throws SupportException
getStorageName
in interface StorableCodecFactory
SupportException
- if type is not supportedpublic <S extends Storable> CustomStorableCodec<S> createCodec(java.lang.Class<S> type, StorableIndex pkIndex, boolean isMaster, Layout layout) throws SupportException
createCodec
in interface StorableCodecFactory
type
- type of storable to create codec forpkIndex
- ignoredisMaster
- 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 supportedpublic <S extends Storable> CustomStorableCodec<S> createCodec(java.lang.Class<S> type, StorableIndex pkIndex, boolean isMaster, Layout layout, RawSupport support) throws SupportException
createCodec
in interface StorableCodecFactory
type
- type of storable to create codec forpkIndex
- ignoredisMaster
- 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 supportedprotected abstract <S extends Storable> CustomStorableCodec<S> createCodec(java.lang.Class<S> type, boolean isMaster, Layout layout) throws SupportException
type
- type of storable to create codec forisMaster
- 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 supportedprotected <S extends Storable> CustomStorableCodec<S> createCodec(java.lang.Class<S> type, boolean isMaster, Layout layout, RawSupport support) throws SupportException
type
- type of storable to create codec forisMaster
- 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.