|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.metadata.IdentityStrategy
Representation of the values for identity "strategy".
Field Summary | |
static IdentityStrategy |
AUID
strategy="auid" The value "auid" specifies a strategy that creates a pure UUID identity using the OpenGroup specification for UUID. |
static IdentityStrategy |
AUTOASSIGN
strategy="autoassign" The value "autoassign" specifies that the column identified as the key column is managed by the database to automatically increment key values. |
static IdentityStrategy |
CUSTOM
strategy="custom" The value "custom" specifies a strategy that uses a user own generator class. |
static IdentityStrategy |
IDENTITY
strategy="identity" The value "identity" specifies that the column identified as the key column is managed by the database as an autoincrementing identity type. |
static IdentityStrategy |
INCREMENT
strategy="increment" The value "increment" specifies a strategy that simply finds the largest key already in the database and increments the key value for new instances. |
static IdentityStrategy |
MAX
strategy="max" The value "max" specifies a strategy that simply finds the maximum for a column and increments the value by 1. |
static IdentityStrategy |
NATIVE
strategy="native" The value "native" allows the JDO implementation to pick the most suitable strategy based on the underlying database. |
static IdentityStrategy |
SEQUENCE
strategy="sequence" The value "sequence" specifies that a named database sequence is used to generate key values for the table. |
static IdentityStrategy |
UUIDHEX
strategy="uuid-hex" The value "uuid-hex" specifies a strategy that generates a 128-bit UUID unique within a network (the IP address of the machine running the application is part of the id) and represents the result as a 32-character String. |
static IdentityStrategy |
UUIDSTRING
strategy="uuid-string" The value "uuid-string" specifies a strategy that generates a 128-bit UUID unique within a network (the IP address of the machine running the application is part of the id) and represents the result as a 16-character String. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
static IdentityStrategy |
getIdentityStrategy(java.lang.String value)
Gets an IdentityStrategy for the given value argument. |
int |
getType()
Accessor for the type. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final IdentityStrategy NATIVE
public static final IdentityStrategy SEQUENCE
public static final IdentityStrategy AUTOASSIGN
public static final IdentityStrategy IDENTITY
public static final IdentityStrategy INCREMENT
public static final IdentityStrategy UUIDSTRING
public static final IdentityStrategy UUIDHEX
public static final IdentityStrategy MAX
public static final IdentityStrategy AUID
public static final IdentityStrategy CUSTOM
Method Detail |
public boolean equals(java.lang.Object o)
o
- the reference object with which to compare.
public java.lang.String toString()
public int getType()
public static IdentityStrategy getIdentityStrategy(java.lang.String value)
value
- the String representation of IdentityStrategy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |