public interface IntegralDataTypeHolder extends Serializable
Modifier and Type | Method and Description |
---|---|
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
|
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 bindSQLException
- 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 integralIntegralDataTypeHolder multiplyBy(long factor)
factor
- The factor by which to multiple this integralboolean eq(IntegralDataTypeHolder other)
other
- The other value to check against our internal stateboolean eq(long other)
other
- The other value to check against our internal stateboolean lt(IntegralDataTypeHolder other)
other
- The other value to check against our internal stateboolean lt(long other)
other
- The other value to check against our internal stateboolean gt(IntegralDataTypeHolder other)
other
- The other value to check against our internal stateboolean gt(long other)
other
- The other value to check against our internal stateIntegralDataTypeHolder copy()
Number makeValue()
Number makeValueThenIncrement()
Number makeValueThenAdd(long addend)
addend
- The value to be added to our internal stateCopyright © 2016 JBoss by Red Hat. All rights reserved.