org.eclipse.jpt.jpa.core.context.persistence
Interface PersistenceUnitProperties

All Superinterfaces:
Model
All Known Subinterfaces:
Caching, Connection, Connection2_0, Customization, GeneralProperties, JpaConnection2_0, JpaOptions2_0, Logging, Logging2_0, Options, Options2_0, SchemaGeneration

public interface PersistenceUnitProperties
extends Model

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:
3.0

Method Summary
 java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createMoveTypeEdits(org.eclipse.jdt.core.IType originalType, org.eclipse.jdt.core.IPackageFragment newPackage)
          Create ReplaceEdits for moving any references to the originalType to the newPackage.
 java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage, java.lang.String newName)
          Create ReplaceEdits for renaming any reference to the originalPackage newName.
 java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenameTypeEdits(org.eclipse.jdt.core.IType originalType, java.lang.String newName)
          Create ReplaceEdits for renaming any references to the originalType to the newName.
 JpaProject getJpaProject()
          Return the JPA project the PersistenceUnit belongs to.
 PersistenceUnit getPersistenceUnit()
          Return the PersistenceUnit of this Properties.
 boolean itemIsProperty(PersistenceUnit.Property item)
          Method used for identifying the given property.
 java.lang.String propertyIdOf(PersistenceUnit.Property property)
          Returns the property name used for change notification of the given property.
 void propertyRemoved(java.lang.String propertyName)
          A Property with the given name was removed
 void propertyValueChanged(java.lang.String propertyName, java.lang.String newValue)
          A Property with the given name had its value changed
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Method Detail

itemIsProperty

boolean itemIsProperty(PersistenceUnit.Property item)
Method used for identifying the given property.


propertyIdOf

java.lang.String propertyIdOf(PersistenceUnit.Property property)
Returns the property name used for change notification of the given property.


getPersistenceUnit

PersistenceUnit getPersistenceUnit()
Return the PersistenceUnit of this Properties.


getJpaProject

JpaProject getJpaProject()
Return the JPA project the PersistenceUnit belongs to.


propertyValueChanged

void propertyValueChanged(java.lang.String propertyName,
                          java.lang.String newValue)
A Property with the given name had its value changed


propertyRemoved

void propertyRemoved(java.lang.String propertyName)
A Property with the given name was removed


createRenameTypeEdits

java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenameTypeEdits(org.eclipse.jdt.core.IType originalType,
                                                                             java.lang.String newName)
Create ReplaceEdits for renaming any references to the originalType to the newName. The originalType has not yet been renamed, the newName is the new short name.


createMoveTypeEdits

java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createMoveTypeEdits(org.eclipse.jdt.core.IType originalType,
                                                                           org.eclipse.jdt.core.IPackageFragment newPackage)
Create ReplaceEdits for moving any references to the originalType to the newPackage. The originalType has not yet been moved.


createRenamePackageEdits

java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage,
                                                                                java.lang.String newName)
Create ReplaceEdits for renaming any reference to the originalPackage newName. The originalPackage has not yet been renamed.