java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.IndexDefinition
- All Implemented Interfaces:
Serializable,Cloneable
Purpose: Allow for indexes to be created.
- See Also:
- Author:
- James Sutherland
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the field to the index.buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) Deprecated, for removal: This API element is subject to removal in a future version.buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) Deprecated, for removal: This API element is subject to removal in a future version.booleanisUnique()voidvoidsetIsUnique(boolean isUnique) voidsetTargetTable(String targetTable) set qualified table name.Methods 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
-
Field Details
-
targetTable
-
fields
-
isUnique
protected boolean isUnique
-
-
Constructor Details
-
IndexDefinition
public IndexDefinition() -
IndexDefinition
-
-
Method Details
-
isUnique
public boolean isUnique() -
setIsUnique
public void setIsUnique(boolean isUnique) -
getTargetTable
-
setTargetTable
set qualified table name. -
addField
Add the field to the index. -
buildCreationWriter
@Deprecated(forRemoval=true, since="4.0.9") public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return the create type statement.- Specified by:
buildCreationWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
buildDeletionWriter
@Deprecated(forRemoval=true, since="4.0.9") public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return the drop type statement.- Specified by:
buildDeletionWriterin classDatabaseObjectDefinition- Throws:
ValidationException
-
getFields
-
setFields
-