|
||||||||||
| 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(java.lang.String[] pColumnNames,
java.lang.String pReferencedStorage,
java.lang.String[] pReferencedColumnNames)
Constructs the StorageReferenceDefinition with the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object pObject)
|
java.lang.String |
getReferencedStorage()
Returns the "name" of the referenced (master) IStorage of the StorageReferenceDefinition. |
int |
hashCode()
|
void |
setReferencedStorage(java.lang.String pReferencedStorage)
Sets the "name" of referenced IStorage of the StorageReferenceDefinition. |
java.lang.String |
toString()
|
| Methods inherited from class javax.rad.model.reference.ColumnMapping |
|---|
clone, getColumnName, 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(java.lang.String[] pColumnNames,
java.lang.String pReferencedStorage,
java.lang.String[] pReferencedColumnNames)
StorageReferenceDefinition with the specified parameters.
pReferencedStorage - the "name" of referenced IStorage of the StorageReferenceDefinitionpReferencedColumnNames - the referenced column names to use in this StorageReferenceDefinitionpColumnNames - the source column names to use in this StorageReferenceDefinition| Method Detail |
|---|
public java.lang.String toString()
toString in class ColumnMappingpublic boolean equals(java.lang.Object pObject)
equals in class ColumnMappingpublic int hashCode()
hashCode in class ColumnMappingpublic void setReferencedStorage(java.lang.String pReferencedStorage)
IStorage of the StorageReferenceDefinition.
pReferencedStorage - the "name" of the referenced (master) IStoragepublic java.lang.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 | |||||||||