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, setRawAccess
WidenerInput(EntityInput input, int fromFormatId, int toFormatId)
static boolean isWideningSupported(Format fromFormat, Format toFormat, boolean isSecKeyField)
public void registerPriKeyObject(java.lang.Object o)
EntityInput
public void registerPriStringKeyObject(java.lang.Object o)
EntityInput
public int readArrayLength()
EntityInput
public int readEnumConstant(java.lang.String[] names)
EntityInput
public void skipField(Format declaredFormat)
EntityInput
public java.lang.String readString()
public java.lang.Object readKeyObject(Format fromFormat) throws RefreshException
EntityInput
For such key fields, no formatId is present nor can the object already be present in the visited object set.
RefreshException
public java.lang.Object readObject() throws RefreshException
EntityInput
RefreshException
public char readChar()
public boolean readBoolean()
public byte readByte()
public short readShort() throws RefreshException
RefreshException
public int readInt() throws RefreshException
RefreshException
public long readLong() throws RefreshException
RefreshException
public float readSortedFloat() throws RefreshException
RefreshException
public double readSortedDouble() throws RefreshException
RefreshException
public java.math.BigInteger readBigInteger() throws RefreshException
RefreshException
public java.math.BigDecimal readSortedBigDecimal() throws RefreshException
RefreshException
public java.lang.Object readStringObject()
EntityInput
For 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.