class WidenerInput extends AbstractInput
catalog, rawAccess| Constructor and Description |
|---|
WidenerInput(EntityInput input,
int fromFormatId,
int toFormatId) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
isWideningSupported(Format fromFormat,
Format toFormat,
boolean isSecKeyField)
Returns whether widening is supported by this class.
|
int |
readArrayLength()
Called by ObjectArrayFormat and PrimitiveArrayFormat to read the array
length.
|
java.math.BigInteger |
readBigInteger() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
int |
readEnumConstant(java.lang.String[] names)
Called by EnumFormat to read and return index of the enum constant.
|
int |
readInt() |
java.lang.Object |
readKeyObject(Format fromFormat)
Called for a primary key field or a composite key field with a reference
type.
|
long |
readLong() |
java.lang.Object |
readObject()
Called via Accessor to read all fields with reference types, except for
the primary key field and composite key fields (see readKeyObject
below).
|
short |
readShort() |
java.math.BigDecimal |
readSortedBigDecimal() |
double |
readSortedDouble() |
float |
readSortedFloat() |
java.lang.String |
readString() |
java.lang.Object |
readStringObject()
Called for a String field, that is not a primary key field or a
composite key field with a reference type.
|
void |
registerPriKeyObject(java.lang.Object o)
Called via Accessor.readSecKeyFields for a primary key field with a
reference type.
|
void |
registerPriStringKeyObject(java.lang.Object o)
Called via Accessor.readSecKeyFields for a primary String key field.
|
void |
skipField(Format declaredFormat)
Called via PersistKeyCreator to skip fields prior to the secondary key
field.
|
getCatalog, isRawAccess, setRawAccessWidenerInput(EntityInput input, int fromFormatId, int toFormatId)
static boolean isWideningSupported(Format fromFormat, Format toFormat, boolean isSecKeyField)
public void registerPriKeyObject(java.lang.Object o)
EntityInputpublic void registerPriStringKeyObject(java.lang.Object o)
EntityInputpublic int readArrayLength()
EntityInputpublic int readEnumConstant(java.lang.String[] names)
EntityInputpublic void skipField(Format declaredFormat)
EntityInputpublic java.lang.String readString()
public java.lang.Object readKeyObject(Format fromFormat) throws RefreshException
EntityInputFor such key fields, no formatId is present nor can the object already be present in the visited object set.
RefreshExceptionpublic java.lang.Object readObject()
throws RefreshException
EntityInputRefreshExceptionpublic char readChar()
public boolean readBoolean()
public byte readByte()
public short readShort()
throws RefreshException
RefreshExceptionpublic int readInt()
throws RefreshException
RefreshExceptionpublic long readLong()
throws RefreshException
RefreshExceptionpublic float readSortedFloat()
throws RefreshException
RefreshExceptionpublic double readSortedDouble()
throws RefreshException
RefreshExceptionpublic java.math.BigInteger readBigInteger()
throws RefreshException
RefreshExceptionpublic java.math.BigDecimal readSortedBigDecimal()
throws RefreshException
RefreshExceptionpublic java.lang.Object readStringObject()
EntityInputFor the new String format, no formatId is present nor can the object already be present in the visited object set. For the old String format, this method simply calls readObject for compatibility.
Copyright (c) 2004-2012 Oracle. All rights reserved.