|
Dali Provisional API Release 3.2 |
||||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.JpaNamedContextModel |
|---|
JpaNamedContextModel.NameTransformer |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel |
|---|
JpaModel.JpaVersionIsCompatibleWith |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer |
| Field Summary | |
|---|---|
static String |
HINTS_LIST
|
static Iterable<Class<? extends Query>> |
TYPES
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.JpaNamedContextModel |
|---|
NAME_PROPERTY, NAME_TRANSFORMER |
| Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
TRANSFORMER |
| 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. |
QueryHint |
getHint(int i)
|
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends QueryHint> |
getHints()
Return the query's hints. |
int |
getHintsSize()
Return the number of hints. |
TextRange |
getNameTextRange()
Returns the TextRange of the name property. |
Class<? extends Query> |
getType()
Return the generator's type. |
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. |
boolean |
supportsValidationMessages()
Return whether this query should be validated and have validation messages displayed |
void |
validate(JpaJpqlQueryHelper queryHelper,
List<IMessage> messages,
IReporter reporter)
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaNamedContextModel |
|---|
getName, isEquivalentTo, setName |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel |
|---|
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel |
|---|
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
getResourceType |
| Field Detail |
|---|
static final Iterable<Class<? extends Query>> TYPES
static final String HINTS_LIST
| Method Detail |
|---|
Class<? extends Query> getType()
getType in interface JpaNamedContextModelorg.eclipse.jpt.common.utility.iterable.ListIterable<? extends QueryHint> getHints()
int getHintsSize()
QueryHint addHint()
QueryHint addHint(int index)
void removeHint(QueryHint queryHint)
void removeHint(int index)
void moveHint(int targetIndex,
int sourceIndex)
QueryHint getHint(int i)
void validate(JpaJpqlQueryHelper queryHelper,
List<IMessage> messages,
IReporter reporter)
boolean supportsValidationMessages()
TextRange getNameTextRange()
TextRange of the name property.
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||