public static class

IdentifierGeneratorHelper.BigIntegerHolder

extends Object
implements IntegralDataTypeHolder
java.lang.Object
   ↳ org.hibernate.id.IdentifierGeneratorHelper.BigIntegerHolder

Summary

Public Constructors
IdentifierGeneratorHelper.BigIntegerHolder()
Public Methods
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(long value)
Perform an equality comparison check
boolean eq(IntegralDataTypeHolder other)
Perform an equality comparison check
boolean equals(Object o)
boolean gt(long value)
Perform a "greater than" comparison check.
boolean gt(IntegralDataTypeHolder other)
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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.id.IntegralDataTypeHolder

Public Constructors

public IdentifierGeneratorHelper.BigIntegerHolder ()

Public Methods

public IntegralDataTypeHolder add (long increment)

Perform an addition

Parameters
increment The value to add to this integral.
Returns
  • this, for method chaining

public void bind (PreparedStatement preparedStatement, int position)

Bind this holders internal value to the given result set.

Parameters
preparedStatement The JDBC prepared statement
position The position at which to bind
Throws
SQLException

public IntegralDataTypeHolder copy ()

Make a copy of this holder.

Returns
  • The copy.

public IntegralDataTypeHolder decrement ()

Equivalent to a -- operation

Returns
  • this, for method chaining

public boolean eq (long value)

Perform an equality comparison check

Parameters
value The other value to check against our internal state
Returns
  • True if the two are equal

public boolean eq (IntegralDataTypeHolder other)

Perform an equality comparison check

Parameters
other The other value to check against our internal state
Returns
  • True if the two are equal

public boolean equals (Object o)

public boolean gt (long value)

Perform a "greater than" comparison check. We check to see if our value is greater than the incoming value...

Parameters
value The other value to check against our internal state
Returns
  • True if our value is greater than the 'other' value.

public boolean gt (IntegralDataTypeHolder other)

Perform a "greater than" comparison check. We check to see if our value is greater than the incoming value...

Parameters
other The other value to check against our internal state
Returns
  • True if our value is greater than the 'other' value.

public int hashCode ()

public IntegralDataTypeHolder increment ()

Equivalent to a ++ operation

Returns
  • this, for method chaining

public IntegralDataTypeHolder initialize (long value)

Initialize the internal value from the given primitive long.

Parameters
value The primitive integral value.
Returns
  • this, for method chaining

public 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).

Parameters
resultSet The JDBC result set
defaultValue The default value to use if we did not get a result set value.
Returns
  • this, for method chaining
Throws
SQLException

public boolean lt (IntegralDataTypeHolder other)

Perform a "less than" comparison check. We check to see if our value is less than the incoming value...

Parameters
other The other value to check against our internal state
Returns
  • True if our value is less than the 'other' value.

public boolean lt (long value)

Perform a "less than" comparison check. We check to see if our value is less than the incoming value...

Parameters
value The other value to check against our internal state
Returns
  • True if our value is less than the 'other' value.

public Number makeValue ()

Return the internal value.

Returns
  • The current internal value

public Number makeValueThenAdd (long addend)

Increment the internal state by the given addend, but return the pre-incremented value.

Parameters
addend The value to be added to our internal state
Returns
  • The pre-incremented internal value

public Number makeValueThenIncrement ()

Increment the internal state, but return the pre-incremented value.

Returns
  • The pre-incremented internal value

public IntegralDataTypeHolder multiplyBy (IntegralDataTypeHolder factor)

Perform a multiplication.

Parameters
factor The factor by which to multiple this integral
Returns
  • this, for method chaining

public IntegralDataTypeHolder multiplyBy (long factor)

Perform a multiplication.

Parameters
factor The factor by which to multiple this integral
Returns
  • this, for method chaining

public IntegralDataTypeHolder subtract (long subtrahend)

Perform a subtraction

Parameters
subtrahend The value to subtract from this integral.
Returns
  • this, for method chaining

public String toString ()