org.apache.torque.util
Class LimitHelper

java.lang.Object
  extended byorg.apache.torque.util.LimitHelper

public abstract class LimitHelper
extends java.lang.Object

Factored out all the various "How to generate offset and limit for my personal database" from the BasePeer. And tried to get some sense it this.

Version:
$Id: LimitHelper.java,v 1.1.2.3 2004/10/23 10:55:06 henning Exp $
Author:
Henning P. Schmiedehausen

Constructor Summary
LimitHelper()
           
 
Method Summary
static void buildLimit(Criteria criteria, Query query)
          Update the Query object according to the limiting information available in the Criteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitHelper

public LimitHelper()
Method Detail

buildLimit

public static final void buildLimit(Criteria criteria,
                                    Query query)
                             throws TorqueException
Update the Query object according to the limiting information available in the Criteria

Parameters:
query - The query object to update
Throws:
TorqueException


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.