Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model
All Known Subinterfaces:
EclipseLinkPersistenceUnitDefaults, MappingFilePersistenceUnitDefaults2_0, OrmPersistenceUnitDefaults, OrmPersistenceUnitDefaults2_0

public interface MappingFilePersistenceUnitDefaults
extends JpaContextModel

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel
JpaModel.JpaVersionIsCompatibleWith
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
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.
 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.
 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.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Method Detail

getParent

MappingFilePersistenceUnitMetadata getParent()
Covariant override.

Specified by:
getParent in interface JpaContextModel
Specified by:
getParent in interface JpaModel

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

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

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.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.