public class ValueGenerationStrategy extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ValueGenerationStrategy |
AUID
The value "auid" specifies a strategy that is a Java implementation of DCE UUIDs, and represents the results as a 36-character String.
|
static ValueGenerationStrategy |
CUSTOM
Extension strategy, that will have the "customName" set to the chosen strategy.
|
static ValueGenerationStrategy |
IDENTITY
The value "identity" specifies that the column identified as the key column is managed by the database as an auto-incrementing identity type.
|
static ValueGenerationStrategy |
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 ValueGenerationStrategy |
NATIVE
The value "native" allows the JDO implementation to pick the most suitable strategy based on the underlying database.
|
static ValueGenerationStrategy |
SEQUENCE
The value "sequence" specifies that a named database sequence is used to generate key values for the table.
|
static ValueGenerationStrategy |
TIMESTAMP
The value "timestamp" specifies a strategy that uses the Java "Timestamp" class, and represents the results as a Timestamp object.
|
static ValueGenerationStrategy |
TIMESTAMP_VALUE
The value "timestamp-value" specifies a strategy that uses the Java "Timestamp" class, and represents the results as a Long.
|
static ValueGenerationStrategy |
UUID
The value "uuid" specifies a strategy that uses the Java "UUID" class, and represents the results as a 36-character String.
|
static ValueGenerationStrategy |
UUID_OBJECT
The value "uuid-object" specifies a strategy that uses the Java "UUID" class, and represents the results as a UUID object.
|
static ValueGenerationStrategy |
UUIDHEX
The value "uuid-hex" specifies a strategy that generates a 128-bit UUID unique within a network, and represents the result as a 32-character String.
|
static ValueGenerationStrategy |
UUIDSTRING
The value "uuid-string" specifies a strategy that generates a 128-bit UUID unique within a network, and represents the result as a 16-character String.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCustomName()
Accessor for the custom name (if using strategy type of CUSTOM).
|
static ValueGenerationStrategy |
getIdentityStrategy(String value)
Gets an IdentityStrategy for the given value argument.
|
int |
getType()
Accessor for the type.
|
int |
hashCode() |
String |
toString()
Returns a string representation of the object.
|
public static final ValueGenerationStrategy NATIVE
public static final ValueGenerationStrategy SEQUENCE
public static final ValueGenerationStrategy IDENTITY
public static final ValueGenerationStrategy INCREMENT
public static final ValueGenerationStrategy UUIDSTRING
public static final ValueGenerationStrategy UUIDHEX
public static final ValueGenerationStrategy AUID
public static final ValueGenerationStrategy UUID
public static final ValueGenerationStrategy UUID_OBJECT
public static final ValueGenerationStrategy TIMESTAMP
public static final ValueGenerationStrategy TIMESTAMP_VALUE
public static final ValueGenerationStrategy CUSTOM
public String getCustomName()
public String toString()
public int getType()
public static ValueGenerationStrategy getIdentityStrategy(String value)
value
- the String representation of IdentityStrategyCopyright © 2019. All rights reserved.