|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntegralDataTypeHolder
Defines a common api for dealing with data of integral data type.
Method Summary | |
---|---|
IntegralDataTypeHolder |
add(long addend)
Perform an addition |
void |
bind(PreparedStatement preparedStatement,
int position)
Bind this holders internal value to the given result set. |
IntegralDataTypeHolder |
copy()
Make a copy of this holder. |
IntegralDataTypeHolder |
decrement()
Equivalent to a -- operation |
boolean |
eq(IntegralDataTypeHolder other)
Perform an equality comparison check |
boolean |
eq(long other)
Perform an equality comparison check |
boolean |
gt(IntegralDataTypeHolder other)
Perform a "greater than" comparison check. |
boolean |
gt(long other)
Perform a "greater than" comparison check. |
IntegralDataTypeHolder |
increment()
Equivalent to a ++ operation |
IntegralDataTypeHolder |
initialize(long value)
Initialize the internal value from the given primitive long. |
IntegralDataTypeHolder |
initialize(ResultSet resultSet,
long defaultValue)
Initialize the internal value from the given result set, using the specified default value if we could not get a value from the result set (aka result was null). |
boolean |
lt(IntegralDataTypeHolder other)
Perform a "less than" comparison check. |
boolean |
lt(long other)
Perform a "less than" comparison check. |
Number |
makeValue()
Return the internal value. |
Number |
makeValueThenAdd(long addend)
Increment the internal state by the given addend, but return the pre-incremented value. |
Number |
makeValueThenIncrement()
Increment the internal state, but return the pre-incremented value. |
IntegralDataTypeHolder |
multiplyBy(IntegralDataTypeHolder factor)
Perform a multiplication. |
IntegralDataTypeHolder |
multiplyBy(long factor)
Perform a multiplication. |
IntegralDataTypeHolder |
subtract(long subtrahend)
Perform a subtraction |
Method Detail |
---|
IntegralDataTypeHolder initialize(long value)
value
- The primitive integral value.
IntegralDataTypeHolder initialize(ResultSet resultSet, long defaultValue) throws SQLException
resultSet
- The JDBC result setdefaultValue
- The default value to use if we did not get a result set value.
SQLException
- Any exception from accessing the result setvoid bind(PreparedStatement preparedStatement, int position) throws SQLException
preparedStatement
- The JDBC prepared statementposition
- The position at which to bind
SQLException
- Any exception from accessing the statementIntegralDataTypeHolder increment()
IntegralDataTypeHolder add(long addend)
addend
- The value to add to this integral.
IntegralDataTypeHolder decrement()
IntegralDataTypeHolder subtract(long subtrahend)
subtrahend
- The value to subtract from this integral.
IntegralDataTypeHolder multiplyBy(IntegralDataTypeHolder factor)
factor
- The factor by which to multiple this integral
IntegralDataTypeHolder multiplyBy(long factor)
factor
- The factor by which to multiple this integral
boolean eq(IntegralDataTypeHolder other)
other
- The other value to check against our internal state
boolean eq(long other)
other
- The other value to check against our internal state
boolean lt(IntegralDataTypeHolder other)
other
- The other value to check against our internal state
boolean lt(long other)
other
- The other value to check against our internal state
boolean gt(IntegralDataTypeHolder other)
other
- The other value to check against our internal state
boolean gt(long other)
other
- The other value to check against our internal state
IntegralDataTypeHolder copy()
Number makeValue()
Number makeValueThenIncrement()
Number makeValueThenAdd(long addend)
addend
- The value to be added to our internal state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |