程序包 org.hibernate.id
类 IdentifierGeneratorHelper.BigDecimalHolder
- java.lang.Object
-
- org.hibernate.id.IdentifierGeneratorHelper.BigDecimalHolder
-
- 所有已实现的接口:
Serializable,IntegralDataTypeHolder
public static class IdentifierGeneratorHelper.BigDecimalHolder extends Object implements IntegralDataTypeHolder
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BigDecimalHolder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IntegralDataTypeHolderadd(long increment)Perform an additionvoidbind(PreparedStatement preparedStatement, int position)Bind this holders internal value to the given result set.IntegralDataTypeHoldercopy()Make a copy of this holder.IntegralDataTypeHolderdecrement()Equivalent to a -- operationbooleaneq(long value)Perform an equality comparison checkbooleaneq(IntegralDataTypeHolder other)Perform an equality comparison checkbooleanequals(Object o)booleangt(long value)Perform a "greater than" comparison check.booleangt(IntegralDataTypeHolder other)Perform a "greater than" comparison check.inthashCode()IntegralDataTypeHolderincrement()Equivalent to a ++ operationIntegralDataTypeHolderinitialize(long value)Initialize the internal value from the given primitive long.IntegralDataTypeHolderinitialize(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).booleanlt(long value)Perform a "less than" comparison check.booleanlt(IntegralDataTypeHolder other)Perform a "less than" comparison check.NumbermakeValue()Return the internal value.NumbermakeValueThenAdd(long addend)Increment the internal state by the given addend, but return the pre-incremented value.NumbermakeValueThenIncrement()Increment the internal state, but return the pre-incremented value.IntegralDataTypeHoldermultiplyBy(long factor)Perform a multiplication.IntegralDataTypeHoldermultiplyBy(IntegralDataTypeHolder factor)Perform a multiplication.IntegralDataTypeHoldersubtract(long subtrahend)Perform a subtractionStringtoString()
-
-
-
方法详细资料
-
initialize
public IntegralDataTypeHolder initialize(long value)
从接口复制的说明:IntegralDataTypeHolderInitialize the internal value from the given primitive long.- 指定者:
initialize在接口中IntegralDataTypeHolder- 参数:
value- The primitive integral value.- 返回:
- this, for method chaining
-
initialize
public IntegralDataTypeHolder initialize(ResultSet resultSet, long defaultValue) throws SQLException
从接口复制的说明:IntegralDataTypeHolderInitialize 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).- 指定者:
initialize在接口中IntegralDataTypeHolder- 参数:
resultSet- The JDBC result setdefaultValue- The default value to use if we did not get a result set value.- 返回:
- this, for method chaining
- 抛出:
SQLException- Any exception from accessing the result set
-
bind
public void bind(PreparedStatement preparedStatement, int position) throws SQLException
从接口复制的说明:IntegralDataTypeHolderBind this holders internal value to the given result set.- 指定者:
bind在接口中IntegralDataTypeHolder- 参数:
preparedStatement- The JDBC prepared statementposition- The position at which to bind- 抛出:
SQLException- Any exception from accessing the statement
-
increment
public IntegralDataTypeHolder increment()
从接口复制的说明:IntegralDataTypeHolderEquivalent to a ++ operation- 指定者:
increment在接口中IntegralDataTypeHolder- 返回:
- this, for method chaining
-
add
public IntegralDataTypeHolder add(long increment)
从接口复制的说明:IntegralDataTypeHolderPerform an addition- 指定者:
add在接口中IntegralDataTypeHolder- 参数:
increment- The value to add to this integral.- 返回:
- this, for method chaining
-
decrement
public IntegralDataTypeHolder decrement()
从接口复制的说明:IntegralDataTypeHolderEquivalent to a -- operation- 指定者:
decrement在接口中IntegralDataTypeHolder- 返回:
- this, for method chaining
-
subtract
public IntegralDataTypeHolder subtract(long subtrahend)
从接口复制的说明:IntegralDataTypeHolderPerform a subtraction- 指定者:
subtract在接口中IntegralDataTypeHolder- 参数:
subtrahend- The value to subtract from this integral.- 返回:
- this, for method chaining
-
multiplyBy
public IntegralDataTypeHolder multiplyBy(IntegralDataTypeHolder factor)
从接口复制的说明:IntegralDataTypeHolderPerform a multiplication.- 指定者:
multiplyBy在接口中IntegralDataTypeHolder- 参数:
factor- The factor by which to multiple this integral- 返回:
- this, for method chaining
-
multiplyBy
public IntegralDataTypeHolder multiplyBy(long factor)
从接口复制的说明:IntegralDataTypeHolderPerform a multiplication.- 指定者:
multiplyBy在接口中IntegralDataTypeHolder- 参数:
factor- The factor by which to multiple this integral- 返回:
- this, for method chaining
-
eq
public boolean eq(IntegralDataTypeHolder other)
从接口复制的说明:IntegralDataTypeHolderPerform an equality comparison check- 指定者:
eq在接口中IntegralDataTypeHolder- 参数:
other- The other value to check against our internal state- 返回:
- True if the two are equal
-
eq
public boolean eq(long value)
从接口复制的说明:IntegralDataTypeHolderPerform an equality comparison check- 指定者:
eq在接口中IntegralDataTypeHolder- 参数:
value- The other value to check against our internal state- 返回:
- True if the two are equal
-
lt
public boolean lt(IntegralDataTypeHolder other)
从接口复制的说明:IntegralDataTypeHolderPerform a "less than" comparison check. We check to see if our value is less than the incoming value...- 指定者:
lt在接口中IntegralDataTypeHolder- 参数:
other- The other value to check against our internal state- 返回:
- True if our value is less than the 'other' value.
-
lt
public boolean lt(long value)
从接口复制的说明:IntegralDataTypeHolderPerform a "less than" comparison check. We check to see if our value is less than the incoming value...- 指定者:
lt在接口中IntegralDataTypeHolder- 参数:
value- The other value to check against our internal state- 返回:
- True if our value is less than the 'other' value.
-
gt
public boolean gt(IntegralDataTypeHolder other)
从接口复制的说明:IntegralDataTypeHolderPerform a "greater than" comparison check. We check to see if our value is greater than the incoming value...- 指定者:
gt在接口中IntegralDataTypeHolder- 参数:
other- The other value to check against our internal state- 返回:
- True if our value is greater than the 'other' value.
-
gt
public boolean gt(long value)
从接口复制的说明:IntegralDataTypeHolderPerform a "greater than" comparison check. We check to see if our value is greater than the incoming value...- 指定者:
gt在接口中IntegralDataTypeHolder- 参数:
value- The other value to check against our internal state- 返回:
- True if our value is greater than the 'other' value.
-
copy
public IntegralDataTypeHolder copy()
从接口复制的说明:IntegralDataTypeHolderMake a copy of this holder.- 指定者:
copy在接口中IntegralDataTypeHolder- 返回:
- The copy.
-
makeValue
public Number makeValue()
从接口复制的说明:IntegralDataTypeHolderReturn the internal value.- 指定者:
makeValue在接口中IntegralDataTypeHolder- 返回:
- The current internal value
-
makeValueThenIncrement
public Number makeValueThenIncrement()
从接口复制的说明:IntegralDataTypeHolderIncrement the internal state, but return the pre-incremented value.- 指定者:
makeValueThenIncrement在接口中IntegralDataTypeHolder- 返回:
- The pre-incremented internal value
-
makeValueThenAdd
public Number makeValueThenAdd(long addend)
从接口复制的说明:IntegralDataTypeHolderIncrement the internal state by the given addend, but return the pre-incremented value.- 指定者:
makeValueThenAdd在接口中IntegralDataTypeHolder- 参数:
addend- The value to be added to our internal state- 返回:
- The pre-incremented internal value
-
-