|
||||||||||
| 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.SQLIndex.Column
public class SQLIndex.Column
A simple placeholder for a column. We're not using real SQLColumn instances here so that the tree of SQLObjects can remain tree-like. If we put the real SQLColumns in here, the columns would appear in two places in the tree (here and under the table's columns folder)!
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLIndex.Column()
|
|
SQLIndex.Column(SQLColumn col,
SQLIndex.AscendDescend ad)
Creates a Column object that corresponds to a particular SQLColumn. |
|
SQLIndex.Column(java.lang.String name,
SQLIndex.AscendDescend ad)
Creates a Column object that does not correspond to a particular column (such as an expression index). |
|
| Method Summary | |
|---|---|
boolean |
allowsChildren()
Returns true if and only if this object can have child SQLObjects. |
boolean |
equals(java.lang.Object obj)
|
SQLIndex.AscendDescend |
getAscendingOrDescending()
|
java.lang.Class<? extends SQLObject> |
getChildType()
|
SQLColumn |
getColumn()
|
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. |
int |
hashCode()
|
boolean |
isPopulated()
Tells if this object has already been filled with children, or if that operation is still pending. |
protected void |
populate()
Causes this SQLObject to load its children (if any exist). |
void |
setAscending(boolean ascending)
|
void |
setAscendingOrDescending(java.lang.Object ad)
This setter should be passed an enumerated item of type AscendDescend. |
void |
setColumn(SQLColumn column)
|
void |
setDescending(boolean descending)
|
protected void |
setParent(SQLObject parent)
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLIndex.Column(SQLColumn col,
SQLIndex.AscendDescend ad)
public SQLIndex.Column(java.lang.String name,
SQLIndex.AscendDescend ad)
public SQLIndex.Column()
| Method Detail |
|---|
public boolean allowsChildren()
SQLObjectreturn true" or
"return false" depending on object type.
allowsChildren in class SQLObjectpublic java.lang.Class<? extends SQLObject> getChildType()
getChildType in class SQLObjectpublic SQLObject getParent()
SQLObjectnull if it
is a root object such as SQLDatabase.
getParent in class SQLObjectpublic java.lang.String getShortDisplayName()
SQLObject
getShortDisplayName in class SQLObject
protected void populate()
throws ArchitectException
SQLObject
populate in class SQLObjectArchitectExceptionpublic boolean isPopulated()
SQLObject
isPopulated in class SQLObjectprotected void setParent(SQLObject parent)
SQLObject
setParent in class SQLObjectpublic SQLColumn getColumn()
public void setColumn(SQLColumn column)
public SQLIndex.AscendDescend getAscendingOrDescending()
public void setAscendingOrDescending(java.lang.Object ad)
public void setAscending(boolean ascending)
public void setDescending(boolean descending)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||