FileDocCategorySizeDatePackage
AbstractAuxiliaryDatabaseObject.javaAPI DocHibernate 3.2.51127Wed Aug 10 07:16:56 BST 2005org.hibernate.mapping

AbstractAuxiliaryDatabaseObject

public abstract class AbstractAuxiliaryDatabaseObject extends Object implements AuxiliaryDatabaseObject
Convenience base class for {@link AuxiliaryDatabaseObject}s.

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

author
Steve Ebersole

Fields Summary
private final HashSet
dialectScopes
Constructors Summary
protected AbstractAuxiliaryDatabaseObject()

		this.dialectScopes = new HashSet();
	
protected AbstractAuxiliaryDatabaseObject(HashSet dialectScopes)

		this.dialectScopes = dialectScopes;
	
Methods Summary
public voidaddDialectScope(java.lang.String dialectName)

		dialectScopes.add( dialectName );
	
public booleanappliesToDialect(org.hibernate.dialect.Dialect dialect)

		// empty means no scoping
		return dialectScopes.isEmpty() || dialectScopes.contains( dialect.getClass().getName() );
	
public java.util.HashSetgetDialectScopes()

		return dialectScopes;