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, valueOf
getGrouperVersion
public 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()
DdlVersionable
requiresEmptyChangelog
in interface DdlVersionable
public static void generateOrgAssignment(DdlVersionBean ddlVersionBean)
ddlVersionBean
- 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.