接口 MappingDefaults
-
public interface MappingDefaultsDefines a (contextual) set of values to use as defaults in the absence of related mapping information. The context here is conceptually a stack. The "global" level is configuration settings.- 从以下版本开始:
- 5.0
- 作者:
- Steve Ebersole, Gail Badner
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_CASCADE_NAMEstatic StringDEFAULT_DISCRIMINATOR_COLUMN_NAMEstatic StringDEFAULT_IDENTIFIER_COLUMN_NAMEstatic StringDEFAULT_PROPERTY_ACCESS_NAMEstatic StringDEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanareCollectionsImplicitlyLazy()Identifies whether plural attributes are lazy by default if not specified in the mapping.booleanareEntitiesImplicitlyLazy()Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.AccessTypegetImplicitCacheAccessType()The cache access type to use if none is specifiedStringgetImplicitCascadeStyleName()Identifies the cascade style to apply to associations if none specified in the mapping.StringgetImplicitCatalogName()Identifies the database catalog name to use if none specified in the mapping.StringgetImplicitDiscriminatorColumnName()Identifies the column name to use for the discriminator column if none specified in the mapping.StringgetImplicitIdColumnName()Identifies the column name to use for the identifier column if none specified in the mapping.StringgetImplicitPackageName()Identifies the package name to use if none specified in the mapping.StringgetImplicitPropertyAccessorName()Identifies the defaultPropertyAccessStrategyname to use if none specified in the mapping.StringgetImplicitSchemaName()Identifies the database schema name to use if none specified in the mapping.StringgetImplicitTenantIdColumnName()Identifies the column name to use for the tenant identifier column if none is specified in the mapping.booleanisAutoImportEnabled()Is auto-importing of entity (short) names enabled?booleanshouldImplicitlyQuoteIdentifiers()Should all database identifiers encountered in this context be implicitly quoted?
-
-
-
方法详细资料
-
getImplicitSchemaName
String getImplicitSchemaName()
Identifies the database schema name to use if none specified in the mapping.- 返回:
- The implicit schema name; may be
null
-
getImplicitCatalogName
String getImplicitCatalogName()
Identifies the database catalog name to use if none specified in the mapping.- 返回:
- The implicit catalog name; may be
null
-
shouldImplicitlyQuoteIdentifiers
boolean shouldImplicitlyQuoteIdentifiers()
Should all database identifiers encountered in this context be implicitly quoted?trueindicates that all identifier encountered within this context should be quoted.falseindicates indicates that identifiers within this context are onl;y quoted if explicitly quoted.- 返回:
true/false
-
getImplicitIdColumnName
String getImplicitIdColumnName()
Identifies the column name to use for the identifier column if none specified in the mapping.- 返回:
- The implicit identifier column name
-
getImplicitTenantIdColumnName
String getImplicitTenantIdColumnName()
Identifies the column name to use for the tenant identifier column if none is specified in the mapping.- 返回:
- The implicit tenant identifier column name
-
getImplicitDiscriminatorColumnName
String getImplicitDiscriminatorColumnName()
Identifies the column name to use for the discriminator column if none specified in the mapping.- 返回:
- The implicit discriminator column name
-
getImplicitPackageName
String getImplicitPackageName()
Identifies the package name to use if none specified in the mapping. Really only pertinent forhbm.xmlmappings.- 返回:
- The implicit package name.
-
isAutoImportEnabled
boolean isAutoImportEnabled()
Is auto-importing of entity (short) names enabled?- 返回:
trueif auto-importing is enabled;falseotherwise.
-
getImplicitCascadeStyleName
String getImplicitCascadeStyleName()
Identifies the cascade style to apply to associations if none specified in the mapping.- 返回:
- The implicit cascade style
-
getImplicitPropertyAccessorName
String getImplicitPropertyAccessorName()
Identifies the defaultPropertyAccessStrategyname to use if none specified in the mapping.- 返回:
- The implicit property accessor name
- 另请参阅:
PropertyAccessStrategy
-
areEntitiesImplicitlyLazy
boolean areEntitiesImplicitlyLazy()
Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- 返回:
- The implicit association laziness
-
areCollectionsImplicitlyLazy
boolean areCollectionsImplicitlyLazy()
Identifies whether plural attributes are lazy by default if not specified in the mapping.- 返回:
- The implicit association laziness
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()
The cache access type to use if none is specified- 返回:
- The implicit cache access type.
-
-