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

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model, XmlContextNode
All Known Subinterfaces:
MappingFilePersistenceUnitDefaults2_0, OrmPersistenceUnitDefaults, OrmPersistenceUnitDefaults2_0

public interface MappingFilePersistenceUnitDefaults
extends XmlContextNode

Persistence unit defaults held by a mapping file.

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.1
Version:
2.1

Method Summary
 AccessType getAccess()
          Return the access type for all managed classes in the persistence unit, unless overridden by a local annotation or XML setting.
 java.lang.String getCatalog()
          Return the catalog for all database objects referenced in the persistence unit, unless overridden by a local annotation or XML setting.
 MappingFilePersistenceUnitMetadata getParent()
          Covariant override.
 java.lang.String getSchema()
          Return the schema for all database objects referenced in the persistence unit, unless overridden by a local annotation or XML setting.
 boolean isCascadePersist()
          Return all the relationhips in the persistence unit are to be cascade persist, unless overridden by a local annotation or XML setting.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.XmlContextNode
getValidationTextRange, validate
 
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, 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
 

Method Detail

getParent

MappingFilePersistenceUnitMetadata getParent()
Covariant override.

Specified by:
getParent in interface JpaNode

getAccess

AccessType getAccess()
Return the access type for all managed classes in the persistence unit, unless overridden by a local annotation or XML setting.


getCatalog

java.lang.String getCatalog()
Return the catalog for all database objects referenced in the persistence unit, unless overridden by a local annotation or XML setting.

Return the specified catalog if present, otherwise return the default catalog as determined by the database connection.


getSchema

java.lang.String getSchema()
Return the schema for all database objects referenced in the persistence unit, unless overridden by a local annotation or XML setting.

Return the specified schema if present, otherwise return the default schema as determined by the database connection.


isCascadePersist

boolean isCascadePersist()
Return all the relationhips in the persistence unit are to be cascade persist, unless overridden by a local annotation or XML setting.