org.eclipse.jpt.jpa.core.jpa2.resource.java
Interface OwningRelationshipMapping2_0Annotation

All Known Subinterfaces:
OneToMany2_0Annotation, OneToOne2_0Annotation

public interface OwningRelationshipMapping2_0Annotation

Represents a relationship mapping annotation that may have the orphanRemoval 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.3
Version:
2.3

Field Summary
static java.lang.String ORPHAN_REMOVAL_PROPERTY
           
 
Method Summary
 java.lang.Boolean getOrphanRemoval()
          Corresponds to the orphanRemoval element of a OneToMany or OneToOne annotation.
 TextRange getOrphanRemovalTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Return the TextRange for the orphanRemoval element.
 void setOrphanRemoval(java.lang.Boolean orphanRemoval)
          Corresponds to the orphanRemoval element of a OneToMany or OneToOne annotation.
 

Field Detail

ORPHAN_REMOVAL_PROPERTY

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

getOrphanRemoval

java.lang.Boolean getOrphanRemoval()
Corresponds to the orphanRemoval element of a OneToMany or OneToOne annotation. Returns null if the orphanRemoval element does not exist in java.


setOrphanRemoval

void setOrphanRemoval(java.lang.Boolean orphanRemoval)
Corresponds to the orphanRemoval element of a OneToMany or OneToOne annotation. Set to null to remove the orphanRemoval element.


getOrphanRemovalTextRange

TextRange getOrphanRemovalTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the orphanRemoval element. If the orphanRemoval element does not exist return the TextRange for the OneToMany or OneToOne annotation.