public abstract class AbstractAuxiliaryDatabaseObject extends Object implements AuxiliaryDatabaseObject, AuxiliaryDatabaseObject.Expandable
Convenience base class for AuxiliaryDatabaseObjects.
<p/>
This implementation performs dialect scoping checks strictly based on
dialect name comparisons. Custom implementations might want to do
instanceof-type checks.
AuxiliaryDatabaseObject.Expandable| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAuxiliaryDatabaseObject() |
|
AbstractAuxiliaryDatabaseObject(boolean beforeTables) |
protected |
AbstractAuxiliaryDatabaseObject(boolean beforeTables,
Set<String> dialectScopes) |
protected |
AbstractAuxiliaryDatabaseObject(Set<String> dialectScopes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDialectScope(String dialectName) |
boolean |
appliesToDialect(Dialect dialect)
Does this database object apply to the given dialect?
|
boolean |
beforeTablesOnCreation()
Defines a simple precedence.
|
Set |
getDialectScopes() |
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsqlCreateStrings, sqlDropStringsprotected AbstractAuxiliaryDatabaseObject()
public AbstractAuxiliaryDatabaseObject(boolean beforeTables)
protected AbstractAuxiliaryDatabaseObject(Set<String> dialectScopes)
public String getExportIdentifier()
ExportableGet a unique identifier to make sure we are not exporting the same database structure multiple times.
getExportIdentifier in interface Exportablepublic void addDialectScope(String dialectName)
addDialectScope in interface AuxiliaryDatabaseObject.Expandablepublic Set getDialectScopes()
public boolean appliesToDialect(Dialect dialect)
AuxiliaryDatabaseObjectDoes this database object apply to the given dialect?
appliesToDialect in interface AuxiliaryDatabaseObjectdialect - The dialect to check against.public boolean beforeTablesOnCreation()
AuxiliaryDatabaseObjectDefines a simple precedence. Should creation of this auxiliary object happen before creation of
tables? If true, the auxiliary object creation will happen after any explicit schema creations
but before table/sequence creations; if false, the auxiliary object creation will happen after
explicit schema creations and after table/sequence creations.
This precedence is automatically inverted for dropping.
beforeTablesOnCreation in interface AuxiliaryDatabaseObjecttrue indicates this object should be created before tables; false indicates
it should be created after.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.