org.eclipse.jpt.jpa.core.context
Interface JpaNamedContextNode<T>
- All Superinterfaces:
- org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
- All Known Subinterfaces:
- Generator, JavaGenerator, JavaNamedNativeQuery, JavaNamedQuery, JavaNamedQuery2_0, JavaQuery, JavaSequenceGenerator, JavaSequenceGenerator2_0, JavaTableGenerator, NamedNativeQuery, NamedQuery, NamedQuery2_0, OrmGenerator, OrmNamedNativeQuery, OrmNamedQuery, OrmNamedQuery2_0, OrmQuery, OrmSequenceGenerator, OrmSequenceGenerator2_0, OrmTableGenerator, Query, SequenceGenerator, SequenceGenerator2_0, TableGenerator
public interface JpaNamedContextNode<T>
- extends JpaContextNode
Named context node that may have collisions with or override other nodes
with the same name defined elsewhere in the persistence unit
(e.g. sequence/table generators, named/named native queries).
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.
|
Method Summary |
boolean |
duplicates(T other)
Return whether the node is a "duplicate" of the specified node. |
java.lang.String |
getName()
|
boolean |
overrides(T other)
Return whether the node "overrides" the specified node
within the nodes' persistence unit. |
void |
setName(java.lang.String name)
|
| 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 |
NAME_PROPERTY
static final java.lang.String NAME_PROPERTY
- See Also:
- Constant Field Values
getName
java.lang.String getName()
setName
void setName(java.lang.String name)
overrides
boolean overrides(T other)
- Return whether the node "overrides" the specified node
within the nodes' persistence unit.
(e.g. a query defined in
orm.xml
"overrides" one with the same name defined in a Java annotation).
- See Also:
duplicates(Object)
duplicates
boolean duplicates(T other)
- Return whether the node is a "duplicate" of the specified node.
Two nodes are duplicates if
- they both have the same, non-empty name
- neither node "overrides" the other
- they both are in the same persistence unit
- See Also:
overrides(Object)