|
||||||||||
| 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.SQLRelationship.ColumnMapping
public static class SQLRelationship.ColumnMapping
| Field Summary | |
|---|---|
protected SQLColumn |
fkColumn
|
protected SQLRelationship |
parent
|
protected SQLColumn |
pkColumn
|
| Fields inherited from class ca.sqlpower.architect.SQLObject |
|---|
children, magicDisableCount, populated, undoEventListeners |
| Constructor Summary | |
|---|---|
SQLRelationship.ColumnMapping()
|
|
| Method Summary | |
|---|---|
boolean |
allowsChildren()
Mappings do not contain other SQLObjects. |
java.lang.Class<? extends SQLObject> |
getChildType()
|
SQLColumn |
getFkColumn()
Gets the value of fkColumn |
java.lang.String |
getName()
This is the name of the object. |
SQLObject |
getParent()
Returns the table that holds the primary keys (the imported table). |
SQLColumn |
getPkColumn()
Gets the value of pkColumn |
java.lang.String |
getShortDisplayName()
Returns the table and column name of the pkColumn. |
boolean |
isPopulated()
Returns true. |
void |
populate()
This class is not a lazy-loading class. |
void |
setFkColumn(SQLColumn argFkColumn)
Sets the value of fkColumn |
protected void |
setParent(SQLObject newParent)
Parents call this on their children to update parent pointers during addChild and removeChild requests. |
void |
setPkColumn(SQLColumn argPkColumn)
Sets the value of pkColumn |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SQLRelationship parent
protected SQLColumn pkColumn
protected SQLColumn fkColumn
| Constructor Detail |
|---|
public SQLRelationship.ColumnMapping()
| Method Detail |
|---|
public SQLColumn getPkColumn()
public void setPkColumn(SQLColumn argPkColumn)
argPkColumn - Value to assign to this.pkColumnpublic SQLColumn getFkColumn()
public void setFkColumn(SQLColumn argFkColumn)
argFkColumn - Value to assign to this.fkColumnpublic java.lang.String toString()
toString in class java.lang.Objectpublic SQLObject getParent()
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()
getShortDisplayName in class SQLObjectpublic boolean allowsChildren()
allowsChildren in class SQLObject
public void populate()
throws ArchitectException
populate in class SQLObjectArchitectExceptionpublic boolean isPopulated()
isPopulated in class SQLObjectpublic 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 | |||||||||