|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.IndexDefinition
public class IndexDefinition
Purpose: Allow for indexes to be created.
Field Summary | |
---|---|
protected java.util.List<java.lang.String> |
fields
|
protected boolean |
isUnique
|
protected java.lang.String |
targetTable
|
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
name, qualifier |
Constructor Summary | |
---|---|
IndexDefinition()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createObject, createOnDatabase, dropFromDatabase, dropObject, getFullName, getName, getQualifier, postCreateObject, preDropObject, setName, setQualifier, shouldCreateVPDCalls, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String targetTable
protected java.util.List<java.lang.String> fields
protected boolean isUnique
Constructor Detail |
---|
public IndexDefinition()
Method Detail |
---|
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)
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |