|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GrouperTestDdl>
edu.internet2.middleware.grouper.ddl.GrouperTestDdl
public enum GrouperTestDdl
test tables for junit
Enum Constant Summary | |
---|---|
V1
first version of grouper, make sure the ddl table is there |
Method Summary | |
---|---|
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 |
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()
|
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(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GrouperTestDdl V1
Method Detail |
---|
public static GrouperTestDdl[] values()
for (GrouperTestDdl c : GrouperTestDdl.values()) System.out.println(c);
public static GrouperTestDdl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getVersion()
DdlVersionable
getVersion
in interface DdlVersionable
DdlVersionable.getVersion()
public static int currentVersion()
public java.lang.String getObjectName()
DdlVersionable
getObjectName
in interface DdlVersionable
DdlVersionable.getObjectName()
public java.lang.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 java.lang.String[] getSampleTablenames()
getSampleTablenames
in interface DdlVersionable
public boolean recreateViewsAndForeignKeys()
recreateViewsAndForeignKeys
in interface DdlVersionable
DdlVersionable.recreateViewsAndForeignKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |