public enum GrouperOrgDdl extends Enum<GrouperOrgDdl> implements DdlVersionable
| Enum Constant and Description |
|---|
V1
first version of org test grouper, this is all dynamic
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
add all foreign keys
|
static int |
currentVersion()
keep the current version here, increment as things change
|
void |
dropAllViews(DdlVersionBean ddlVersionBean)
drop all views
|
static void |
generateOrgAssignment(DdlVersionBean ddlVersionBean)
create the assignments
|
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.
|
String |
getObjectName()
get the object name of this enum, e.g.
|
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() |
boolean |
requiresEmptyChangelog()
if this version requires an empty changelog
|
abstract 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
|
static GrouperOrgDdl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperOrgDdl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetGrouperVersionpublic static final GrouperOrgDdl V1
public static GrouperOrgDdl[] values()
for (GrouperOrgDdl c : GrouperOrgDdl.values()) System.out.println(c);
public static GrouperOrgDdl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean requiresEmptyChangelog()
DdlVersionablerequiresEmptyChangelog in interface DdlVersionablepublic static void generateOrgAssignment(DdlVersionBean ddlVersionBean)
ddlVersionBean - public int getVersion()
DdlVersionablegetVersion in interface DdlVersionableDdlVersionable.getVersion()public static int currentVersion()
public String getObjectName()
DdlVersionablegetObjectName in interface DdlVersionableDdlVersionable.getObjectName()public String getDefaultTablePattern()
DdlVersionableget 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
getDefaultTablePattern in interface DdlVersionableDdlVersionable.getDefaultTablePattern()public abstract void updateVersionFromPrevious(org.apache.ddlutils.model.Database database,
DdlVersionBean ddlVersionBean)
DdlVersionableupdateVersionFromPrevious in interface DdlVersionabledatabase - ddlutils database objectddlVersionBean - has references to stuff you needDdlVersionable.updateVersionFromPrevious(org.apache.ddlutils.model.Database, DdlVersionBean)public void addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
addAllForeignKeysViewsEtc in interface DdlVersionableddlVersionBean - public void dropAllViews(DdlVersionBean ddlVersionBean)
dropAllViews in interface DdlVersionableddlVersionBean - public String[] getSampleTablenames()
getSampleTablenames in interface DdlVersionablepublic boolean recreateViewsAndForeignKeys()
recreateViewsAndForeignKeys in interface DdlVersionableDdlVersionable.recreateViewsAndForeignKeys()Copyright © 2016 Internet2. All rights reserved.