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() |
double |
readSortedDouble() |
float |
readSortedFloat() |
java.lang.String |
readString() |
void |
registerPriKeyObject(java.lang.Object o)
Called via Accessor.readSecKeyFields for a primary key field with a
reference type.
|
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 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)
EntityInputFor such key fields, no formatId is present nor can the object already be present in the visited object set.
public java.lang.Object readObject()
EntityInputpublic char readChar()
public boolean readBoolean()
public byte readByte()
public short readShort()
public int readInt()
public long readLong()
public float readSortedFloat()
public double readSortedDouble()
public java.math.BigInteger readBigInteger()
Copyright (c) 2004,2008 Oracle. All rights reserved.