java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.ConstraintObjectDefinition
org.eclipse.persistence.tools.schemaframework.UniqueKeyConstraint
- All Implemented Interfaces:
Serializable,Cloneable
Purpose: Define a unique key constraint for a table.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUniqueKeyConstraint(String name, String sourceField) UniqueKeyConstraint(String name, String[] sourceFields) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSourceField(String sourceField) voidappendDBString(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.protected voidappendKeys(Writer writer, List<String> keys) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSourceFields(List<String> sourceFields) Methods inherited from class org.eclipse.persistence.tools.schemaframework.ConstraintObjectDefinition
buildCreationWriter, buildDeletionWriter, getOptions, setOptionsMethods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
Constructor Details
-
UniqueKeyConstraint
public UniqueKeyConstraint() -
UniqueKeyConstraint
-
UniqueKeyConstraint
-
-
Method Details
-
appendDBString
@Deprecated(forRemoval=true, since="4.0.9") public void appendDBString(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Append the database field definition string to the table creation statement.- Overrides:
appendDBStringin classConstraintObjectDefinition
-
appendKeys
@Deprecated(forRemoval=true, since="4.0.9") protected void appendKeys(Writer writer, List<String> keys) Deprecated, for removal: This API element is subject to removal in a future version. -
addSourceField
-
getSourceFields
-
setSourceFields
-