public static class IdentifierGeneratorHelper.BigIntegerHolder extends Object implements IntegralDataTypeHolder
| Constructor and Description |
|---|
BigIntegerHolder() |
| Modifier and Type | Method and Description |
|---|---|
IntegralDataTypeHolder |
add(long increment)
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 value)
Perform an equality comparison check
|
boolean |
equals(Object o) |
boolean |
gt(IntegralDataTypeHolder other)
Perform a "greater than" comparison check.
|
boolean |
gt(long value)
Perform a "greater than" comparison check.
|
int |
hashCode() |
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 value)
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
|
String |
toString() |
public IntegralDataTypeHolder initialize(long value)
IntegralDataTypeHolderinitialize in interface IntegralDataTypeHoldervalue - The primitive integral value.public IntegralDataTypeHolder initialize(ResultSet resultSet, long defaultValue) throws SQLException
IntegralDataTypeHolderinitialize in interface IntegralDataTypeHolderresultSet - 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 setpublic void bind(PreparedStatement preparedStatement, int position) throws SQLException
IntegralDataTypeHolderbind in interface IntegralDataTypeHolderpreparedStatement - The JDBC prepared statementposition - The position at which to bindSQLException - Any exception from accessing the statementpublic IntegralDataTypeHolder increment()
IntegralDataTypeHolderincrement in interface IntegralDataTypeHolderpublic IntegralDataTypeHolder add(long increment)
IntegralDataTypeHolderadd in interface IntegralDataTypeHolderincrement - The value to add to this integral.public IntegralDataTypeHolder decrement()
IntegralDataTypeHolderdecrement in interface IntegralDataTypeHolderpublic IntegralDataTypeHolder subtract(long subtrahend)
IntegralDataTypeHoldersubtract in interface IntegralDataTypeHoldersubtrahend - The value to subtract from this integral.public IntegralDataTypeHolder multiplyBy(IntegralDataTypeHolder factor)
IntegralDataTypeHoldermultiplyBy in interface IntegralDataTypeHolderfactor - The factor by which to multiple this integralpublic IntegralDataTypeHolder multiplyBy(long factor)
IntegralDataTypeHoldermultiplyBy in interface IntegralDataTypeHolderfactor - The factor by which to multiple this integralpublic boolean eq(IntegralDataTypeHolder other)
IntegralDataTypeHoldereq in interface IntegralDataTypeHolderother - The other value to check against our internal statepublic boolean eq(long value)
IntegralDataTypeHoldereq in interface IntegralDataTypeHoldervalue - The other value to check against our internal statepublic boolean lt(IntegralDataTypeHolder other)
IntegralDataTypeHolderlt in interface IntegralDataTypeHolderother - The other value to check against our internal statepublic boolean lt(long value)
IntegralDataTypeHolderlt in interface IntegralDataTypeHoldervalue - The other value to check against our internal statepublic boolean gt(IntegralDataTypeHolder other)
IntegralDataTypeHoldergt in interface IntegralDataTypeHolderother - The other value to check against our internal statepublic boolean gt(long value)
IntegralDataTypeHoldergt in interface IntegralDataTypeHoldervalue - The other value to check against our internal statepublic IntegralDataTypeHolder copy()
IntegralDataTypeHoldercopy in interface IntegralDataTypeHolderpublic Number makeValue()
IntegralDataTypeHoldermakeValue in interface IntegralDataTypeHolderpublic Number makeValueThenIncrement()
IntegralDataTypeHoldermakeValueThenIncrement in interface IntegralDataTypeHolderpublic Number makeValueThenAdd(long addend)
IntegralDataTypeHoldermakeValueThenAdd in interface IntegralDataTypeHolderaddend - The value to be added to our internal stateCopyright © 2017 JBoss by Red Hat. All rights reserved.