|
||||||||||
| 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.SQLCatalog
public class SQLCatalog
A SQLCatalog is a container for other SQLObjects. If it is in the containment hierarchy for a given RDBMS, it will be directly under SQLDatabase.
| Field Summary | |
|---|---|
protected java.lang.String |
nativeTerm
The term used for catalogs in the native database system. |
protected SQLObject |
parent
|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLCatalog()
|
|
SQLCatalog(SQLDatabase parent,
java.lang.String name)
|
|
SQLCatalog(SQLDatabase parent,
java.lang.String name,
boolean startPopulated)
|
|
| 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. |
SQLDatabase |
getParentDatabase()
|
SQLSchema |
getSchemaByName(java.lang.String schemaName)
|
java.lang.String |
getShortDisplayName()
Returns a short string that should be displayed to the user for representing this SQLObject as a label. |
protected SQLTable |
getTableByName(java.lang.String tableName)
|
boolean |
isSchemaContainer()
Determines whether this SQL object is a container for schemas |
void |
populate()
Causes this SQLObject to load its children (if any exist). |
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 SQLCatalog()
public SQLCatalog(SQLDatabase parent,
java.lang.String name)
public SQLCatalog(SQLDatabase parent,
java.lang.String name,
boolean startPopulated)
| Method Detail |
|---|
protected SQLTable getTableByName(java.lang.String tableName)
throws ArchitectException
ArchitectException
public SQLSchema getSchemaByName(java.lang.String schemaName)
throws ArchitectException
ArchitectExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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
SQLObject
populate in class SQLObjectArchitectExceptionpublic SQLDatabase getParentDatabase()
public 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
public boolean isSchemaContainer()
throws ArchitectException
ArchitectException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||