public abstract class DatabaseObjectDefinition extends Object implements Cloneable, Serializable
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:
Constructor and Description |
---|
DatabaseObjectDefinition() |
Modifier and Type | Method and Description |
---|---|
abstract Writer |
buildCreationWriter(AbstractSession session,
Writer writer)
INTERNAL:
Returns the writer used for creation of this object.
|
abstract Writer |
buildDeletionWriter(AbstractSession session,
Writer writer)
INTERNAL:
Returns the writer used for creation of this object.
|
Object |
clone()
PUBLIC:
|
void |
createObject(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Either drop from the database directly or write the statement to a file.
|
void |
createOnDatabase(AbstractSession session)
INTERNAL:
Execute the DDL to create the varray.
|
void |
dropFromDatabase(AbstractSession session)
INTERNAL:
Execute the DDL to drop the varray.
|
void |
dropObject(AbstractSession session,
Writer schemaWriter)
INTERNAL:
Execute the DDL to drop the varray.
|
String |
getFullName()
INTERNAL:
Most major databases support a creator name scope.
|
String |
getName()
PUBLIC:
Return the name of the object.
|
String |
getQualifier()
PUBLIC:
Most major databases support a creator name scope.
|
void |
setName(String name)
PUBLIC:
Set the name of the object.
|
void |
setQualifier(String qualifier)
PUBLIC:
Most major databases support a creator name scope.
|
String |
toString() |
public abstract Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException
ValidationException
public abstract Writer buildDeletionWriter(AbstractSession session, Writer writer) throws ValidationException
ValidationException
public void createObject(AbstractSession session, Writer schemaWriter) throws TopLinkException
TopLinkException
public void createOnDatabase(AbstractSession session) throws TopLinkException
TopLinkException
public void dropFromDatabase(AbstractSession session) throws TopLinkException
TopLinkException
public void dropObject(AbstractSession session, Writer schemaWriter) throws TopLinkException
TopLinkException
public String getFullName()
public String getName()
public String getQualifier()
public void setName(String name)
public void setQualifier(String qualifier)
Copyright © 2021. All rights reserved.