|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorableCodecFactory
Factory for creating instances of StorableCodec.
| Method Summary | ||
|---|---|---|
|
createCodec(Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout)
|
|
|
createCodec(Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout,
RawSupport support)
|
|
LayoutOptions |
getLayoutOptions(Class<? extends Storable> type)
Optionally return additional information regarding storable encoding. |
|
String |
getStorageName(Class<? extends Storable> type)
Returns the preferred storage/database name for the given type. |
|
| Method Detail |
|---|
String getStorageName(Class<? extends Storable> type)
throws SupportException
SupportException - if type is not supportedLayoutOptions getLayoutOptions(Class<? extends Storable> type)
<S extends Storable> StorableCodec<S> createCodec(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 storable
SupportException - if type is not supported
<S extends Storable> StorableCodec<S> createCodec(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 layer
SupportException - if type is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||