Top Description Fields Constructors Methods
org.hibernate.mapping

public abstract Class AbstractAuxiliaryDatabaseObject

extends Object
implements AuxiliaryDatabaseObject
Class Inheritance
All Implemented Interfaces
org.hibernate.mapping.AuxiliaryDatabaseObject, java.io.Serializable, org.hibernate.mapping.RelationalModel
Known Direct Subclasses
org.hibernate.mapping.SimpleAuxiliaryDatabaseObject
Imports
java.util.HashSet, org.hibernate.dialect.Dialect

Convenience base class for AuxiliaryDatabaseObjects.

This implementation performs dialect scoping checks strictly based on dialect name comparisons. Custom implementations might want to do instanceof-type checks.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final HashSet<E>

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public void
addDialectScope(String
The name of a dialect.
dialectName
)

Implements org.hibernate.mapping.AuxiliaryDatabaseObject.addDialectScope.

Add the given dialect name to the scope of dialects to which this database object applies.
public boolean
appliesToDialect(Dialect
The dialect to check against.
dialect
)

Implements org.hibernate.mapping.AuxiliaryDatabaseObject.appliesToDialect.

Does this database object apply to the given dialect?
public HashSet<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialectScopesback to summary
private final HashSet<E> dialectScopes

Constructor Detail

AbstractAuxiliaryDatabaseObjectback to summary
protected AbstractAuxiliaryDatabaseObject()
AbstractAuxiliaryDatabaseObjectback to summary
protected AbstractAuxiliaryDatabaseObject(HashSet<E> dialectScopes)

Method Detail

addDialectScopeback to summary
public void addDialectScope(String dialectName)

Implements org.hibernate.mapping.AuxiliaryDatabaseObject.addDialectScope.

Doc from org.hibernate.mapping.AuxiliaryDatabaseObject.addDialectScope.

Add the given dialect name to the scope of dialects to which this database object applies.

Parameters
dialectName:String

The name of a dialect.

appliesToDialectback to summary
public boolean appliesToDialect(Dialect dialect)

Implements org.hibernate.mapping.AuxiliaryDatabaseObject.appliesToDialect.

Doc from org.hibernate.mapping.AuxiliaryDatabaseObject.appliesToDialect.

Does this database object apply to the given dialect?

Parameters
dialect:Dialect

The dialect to check against.

Returns:boolean

True if this database object does apply to the given dialect.

getDialectScopesback to summary
public HashSet<E> getDialectScopes()