| java.lang.Object com.sleepycat.persist.impl.AbstractInput com.sleepycat.persist.impl.WidenerInput
WidenerInput | class WidenerInput extends AbstractInput (Code) | | Widens a value returned by another input when any readXxx method is called.
Used to cause an Accessor to read a widened value.
For non-key fields we support all Java primitive widening:
- byte to short, int, long, float, double or BigInteger
- short to int, long, float, double or BigInteger
- char to int, long, float, double or BigInteger
- int to long, float, double or BigInteger
- long to float, double or BigInteger
- float to double
For non-key fields we also support:
- Java reference widening
- primitive to primitive wrapper
- Java primitive widening to corresponding primitive wrappers
- Java widening of primitive wrapper to primitive wrapper
For secondary keys fields we ONLY support:
- primitive to primitive wrapper
But for primary keys and composite key fields we ONLY support:
- primitive to primitive wrapper
- primitive wrapper to primitive
These conversions don't require any converter, since the stored format is
not changed. A WidenerInput is not used for these changes.
author: Mark Hayes |
isWideningSupported | static boolean isWideningSupported(Format fromFormat, Format toFormat, boolean isSecKeyField)(Code) | | Returns whether widening is supported by this class. If false is
returned by this method, then widening is disallowed and a field
converter or deleter is necessary.
|
readArrayLength | public int readArrayLength()(Code) | | |
readBoolean | public boolean readBoolean()(Code) | | |
readByte | public byte readByte()(Code) | | |
readChar | public char readChar()(Code) | | |
readEnumConstant | public int readEnumConstant(String[] names)(Code) | | |
readInt | public int readInt()(Code) | | |
readLong | public long readLong()(Code) | | |
readShort | public short readShort()(Code) | | |
readSortedDouble | public double readSortedDouble()(Code) | | |
readSortedFloat | public float readSortedFloat()(Code) | | |
registerPriKeyObject | public void registerPriKeyObject(Object o)(Code) | | |
|
|