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

Quick Search    Search Deep

org.roller.business.persistence
Class BaseQuery  view BaseQuery download BaseQuery.java

java.lang.Object
  extended byorg.roller.business.persistence.BaseQuery
All Implemented Interfaces:
Query

public abstract class BaseQuery
extends java.lang.Object
implements Query

Experimental: Hibernate implementation of query.


Field Summary
protected  java.lang.String className
           
protected  int limit
           
protected  java.lang.String sortByExpression
           
protected  SortByOperator sortByOperator
           
protected  Condition where
           
 
Fields inherited from interface org.roller.business.persistence.Query
AND, ASC, DESC, EQ, GE, GT, IS_NULL, LE, LIKE, LT, NE, NOT_NULL, OR
 
Constructor Summary
protected BaseQuery(java.lang.String className)
          Contruct query (only to be used by factory).
 
Method Summary
 java.util.List execute()
           
protected abstract  java.util.List execute(java.lang.String query, java.lang.Object[] values, java.lang.Object[] types)
           
abstract  ConditionVisitor newConditionVisitor()
           
 void setLimit(int limit)
           
 void setSortBy(SortByOperator operator, java.lang.String string)
           
 void setWhere(Condition cond)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected java.lang.String className

where

protected Condition where

sortByOperator

protected SortByOperator sortByOperator

sortByExpression

protected java.lang.String sortByExpression

limit

protected int limit
Constructor Detail

BaseQuery

protected BaseQuery(java.lang.String className)
Contruct query (only to be used by factory).

Method Detail

execute

protected abstract java.util.List execute(java.lang.String query,
                                          java.lang.Object[] values,
                                          java.lang.Object[] types)
                                   throws org.roller.RollerException

newConditionVisitor

public abstract ConditionVisitor newConditionVisitor()

execute

public java.util.List execute()
                       throws org.roller.RollerException
Specified by:
execute in interface Query

setWhere

public void setWhere(Condition cond)
Specified by:
setWhere in interface Query

setSortBy

public void setSortBy(SortByOperator operator,
                      java.lang.String string)
Specified by:
setSortBy in interface Query

setLimit

public void setLimit(int limit)
Specified by:
setLimit in interface Query