|
||||||||||
| 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.SQLExceptionNode
public class SQLExceptionNode
A SQLExceptionNode exists for reporting failures in the SQLObject hierarchy. For example, when the DBTree tries to expand a node and that results in failure, it adds one of these at the failure point.
| Field Summary | |
|---|---|
protected java.lang.Throwable |
exception
|
protected java.lang.String |
message
|
protected SQLObject |
parent
|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLExceptionNode(java.lang.Throwable exception,
java.lang.String message)
|
|
| Method Summary | |
|---|---|
protected void |
addChildImpl(int index,
SQLObject child)
All other addChild() methods call this one. |
boolean |
allowsChildren()
Returns true if and only if this object can have child SQLObjects. |
java.lang.Class<? extends SQLObject> |
getChildType()
|
java.lang.Throwable |
getException()
If you wanna show the exception to the user later on, get it here. |
java.lang.String |
getMessage()
|
java.lang.String |
getName()
Returns the message. |
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). |
void |
setMessage(java.lang.String v)
|
void |
setParent(SQLObject parent)
Because these nodes get added just as they are needed, it is sometimes necessary for users of the class (DBTreeModel) to set the parent directly. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Throwable exception
protected java.lang.String message
protected SQLObject parent
| Constructor Detail |
|---|
public SQLExceptionNode(java.lang.Throwable exception,
java.lang.String message)
| Method Detail |
|---|
public java.lang.Throwable getException()
public java.lang.String getName()
getName in class SQLObjectpublic SQLObject getParent()
SQLObjectnull if it
is a root object such as SQLDatabase.
getParent in class SQLObjectpublic void setParent(SQLObject parent)
setParent in class SQLObjectpublic void populate()
SQLObject
populate in class SQLObject
protected void addChildImpl(int index,
SQLObject child)
SQLObject
addChildImpl in class SQLObjectindex - The index that the new child will havechild - The new child to add (must be same type as all other children)public boolean isPopulated()
SQLObject
isPopulated 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 SQLObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMessage()
public void setMessage(java.lang.String v)
public 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 | |||||||||