Class Qualifier
java.lang.Object
org.castor.cpa.persistence.sql.query.Qualifier
- All Implemented Interfaces:
QueryObject
- Direct Known Subclasses:
Table,TableAlias
Abstract base class for all qualifiers.
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddFullJoin(Qualifier join) Method providing possibility to add full join.final voidaddFullJoin(Qualifier join, Condition cond) Method providing possibility to add full join with a specific condition.final voidaddInnerJoin(Qualifier join) Method providing possibility to add inner join.final voidaddInnerJoin(Qualifier join, Condition cond) Method providing possibility to add inner join with a specific condition.final voidMethod providing possibility to add passed join.final voidaddLeftJoin(Qualifier join) Method providing possibility to add left join.final voidaddLeftJoin(Qualifier join, Condition cond) Method providing possibility to add left join with a specific condition.final voidaddRightJoin(Qualifier join) Method providing possibility to add right join.final voidaddRightJoin(Qualifier join, Condition cond) Method providing possibility to add right join with a specific condition.final ColumnBuilder method to create a column with given name belonging to this qualifier.getJoins()Returns list of joins currently set.final booleanhasJoin()Method to check if joins exist for this qualifier.final Stringname()Returns name of the qualifier.final StringtoString()Method constructing query string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.castor.cpa.persistence.sql.query.QueryObject
accept
-
Constructor Details
-
Qualifier
Construct a qualifier with given name.- Parameters:
name- Name of the qualifier.
-
-
Method Details
-
name
Returns name of the qualifier.- Returns:
- Name of the qualifier.
-
getJoins
Returns list of joins currently set.- Returns:
- List of joins currently set.
-
column
Builder method to create a column with given name belonging to this qualifier.- Parameters:
name- Name of the column.- Returns:
- Column belonging to this qualifier.
-
addInnerJoin
Method providing possibility to add inner join.- Parameters:
join- Qualifier to construct and add join for.
-
addInnerJoin
Method providing possibility to add inner join with a specific condition.- Parameters:
join- Qualifier to construct and add join for.cond- Condition to be used for the join.
-
addLeftJoin
Method providing possibility to add left join.- Parameters:
join- Qualifier to construct and add join for.
-
addLeftJoin
Method providing possibility to add left join with a specific condition.- Parameters:
join- Qualifier to construct and add join for.cond- Condition to be used for the join.
-
addRightJoin
Method providing possibility to add right join.- Parameters:
join- Qualifier to construct and add join for.
-
addRightJoin
Method providing possibility to add right join with a specific condition.- Parameters:
join- Qualifier to construct and add join for.cond- Condition to be used for the join.
-
addFullJoin
Method providing possibility to add full join.- Parameters:
join- Qualifier to construct and add join for.
-
addFullJoin
Method providing possibility to add full join with a specific condition.- Parameters:
join- Qualifier to construct and add join for.cond- Condition to be used for the join.
-
addJoin
Method providing possibility to add passed join.- Parameters:
join- Join to be added.
-
hasJoin
public final boolean hasJoin()Method to check if joins exist for this qualifier.- Returns:
- True: List of joins is not empty. False: List of joins is empty.
-
toString
Method constructing query string.
-