|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.SQLObject
ca.sqlpower.architect.SQLSchema
public class SQLSchema
A SQLSchema is a container for SQLTables. If it is in the containment hierarchy for a given RDBMS, it will be directly above SQLTables. Its parent could be either a SQLDatabase or a SQLCatalog.
| Field Summary | |
|---|---|
protected java.lang.String |
nativeTerm
|
protected SQLObject |
parent
|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLSchema(boolean populated)
|
|
SQLSchema(SQLObject parent,
java.lang.String name,
boolean populated)
|
|
| Method Summary | |
|---|---|
boolean |
allowsChildren()
Returns true if and only if this object can have child SQLObjects. |
java.lang.Class<? extends SQLObject> |
getChildType()
|
java.lang.String |
getNativeTerm()
Gets the value of nativeTerm |
SQLObject |
getParent()
Returns the parent of this SQLObject or null if it
is a root object such as SQLDatabase. |
java.lang.String |
getShortDisplayName()
Returns a short string that should be displayed to the user for representing this SQLObject as a label. |
SQLTable |
getTableByName(java.lang.String tableName)
|
boolean |
isParentTypeDatabase()
|
void |
populate()
Populates this schema from the source database, if there is one. |
void |
setNativeTerm(java.lang.String argNativeTerm)
Sets the value of nativeTerm to a lowercase version of argNativeTerm. |
protected void |
setParent(SQLObject newParent)
Parents call this on their children to update parent pointers during addChild and removeChild requests. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SQLObject parent
protected java.lang.String nativeTerm
| Constructor Detail |
|---|
public SQLSchema(boolean populated)
public SQLSchema(SQLObject parent,
java.lang.String name,
boolean populated)
| Method Detail |
|---|
public SQLTable getTableByName(java.lang.String tableName)
throws ArchitectException
ArchitectExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isParentTypeDatabase()
public SQLObject getParent()
SQLObjectnull if it
is a root object such as SQLDatabase.
getParent in class SQLObjectprotected void setParent(SQLObject newParent)
SQLObject
setParent in class SQLObjectpublic java.lang.String getShortDisplayName()
SQLObject
getShortDisplayName in class SQLObjectpublic boolean allowsChildren()
SQLObjectreturn true" or
"return false" depending on object type.
allowsChildren in class SQLObject
public void populate()
throws ArchitectException
populate in class SQLObjectjava.lang.NullPointerException - if this schema has no parent database.
ArchitectExceptionpublic java.lang.String getNativeTerm()
public void setNativeTerm(java.lang.String argNativeTerm)
argNativeTerm - Value to assign to this.nativeTermpublic java.lang.Class<? extends SQLObject> getChildType()
getChildType in class SQLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||