com.sleepycat.bind.tuple
public class IntegerBinding extends TupleBinding
TupleBinding
for a Integer
primitive
wrapper or an int
primitive.
There are two ways to use this class:
Method Summary | |
---|---|
static int | entryToInt(DatabaseEntry entry)
Converts an entry buffer into a simple int value.
|
Object | entryToObject(TupleInput input) |
protected TupleOutput | getTupleOutput(Object object) |
static void | intToEntry(int val, DatabaseEntry entry)
Converts a simple int value into an entry buffer.
|
void | objectToEntry(Object object, TupleOutput output) |
int
value.
Parameters: entry is the source entry buffer.
Returns: the resulting value.
int
value into an entry buffer.
Parameters: val is the source value. entry is the destination entry buffer.