|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.erm.XRelationship
public class XRelationship
An XRelationship object represents a relationship, or join, in the underlying data source of a data model. A relationship is between a column of one table to a column of another table.
Note that the order of the table/column pairs is arbitrary and has no effect on the resulting join.
| Field Summary | |
|---|---|
static String |
EQUAL
Equal join. |
static String |
GREATER
Greater than join. |
static String |
GREATER_EQUAL
Greater than or equal to join. |
static int |
IDENTIFYING
Deprecated. these types of relationships are no longer supported. |
static String |
LEFT_OUTER
Left outer join. |
static String |
LESS
Less than join. |
static String |
LESS_EQUAL
Less than or equal to join. |
static int |
MANY
Cardinality many. |
static int |
NONIDENTIFYING
Deprecated. these types of relationships are no longer supported. |
static String |
NOT_EQUAL
Not equal join. |
static int |
ONE
Cardinality one. |
static String |
RIGHT_OUTER
Right outer join. |
| Constructor Summary | |
|---|---|
XRelationship()
Creates a new instance of XRelationship. |
|
XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn)
Constructs a new instance of XRelationship that defines a join between the specified tables and columns. |
|
XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn,
int type)
Deprecated. these types of relationships are no longer supported. |
|
XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn,
String joinType)
Constructs a new instance of XRelationship that defines a join between the specified tables and columns. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates and returns a copy of this relationship object. |
boolean |
equalContents(Object obj)
Indicates whether other object is "equal to" this one without cardinality. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getDependentCardinality()
Get the dependent table cardinality. |
String |
getDependentColumn()
Gets the column on which the dependent table is joined. |
String |
getDependentTable()
Gets the dependent table in this relationship. |
int |
getIndependentCardinality()
Get the independent table cardinality. |
String |
getIndependentColumn()
Gets the column on which the independent table is joined. |
String |
getIndependentTable()
Gets the independent table in this relationship. |
String |
getJoinType()
Gets the type of join that this relationship represents. |
String |
getMerging()
Gets the merging that this relationship represents. |
int |
getOrder()
Gets the order that this relationship represents. |
int |
getType()
Deprecated. these types of relationships are no longer supported. |
boolean |
isWeakJoin()
Check if this is a weak join. |
void |
parseXML(Element tag)
Read in a relationship definition from its XML representation. |
void |
setDependent(String table,
String column)
Sets the dependent table and column in this relationship. |
void |
setDependentCardinality(int dependentCardinality)
Set the dependent table cardinality. |
void |
setIndependent(String table,
String column)
Sets the independent table and column in this relationship. |
void |
setIndependentCardinality(int independentCardinality)
Set the independent table cardinality. |
void |
setJoinType(String joinType)
Sets the type of join that this relationship represents. |
void |
setMerging(String merging)
Sets the merging that this relationship represents. |
void |
setOrder(int order)
Sets the order that this relationship represents. |
void |
setType(int type)
Deprecated. these types of relationships are no longer supported. |
void |
setWeakJoin(boolean weak)
Set the weak join flag. |
String |
toString()
Gets a textual representation of this relationship. |
protected void |
writeXML(PrintWriter writer)
Writes the XML representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EQUAL
public static final String LEFT_OUTER
public static final String RIGHT_OUTER
public static final String GREATER
public static final String LESS
public static final String GREATER_EQUAL
public static final String LESS_EQUAL
public static final String NOT_EQUAL
public static final int IDENTIFYING
public static final int NONIDENTIFYING
public static final int ONE
public static final int MANY
| Constructor Detail |
|---|
public XRelationship()
public XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn)
dependentTable - the dependent table of the relationship.dependentColumn - the column in the dependent table of the
relationship.independentTable - the independent table of the relationship.independentColumn - the column in the independent table of the
relationship.
public XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn,
int type)
dependentTable - the dependent table of the relationship.dependentColumn - the column in the dependent table of the
relationship.independentTable - the independent table of the relationship.independentColumn - the column in the independent table of the
relationship.type - the type of the relationship. May be either
IDENTIFYING or NONIDENTIFYING.
public XRelationship(String dependentTable,
String dependentColumn,
String independentTable,
String independentColumn,
String joinType)
dependentTable - the dependent table of the relationship.dependentColumn - the column in the dependent table of the
relationship.independentTable - the independent table of the relationship.independentColumn - the column in the independent table of the
relationship.joinType - the type of join that the relationship represents.| Method Detail |
|---|
public void setDependent(String table,
String column)
table - the table to be joined.column - the column on which to join.public String getDependentTable()
public String getDependentColumn()
public void setIndependent(String table,
String column)
table - the table to be joined.column - the column on which to join.public String getIndependentTable()
public String getIndependentColumn()
public int getType()
IDENTIFYING or NONIDENTIFYING.public void setType(int type)
type - one of IDENTIFYING or NONIDENTIFYING.public boolean isWeakJoin()
public void setWeakJoin(boolean weak)
public String getJoinType()
public void setJoinType(String joinType)
joinType - the new join type.public int getOrder()
public void setOrder(int order)
order - the new order.public String getMerging()
public int getDependentCardinality()
public void setDependentCardinality(int dependentCardinality)
dependentCardinality - the dependentCardinality to be set.public int getIndependentCardinality()
public void setIndependentCardinality(int independentCardinality)
independentCardinality - the independentCardinality to be set.public void setMerging(String merging)
merging - the new join type.protected void writeXML(PrintWriter writer)
writer - the output stream to which to write the XML data.
public void parseXML(Element tag)
throws DOMException
tag - the XML element that represents this relationship.
DOMException - if an error occurs while parsing the XML element.public String toString()
toString in class ObjectXRelationship: table1.column ->
table2.columnpublic Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.public boolean equalContents(Object obj)
obj - the reference object with which to compare.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||