Interface PersistenceUnitMetadata

All Known Implementing Classes:
PersistenceUnitMetadataImpl

public interface PersistenceUnitMetadata
Aggregator of information from entity-mappings/persistence-unit-metadata and entity-mappings/persistence-unit-metadata/persistence-unit-defaults across all mapping XML files in the persistence-unit.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether XML mappings are complete for the entire persistent unit.
    Default AccessType in effect for the entire persistence unit.
    Name of the default PropertyAccessStrategy in effect for the entire persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/default-access
    Cascades to apply by default for this persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/default-cascade
    Default catalog in effect for the entire persistent unit.
    Default schema in effect for the entire persistent unit.
    boolean
    Whether to quote all database identifiers in the persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/delimited-identifiers
  • Method Details

    • areXmlMappingsComplete

      boolean areXmlMappingsComplete()
      Whether XML mappings are complete for the entire persistent unit. See entity-mappings/persistence-unit-metadata/xml-mapping-metadata-complete
    • getDefaultSchema

      String getDefaultSchema()
      Default schema in effect for the entire persistent unit. See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/schema
    • getDefaultCatalog

      String getDefaultCatalog()
      Default catalog in effect for the entire persistent unit. See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/catalog
    • getAccessType

      AccessType getAccessType()
      Default AccessType in effect for the entire persistence unit. See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/access
    • getDefaultAccessStrategyName

      String getDefaultAccessStrategyName()
      Name of the default PropertyAccessStrategy in effect for the entire persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/default-access
    • getDefaultCascadeTypes

      EnumSet<CascadeType> getDefaultCascadeTypes()
      Cascades to apply by default for this persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/default-cascade
    • useQuotedIdentifiers

      boolean useQuotedIdentifiers()
      Whether to quote all database identifiers in the persistence unit See entity-mappings/persistence-unit-metadata/persistence-unit-defaults/delimited-identifiers