类 MutableJpaComplianceImpl
- java.lang.Object
-
- org.hibernate.jpa.internal.MutableJpaComplianceImpl
-
- 所有已实现的接口:
JpaCompliance,MutableJpaCompliance
public class MutableJpaComplianceImpl extends Object implements MutableJpaCompliance
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 MutableJpaComplianceImpl(Map configurationSettings, boolean jpaByDefault)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JpaComplianceimmutableCopy()booleanisGlobalGeneratorScopeEnabled()Should the the scope ofTableGenerator.name()andSequenceGenerator.name()be considered globally or locally defined?booleanisJpaCacheComplianceEnabled()Should Hibernate comply with all aspects of caching as defined by JPA?booleanisJpaClosedComplianceEnabled()JPA defines specific exceptions on specific methods when called onEntityManagerandEntityManagerFactorywhen those objects have been closed.booleanisJpaListComplianceEnabled()Controls how Hibernate interprets a mapped List without an "order columns" specified.booleanisJpaProxyComplianceEnabled()JPA spec says that anEntityNotFoundExceptionshould be thrown when accessing an entity Proxy which does not have an associated table row in the database.booleanisJpaQueryComplianceEnabled()Controls whether Hibernate's handling of JPA'sQuery(JPQL, Criteria and native-query) should strictly follow the JPA spec.booleanisJpaTransactionComplianceEnabled()Indicates that Hibernate'sTransactionshould behave as defined by the spec for JPA'sEntityTransactionsince it extends the JPA one.voidsetCachingCompliance(boolean cachingCompliance)voidsetClosedCompliance(boolean closedCompliance)voidsetListCompliance(boolean listCompliance)voidsetProxyCompliance(boolean proxyCompliance)voidsetQueryCompliance(boolean queryCompliance)voidsetTransactionCompliance(boolean transactionCompliance)
-
-
-
构造器详细资料
-
MutableJpaComplianceImpl
public MutableJpaComplianceImpl(Map configurationSettings, boolean jpaByDefault)
-
-
方法详细资料
-
isJpaQueryComplianceEnabled
public boolean isJpaQueryComplianceEnabled()
从接口复制的说明:JpaComplianceControls whether Hibernate's handling of JPA'sQuery(JPQL, Criteria and native-query) should strictly follow the JPA spec. This includes both in terms of parsing or translating a query as well as calls to theQuerymethods throwing spec defined exceptions where as Hibernate might not. Deviations result in an exception if enabled- 指定者:
isJpaQueryComplianceEnabled在接口中JpaCompliance- 返回:
trueindicates to behave in the spec-defined way
-
isJpaTransactionComplianceEnabled
public boolean isJpaTransactionComplianceEnabled()
从接口复制的说明:JpaComplianceIndicates that Hibernate'sTransactionshould behave as defined by the spec for JPA'sEntityTransactionsince it extends the JPA one.- 指定者:
isJpaTransactionComplianceEnabled在接口中JpaCompliance- 返回:
trueindicates to behave in the spec-defined way
-
isJpaListComplianceEnabled
public boolean isJpaListComplianceEnabled()
从接口复制的说明:JpaComplianceControls how Hibernate interprets a mapped List without an "order columns" specified. Historically Hibernate defines this as a "bag", which is a concept JPA does not have. If enabled, Hibernate will recognize this condition as defining aPersistentList, otherwise Hibernate will treat is as aPersistentBag- 指定者:
isJpaListComplianceEnabled在接口中JpaCompliance- 返回:
trueindicates to behave in the spec-defined way, interpreting the mapping as a "list", rather than a "bag"
-
isJpaClosedComplianceEnabled
public boolean isJpaClosedComplianceEnabled()
从接口复制的说明:JpaComplianceJPA defines specific exceptions on specific methods when called onEntityManagerandEntityManagerFactorywhen those objects have been closed. This setting controls whether the spec defined behavior or Hibernate's behavior will be used. If enabled Hibernate will operate in the JPA specified way throwing exceptions when the spec says it should with regard to close checking- 指定者:
isJpaClosedComplianceEnabled在接口中JpaCompliance- 返回:
trueindicates to behave in the spec-defined way
-
isJpaProxyComplianceEnabled
public boolean isJpaProxyComplianceEnabled()
从接口复制的说明:JpaComplianceJPA spec says that anEntityNotFoundExceptionshould be thrown when accessing an entity Proxy which does not have an associated table row in the database. Traditionally, Hibernate does not initialize an entity Proxy when accessing its identifier since we already know the identifier value, hence we can save a database roundtrip. If enabled Hibernate will initialize the entity Proxy even when accessing its identifier.- 指定者:
isJpaProxyComplianceEnabled在接口中JpaCompliance- 返回:
trueindicates to behave in the spec-defined way
-
isJpaCacheComplianceEnabled
public boolean isJpaCacheComplianceEnabled()
从接口复制的说明:JpaComplianceShould Hibernate comply with all aspects of caching as defined by JPA? Or can it deviate to perform things it believes will be "better"?- 指定者:
isJpaCacheComplianceEnabled在接口中JpaCompliance- 返回:
truesays to act the spec-defined way.
-
isGlobalGeneratorScopeEnabled
public boolean isGlobalGeneratorScopeEnabled()
从接口复制的说明:JpaComplianceShould the the scope ofTableGenerator.name()andSequenceGenerator.name()be considered globally or locally defined?- 指定者:
isGlobalGeneratorScopeEnabled在接口中JpaCompliance- 返回:
trueindicates the generator name scope is considered global.
-
setQueryCompliance
public void setQueryCompliance(boolean queryCompliance)
- 指定者:
setQueryCompliance在接口中MutableJpaCompliance
-
setTransactionCompliance
public void setTransactionCompliance(boolean transactionCompliance)
- 指定者:
setTransactionCompliance在接口中MutableJpaCompliance
-
setListCompliance
public void setListCompliance(boolean listCompliance)
- 指定者:
setListCompliance在接口中MutableJpaCompliance
-
setClosedCompliance
public void setClosedCompliance(boolean closedCompliance)
- 指定者:
setClosedCompliance在接口中MutableJpaCompliance
-
setProxyCompliance
public void setProxyCompliance(boolean proxyCompliance)
- 指定者:
setProxyCompliance在接口中MutableJpaCompliance
-
setCachingCompliance
public void setCachingCompliance(boolean cachingCompliance)
- 指定者:
setCachingCompliance在接口中MutableJpaCompliance
-
immutableCopy
public JpaCompliance immutableCopy()
- 指定者:
immutableCopy在接口中MutableJpaCompliance
-
-