Package org.hibernate.mapping
Class AbstractAuxiliaryDatabaseObject
java.lang.Object
org.hibernate.mapping.AbstractAuxiliaryDatabaseObject
- All Implemented Interfaces:
Serializable,AuxiliaryDatabaseObject,RelationalModel
- Direct Known Subclasses:
SimpleAuxiliaryDatabaseObject
public abstract class AbstractAuxiliaryDatabaseObject
extends Object
implements AuxiliaryDatabaseObject
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.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractAuxiliaryDatabaseObject(HashSet dialectScopes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDialectScope(String dialectName) Add the given dialect name to the scope of dialects to which this database object applies.booleanappliesToDialect(Dialect dialect) Does this database object apply to the given dialect?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.mapping.RelationalModel
sqlCreateString, sqlDropString
-
Constructor Details
-
AbstractAuxiliaryDatabaseObject
protected AbstractAuxiliaryDatabaseObject() -
AbstractAuxiliaryDatabaseObject
-
-
Method Details
-
addDialectScope
Description copied from interface:AuxiliaryDatabaseObjectAdd the given dialect name to the scope of dialects to which this database object applies.- Specified by:
addDialectScopein interfaceAuxiliaryDatabaseObject- Parameters:
dialectName- The name of a dialect.
-
getDialectScopes
-
appliesToDialect
Description copied from interface:AuxiliaryDatabaseObjectDoes this database object apply to the given dialect?- Specified by:
appliesToDialectin interfaceAuxiliaryDatabaseObject- Parameters:
dialect- The dialect to check against.- Returns:
- True if this database object does apply to the given dialect.
-