Methods Summary |
---|
public void | addUniqueConstraints(java.lang.String[] columnNames)Add the unique constraint for the columns names. Used for DDL generation.
uniqueConstraints.add(columnNames);
|
public java.lang.Object | clone()Return a shallow copy of the receiver.
try {
return super.clone();
} catch (CloneNotSupportedException exception) {
}
return null;
|
public boolean | equals(java.lang.Object object)Two tables are equal if their names and tables are equal,
or their names are equal and one does not have a qualifier assigned.
This allows an unqualified table to equal the same fully qualified one.
if (object instanceof DatabaseTable) {
return equals((DatabaseTable)object);
}
return false;
|
public boolean | equals(oracle.toplink.essentials.internal.helper.DatabaseTable table)Two tables are equal if their names and tables are equal,
or their names are equal and one does not have a qualifier assigned.
This allows an unqualified table to equal the same fully qualified one.
if (this == table) {
return true;
}
if (DatabasePlatform.shouldIgnoreCaseOnFieldComparisons()) {
if (getName().equalsIgnoreCase(table.getName())) {
if ((getTableQualifier().length() == 0) || (table.getTableQualifier().length() == 0) || (getTableQualifier().equalsIgnoreCase(table.getTableQualifier()))) {
return true;
}
}
} else {
if (getName().equals(table.getName())) {
if ((getTableQualifier().length() == 0) || (table.getTableQualifier().length() == 0) || (getTableQualifier().equals(table.getTableQualifier()))) {
return true;
}
}
}
return false;
|
public java.lang.String | getName()Get method for table name.
return name;
|
public java.lang.String | getQualifiedName()
if (qualifiedName == null) {
if (tableQualifier.equals("")) {
qualifiedName = getName();
} else {
qualifiedName = getTableQualifier() + "." + getName();
}
}
return qualifiedName;
|
public java.lang.String | getTableQualifier()
return tableQualifier;
|
public java.util.Vector | getUniqueConstraints()Return a vector of the unique constraints for this table.
Used for DDL generation.
return uniqueConstraints;
|
public boolean | hasName()Determine whether the receiver has any identification information.
Return true if the name or qualifier of the receiver are nonempty.
if ((getName().length() == 0) && (getTableQualifier().length() == 0)) {
return false;
}
return true;
|
public int | hashCode()Return the hashcode of the name, because it is fairly unqiue.
return getName().hashCode();
|
public boolean | isDecorated()INTERNAL:
Is this decorated / has an AS OF (some past time) clause.
Example:
SELECT ... FROM EMPLOYEE AS OF TIMESTAMP (exp) t0 ...
return false;
|
protected void | resetQualifiedName()
this.qualifiedName = null;
|
public void | setName(java.lang.String name)This method will set the table name regardless if the name has
a qualifier. Used when aliasing table names.
this.name = name;
resetQualifiedName();
|
public void | setPossiblyQualifiedName(java.lang.String possiblyQualifiedName)Used to map the project xml. Anytime a string name is read from the
project xml, we must check if it is fully qualified and split the
actual name from the qualifier.
resetQualifiedName();
int index = possiblyQualifiedName.lastIndexOf('.");
if (index == -1) {
this.name = possiblyQualifiedName;
this.tableQualifier = "";
} else {
this.name = possiblyQualifiedName.substring(index + 1, possiblyQualifiedName.length());
this.tableQualifier = possiblyQualifiedName.substring(0, index);
}
|
public void | setTableQualifier(java.lang.String qualifier)
this.tableQualifier = qualifier;
resetQualifiedName();
|
public java.lang.String | toString()
return "DatabaseTable(" + getQualifiedName() + ")";
|