org.eclipse.jpt.core.context.java
Interface JavaQueryContainer

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JpaContextNode, JpaNode, Model, QueryContainer

public interface JavaQueryContainer
extends QueryContainer, JavaJpaContextNode

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.3
Version:
2.3

Field Summary
 
Fields inherited from interface org.eclipse.jpt.core.context.QueryContainer
NAMED_NATIVE_QUERIES_LIST, NAMED_QUERIES_LIST
 
Method Summary
 JavaNamedNativeQuery addNamedNativeQuery(int index)
          Add a named native query to the entity return the object representing it.
 JavaNamedQuery addNamedQuery(int index)
          Add a named query to the entity return the object representing it.
 void initialize(JavaResourcePersistentMember jrpm)
           
 java.util.ListIterator<JavaNamedNativeQuery> namedNativeQueries()
          Return a list iterator of the specified named native queries.
 java.util.ListIterator<JavaNamedQuery> namedQueries()
          Return a list iterator of the named queries.
 void update(JavaResourcePersistentMember jrpm)
          Update the JavaGeneratorContainer context model object to match the JavaResourcePersistentMember resource model object.
 
Methods inherited from interface org.eclipse.jpt.core.context.QueryContainer
moveNamedNativeQuery, moveNamedQuery, namedNativeQueriesSize, namedQueriesSize, removeNamedNativeQuery, removeNamedNativeQuery, removeNamedQuery, removeNamedQuery
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 

Method Detail

namedQueries

java.util.ListIterator<JavaNamedQuery> namedQueries()
Description copied from interface: QueryContainer
Return a list iterator of the named queries. This will not be null.

Specified by:
namedQueries in interface QueryContainer

addNamedQuery

JavaNamedQuery addNamedQuery(int index)
Description copied from interface: QueryContainer
Add a named query to the entity return the object representing it.

Specified by:
addNamedQuery in interface QueryContainer

namedNativeQueries

java.util.ListIterator<JavaNamedNativeQuery> namedNativeQueries()
Description copied from interface: QueryContainer
Return a list iterator of the specified named native queries. This will not be null.

Specified by:
namedNativeQueries in interface QueryContainer

addNamedNativeQuery

JavaNamedNativeQuery addNamedNativeQuery(int index)
Description copied from interface: QueryContainer
Add a named native query to the entity return the object representing it.

Specified by:
addNamedNativeQuery in interface QueryContainer

initialize

void initialize(JavaResourcePersistentMember jrpm)

update

void update(JavaResourcePersistentMember jrpm)
Update the JavaGeneratorContainer context model object to match the JavaResourcePersistentMember resource model object. see JpaProject.update()