org.synchronoss.cpo.jdbc
Class JdbcWhereBuilder<T>

Package class diagram package JdbcWhereBuilder
java.lang.Object
  extended by org.synchronoss.cpo.jdbc.JdbcWhereBuilder<T>
All Implemented Interfaces:
NodeVisitor

public class JdbcWhereBuilder<T>
extends java.lang.Object
implements NodeVisitor

JdbcWhereBuilder is an interface for specifying the sort order in which objects are returned from the Datasource.

Author:
david berry

Constructor Summary
JdbcWhereBuilder(CpoClass cpoClass)
           
 
Method Summary
 java.util.Collection<BindAttribute> getBindValues()
           
 java.lang.String getWhereClause()
           
 boolean visit(Node node)
          This is called for component elements which have no children
 boolean visitBegin(Node node)
          This is called by composite nodes prior to visiting children
 boolean visitEnd(Node node)
          This is called by composite nodes after visiting children
 boolean visitMiddle(Node node)
          This is called for composite nodes between visiting children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcWhereBuilder

public JdbcWhereBuilder(CpoClass cpoClass)
Method Detail

getWhereClause

public java.lang.String getWhereClause()

getBindValues

public java.util.Collection<BindAttribute> getBindValues()

visitBegin

public boolean visitBegin(Node node)
                   throws java.lang.Exception
This is called by composite nodes prior to visiting children

Specified by:
visitBegin in interface NodeVisitor
Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visitMiddle

public boolean visitMiddle(Node node)
                    throws java.lang.Exception
This is called for composite nodes between visiting children

Specified by:
visitMiddle in interface NodeVisitor
Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visitEnd

public boolean visitEnd(Node node)
                 throws java.lang.Exception
This is called by composite nodes after visiting children

Specified by:
visitEnd in interface NodeVisitor
Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visit

public boolean visit(Node node)
              throws java.lang.Exception
This is called for component elements which have no children

Specified by:
visit in interface NodeVisitor
Parameters:
val - The element to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception


Copyright © 2012. All Rights Reserved.