| |
|
| java.lang.Object com.lutris.appserver.server.sql.ObjectId
ObjectId | public class ObjectId implements Serializable(Code) | | Represents an object id used by LBS data objects. The object id
must be unique. The combination of database URL and object id
constitutes a GUID. The maximum value of an object id is
DECIMAL(19,0)
version: $Revision: 1.1 $ author: Kyle Clark since: LBS1.7 See Also: ObjectIdAllocator |
Field Summary | |
final public static BigDecimal | MAX The maximum value that can be associated with an object
id in LBS - DECIMAL(19,0). | final public static BigDecimal | ONE The value of one. |
Constructor Summary | |
public | ObjectId(String val, int radix) Translates a string containing one or more integers
of the specified radix into an ObjectID. | public | ObjectId(String val) Translates a string containing one or more decimal digits
into an ObjectID. | public | ObjectId(long val) Translates a long into an ObjectID. | public | ObjectId(BigDecimal val) Creates and object id whose value is the same as val. |
MAX | final public static BigDecimal MAX(Code) | | The maximum value that can be associated with an object
id in LBS - DECIMAL(19,0).
|
ObjectId | public ObjectId(String val, int radix) throws ObjectIdException, NumberFormatException(Code) | | Translates a string containing one or more integers
of the specified radix into an ObjectID. The string
may not represet a negative number.
Parameters: val - The string representation of the number.The character to digit mapping is provided byCharacter.digit() Parameters: radix - Must be between Character.MIN_RADIX(2) andCharacter.MAX_RADIX(36). exception: java.lang.NumberFormatException - If the string representation contains invalid characters. exception: ObjectIdException - If val represents a negative number. |
ObjectId | public ObjectId(long val) throws ObjectIdException(Code) | | Translates a long into an ObjectID.
Parameters: val - The value to assign to the object id. exception: ObjectIdException - If val is a negative number. |
ObjectId | public ObjectId(BigDecimal val) throws ObjectIdException(Code) | | Creates and object id whose value is the same as val.
Parameters: val - The value to assign to the object id. exception: ObjectIdException - If val is a negative number or the scale of valis greater than zero. |
add | public ObjectId add(long val) throws ObjectIdException(Code) | | Returns an object id whose value is (this+val).
Parameters: val - The value to add to this object. exception: ObjectIdException - If the result of the addition would resultin an object id that exceeds themaximum object idsize. |
equals | public boolean equals(ObjectId oid)(Code) | | Test if this object id is equal to another object id.
|
hashCode | public int hashCode()(Code) | | Returns a hash code for this object id.
a hash code for this object id. |
toBigDecimal | public BigDecimal toBigDecimal()(Code) | | Returns a big decimal representation of the object id.
|
toString | public String toString()(Code) | | String representation of this object id.
|
|
|
|