|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DdlVersionable
enums which are ddl version need to implement this interface
Method Summary | |
---|---|
void |
addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
add all foreign keys, views, table / col comments, etc |
void |
dropAllViews(DdlVersionBean ddlVersionBean)
drop all views at the beginning of the script... |
java.lang.String |
getDefaultTablePattern()
get the table pattern for this dbname (would be nice if there were no overlap, so ext's should not start with grouper, e.g. grouploader_ note that underscore is a wildcard which is unfortunate |
java.lang.String |
getObjectName()
get the object name of this enum, e.g. if GrouperEnum, the object name is Grouper |
java.lang.String[] |
getSampleTablenames()
an example table name so we can hone in on the exact metadata |
int |
getVersion()
get the version of this enum |
boolean |
recreateViewsAndForeignKeys()
|
void |
updateVersionFromPrevious(org.apache.ddlutils.model.Database database,
DdlVersionBean ddlVersionBean)
check to see if the changes are already made, and then add the changes to the database object that should be used to update from the previous version |
Method Detail |
---|
void addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
ddlVersionBean
- void dropAllViews(DdlVersionBean ddlVersionBean)
ddlVersionBean
- int getVersion()
java.lang.String getObjectName()
java.lang.String getDefaultTablePattern()
get the table pattern for this dbname (would be nice if there were no overlap, so ext's should not start with grouper, e.g. grouploader_ note that underscore is a wildcard which is unfortunate
java.lang.String[] getSampleTablenames()
void updateVersionFromPrevious(org.apache.ddlutils.model.Database database, DdlVersionBean ddlVersionBean)
database
- ddlutils database objectddlVersionBean
- has references to stuff you needboolean recreateViewsAndForeignKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |