|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.metadata.IdentityStrategy
public class IdentityStrategy
Representation of the values for identity "strategy".
| Field Summary | |
|---|---|
static IdentityStrategy |
CUSTOM
An extension strategy not in the standard JDO/JPA list. |
static IdentityStrategy |
IDENTITY
strategy="identity" in JDO and JPA 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" in JDO and "table" in JPA 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 |
NATIVE
strategy="native" in JDO, and "auto" in JPA The value "native" allows the JDO implementation to pick the most suitable strategy based on the underlying database. |
static IdentityStrategy |
SEQUENCE
strategy="sequence" in JDO and JPA 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. |
java.lang.String |
getCustomName()
Accessor for the custom name (if using strategy type of CUSTOM). |
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 IDENTITY
public static final IdentityStrategy INCREMENT
public static final IdentityStrategy UUIDSTRING
public static final IdentityStrategy UUIDHEX
public static final IdentityStrategy CUSTOM
| Method Detail |
|---|
public java.lang.String getCustomName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||