|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.persist.impl.Format
com.sleepycat.persist.impl.PrimitiveArrayFormat
public class PrimitiveArrayFormat
An array of primitives having one dimension. Multidimensional arrays are
handled by ObjectArrayFormat.
| Method Summary | |
|---|---|
Format |
getComponentType()
Returns the array component type, or null if this is not an array type. |
int |
getDimensions()
Returns the number of array dimensions, or zero if this is not an array type. |
boolean |
isArray()
Returns whether this is an array type. |
java.lang.Object |
newInstance(EntityInput input,
boolean rawAccess)
Creates a new instance of the target class using its default constructor. |
java.lang.Object |
readObject(java.lang.Object o,
EntityInput input,
boolean rawAccess)
Called after newInstance() to read the rest of the data bytes and fill in the object contents. |
| Methods inherited from class com.sleepycat.persist.impl.Format |
|---|
getClassMetadata, getClassName, getEntityMetadata, getEnumConstants, getFields, getId, getOldKeyName, getPreviousVersion, getSuperType, getVersion, initializeReader, isDeleted, isEnum, isPrimitive, isSimple, readPriKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isArray()
RawTypeRawObject instances.
If true is returned, the array component type is returned by RawType.getComponentType() and the number of array dimensions is returned by
RawType.getDimensions().
If false is returned, then this is a complex type, an enum type (see
RawType.isEnum()), or a simple type (see RawType.isSimple()).
isArray in interface RawTypeisArray in class Formatpublic int getDimensions()
RawType
getDimensions in interface RawTypegetDimensions in class Formatpublic Format getComponentType()
RawType
getComponentType in interface RawTypegetComponentType in class Format
public java.lang.Object newInstance(EntityInput input,
boolean rawAccess)
Format
newInstance in class Format
public java.lang.Object readObject(java.lang.Object o,
EntityInput input,
boolean rawAccess)
Format
readObject in class Format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||