org.eclipse.jpt.core.context
Interface QueryHolder

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
Entity, EntityMappings, JavaEntity, OrmEntity

public interface QueryHolder
extends JpaContextNode

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 NAMED_NATIVE_QUERIES_LIST
           
static java.lang.String NAMED_QUERIES_LIST
           
 
Method Summary
 NamedNativeQuery addNamedNativeQuery(int index)
          Add a named native query to the entity return the object representing it.
 NamedQuery addNamedQuery(int index)
          Add a named query to the entity return the object representing it.
 void moveNamedNativeQuery(int targetIndex, int sourceIndex)
          Move the named native query from the source index to the target index.
 void moveNamedQuery(int targetIndex, int sourceIndex)
          Move the named query from the source index to the target index.
<T extends NamedNativeQuery>
java.util.ListIterator<T>
namedNativeQueries()
          Return a list iterator of the specified named native queries.
 int namedNativeQueriesSize()
          Return the number of named native queries.
<T extends NamedQuery>
java.util.ListIterator<T>
namedQueries()
          Return a list iterator of the named queries.
 int namedQueriesSize()
          Return the number of named queries.
 void removeNamedNativeQuery(int index)
          Remove the named native query at the index from the entity.
 void removeNamedNativeQuery(NamedNativeQuery namedNativeQuery)
          Remove the named native query at from the entity.
 void removeNamedQuery(int index)
          Remove the named query at the index from the entity.
 void removeNamedQuery(NamedQuery namedQuery)
          Remove the named query at from the entity.
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

NAMED_QUERIES_LIST

static final java.lang.String NAMED_QUERIES_LIST
See Also:
Constant Field Values

NAMED_NATIVE_QUERIES_LIST

static final java.lang.String NAMED_NATIVE_QUERIES_LIST
See Also:
Constant Field Values
Method Detail

namedQueries

<T extends NamedQuery> java.util.ListIterator<T> namedQueries()
Return a list iterator of the named queries. This will not be null.


namedQueriesSize

int namedQueriesSize()
Return the number of named queries.


addNamedQuery

NamedQuery addNamedQuery(int index)
Add a named query to the entity return the object representing it.


removeNamedQuery

void removeNamedQuery(int index)
Remove the named query at the index from the entity.


removeNamedQuery

void removeNamedQuery(NamedQuery namedQuery)
Remove the named query at from the entity.


moveNamedQuery

void moveNamedQuery(int targetIndex,
                    int sourceIndex)
Move the named query from the source index to the target index.


namedNativeQueries

<T extends NamedNativeQuery> java.util.ListIterator<T> namedNativeQueries()
Return a list iterator of the specified named native queries. This will not be null.


namedNativeQueriesSize

int namedNativeQueriesSize()
Return the number of named native queries.


addNamedNativeQuery

NamedNativeQuery addNamedNativeQuery(int index)
Add a named native query to the entity return the object representing it.


removeNamedNativeQuery

void removeNamedNativeQuery(int index)
Remove the named native query at the index from the entity.


removeNamedNativeQuery

void removeNamedNativeQuery(NamedNativeQuery namedNativeQuery)
Remove the named native query at from the entity.


moveNamedNativeQuery

void moveNamedNativeQuery(int targetIndex,
                          int sourceIndex)
Move the named native query from the source index to the target index.