org.objectweb.speedo.query.api
Interface QueryDefinition

All Known Implementing Classes:
EJBQueryDefinitionImpl, JDOQuery, JDOQueryDefinitionImpl

public interface QueryDefinition

This interface represents the user definition of a query.

Author:
S.Chassande-Barrioz

Field Summary
static short TYPE_DELETE
           
static short TYPE_SELECT
           
static short TYPE_UPDATE
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean fetchIdentifierOnly()
           
 long getIndexFirst()
          The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query.
 long getIndexLast()
          The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query.
 short getQueryType()
           
 int hashCode()
           
 java.lang.String qdToString(boolean oneLine)
           
 boolean withPrefetch()
           
 void withPrefetch(boolean withPrefetch)
           
 

Field Detail

TYPE_SELECT

static final short TYPE_SELECT
See Also:
Constant Field Values

TYPE_DELETE

static final short TYPE_DELETE
See Also:
Constant Field Values

TYPE_UPDATE

static final short TYPE_UPDATE
See Also:
Constant Field Values
Method Detail

getQueryType

short getQueryType()

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

withPrefetch

boolean withPrefetch()

withPrefetch

void withPrefetch(boolean withPrefetch)

qdToString

java.lang.String qdToString(boolean oneLine)

getIndexFirst

long getIndexFirst()
The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query. The default range for query execution if this method is not called are (0, Long.MAX_VALUE).


getIndexLast

long getIndexLast()
The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query. The default range for query execution if this method is not called are (0, Long.MAX_VALUE).


fetchIdentifierOnly

boolean fetchIdentifierOnly()