Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.access.trans
Class SelectQueryAssembler  view SelectQueryAssembler download SelectQueryAssembler.java

java.lang.Object
  extended byorg.objectstyle.cayenne.access.QueryTranslator
      extended byorg.objectstyle.cayenne.access.trans.QueryAssembler
          extended byorg.objectstyle.cayenne.access.trans.SelectQueryAssembler

public abstract class SelectQueryAssembler
extends QueryAssembler

Abstract superclass of Query translators. Defines callback methods for helper classes that are delegated tasks of building query parts.


Field Summary
 
Fields inherited from class org.objectstyle.cayenne.access.trans.QueryAssembler
attributes, values
 
Fields inherited from class org.objectstyle.cayenne.access.QueryTranslator
adapter, con, engine, query
 
Constructor Summary
SelectQueryAssembler()
           
 
Method Summary
abstract  int getFetchLimit()
          Returns a maximum number of rows that the underlying query should fetch.
abstract  java.lang.String[] getResultTypes(java.sql.ResultSet rs)
          Returns ordered array of Java class names that should be used for values in the ResultSet.
abstract  org.objectstyle.cayenne.map.DbAttribute[] getSnapshotDesc(java.sql.ResultSet rs)
          Returns an ordered array of DbAttributes that describe the result columns in the in the ResultSet.
 
Methods inherited from class org.objectstyle.cayenne.access.trans.QueryAssembler
addToParamList, aliasForTable, aliasForTable, createSqlString, createStatement, dbRelationshipAdded, initStatement, supportsTableAliases
 
Methods inherited from class org.objectstyle.cayenne.access.QueryTranslator
getAdapter, getCon, getEngine, getQuery, getRootDbEntity, getRootEntity, setAdapter, setCon, setEngine, setQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectQueryAssembler

public SelectQueryAssembler()
Method Detail

getSnapshotDesc

public abstract org.objectstyle.cayenne.map.DbAttribute[] getSnapshotDesc(java.sql.ResultSet rs)
Returns an ordered array of DbAttributes that describe the result columns in the in the ResultSet.


getResultTypes

public abstract java.lang.String[] getResultTypes(java.sql.ResultSet rs)
Returns ordered array of Java class names that should be used for values in the ResultSet.


getFetchLimit

public abstract int getFetchLimit()
Returns a maximum number of rows that the underlying query should fetch. If the value is less than or equal to zero, all rows will be returned.