public abstract class AbstractAuxiliaryDatabaseObject extends Object implements AuxiliaryDatabaseObject, AuxiliaryDatabaseObject.Expandable
AuxiliaryDatabaseObject
s.
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, wait
sqlCreateStrings, sqlDropStrings
protected AbstractAuxiliaryDatabaseObject()
public AbstractAuxiliaryDatabaseObject(boolean beforeTables)
protected AbstractAuxiliaryDatabaseObject(Set<String> dialectScopes)
public String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public void addDialectScope(String dialectName)
addDialectScope
in interface AuxiliaryDatabaseObject.Expandable
public Set getDialectScopes()
public boolean appliesToDialect(Dialect dialect)
AuxiliaryDatabaseObject
appliesToDialect
in interface AuxiliaryDatabaseObject
dialect
- The dialect to check against.public boolean beforeTablesOnCreation()
AuxiliaryDatabaseObject
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 AuxiliaryDatabaseObject
true
indicates this object should be created before tables; false
indicates
it should be created after.Copyright © 2016 JBoss by Red Hat. All rights reserved.