Uses of Class
org.datanucleus.metadata.ValueGenerationStrategy
Packages that use ValueGenerationStrategy
Package
Description
Provides classes representing the MetaData for files, packages, classes, fields, containers, etc.
-
Uses of ValueGenerationStrategy in org.datanucleus.metadata
Fields in org.datanucleus.metadata declared as ValueGenerationStrategyModifier and TypeFieldDescriptionstatic final ValueGenerationStrategy
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 final ValueGenerationStrategy
ValueGenerationStrategy.CUSTOM
Extension strategy, that will have the "customName" set to the chosen strategy.static final ValueGenerationStrategy
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 final ValueGenerationStrategy
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 final ValueGenerationStrategy
ValueGenerationStrategy.NATIVE
The value "native" allows the JDO implementation to pick the most suitable strategy based on the underlying database.static final ValueGenerationStrategy
ValueGenerationStrategy.SEQUENCE
The value "sequence" specifies that a named database sequence is used to generate key values for the table.protected ValueGenerationStrategy
DatastoreIdentityMetaData.strategy
strategy tag value.static final ValueGenerationStrategy
ValueGenerationStrategy.TIMESTAMP
The value "timestamp" specifies a strategy that uses the Java "Timestamp" class, and represents the results as a Timestamp object.static final ValueGenerationStrategy
ValueGenerationStrategy.TIMESTAMP_VALUE
The value "timestamp-value" specifies a strategy that uses the Java "Timestamp" class, and represents the results as a Long.static final ValueGenerationStrategy
ValueGenerationStrategy.UUID
The value "uuid" specifies a strategy that uses the Java "UUID" class, and represents the results as a 36-character String.static final ValueGenerationStrategy
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 final ValueGenerationStrategy
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 final ValueGenerationStrategy
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.protected ValueGenerationStrategy
AbstractMemberMetaData.valueStrategy
The value-strategy attribute specifies the strategy used to generate values for the field.Methods in org.datanucleus.metadata that return ValueGenerationStrategyModifier and TypeMethodDescriptionstatic ValueGenerationStrategy
ValueGenerationStrategy.getIdentityStrategy
(String value) Gets an IdentityStrategy for the given value argument.AbstractMemberMetaData.getValueStrategy()
DatastoreIdentityMetaData.getValueStrategy()
Methods in org.datanucleus.metadata with parameters of type ValueGenerationStrategyModifier and TypeMethodDescriptionvoid
AbstractMemberMetaData.setValueStrategy
(ValueGenerationStrategy valueStrategy) DatastoreIdentityMetaData.setValueStrategy
(ValueGenerationStrategy strategy)