|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.database.Join
public class Join
This class is used for storing join conditions.
Constructor Summary | |
---|---|
Join(Column colLeft,
Column colRight)
sets the local and foreign tables/columns, with size 0 and type Types.OTHER |
|
Join(Column colLeft,
int size,
Column colRight)
sets the local and foreign tables/columns, with the given local size and type Types.OTHER |
|
Join(Column colLeft,
int size,
Column colRight,
int type)
sets the local and foreign tables/columns, with the given local size and the specified type |
|
Join(java.lang.String tableLeft,
java.lang.String columnLeft,
int size,
java.lang.String tableRight,
java.lang.String columnRight)
sets table and column for both, the local and the foreign table, no size and Types.OTHER as type |
|
Join(java.lang.String tableLeft,
java.lang.String columnLeft,
int size,
java.lang.String tableRight,
java.lang.String columnRight,
int type)
sets table and column for both, the local and the foreign table, no size and the given type |
|
Join(java.lang.String tableLeft,
java.lang.String columnLeft,
java.lang.String tableRight,
java.lang.String columnRight)
sets table and column for both, the local and the foreign table, with no size and type Types.OTHER |
Method Summary | |
---|---|
void |
assign(java.lang.Object o)
retrieves the inner state of the given object and updates its own state with those settings |
int |
compareTo(java.lang.Object o)
compares the given object to itself, depending on the sorting |
boolean |
equals(java.lang.Object obj)
checks whether the objects are the same |
java.lang.String |
getLeft()
returns the local table and column, separated by ".". |
java.lang.String |
getLeftColumn()
returns the local column name |
Column |
getLeftObject()
returns the local column object |
java.lang.String |
getLeftTable()
returns the local table |
java.lang.String |
getRight()
returns the foreign table and column, separated by ".". |
java.lang.String |
getRightColumn()
returns the foreign column name |
Column |
getRightObject()
returns the foreign column object |
java.lang.String |
getRightTable()
returns the foreign table |
int |
getSize()
returns the number of rows of the local table |
int |
getType()
the type of the columns |
static void |
main(java.lang.String[] args)
for testing only |
static Join |
parseString(java.lang.String s)
generates a join from the given string |
void |
setSize(int size)
sets the size (number of rows) of the local table |
java.lang.String |
toString()
returns the local table |
java.lang.String |
toStringJoin()
returns the complete join if foreign table/column is given, otherwise just the local table |
java.lang.String |
toStringNode()
returns a string used in JoinTreeNode |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Join(java.lang.String tableLeft, java.lang.String columnLeft, java.lang.String tableRight, java.lang.String columnRight)
tableLeft
- the local tablecolumnLeft
- the local columntableRight
- the foreign tablecolumnRight
- the foreign columnTypes.OTHER
public Join(java.lang.String tableLeft, java.lang.String columnLeft, int size, java.lang.String tableRight, java.lang.String columnRight)
tableLeft
- the local tablecolumnLeft
- the local columnsize
- the local number of rowstableRight
- the foreign tablecolumnRight
- the foreign columnTypes.OTHER
public Join(java.lang.String tableLeft, java.lang.String columnLeft, int size, java.lang.String tableRight, java.lang.String columnRight, int type)
tableLeft
- the local tablecolumnLeft
- the local columnsize
- the local number of rowstableRight
- the foreign tablecolumnRight
- the foreign columntype
- the SQL type of the columnTypes
public Join(Column colLeft, Column colRight)
colLeft
- the local columncolRight
- the foreign columnTypes.OTHER
public Join(Column colLeft, int size, Column colRight)
colLeft
- the local columnsize
- the size of the joincolRight
- the foreign columnTypes.OTHER
public Join(Column colLeft, int size, Column colRight, int type)
colLeft
- the local columnsize
- the size of the joincolRight
- the foreign columntype
- the SQL type of theTypes
Method Detail |
---|
public java.lang.String getLeftTable()
public java.lang.String getLeftColumn()
public Column getLeftObject()
public void setSize(int size)
public int getSize()
public int getType()
Types
public java.lang.String getRightTable()
public java.lang.String getRightColumn()
public Column getRightObject()
public java.lang.String getLeft()
public java.lang.String getRight()
public void assign(java.lang.Object o)
assign
in interface Assignable
o
- the object to retrieve the inner state frompublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toStringJoin()
public java.lang.String toStringNode()
JoinTreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public static Join parseString(java.lang.String s)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |