public class OverriddenMappingDefaults extends Object implements MappingDefaults
Modifier and Type | Class and Description |
---|---|
static class |
OverriddenMappingDefaults.Builder |
DEFAULT_CASCADE_NAME, DEFAULT_DISCRIMINATOR_COLUMN_NAME, DEFAULT_IDENTIFIER_COLUMN_NAME, DEFAULT_PROPERTY_ACCESS_NAME, DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
Constructor and Description |
---|
OverriddenMappingDefaults(String implicitSchemaName,
String implicitCatalogName,
boolean implicitlyQuoteIdentifiers,
String implicitIdColumnName,
String implicitTenantIdColumnName,
String implicitDiscriminatorColumnName,
String implicitPackageName,
boolean autoImportEnabled,
String implicitCascadeStyleName,
String implicitPropertyAccessorName,
boolean entitiesImplicitlyLazy,
boolean pluralAttributesImplicitlyLazy,
AccessType implicitCacheAccessType) |
Modifier and Type | Method and Description |
---|---|
boolean |
areCollectionsImplicitlyLazy()
Identifies whether plural attributes are lazy by default if not specified in the mapping.
|
boolean |
areEntitiesImplicitlyLazy()
Identifies whether singular associations (many-to-one, one-to-one) are lazy
by default if not specified in the mapping.
|
AccessType |
getImplicitCacheAccessType()
The cache access type to use if none is specified
|
String |
getImplicitCascadeStyleName()
Identifies the cascade style to apply to associations if none specified in the mapping.
|
String |
getImplicitCatalogName()
Identifies the database catalog name to use if none specified in the mapping.
|
String |
getImplicitDiscriminatorColumnName()
Identifies the column name to use for the discriminator column if none specified
in the mapping.
|
String |
getImplicitIdColumnName()
Identifies the column name to use for the identifier column if none specified in
the mapping.
|
String |
getImplicitPackageName()
Identifies the package name to use if none specified in the mapping.
|
String |
getImplicitPropertyAccessorName()
Identifies the default
PropertyAccessStrategy name to use if none specified in the
mapping. |
String |
getImplicitSchemaName()
Identifies the database schema name to use if none specified in the mapping.
|
String |
getImplicitTenantIdColumnName()
Identifies the column name to use for the tenant identifier column if none is
specified in the mapping.
|
boolean |
isAutoImportEnabled()
Is auto-importing of entity (short) names enabled?
|
boolean |
shouldImplicitlyQuoteIdentifiers()
Should all database identifiers encountered in this context be implicitly quoted?
true indicates that all identifier encountered within this context should be
quoted. |
public OverriddenMappingDefaults(String implicitSchemaName, String implicitCatalogName, boolean implicitlyQuoteIdentifiers, String implicitIdColumnName, String implicitTenantIdColumnName, String implicitDiscriminatorColumnName, String implicitPackageName, boolean autoImportEnabled, String implicitCascadeStyleName, String implicitPropertyAccessorName, boolean entitiesImplicitlyLazy, boolean pluralAttributesImplicitlyLazy, AccessType implicitCacheAccessType)
public String getImplicitSchemaName()
MappingDefaults
getImplicitSchemaName
in interface MappingDefaults
null
public String getImplicitCatalogName()
MappingDefaults
getImplicitCatalogName
in interface MappingDefaults
null
public boolean shouldImplicitlyQuoteIdentifiers()
MappingDefaults
true
indicates that all identifier encountered within this context should be
quoted. false
indicates indicates that identifiers within this context are
onl;y quoted if explicitly quoted.shouldImplicitlyQuoteIdentifiers
in interface MappingDefaults
true
/false
public String getImplicitIdColumnName()
MappingDefaults
getImplicitIdColumnName
in interface MappingDefaults
public String getImplicitTenantIdColumnName()
MappingDefaults
getImplicitTenantIdColumnName
in interface MappingDefaults
public String getImplicitDiscriminatorColumnName()
MappingDefaults
getImplicitDiscriminatorColumnName
in interface MappingDefaults
public String getImplicitPackageName()
MappingDefaults
hbm.xml
mappings.getImplicitPackageName
in interface MappingDefaults
public boolean isAutoImportEnabled()
MappingDefaults
isAutoImportEnabled
in interface MappingDefaults
true
if auto-importing is enabled; false
otherwise.public String getImplicitCascadeStyleName()
MappingDefaults
getImplicitCascadeStyleName
in interface MappingDefaults
public String getImplicitPropertyAccessorName()
MappingDefaults
PropertyAccessStrategy
name to use if none specified in the
mapping.getImplicitPropertyAccessorName
in interface MappingDefaults
PropertyAccessStrategy
public boolean areEntitiesImplicitlyLazy()
MappingDefaults
areEntitiesImplicitlyLazy
in interface MappingDefaults
public boolean areCollectionsImplicitlyLazy()
MappingDefaults
areCollectionsImplicitlyLazy
in interface MappingDefaults
public AccessType getImplicitCacheAccessType()
MappingDefaults
getImplicitCacheAccessType
in interface MappingDefaults
Copyright © 2017 JBoss by Red Hat. All rights reserved.