org.eclipse.jpt.core.context.orm
Interface OrmPersistenceUnitDefaults

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, MappingFilePersistenceUnitDefaults, Model, XmlContextNode

public interface OrmPersistenceUnitDefaults
extends XmlContextNode, MappingFilePersistenceUnitDefaults

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.


Field Summary
static java.lang.String ACCESS_PROPERTY
           
static java.lang.String CASCADE_PERSIST_PROPERTY
           
static java.lang.String DEFAULT_CATALOG_PROPERTY
           
static java.lang.String DEFAULT_SCHEMA_PROPERTY
           
static java.lang.String SPECIFIED_CATALOG_PROPERTY
           
static java.lang.String SPECIFIED_SCHEMA_PROPERTY
           
 
Method Summary
 AccessType getAccess()
           
 java.lang.String getCatalog()
          Return the specified catalog if present, otherwise return the default catalog.
 Catalog getDbCatalog()
           
 Schema getDbSchema()
           
 SchemaContainer getDbSchemaContainer()
           
 java.lang.String getDefaultCatalog()
           
 java.lang.String getDefaultSchema()
           
 java.lang.String getSchema()
          Return the specified schema if present, otherwise return the default schema.
 java.lang.String getSpecifiedCatalog()
           
 java.lang.String getSpecifiedSchema()
           
 boolean isCascadePersist()
           
 void setAccess(AccessType value)
           
 void setCascadePersist(boolean value)
           
 void setSpecifiedCatalog(java.lang.String newSpecifiedCatalog)
           
 void setSpecifiedSchema(java.lang.String newSpecifiedSchema)
           
 void update()
          Update the OrmPersistenceUnitDefaults context model object to match the XmlEntityMappings resource model object.
 
Methods inherited from interface org.eclipse.jpt.core.context.XmlContextNode
getValidationTextRange, validate
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.MappingFilePersistenceUnitDefaults
resourceExists
 

Field Detail

ACCESS_PROPERTY

static final java.lang.String ACCESS_PROPERTY
See Also:
Constant Field Values

SPECIFIED_CATALOG_PROPERTY

static final java.lang.String SPECIFIED_CATALOG_PROPERTY
See Also:
Constant Field Values

DEFAULT_CATALOG_PROPERTY

static final java.lang.String DEFAULT_CATALOG_PROPERTY
See Also:
Constant Field Values

SPECIFIED_SCHEMA_PROPERTY

static final java.lang.String SPECIFIED_SCHEMA_PROPERTY
See Also:
Constant Field Values

DEFAULT_SCHEMA_PROPERTY

static final java.lang.String DEFAULT_SCHEMA_PROPERTY
See Also:
Constant Field Values

CASCADE_PERSIST_PROPERTY

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

getAccess

AccessType getAccess()
Specified by:
getAccess in interface MappingFilePersistenceUnitDefaults

setAccess

void setAccess(AccessType value)

getDbSchemaContainer

SchemaContainer getDbSchemaContainer()

getCatalog

java.lang.String getCatalog()
Return the specified catalog if present, otherwise return the default catalog.

Specified by:
getCatalog in interface MappingFilePersistenceUnitDefaults

getSpecifiedCatalog

java.lang.String getSpecifiedCatalog()

setSpecifiedCatalog

void setSpecifiedCatalog(java.lang.String newSpecifiedCatalog)

getDefaultCatalog

java.lang.String getDefaultCatalog()

getDbCatalog

Catalog getDbCatalog()

getSchema

java.lang.String getSchema()
Return the specified schema if present, otherwise return the default schema.

Specified by:
getSchema in interface MappingFilePersistenceUnitDefaults

getSpecifiedSchema

java.lang.String getSpecifiedSchema()

setSpecifiedSchema

void setSpecifiedSchema(java.lang.String newSpecifiedSchema)

getDefaultSchema

java.lang.String getDefaultSchema()

getDbSchema

Schema getDbSchema()

isCascadePersist

boolean isCascadePersist()
Specified by:
isCascadePersist in interface MappingFilePersistenceUnitDefaults

setCascadePersist

void setCascadePersist(boolean value)

update

void update()
Update the OrmPersistenceUnitDefaults context model object to match the XmlEntityMappings resource model object. see JpaProject.update()