<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Sat Dec 04 05:26:45 UTC 2010 --> <TITLE> CombinedConstraint </TITLE> <META NAME="date" CONTENT="2010-12-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="CombinedConstraint"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls"><B>PREV CLASS</B></A> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html" title="interface in org.apache.ws.jaxme.sqls"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/ws/jaxme/sqls/CombinedConstraint.html" target="_top"><B>FRAMES</B></A> <A HREF="CombinedConstraint.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> org.apache.ws.jaxme.sqls</FONT> <BR> Interface CombinedConstraint</H2> <DL> <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls">Constraint</A></DD> </DL> <DL> <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/ws/jaxme/sqls/impl/CombinedConstraintImpl.html" title="class in org.apache.ws.jaxme.sqls.impl">CombinedConstraintImpl</A></DD> </DL> <HR> <DL> <DT><PRE>public interface <B>CombinedConstraint</B><DT>extends <A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls">Constraint</A></DL> </PRE> <P> Interface of a <code>WHERE</code> or <code>ON</code> clause. <P> <P> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static interface</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint.Type</A></B></CODE> <BR> Specifies, how the various boolean constraints are combined.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#addColumnSetQuery(org.apache.ws.jaxme.sqls.ColumnSet, org.apache.ws.jaxme.sqls.TableReference)">addColumnSetQuery</A></B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pSet, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pTableReference)</CODE> <BR> Adds a check for the columns of the given column set.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#addConstraint(java.util.Map, org.apache.ws.jaxme.sqls.Constraint)">addConstraint</A></B>(java.util.Map pMap, <A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls">Constraint</A> pConstraint)</CODE> <BR> Clones the given <A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls"><CODE>Constraint</CODE></A>, mapping the column references from the given constraint to the values in the given map.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#addJoin(org.apache.ws.jaxme.sqls.ForeignKey, org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.TableReference)">addJoin</A></B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/ForeignKey.html" title="interface in org.apache.ws.jaxme.sqls">ForeignKey</A> pKey, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencingTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencedTable)</CODE> <BR> Creates a JOIN condition matching the given foreign key.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#addJoin(org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.ColumnSet, org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.ColumnSet)">addJoin</A></B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencingTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pReferencingColumnSet, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencedTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pReferencedColumnSet)</CODE> <BR> Creates a JOIN condition matching the given column reference.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createAndConstraint()">createAndConstraint</A></B>()</CODE> <BR> Creates an AndConstraint and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createBETWEEN()">createBETWEEN</A></B>()</CODE> <BR> Creates a "BETWEEN" condition with the given select statement and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createEQ()">createEQ</A></B>()</CODE> <BR> Creates an "equals" condition (=) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createEXISTS(org.apache.ws.jaxme.sqls.SelectStatement)">createEXISTS</A></B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/SelectStatement.html" title="interface in org.apache.ws.jaxme.sqls">SelectStatement</A> pStatement)</CODE> <BR> Creates an "EXISTS" condition with the given select statement and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createGE()">createGE</A></B>()</CODE> <BR> Creates a "greater or equal" condition (>=) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createGT()">createGT</A></B>()</CODE> <BR> Creates a "greater than" condition (>) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createIN()">createIN</A></B>()</CODE> <BR> Creates an "IN" condition and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createISNULL()">createISNULL</A></B>()</CODE> <BR> Creates an "IS NULL" condition and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createLE()">createLE</A></B>()</CODE> <BR> Creates a "lower or equal" condition (<=) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createLIKE()">createLIKE</A></B>()</CODE> <BR> Creates a "LIKE" condition and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createLT()">createLT</A></B>()</CODE> <BR> Creates a "lower than" condition (<) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createNE()">createNE</A></B>()</CODE> <BR> Creates a "not equals" condition (<>) and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#createOrConstraint()">createOrConstraint</A></B>()</CODE> <BR> Creates an OrConstraint and inserts it at the current position.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#getNumParts()">getNumParts</A></B>()</CODE> <BR> Returns the number of parts, that have been added with the various <code>createSomething()</code> methods.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Iterator</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#getParts()">getParts</A></B>()</CODE> <BR> Returns an Iterator to the parts, that have been added with the various <code>createSomething()</code> methods.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint.Type</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#getType()">getType</A></B>()</CODE> <BR> Returns the type, either of <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html#AND"><CODE>CombinedConstraint.Type.AND</CODE></A> or <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html#OR"><CODE>CombinedConstraint.Type.OR</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#isNOT()">isNOT</A></B>()</CODE> <BR> Returns whether the combined constraint is inverted by adding a prepending <code>NOT</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html#setNOT(boolean)">setNOT</A></B>(boolean pNOT)</CODE> <BR> Sets whether the combined constraint is inverted by adding a prepending <code>NOT</code>.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.apache.ws.jaxme.sqls.Constraint"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface org.apache.ws.jaxme.sqls.<A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls">Constraint</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html#getConstrainedStatement()">getConstrainedStatement</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getType()"><!-- --></A><H3> getType</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint.Type</A> <B>getType</B>()</PRE> <DL> <DD>Returns the type, either of <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html#AND"><CODE>CombinedConstraint.Type.AND</CODE></A> or <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html#OR"><CODE>CombinedConstraint.Type.OR</CODE></A>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createAndConstraint()"><!-- --></A><H3> createAndConstraint</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint</A> <B>createAndConstraint</B>()</PRE> <DL> <DD>Creates an AndConstraint and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createOrConstraint()"><!-- --></A><H3> createOrConstraint</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.html" title="interface in org.apache.ws.jaxme.sqls">CombinedConstraint</A> <B>createOrConstraint</B>()</PRE> <DL> <DD>Creates an OrConstraint and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createEQ()"><!-- --></A><H3> createEQ</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createEQ</B>()</PRE> <DL> <DD>Creates an "equals" condition (=) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createNE()"><!-- --></A><H3> createNE</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createNE</B>()</PRE> <DL> <DD>Creates a "not equals" condition (<>) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createLT()"><!-- --></A><H3> createLT</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createLT</B>()</PRE> <DL> <DD>Creates a "lower than" condition (<) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createGT()"><!-- --></A><H3> createGT</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createGT</B>()</PRE> <DL> <DD>Creates a "greater than" condition (>) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createLE()"><!-- --></A><H3> createLE</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createLE</B>()</PRE> <DL> <DD>Creates a "lower or equal" condition (<=) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createGE()"><!-- --></A><H3> createGE</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createGE</B>()</PRE> <DL> <DD>Creates a "greater or equal" condition (>=) and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createLIKE()"><!-- --></A><H3> createLIKE</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createLIKE</B>()</PRE> <DL> <DD>Creates a "LIKE" condition and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createISNULL()"><!-- --></A><H3> createISNULL</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createISNULL</B>()</PRE> <DL> <DD>Creates an "IS NULL" condition and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createIN()"><!-- --></A><H3> createIN</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createIN</B>()</PRE> <DL> <DD>Creates an "IN" condition and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createEXISTS(org.apache.ws.jaxme.sqls.SelectStatement)"><!-- --></A><H3> createEXISTS</H3> <PRE> void <B>createEXISTS</B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/SelectStatement.html" title="interface in org.apache.ws.jaxme.sqls">SelectStatement</A> pStatement)</PRE> <DL> <DD>Creates an "EXISTS" condition with the given select statement and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="createBETWEEN()"><!-- --></A><H3> createBETWEEN</H3> <PRE> <A HREF="../../../../../org/apache/ws/jaxme/sqls/BooleanConstraint.html" title="interface in org.apache.ws.jaxme.sqls">BooleanConstraint</A> <B>createBETWEEN</B>()</PRE> <DL> <DD>Creates a "BETWEEN" condition with the given select statement and inserts it at the current position. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="addJoin(org.apache.ws.jaxme.sqls.ForeignKey, org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.TableReference)"><!-- --></A><H3> addJoin</H3> <PRE> void <B>addJoin</B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/ForeignKey.html" title="interface in org.apache.ws.jaxme.sqls">ForeignKey</A> pKey, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencingTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencedTable)</PRE> <DL> <DD>Creates a JOIN condition matching the given foreign key. In other words, if the foreign key consists of the columns <code>A</code> and <code>B</code> referencing the columns <code>X</code> and <code>Y</code>, then the following will be added: <code>A=X AND B=Y</code>. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pKey</CODE> - The foreign key being matched.<DD><CODE>pReferencingTable</CODE> - A reference to the table returned by the foreign keys <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html#getTable()"><CODE>ColumnSet.getTable()</CODE></A> method.<DD><CODE>pReferencedTable</CODE> - A reference to the table returned by the foreign keys <A HREF="../../../../../org/apache/ws/jaxme/sqls/ForeignKey.html#getReferencedTable()"><CODE>ForeignKey.getReferencedTable()</CODE></A> method.</DL> </DD> </DL> <HR> <A NAME="addJoin(org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.ColumnSet, org.apache.ws.jaxme.sqls.TableReference, org.apache.ws.jaxme.sqls.ColumnSet)"><!-- --></A><H3> addJoin</H3> <PRE> void <B>addJoin</B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencingTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pReferencingColumnSet, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pReferencedTable, <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pReferencedColumnSet)</PRE> <DL> <DD>Creates a JOIN condition matching the given column reference. In other words, if the referencing <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls"><CODE>ColumnSet</CODE></A> contains the columns A and B, and the referenced column set contains <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls"><CODE>ColumnSet</CODE></A>, X and Y, then the following will be added: <code>A=X AND B=Y</code>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="addConstraint(java.util.Map, org.apache.ws.jaxme.sqls.Constraint)"><!-- --></A><H3> addConstraint</H3> <PRE> void <B>addConstraint</B>(java.util.Map pMap, <A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls">Constraint</A> pConstraint)</PRE> <DL> <DD>Clones the given <A HREF="../../../../../org/apache/ws/jaxme/sqls/Constraint.html" title="interface in org.apache.ws.jaxme.sqls"><CODE>Constraint</CODE></A>, mapping the column references from the given constraint to the values in the given map. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pMap</CODE> - A Map with the constraints <code>pConstraint</code> table references as keys. The values are table references of the current constraints statement.<DD><CODE>pConstraint</CODE> - The constraint being cloned.</DL> </DD> </DL> <HR> <A NAME="addColumnSetQuery(org.apache.ws.jaxme.sqls.ColumnSet, org.apache.ws.jaxme.sqls.TableReference)"><!-- --></A><H3> addColumnSetQuery</H3> <PRE> void <B>addColumnSetQuery</B>(<A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls">ColumnSet</A> pSet, <A HREF="../../../../../org/apache/ws/jaxme/sqls/TableReference.html" title="interface in org.apache.ws.jaxme.sqls">TableReference</A> pTableReference)</PRE> <DL> <DD>Adds a check for the columns of the given column set. For example, if the column set consists of the columns <code>A</code> and <code>B</code>, then the following will be added: <code>A=? AND B=?</code>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getNumParts()"><!-- --></A><H3> getNumParts</H3> <PRE> int <B>getNumParts</B>()</PRE> <DL> <DD>Returns the number of parts, that have been added with the various <code>createSomething()</code> methods. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getParts()"><!-- --></A><H3> getParts</H3> <PRE> java.util.Iterator <B>getParts</B>()</PRE> <DL> <DD>Returns an Iterator to the parts, that have been added with the various <code>createSomething()</code> methods. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isNOT()"><!-- --></A><H3> isNOT</H3> <PRE> boolean <B>isNOT</B>()</PRE> <DL> <DD>Returns whether the combined constraint is inverted by adding a prepending <code>NOT</code>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setNOT(boolean)"><!-- --></A><H3> setNOT</H3> <PRE> void <B>setNOT</B>(boolean pNOT)</PRE> <DL> <DD>Sets whether the combined constraint is inverted by adding a prepending <code>NOT</code>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/apache/ws/jaxme/sqls/ColumnSet.html" title="interface in org.apache.ws.jaxme.sqls"><B>PREV CLASS</B></A> <A HREF="../../../../../org/apache/ws/jaxme/sqls/CombinedConstraint.Type.html" title="interface in org.apache.ws.jaxme.sqls"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/ws/jaxme/sqls/CombinedConstraint.html" target="_top"><B>FRAMES</B></A> <A HREF="CombinedConstraint.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>