|
||||||||||
| 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.SQLObjectRoot
public class SQLObjectRoot
This is normally an invisible root node that contains SQLDatabase objects.
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLObjectRoot()
|
|
| 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 |
getName()
This is the name of the object. |
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. |
boolean |
isPopulated()
Tells if this object has already been filled with children, or if that operation is still pending. |
void |
populate()
Causes this SQLObject to load its children (if any exist). |
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 |
| Constructor Detail |
|---|
public SQLObjectRoot()
| Method Detail |
|---|
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 getName()
SQLObject
getName 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 boolean isPopulated()
SQLObject
isPopulated in class SQLObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||