public class IndexDefinition extends DatabaseObjectDefinition
Purpose: Allow for indexes to be created.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
fields |
protected boolean |
isUnique |
protected java.lang.String |
targetTable |
name, qualifier
Constructor and Description |
---|
IndexDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addField(java.lang.String fieldName)
PUBLIC:
Add the field to the index.
|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the create type statement.
|
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the drop type statement.
|
java.util.List<java.lang.String> |
getFields() |
java.lang.String |
getTargetTable() |
boolean |
isUnique() |
void |
setFields(java.util.List<java.lang.String> fields) |
void |
setIsUnique(boolean isUnique) |
void |
setTargetTable(java.lang.String targetTable)
PUBLIC:
set qualified table name.
|
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, createOnDatabase, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
protected java.lang.String targetTable
protected java.util.List<java.lang.String> fields
protected boolean isUnique
public boolean isUnique()
public void setIsUnique(boolean isUnique)
public java.lang.String getTargetTable()
public void setTargetTable(java.lang.String targetTable)
public void addField(java.lang.String fieldName)
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class DatabaseObjectDefinition
ValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public java.util.List<java.lang.String> getFields()
public void setFields(java.util.List<java.lang.String> fields)