ObjectDB ObjectDB

javax.jdo.annotations.Value - JDO annotation

javax.jdo.annotations
Annotation Value

Target:
Fields (including property get methods)
Annotation for the value of a map relation. Corresponds to the xml element "value".
Since:
JDO 2.1
String column
Name of the column to store the value in.
Name of the column to store the value in.
Returns:
the name of the column to store the value in
Default value:
""
Since:
JDO 2.1
The column(s) for the value.
The column(s) for the value.
Returns:
the column(s) for the value
Default value:
{}
Since:
JDO 2.1
Delete action to apply to any foreign key for the value.
Delete action to apply to any foreign key for the value.
Returns:
delete action to apply to any foreign key for the value
Default value:
javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
Since:
JDO 2.1
String dependent
Whether the value is dependent on the owner (and will be deleted when the owner is deleted).
Whether the value is dependent on the owner (and will be deleted when the owner is deleted).
Returns:
whether the value is dependent on the owner
Default value:
""
Since:
JDO 2.1
String embedded
Whether this value is embedded.
Whether this value is embedded.
Returns:
whether this value is embedded
Default value:
""
Since:
JDO 2.1
The embedded mapping for the value.
The embedded mapping for the value.
Returns:
the embedded mapping for the value
Default value:
{}
Since:
JDO 2.1
Vendor extensions.
Vendor extensions.
Returns:
the vendor extensions
Default value:
{}
Since:
JDO 2.1
String foreignKey
Name for a generated foreign key constraint.
Name for a generated foreign key constraint.
Returns:
the name of the generated foreign key constraint
Default value:
""
Since:
JDO 2.1
Generate or assume a foreign key constraint exists on the column or columns associated with this join.
Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false".
Returns:
whether to generate or assume a foreign key constraint
Default value:
""
Since:
JDO 2.1
String index
The name of the index to generate.
The name of the index to generate.
Returns:
the name of the index
Default value:
""
Since:
JDO 2.1
String indexed
Whether the value column(s) should be indexed.
Whether the value column(s) should be indexed.
Returns:
whether the value column(s) should be indexed.
Default value:
""
Since:
JDO 2.1
String mappedBy
Name of a member in the key class where this value is stored.
Name of a member in the key class where this value is stored.
Returns:
the name of a member in the key class where this value is stored
Default value:
""
Since:
JDO 2.1
String serialized
Whether the value is to be stored serialized (into a single column of a join table).
Whether the value is to be stored serialized (into a single column of a join table).
Returns:
Whether the value is to be stored serialized (into a join table)
Default value:
""
Since:
JDO 2.1
String table
Name of the table for the value.
Name of the table for the value.
Returns:
the name of the table for the value
Default value:
""
Since:
JDO 2.1
Class[] types
Types of the values.
Types of the values. This can be determined if using JDK1.5 generics but is required otherwise. Multiple types can be specified if the implementation supports multiple types.
Returns:
the types of values
Default value:
{}
Since:
JDO 2.1
String unique
Whether the element column(s) contents should be considered unique
Whether the element column(s) contents should be considered unique
Returns:
whether the element column(s) contents should be considered unique
Default value:
""
Since:
JDO 2.1
String uniqueKey
The name of the unique key constraint to generate.
The name of the unique key constraint to generate.
Returns:
the name of the unique key constraint
Default value:
""
Since:
JDO 2.1
Update action to apply to any foreign key for the value.
Update action to apply to any foreign key for the value.
Returns:
update action to apply to any foreign key for the value
Default value:
javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
Since:
JDO 2.1