org.ow2.jonas.lib.ejb21.sql
Class EjbqlLimiterRange

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.sql.EjbqlLimiterRange

public class EjbqlLimiterRange
extends Object

Limiter range representation that may be a literal integer or a parameter

Author:
Helene Joanin

Field Summary
static int KIND_LITERAL
          Literal integer kind
static int KIND_NONE
          None kind
static int KIND_PARAMETER
          Parameter kind
 
Constructor Summary
EjbqlLimiterRange(int kind, int value)
          Constructs an EjbqlLimitRange
 
Method Summary
 int getKind()
           
 int getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KIND_NONE

public static final int KIND_NONE
None kind

See Also:
Constant Field Values

KIND_LITERAL

public static final int KIND_LITERAL
Literal integer kind

See Also:
Constant Field Values

KIND_PARAMETER

public static final int KIND_PARAMETER
Parameter kind

See Also:
Constant Field Values
Constructor Detail

EjbqlLimiterRange

public EjbqlLimiterRange(int kind,
                         int value)
Constructs an EjbqlLimitRange

Parameters:
kind - kind of limiter range
value - value of limiter range (value of literal or number of parameter)
Method Detail

getKind

public int getKind()
Returns:
returns the kind of limiter range, literal or parameter

getValue

public int getValue()
Returns:
returns the value of the limiter range (value of literal or number of parameter)


Copyright © 2010 OW2 Consortium. All Rights Reserved.