|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.IdentifierGeneratorHelper.BigDecimalHolder
public static class IdentifierGeneratorHelper.BigDecimalHolder
| Constructor Summary | |
|---|---|
IdentifierGeneratorHelper.BigDecimalHolder()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentifierGeneratorHelper.BigDecimalHolder()
| Method Detail |
|---|
public IntegralDataTypeHolder initialize(long value)
IntegralDataTypeHolder
initialize in interface IntegralDataTypeHoldervalue - The primitive integral value.
public IntegralDataTypeHolder initialize(ResultSet resultSet,
long defaultValue)
throws SQLException
IntegralDataTypeHolder
initialize 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 set
public void bind(PreparedStatement preparedStatement,
int position)
throws SQLException
IntegralDataTypeHolder
bind in interface IntegralDataTypeHolderpreparedStatement - The JDBC prepared statementposition - The position at which to bind
SQLException - Any exception from accessing the statementpublic IntegralDataTypeHolder increment()
IntegralDataTypeHolder
increment in interface IntegralDataTypeHolderpublic IntegralDataTypeHolder add(long increment)
IntegralDataTypeHolder
add in interface IntegralDataTypeHolderincrement - The value to add to this integral.
public IntegralDataTypeHolder decrement()
IntegralDataTypeHolder
decrement in interface IntegralDataTypeHolderpublic IntegralDataTypeHolder subtract(long subtrahend)
IntegralDataTypeHolder
subtract in interface IntegralDataTypeHoldersubtrahend - The value to subtract from this integral.
public IntegralDataTypeHolder multiplyBy(IntegralDataTypeHolder factor)
IntegralDataTypeHolder
multiplyBy in interface IntegralDataTypeHolderfactor - The factor by which to multiple this integral
public IntegralDataTypeHolder multiplyBy(long factor)
IntegralDataTypeHolder
multiplyBy in interface IntegralDataTypeHolderfactor - The factor by which to multiple this integral
public boolean eq(IntegralDataTypeHolder other)
IntegralDataTypeHolder
eq in interface IntegralDataTypeHolderother - The other value to check against our internal state
public boolean eq(long value)
IntegralDataTypeHolder
eq in interface IntegralDataTypeHoldervalue - The other value to check against our internal state
public boolean lt(IntegralDataTypeHolder other)
IntegralDataTypeHolder
lt in interface IntegralDataTypeHolderother - The other value to check against our internal state
public boolean lt(long value)
IntegralDataTypeHolder
lt in interface IntegralDataTypeHoldervalue - The other value to check against our internal state
public boolean gt(IntegralDataTypeHolder other)
IntegralDataTypeHolder
gt in interface IntegralDataTypeHolderother - The other value to check against our internal state
public boolean gt(long value)
IntegralDataTypeHolder
gt in interface IntegralDataTypeHoldervalue - The other value to check against our internal state
public IntegralDataTypeHolder copy()
IntegralDataTypeHolder
copy in interface IntegralDataTypeHolderpublic Number makeValue()
IntegralDataTypeHolder
makeValue in interface IntegralDataTypeHolderpublic Number makeValueThenIncrement()
IntegralDataTypeHolder
makeValueThenIncrement in interface IntegralDataTypeHolderpublic Number makeValueThenAdd(long addend)
IntegralDataTypeHolder
makeValueThenAdd in interface IntegralDataTypeHolderaddend - The value to be added to our internal state
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||