|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.model.reference.ColumnMapping
public class ColumnMapping
The ColumnMapping class is for mapping different column names
between referenced tables.
| Constructor Summary | |
|---|---|
ColumnMapping()
Constructs the ColumnMapping without column names. |
|
ColumnMapping(String[] pColumnNames)
Constructs the ColumnMapping with the same column names and referenced column names. |
|
ColumnMapping(String[] pColumnNames,
String[] pReferencedColumnNames)
Constructs the ColumnMapping with the different column names and referenced column names. |
|
| Method Summary | |
|---|---|
ColumnMapping |
clone()
|
boolean |
equals(Object pObject)
|
String[] |
getColumnNames()
Gets the source column names of the ColumnMapping. |
String |
getReferencedColumnName(String pColumnName)
Gets the corresponding referenced column name to the given column name. |
String[] |
getReferencedColumnNames()
Gets the referenced column names of the ReferenceDefinition. |
int |
hashCode()
|
void |
setColumnNames(String[] pColumnNames)
Sets the source column names of the ColumnMapping. |
void |
setReferencedColumnNames(String[] pReferencedColumnNames)
Sets the referenced column names of the ReferenceDefinition. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnMapping()
ColumnMapping without column names.
public ColumnMapping(String[] pColumnNames)
ColumnMapping with the same column names and referenced column names.
pColumnNames - source column names of the ColumnMapping.
public ColumnMapping(String[] pColumnNames,
String[] pReferencedColumnNames)
ColumnMapping with the different column names and referenced column names.
If the referenced column names are null, the are automatically mapped to the same name as the column names.
pColumnNames - source column names of the ColumnMapping.pReferencedColumnNames - referenced column names of the ColumnMapping.| Method Detail |
|---|
public boolean equals(Object pObject)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String[] getColumnNames()
ColumnMapping.
This function returns never null, at least an empty String[]
is returned.
ColumnMapping.public void setColumnNames(String[] pColumnNames)
ColumnMapping.
pColumnNames - the source column names of the ColumnMapping.public String[] getReferencedColumnNames()
ReferenceDefinition.
This function returns never null, at least an array with a length greater or equal
to the length of the array of getColumnNames is returned.
ReferenceDefinition.public String getReferencedColumnName(String pColumnName)
pColumnName - the column name.
public void setReferencedColumnNames(String[] pReferencedColumnNames)
ReferenceDefinition.
pReferencedColumnNames - the referenced column names of the ReferenceDefinition.public String toString()
toString in class Objectpublic ColumnMapping clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||