|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.appserver.server.sql.ObjectId
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)
ObjectIdAllocator
, Serialized FormField Summary | |
static java.math.BigDecimal |
MAX
The maximum value that can be associated with an object id in LBS - DECIMAL(19,0). |
static java.math.BigDecimal |
ONE
The value of one. |
Constructor Summary | |
ObjectId(java.math.BigDecimal val)
Creates and object id whose value is the same as val. |
|
ObjectId(long val)
Translates a long into an ObjectID. |
|
ObjectId(java.lang.String val)
Translates a string containing one or more decimal digits into an ObjectID. |
|
ObjectId(java.lang.String val,
int radix)
Translates a string containing one or more integers of the specified radix into an ObjectID. |
Method Summary | |
ObjectId |
add(long val)
Returns an object id whose value is (this+val). |
ObjectId |
add(ObjectId val)
Returns an object id whose value is (this+val). |
boolean |
equals(ObjectId oid)
Test if this object id is equal to another object id. |
int |
hashCode()
Returns a hash code for this object id. |
ObjectId |
increment()
Returns an object id whose value is (this+1) |
java.math.BigDecimal |
toBigDecimal()
Returns a big decimal representation of the object id. |
java.lang.String |
toString()
String representation of this object id. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.math.BigDecimal ONE
public static final java.math.BigDecimal MAX
Constructor Detail |
public ObjectId(java.lang.String val, int radix) throws ObjectIdException, java.lang.NumberFormatException
val
- The string representation of the number.
The character to digit mapping is provided by
Character.digit()radix
- Must be between Character.MIN_RADIX(2) and
Character.MAX_RADIX(36).public ObjectId(java.lang.String val) throws ObjectIdException, java.lang.NumberFormatException
val
- The string representation of the decimal number that
The character to digit mapping is provided by
Character.digit()public ObjectId(long val) throws ObjectIdException
val
- The value to assign to the object id.public ObjectId(java.math.BigDecimal val) throws ObjectIdException
val
- The value to assign to the object id.Method Detail |
public ObjectId add(ObjectId val) throws ObjectIdException
val
- The value to add to this object.public ObjectId add(long val) throws ObjectIdException
val
- The value to add to this object.public ObjectId increment() throws ObjectIdException
public java.math.BigDecimal toBigDecimal()
public boolean equals(ObjectId oid)
public int hashCode()
public java.lang.String toString()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |