public static class SimpleFormat.FChar extends SimpleFormat
SimpleFormat.FBigDec, SimpleFormat.FBigInt, SimpleFormat.FBool, SimpleFormat.FByte, SimpleFormat.FChar, SimpleFormat.FDate, SimpleFormat.FDouble, SimpleFormat.FFloat, SimpleFormat.FInt, SimpleFormat.FLong, SimpleFormat.FShort, SimpleFormat.FString
ID_BIGDEC, ID_BIGINT, ID_BOOL, ID_BOOL_W, ID_BYTE, ID_BYTE_W, ID_CHAR, ID_CHAR_W, ID_DATE, ID_DOUBLE, ID_DOUBLE_W, ID_FLOAT, ID_FLOAT_W, ID_INT, ID_INT_W, ID_LONG, ID_LONG_W, ID_NULL, ID_NUMBER, ID_OBJECT, ID_PREDEFINED, ID_SHORT, ID_SHORT_W, ID_SIMPLE_MAX, ID_SIMPLE_MIN, ID_STRING
Constructor and Description |
---|
SimpleFormat.FChar(Catalog catalog,
boolean primitive) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
copySecKey(RecordInput input,
RecordOutput output)
Called after skipToSecKey() to copy the data bytes of a singular
(XXX_TO_ONE) key field.
|
(package private) int |
getPrimitiveLength() |
(package private) java.lang.Object |
newArray(int len)
Creates an array of the format's class of the given length, as if
Array.newInstance(getType(), len) were called.
|
java.lang.Object |
newInstance(EntityInput input,
boolean rawAccess)
Creates a new instance of the target class using its default
constructor.
|
(package private) java.lang.Object |
newPrimitiveArray(int len,
EntityInput input) |
(package private) void |
readPrimitiveField(java.lang.Object o,
EntityInput input,
java.lang.reflect.Field field) |
(package private) void |
skipContents(RecordInput input)
Skips over the object's contents, as if readObject() were called, but
without returning an object.
|
(package private) void |
writeObject(java.lang.Object o,
EntityOutput output,
boolean rawAccess)
Writes a given instance of the target class to the output data bytes.
|
(package private) void |
writePrimitiveArray(java.lang.Object o,
EntityOutput output) |
(package private) void |
writePrimitiveField(java.lang.Object o,
EntityOutput output,
java.lang.reflect.Field field) |
collectRelatedFormats, copySecMultiKeyPrimitiveArray, evolve, getWrapperFormat, initialize, isPrimitive, isSimple, readObject, setWrapperFormat, skipPrimitiveArray
allowEvolveFromProxy, areNestedRefsProhibited, convertRawObject, copySecMultiKey, evolveMetadata, getAccessor, getCatalog, getClassMetadata, getClassName, getComponentType, getDimensions, getEntityFormat, getEntityMetadata, getEnumConstants, getEvolveNeeded, getExistingType, getFields, getId, getLatestVersion, getNewStringFormat, getOldKeyName, getPreviousVersion, getProxiedFormat, getReader, getSequenceKeyFormat, getSuperFormat, getSuperType, getType, getVersion, initCatalog, initializeIfNeeded, initializeReader, isArray, isAssignableTo, isCurrentVersion, isDeleted, isEntity, isEnum, isInitialized, isModelClass, isNew, isPredefined, isPriKeyNullOrZero, isSameClass, migrateFromBeta, nullifySecKey, readPriKey, setDeleted, setEvolveNeeded, setId, setLatestVersion, setProxiedFormat, setReader, setSuperFormat, setUnused, skipToSecKey, toString, writePriKey
SimpleFormat.FChar(Catalog catalog, boolean primitive)
java.lang.Object newArray(int len)
Format
public java.lang.Object newInstance(EntityInput input, boolean rawAccess) throws RefreshException
Format
newInstance
in interface Reader
newInstance
in class Format
RefreshException
void writeObject(java.lang.Object o, EntityOutput output, boolean rawAccess)
Format
writeObject
in class Format
void skipContents(RecordInput input)
Format
skipContents
in class Format
void copySecKey(RecordInput input, RecordOutput output)
Format
copySecKey
in class Format
java.lang.Object newPrimitiveArray(int len, EntityInput input) throws RefreshException
newPrimitiveArray
in class SimpleFormat
RefreshException
void writePrimitiveArray(java.lang.Object o, EntityOutput output)
writePrimitiveArray
in class SimpleFormat
int getPrimitiveLength()
getPrimitiveLength
in class SimpleFormat
void readPrimitiveField(java.lang.Object o, EntityInput input, java.lang.reflect.Field field) throws java.lang.IllegalAccessException, RefreshException
readPrimitiveField
in class SimpleFormat
java.lang.IllegalAccessException
- from subclasses.RefreshException
void writePrimitiveField(java.lang.Object o, EntityOutput output, java.lang.reflect.Field field) throws java.lang.IllegalAccessException
writePrimitiveField
in class SimpleFormat
java.lang.IllegalAccessException
- from subclasses.Copyright (c) 2004-2012 Oracle. All rights reserved.