|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.model.reference.ColumnMapping
javax.rad.model.reference.StorageReferenceDefinition
public class StorageReferenceDefinition
The StorageReferenceDefinition
specifies the relation between a detail
IStorage
and the master IStorage
.
It also can be used as "server side" binding between a drop down list (with an
list of items to choose from) and the corresponding
"master" DataBook
to write the defined item (e.g. PrimaryKey columns
to ForeignKey columns) back to it.
Example:
StorageReferenceDefinition bdDETAILtoTEST = new StorageReferenceDefinition();
bdDETAILtoTEST.setReferencedStorage("test");
bdDETAILtoTEST.setReferencedColumns(new String [] { "ID" });
bdDETAILtoTEST.setColumns(new String [] { "TEST_ID" });
Constructor Summary | |
---|---|
StorageReferenceDefinition()
Constructs the StorageReferenceDefinition without parameters. |
|
StorageReferenceDefinition(String[] pColumnNames,
String pReferencedStorage,
String[] pReferencedColumnNames)
Constructs the StorageReferenceDefinition with the specified parameters. |
Method Summary | |
---|---|
boolean |
equals(Object pObject)
|
String |
getReferencedStorage()
Returns the "name" of the referenced (master) IStorage of the StorageReferenceDefinition . |
int |
hashCode()
|
void |
setReferencedStorage(String pReferencedStorage)
Sets the "name" of referenced IStorage of the StorageReferenceDefinition . |
String |
toString()
|
Methods inherited from class javax.rad.model.reference.ColumnMapping |
---|
clone, getColumnNames, getReferencedColumnName, getReferencedColumnNames, setColumnNames, setReferencedColumnNames |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StorageReferenceDefinition()
StorageReferenceDefinition
without parameters.
public StorageReferenceDefinition(String[] pColumnNames, String pReferencedStorage, String[] pReferencedColumnNames) throws ModelException
StorageReferenceDefinition
with the specified parameters.
pReferencedStorage
- the "name" of referenced IStorage
of the StorageReferenceDefinition
pReferencedColumnNames
- the referenced column names to use in this StorageReferenceDefinition
pColumnNames
- the source column names to use in this StorageReferenceDefinition
ModelException
- if one the parameters is null or emptyMethod Detail |
---|
public String toString()
toString
in class ColumnMapping
public boolean equals(Object pObject)
equals
in class ColumnMapping
public int hashCode()
hashCode
in class ColumnMapping
public void setReferencedStorage(String pReferencedStorage)
IStorage
of the StorageReferenceDefinition
.
pReferencedStorage
- the "name" of the referenced (master) IStorage
public String getReferencedStorage()
IStorage
of the StorageReferenceDefinition
.
IStorage
of the StorageReferenceDefinition
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |