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 void
addFullJoin
(Qualifier join) Method providing possibility to add full join.final void
addFullJoin
(Qualifier join, Condition cond) Method providing possibility to add full join with a specific condition.final void
addInnerJoin
(Qualifier join) Method providing possibility to add inner join.final void
addInnerJoin
(Qualifier join, Condition cond) Method providing possibility to add inner join with a specific condition.final void
Method providing possibility to add passed join.final void
addLeftJoin
(Qualifier join) Method providing possibility to add left join.final void
addLeftJoin
(Qualifier join, Condition cond) Method providing possibility to add left join with a specific condition.final void
addRightJoin
(Qualifier join) Method providing possibility to add right join.final void
addRightJoin
(Qualifier join, Condition cond) Method providing possibility to add right join with a specific condition.final Column
Builder method to create a column with given name belonging to this qualifier.getJoins()
Returns list of joins currently set.final boolean
hasJoin()
Method to check if joins exist for this qualifier.final String
name()
Returns name of the qualifier.final String
toString()
Method constructing query string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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.
-