public enum GrouperTestDdl extends Enum<GrouperTestDdl> implements DdlVersionable
Enum Constant and Description |
---|
V1
first version of grouper, make sure the ddl table is there
|
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
|
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 GrouperTestDdl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperTestDdl[] |
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, valueOf
getGrouperVersion
public static final GrouperTestDdl V1
public static GrouperTestDdl[] values()
for (GrouperTestDdl c : GrouperTestDdl.values()) System.out.println(c);
public static GrouperTestDdl 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()
DdlVersionable
requiresEmptyChangelog
in interface DdlVersionable
public int getVersion()
DdlVersionable
getVersion
in interface DdlVersionable
DdlVersionable.getVersion()
public static int currentVersion()
public String getObjectName()
DdlVersionable
getObjectName
in interface DdlVersionable
DdlVersionable.getObjectName()
public String getDefaultTablePattern()
DdlVersionable
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
getDefaultTablePattern
in interface DdlVersionable
DdlVersionable.getDefaultTablePattern()
public abstract void updateVersionFromPrevious(org.apache.ddlutils.model.Database database, DdlVersionBean ddlVersionBean)
DdlVersionable
updateVersionFromPrevious
in interface DdlVersionable
database
- ddlutils database objectddlVersionBean
- has references to stuff you needDdlVersionable.updateVersionFromPrevious(org.apache.ddlutils.model.Database, DdlVersionBean)
public void addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
addAllForeignKeysViewsEtc
in interface DdlVersionable
ddlVersionBean
- public void dropAllViews(DdlVersionBean ddlVersionBean)
dropAllViews
in interface DdlVersionable
ddlVersionBean
- public String[] getSampleTablenames()
getSampleTablenames
in interface DdlVersionable
public boolean recreateViewsAndForeignKeys()
recreateViewsAndForeignKeys
in interface DdlVersionable
DdlVersionable.recreateViewsAndForeignKeys()
Copyright © 2016 Internet2. All rights reserved.