org.eclipse.jpt.jpa.core.context
Interface QueryContainer

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
JavaQueryContainer, OrmQueryContainer

public interface QueryContainer
extends JpaContextNode

Container for named queries and/or named native queries. Used by entities and the orm.xml entity-mappings element.

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.

Since:
2.2
Version:
2.2

Field Summary
static java.lang.String NAMED_NATIVE_QUERIES_LIST
           
static java.lang.String NAMED_QUERIES_LIST
           
 
Method Summary
 NamedNativeQuery addNamedNativeQuery()
          Add a new named native query to the container and return it.
 NamedNativeQuery addNamedNativeQuery(int index)
          Add a new named native query to the container at the specified index and return it.
 NamedQuery addNamedQuery()
          Add a new named query to the container and return it.
 NamedQuery addNamedQuery(int index)
          Add a new named query to the container at the specified index and return it.
 void moveNamedNativeQuery(int targetIndex, int sourceIndex)
          Move a named native query as specified.
 void moveNamedQuery(int targetIndex, int sourceIndex)
          Move a named query as specified.
<T extends NamedNativeQuery>
java.util.ListIterator<T>
namedNativeQueries()
          Return the container's named native queries.
 int namedNativeQueriesSize()
          Return the number of named native queries.
<T extends NamedQuery>
java.util.ListIterator<T>
namedQueries()
          Return the container's named queries.
 int namedQueriesSize()
          Return the number of named queries.
 void removeNamedNativeQuery(int index)
          Remove from the container the named native query at the specified index.
 void removeNamedNativeQuery(NamedNativeQuery namedNativeQuery)
          Remove the specified named native query from the container.
 void removeNamedQuery(int index)
          Remove from the container the named query at the specified index.
 void removeNamedQuery(NamedQuery namedQuery)
          Remove the specified named query from the container.
 
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

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 the container's named queries.


namedQueriesSize

int namedQueriesSize()
Return the number of named queries.


addNamedQuery

NamedQuery addNamedQuery()
Add a new named query to the container and return it.


addNamedQuery

NamedQuery addNamedQuery(int index)
Add a new named query to the container at the specified index and return it.


removeNamedQuery

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


removeNamedQuery

void removeNamedQuery(NamedQuery namedQuery)
Remove the specified named query from the container.


moveNamedQuery

void moveNamedQuery(int targetIndex,
                    int sourceIndex)
Move a named query as specified.


namedNativeQueries

<T extends NamedNativeQuery> java.util.ListIterator<T> namedNativeQueries()
Return the container's named native queries.


namedNativeQueriesSize

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


addNamedNativeQuery

NamedNativeQuery addNamedNativeQuery()
Add a new named native query to the container and return it.


addNamedNativeQuery

NamedNativeQuery addNamedNativeQuery(int index)
Add a new named native query to the container at the specified index and return it.


removeNamedNativeQuery

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


removeNamedNativeQuery

void removeNamedNativeQuery(NamedNativeQuery namedNativeQuery)
Remove the specified named native query from the container.


moveNamedNativeQuery

void moveNamedNativeQuery(int targetIndex,
                          int sourceIndex)
Move a named native query as specified.