public class DatabaseTable extends Object implements Cloneable, Serializable
Purpose: Define a fully qualified table name.
Responsibilities:
DatabaseField
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
qualifiedName |
protected String |
tableQualifier |
protected Vector<String[]> |
uniqueConstraints |
Constructor and Description |
---|
DatabaseTable()
Initialize the newly allocated instance of this class.
|
DatabaseTable(String possiblyQualifiedName) |
DatabaseTable(String tableName,
String qualifier) |
Modifier and Type | Method and Description |
---|---|
void |
addUniqueConstraints(String[] columnNames)
Add the unique constraint for the columns names.
|
Object |
clone()
Return a shallow copy of the receiver.
|
boolean |
equals(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.
|
boolean |
equals(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.
|
String |
getName()
Get method for table name.
|
String |
getQualifiedName() |
String |
getTableQualifier() |
Vector<String[]> |
getUniqueConstraints()
Return a vector of the unique constraints for this table.
|
int |
hashCode()
Return the hashcode of the name, because it is fairly unqiue.
|
boolean |
hasName()
Determine whether the receiver has any identification information.
|
boolean |
isDecorated()
INTERNAL:
Is this decorated / has an AS OF (some past time) clause.
|
protected void |
resetQualifiedName() |
void |
setName(String name)
This method will set the table name regardless if the name has
a qualifier.
|
void |
setPossiblyQualifiedName(String possiblyQualifiedName)
Used to map the project xml.
|
void |
setTableQualifier(String qualifier) |
String |
toString() |
protected String name
protected String tableQualifier
protected String qualifiedName
public DatabaseTable()
public DatabaseTable(String possiblyQualifiedName)
public void addUniqueConstraints(String[] columnNames)
public Object clone()
public boolean equals(Object object)
public boolean equals(DatabaseTable table)
public String getName()
public String getQualifiedName()
public String getTableQualifier()
public Vector<String[]> getUniqueConstraints()
public int hashCode()
public boolean hasName()
public boolean isDecorated()
protected void resetQualifiedName()
public void setName(String name)
name
- public void setPossiblyQualifiedName(String possiblyQualifiedName)
possiblyQualifiedName
- public void setTableQualifier(String qualifier)
Copyright © 2024. All rights reserved.