public abstract class NumericIdStrategy extends IdStrategy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NumericIdStrategy.RegisteredDelegate<T> |
static interface |
NumericIdStrategy.Registry
Register your pojos/enums/collections/maps/delegates here.
|
IdStrategy.Factory, IdStrategy.UnknownTypeException| Modifier and Type | Field and Description |
|---|---|
protected static int |
CID_BIGDECIMAL |
protected static int |
CID_BIGINTEGER |
protected static int |
CID_BOOL |
protected static int |
CID_BYTE |
protected static int |
CID_BYTE_ARRAY |
protected static int |
CID_BYTES |
protected static int |
CID_CHAR |
protected static int |
CID_CLASS |
protected static int |
CID_COLLECTION |
protected static int |
CID_DATE |
protected static int |
CID_DELEGATE |
protected static int |
CID_DOUBLE |
protected static int |
CID_ENUM |
protected static int |
CID_ENUM_MAP |
protected static int |
CID_ENUM_SET |
protected static int |
CID_FLOAT |
protected static int |
CID_INT32 |
protected static int |
CID_INT64 |
protected static int |
CID_MAP |
protected static int |
CID_OBJECT |
protected static int |
CID_POJO |
protected static int |
CID_SHORT |
protected static int |
CID_STRING |
ALLOW_NULL_ARRAY_ELEMENT, AUTO_LOAD_POLYMORPHIC_CLASSES, COLLECTION_SCHEMA_ON_REPEATED_FIELDS, DEFAULT_FLAGS, ENUMS_BY_NAME, flags, groupId, MORPH_COLLECTION_INTERFACES, MORPH_MAP_INTERFACES, MORPH_NON_FINAL_POJOS, POJO_SCHEMA_ON_COLLECTION_FIELDS, POJO_SCHEMA_ON_MAP_FIELDS, primaryGroup| Modifier | Constructor and Description |
|---|---|
protected |
NumericIdStrategy(int flags,
IdStrategy primaryGroup,
int groupId) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<?> |
collectionClass(int id) |
protected abstract Class<?> |
delegateClass(int id) |
protected abstract Class<?> |
enumClass(int id) |
protected abstract int |
getEnumId(Class<?> clazz) |
protected abstract int |
getId(Class<?> clazz) |
protected abstract NumericIdStrategy.RegisteredDelegate<?> |
getRegisteredDelegate(Class<?> clazz) |
protected static <T> void |
grow(ArrayList<T> list,
int size) |
protected abstract Class<?> |
mapClass(int id) |
protected static <T> ArrayList<T> |
newList(int size) |
protected abstract Class<?> |
pojoClass(int id) |
protected Class<?> |
resolveArrayComponentTypeFrom(Input input,
boolean mapped) |
protected Class<?> |
resolveClassFrom(Input input,
boolean mapped,
boolean array) |
protected void |
transferArrayId(Input input,
Output output,
int fieldNumber,
boolean mapped) |
protected void |
transferClassId(Input input,
Output output,
int fieldNumber,
boolean mapped,
boolean array) |
protected void |
writeArrayIdTo(Output output,
Class<?> componentType) |
protected void |
writeClassIdTo(Output output,
Class<?> componentType,
boolean array) |
createMessageInstance, getCollectionFactory, getDelegate, getDelegateWrapper, getEnumIO, getMapFactory, getSchemaWrapper, isDelegateRegistered, isRegistered, newSchema, resolveCollectionFrom, resolveDelegateFrom, resolveEnumFrom, resolveMapFrom, resolvePojoFrom, transferCollectionId, transferDelegateId, transferEnumId, transferMapId, transferPojoId, tryWriteDelegateIdTo, tryWritePojoIdTo, writeCollectionIdTo, writeEnumIdTo, writeMapIdTo, writeMessageIdTo, writePojoIdToprotected static final int CID_BOOL
protected static final int CID_BYTE
protected static final int CID_CHAR
protected static final int CID_SHORT
protected static final int CID_INT32
protected static final int CID_INT64
protected static final int CID_FLOAT
protected static final int CID_DOUBLE
protected static final int CID_STRING
protected static final int CID_BYTES
protected static final int CID_BYTE_ARRAY
protected static final int CID_BIGDECIMAL
protected static final int CID_BIGINTEGER
protected static final int CID_DATE
protected static final int CID_OBJECT
protected static final int CID_ENUM_SET
protected static final int CID_ENUM_MAP
protected static final int CID_ENUM
protected static final int CID_COLLECTION
protected static final int CID_MAP
protected static final int CID_POJO
protected static final int CID_CLASS
protected static final int CID_DELEGATE
protected NumericIdStrategy(int flags,
IdStrategy primaryGroup,
int groupId)
protected void writeArrayIdTo(Output output, Class<?> componentType) throws IOException
writeArrayIdTo in class IdStrategyIOExceptionprotected void transferArrayId(Input input, Output output, int fieldNumber, boolean mapped) throws IOException
transferArrayId in class IdStrategyIOExceptionprotected Class<?> resolveArrayComponentTypeFrom(Input input, boolean mapped) throws IOException
resolveArrayComponentTypeFrom in class IdStrategyIOExceptionprotected void writeClassIdTo(Output output, Class<?> componentType, boolean array) throws IOException
writeClassIdTo in class IdStrategyIOExceptionprotected void transferClassId(Input input, Output output, int fieldNumber, boolean mapped, boolean array) throws IOException
transferClassId in class IdStrategyIOExceptionprotected Class<?> resolveClassFrom(Input input, boolean mapped, boolean array) throws IOException
resolveClassFrom in class IdStrategyIOExceptionprotected abstract NumericIdStrategy.RegisteredDelegate<?> getRegisteredDelegate(Class<?> clazz)
protected abstract Class<?> enumClass(int id)
protected abstract Class<?> delegateClass(int id)
protected abstract Class<?> collectionClass(int id)
protected abstract Class<?> mapClass(int id)
protected abstract Class<?> pojoClass(int id)
protected abstract int getEnumId(Class<?> clazz)
protected abstract int getId(Class<?> clazz)
protected static <T> ArrayList<T> newList(int size)
protected static <T> void grow(ArrayList<T> list, int size)
Copyright © 2009–2019. All rights reserved.