|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Query
Named and named native queries.
Queries can be defined on
orm.xml entities
orm.xml entity mappings elements
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary | |
|---|---|
static java.lang.String |
HINTS_LIST
|
static java.lang.Iterable<java.lang.Class<? extends Query>> |
PRECEDENCE_TYPE_LIST
TODO use this precedence until adopters protest... |
static java.lang.String |
QUERY_PROPERTY
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.JpaNamedContextNode |
|---|
NAME_PROPERTY |
| Method Summary | ||
|---|---|---|
QueryHint |
addHint()
Add a hint to the query and return the object representing it. |
|
QueryHint |
addHint(int index)
Add a hint to the query and return the object representing it. |
|
|
getHints()
Return the query's hints. |
|
int |
getHintsSize()
Return the number of hints. |
|
java.lang.String |
getQuery()
|
|
void |
moveHint(int targetIndex,
int sourceIndex)
Move the hint from the source index to the target index. |
|
void |
removeHint(int index)
Remove the hint from the query. |
|
void |
removeHint(QueryHint queryHint)
Remove the hint at the index from the query. |
|
void |
setQuery(java.lang.String query)
|
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaNamedContextNode |
|---|
duplicates, getName, overrides, setName |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
getJpaProject, getParent, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart |
|---|
getResource |
| Field Detail |
|---|
static final java.lang.Iterable<java.lang.Class<? extends Query>> PRECEDENCE_TYPE_LIST
static final java.lang.String QUERY_PROPERTY
static final java.lang.String HINTS_LIST
| Method Detail |
|---|
java.lang.String getQuery()
void setQuery(java.lang.String query)
<T extends QueryHint> org.eclipse.jpt.common.utility.internal.iterables.ListIterable<T> getHints()
int getHintsSize()
QueryHint addHint()
QueryHint addHint(int index)
void removeHint(QueryHint queryHint)
void removeHint(int index)
void moveHint(int targetIndex,
int sourceIndex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||