Methods Summary |
---|
public abstract java.io.Writer | buildCreationWriter(oracle.toplink.essentials.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL:
Returns the writer used for creation of this object.
|
public abstract java.io.Writer | buildDeletionWriter(oracle.toplink.essentials.internal.sessions.AbstractSession session, java.io.Writer writer)INTERNAL:
Returns the writer used for creation of this object.
|
public java.lang.Object | clone()PUBLIC:
try {
return super.clone();
} catch (CloneNotSupportedException impossible) {
return null;
}
|
public void | createObject(oracle.toplink.essentials.internal.sessions.AbstractSession session, java.io.Writer schemaWriter)INTERNAL:
Either drop from the database directly or write the statement to a file.
Database objects are root level entities such as tables, views, procs, sequences...
if (schemaWriter == null) {
this.createOnDatabase(session);
} else {
this.buildCreationWriter(session, schemaWriter);
}
|
public void | createOnDatabase(oracle.toplink.essentials.internal.sessions.AbstractSession session)INTERNAL:
Execute the DDL to create the varray.
session.executeNonSelectingCall(new SQLCall(buildCreationWriter(session, new StringWriter()).toString()));
|
public void | dropFromDatabase(oracle.toplink.essentials.internal.sessions.AbstractSession session)INTERNAL:
Execute the DDL to drop the varray.
session.executeNonSelectingCall(new SQLCall(buildDeletionWriter(session, new StringWriter()).toString()));
|
public void | dropObject(oracle.toplink.essentials.internal.sessions.AbstractSession session, java.io.Writer schemaWriter)INTERNAL:
Execute the DDL to drop the varray. Either directly from the database
of write out the statement to a file.
if (schemaWriter == null) {
this.dropFromDatabase(session);
} else {
buildDeletionWriter(session, schemaWriter);
}
|
public java.lang.String | getFullName()INTERNAL:
Most major databases support a creator name scope.
This means whenever the database object is referecned, it must be qualified.
if (getQualifier().equals("")) {
return getName();
} else {
return getQualifier() + "." + getName();
}
|
public java.lang.String | getName()PUBLIC:
Return the name of the object.
i.e. the table name or the sequence name.
return name;
|
public java.lang.String | getQualifier()PUBLIC:
Most major databases support a creator name scope.
This means whenever the database object is referecned, it must be qualified.
return qualifier;
|
public void | setName(java.lang.String name)PUBLIC:
Set the name of the object.
i.e. the table name or the sequence name.
this.name = name;
|
public void | setQualifier(java.lang.String qualifier)PUBLIC:
Most major databases support a creator name scope.
This means whenever the database object is referecned, it must be qualified.
this.qualifier = qualifier;
|
public java.lang.String | toString()
return Helper.getShortClassName(getClass()) + "(" + getFullName() + ")";
|