|
EclipseLink 2.0.0, build 'v20091127-r5931' 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
public abstract class DatabaseObjectDefinition
Purpose: Define a database object for the purpose of creation and deletion. A database object is an entity such as a table, view, proc, sequence...
Responsibilities:
Field Summary | |
---|---|
java.lang.String |
name
|
java.lang.String |
qualifier
|
Constructor Summary | |
---|---|
DatabaseObjectDefinition()
|
Method Summary | |
---|---|
abstract java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Returns the writer used for creation of this object. |
abstract java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Returns the writer used for creation of this object. |
java.lang.Object |
clone()
PUBLIC: |
void |
createObject(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer schemaWriter)
INTERNAL: Either drop from the database directly or write the statement to a file. |
void |
createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Execute the DDL to create this object. |
void |
dropFromDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Execute the DDL to drop the object. |
void |
dropObject(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer schemaWriter,
boolean createSQLFiles)
INTERNAL: Execute the DDL to drop the object. |
java.lang.String |
getFullName()
INTERNAL: Most major databases support a creator name scope. |
java.lang.String |
getName()
PUBLIC: Return the name of the object. |
java.lang.String |
getQualifier()
PUBLIC: Most major databases support a creator name scope. |
void |
postCreateObject(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer createSchemaWriter,
boolean createSQLFiles)
Execute any statements required after the creation of the object |
void |
setName(java.lang.String name)
PUBLIC: Set the name of the object. |
void |
setQualifier(java.lang.String qualifier)
PUBLIC: Most major databases support a creator name scope. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public java.lang.String qualifier
Constructor Detail |
---|
public DatabaseObjectDefinition()
Method Detail |
---|
public abstract java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
ValidationException
public abstract java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
ValidationException
public java.lang.Object clone()
clone
in class java.lang.Object
public void createObject(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer schemaWriter) throws EclipseLinkException
EclipseLinkException
public void createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException
EclipseLinkException
public void dropFromDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException
EclipseLinkException
public void dropObject(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer schemaWriter, boolean createSQLFiles) throws EclipseLinkException
EclipseLinkException
public java.lang.String getFullName()
public java.lang.String getName()
public java.lang.String getQualifier()
public void postCreateObject(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer createSchemaWriter, boolean createSQLFiles)
session
- createSchemaWriter
- public void setName(java.lang.String name)
public void setQualifier(java.lang.String qualifier)
public java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |