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
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)
|
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
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()