com.mysema.query
Class QueryModifiers

java.lang.Object
  extended by com.mysema.query.QueryModifiers

@Immutable
public final class QueryModifiers
extends Object

QueryModifiers combines limit and offset info into a single type.

Version:
$Id$
Author:
Timo Westkamper

Constructor Summary
QueryModifiers()
          Instantiates a new query modifiers.
QueryModifiers(Long limit, Long offset)
          Instantiates a new query modifiers.
 
Method Summary
 Long getLimit()
          Gets the limit.
 Long getOffset()
          Gets the offset.
 boolean isRestricting()
          Checks if is restricting.
static QueryModifiers limit(long limit)
          Limit.
static QueryModifiers offset(long offset)
          Offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryModifiers

public QueryModifiers()
Instantiates a new query modifiers.


QueryModifiers

public QueryModifiers(@Nullable
                      Long limit,
                      @Nullable
                      Long offset)
Instantiates a new query modifiers.

Parameters:
limit - the limit
offset - the offset
Method Detail

limit

public static QueryModifiers limit(@Nonnegative
                                   long limit)
Limit.

Parameters:
limit - the limit
Returns:
the query modifiers

offset

public static QueryModifiers offset(@Nonnegative
                                    long offset)
Offset.

Parameters:
offset - the offset
Returns:
the query modifiers

getLimit

public Long getLimit()
Gets the limit.

Returns:
the limit

getOffset

public Long getOffset()
Gets the offset.

Returns:
the offset

isRestricting

public boolean isRestricting()
Checks if is restricting.

Returns:
true, if is restricting


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.