cascade-persist |
JDO defines that when an object is persisted then all fields will also be persisted using "persistence-by-reachability".
This extension allows you to turn off the persistence of a field relation. |
true, false |
cascade-update |
JDO defines that when an object is updated then all fields containing persistable objects will also be updated using "persistence-by-reachability".
This extension allows you to turn off the update of a field relation. |
true, false |
cascade-refresh |
When calling PersistenceManager.refresh() only fetch plan fields of the passed object will be refreshed.
Setting this to true will refresh the fields of related PC objects in this field |
true, false |
allow-nulls |
When the field is a collection by default it will not be allowed to have nulls present but you can allow them by setting this DataNucleus extension tag |
true, false |
insertable |
Whether this field should be supplied when inserting into the datastore. |
true, false |
updateable |
Whether this field should be supplied when updating the datastore. |
true, false |
implementation-classes |
Used to define the possible classes implementing this interface/Object field.
This is used to limit the possible tables that this is a foreign key to (when this field is specified as an interface/Object in the class).
Value should be comma-separated list of fully-qualified class names |
|
key-implementation-classes |
Used to define the possible classes implementing this interface/Object key.
This is used to limit the possible tables that this is a foreign key to (when this key is specified as an interface/Object).
Value should be comma-separated list of fully-qualified class names |
|
value-implementation-classes |
Used to define the possible classes implementing this interface/Object value.
This is used to limit the possible tables that this is a foreign key to (when this value is specified as an interface/Object).
Value should be comma-separated list of fully-qualified class names |
|
strategy-when-notnull |
This is to be used in conjunction with the "value-strategy" attribute. Default JDO2 behaviour when you
have a "value-strategy" defined for a field is to always create a strategy value for that field regardless
of whether you have set the value of the field yourself. This extension allows you to only apply the
strategy if the field is null at persistence. This extension has no effect on primitive field
types (which can’t be null) and the value-strategy will always be applied to such fields. |
true, false |
relation-discriminator-column |
Name of a column to use for discrimination of the relation used by objects stored.
This is defined when, for example, a join table is shared by multiple relations and
the objects placed in the join table need discriminating for which relation they are for |
RELATION_DISCRIM |
relation-discriminator-pk |
Whether the column added for the discrimination of relations is to be part of the PK when using a join table. |
true, false |
relation-discriminator-value |
Value to use in the relation discriminator column for objects of this fields relation.
This is defined when, for example, a join table is shared by multiple relations and
the objects placed in the join table need discriminating for which relation they are for. |
Fully-qualified class name |
select-function |
Permits to use a function when fetching contents from the database. A ? (question mark) is mandatory to have and will be replaced by the column name when generating the SQL statement.
For example to specify a value of UPPER(?) will convert to upper case the field value on a datastore that supports that UPPER function.
See Mapping : Column Adapters. |
|
insert-function |
Permits to use a function when inserting into the database. A ? (question mark) is optional and will be replaced by the column name when generating the SQL statement.
For example to specify a value of TRIM(?) will trim the field value on a datastore that supports that TRIM function.
See Mapping : Column Adapters. |
|
update-function |
Permits to use a function when updating into the database. A ? (question mark) is optional and will be replaced by the column name when generating the SQL statement.
For example to specify a value of FUNC(?) will perform FUNC() on the field value on a datastore that supports that FUNC function.
See Mapping : Column Adapters. |
|
sequence-table-basis |
This defines the basis on which to generate unique identities when using the TableValueGenerator (used by the "increment" strategy, and sometimes by "native").
You can either define identities unique against the base table name, or against the base class name (in an inheritance tree).
Used when the strategy is set to native or increment |
class, table |
sequence-catalog-name |
The catalog used to store sequences for use by value generators. See Value Generation.
Default catalog for the datastore will be used if not specified. |
|
sequence-schema-name |
The schema used to store sequences for use by value generators. See Value Generation.
Default schema for the datastore will be used if not specified. |
|
sequence-table-name |
The table used to store sequences for use by value generators. See Value Generation. |
SEQUENCE_TABLE |
sequence-name-column-name |
The column name in the sequence-table used to store the name of the sequence for use by value generators.
See Value Generation. |
SEQUENCE_NAME |
sequence-nextval-column-name |
The column name in the sequence-table used to store the next value in the sequence for use by value generators.
See Value Generation. |
NEXT_VAL |
key-min-value |
The minimum key value for use by value generators. Keys lower than this will not be generated.
See Value Generation. |
|
key-max-value |
The maximum key value for use by value generators. Keys higher than this will not be generated.
See Value Generation. |
|
key-initial-value |
The starting value for use by value generators. Keys will start from this value when being generated.
See Value Generation. |
|
key-cache-size |
The cache size for keys for use by value generators. The cache of keys will be constrained by this value.
See Value Generation. |
|
key-database-cache-size |
The database cache size for keys for use by value generators. The cache of keys will be constrained by this value.
See Value Generation. |
|
mapping-class |
Specifies the mapping class to be used for mapping this field.
This is only used where the user wants to override the default DataNucleus mapping class and provide their own mapping class for this field. |
Fully-qualified class name |