public enum GrouperDdl extends Enum<GrouperDdl> implements DdlVersionable
Enum Constant and Description |
---|
V1
first version of grouper, make sure the ddl table is there
|
V10
delete field name/type if in the right situation
|
V11
delete backup cols if configured to and if exist
|
V12
delete create source and modify source cols if they exist
|
V13
change stem name index if applicable
|
V14
if needs upgrade:
backup attribute table, create group cols if not exist, move data to groups,
delete old attribute data,
if configured to drop backup attribute table, and it exists, then drop it
|
V15
add indexes on group attribute name cols
|
V16
if needs upgrade:
backup memberships table, create new tables, views, columns if not exist, move data around,
delete old data,
if configured to drop backup membership cols, and they exists, then drop them
|
V17
drop original columns in membership table not needed for 1.5.
|
V18
add last membership change
|
V19
add user auditing and context ids
|
V2
all tables and indexes from grouper v1.3
|
V20
add alternate name
|
V21
add change log
|
V22
add privilege management
|
V23
add column to grouper_attribute_assign_value, remove composite memberships where the member is a group,
add owner_id column to grouper_group_set
|
V24
Delete flat tables, add PIT tables, update unique index in grouper_group_set, add external subject tables,
add index for in table grouper_attribute_def
|
V25
Add point in time indexes, add additional subject data to member table, add last immediate membership change column to grouper_groups.
|
V26
Grouper 2.1: add alternate name for stems, add source_id columns to point in time tables
|
V27
Grouper 2.2: migrate from attributeDefType domain to service, add stem set table, add attribute read/update privs, take care of legacy attributes
|
V28
Grouper 2.2 - continued: finish legacy attributes
|
V29
Grouper 2.2.1
|
V3
add grouper loader
|
V30
Grouper 2.3.0
|
V31
Grouper 2.4.0
|
V32
Grouper 2.5.0
|
V33 |
V34 |
V35 |
V36 |
V37 |
V38 |
V39 |
V4
add in the hibernate_version_number cols
|
V40 |
V41 |
V42 |
V43 |
V44 |
V45 |
V46 |
V47 |
V48 |
V49 |
V5
convert uuid/id to just id
|
V50 |
V51 |
V52 |
V53 |
V54 |
V55 |
V56 |
V57 |
V58 |
V59 |
V6
delete uuid if in right situation
|
V60 |
V61 |
V62 |
V63 |
V64 |
V65 |
V66 |
V67 |
V68 |
V69 |
V7
delete backup cols if configured to and is exist
|
V70 |
V8
drop grouper_sessions table if exists
|
V9
update the fields id as a foreign key, keep backups of old data
|
Modifier and Type | Field and Description |
---|---|
static String |
BAK_GROUPER_ATTRIBUTES |
static String |
COLUMN_CONTEXT_ID
context id column name
|
static String |
ID_SIZE
size of id cols
|
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.
|
abstract String |
getGrouperVersion()
get the grouper version for this version, 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 GrouperDdl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperDdl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrouperDdl V13
public static final GrouperDdl V12
public static final GrouperDdl V14
if needs upgrade: backup attribute table, create group cols if not exist, move data to groups, delete old attribute data, if configured to drop backup attribute table, and it exists, then drop it
public static final GrouperDdl V15
public static final GrouperDdl V16
if needs upgrade: backup memberships table, create new tables, views, columns if not exist, move data around, delete old data, if configured to drop backup membership cols, and they exists, then drop them
public static final GrouperDdl V17
drop original columns in membership table not needed for 1.5. also add unique index and field indexes.
public static final GrouperDdl V18
add last membership change
public static final GrouperDdl V19
add user auditing and context ids
public static final GrouperDdl V20
add alternate name
public static final GrouperDdl V21
add change log
public static final GrouperDdl V22
add privilege management
public static final GrouperDdl V23
add column to grouper_attribute_assign_value, remove composite memberships where the member is a group, add owner_id column to grouper_group_set
public static final GrouperDdl V24
Delete flat tables, add PIT tables, update unique index in grouper_group_set, add external subject tables, add index for in table grouper_attribute_def
public static final GrouperDdl V25
Add point in time indexes, add additional subject data to member table, add last immediate membership change column to grouper_groups.
public static final GrouperDdl V26
Grouper 2.1: add alternate name for stems, add source_id columns to point in time tables
public static final GrouperDdl V11
public static final GrouperDdl V10
public static final GrouperDdl V9
public static final GrouperDdl V8
public static final GrouperDdl V7
public static final GrouperDdl V6
public static final GrouperDdl V5
public static final GrouperDdl V4
public static final GrouperDdl V3
public static final GrouperDdl V2
public static final GrouperDdl V1
public static final GrouperDdl V27
Grouper 2.2: migrate from attributeDefType domain to service, add stem set table, add attribute read/update privs, take care of legacy attributes
public static final GrouperDdl V28
Grouper 2.2 - continued: finish legacy attributes
public static final GrouperDdl V29
Grouper 2.2.1
public static final GrouperDdl V30
Grouper 2.3.0
public static final GrouperDdl V31
Grouper 2.4.0
public static final GrouperDdl V32
Grouper 2.5.0
public static final GrouperDdl V33
public static final GrouperDdl V34
public static final GrouperDdl V35
public static final GrouperDdl V36
public static final GrouperDdl V37
public static final GrouperDdl V38
public static final GrouperDdl V39
public static final GrouperDdl V40
public static final GrouperDdl V41
public static final GrouperDdl V42
public static final GrouperDdl V43
public static final GrouperDdl V44
public static final GrouperDdl V45
public static final GrouperDdl V46
public static final GrouperDdl V47
public static final GrouperDdl V48
public static final GrouperDdl V49
public static final GrouperDdl V50
public static final GrouperDdl V51
public static final GrouperDdl V52
public static final GrouperDdl V53
public static final GrouperDdl V54
public static final GrouperDdl V55
public static final GrouperDdl V56
public static final GrouperDdl V57
public static final GrouperDdl V58
public static final GrouperDdl V59
public static final GrouperDdl V60
public static final GrouperDdl V61
public static final GrouperDdl V62
public static final GrouperDdl V63
public static final GrouperDdl V64
public static final GrouperDdl V65
public static final GrouperDdl V66
public static final GrouperDdl V67
public static final GrouperDdl V68
public static final GrouperDdl V69
public static final GrouperDdl V70
public static final String COLUMN_CONTEXT_ID
public static final String BAK_GROUPER_ATTRIBUTES
public static final String ID_SIZE
public static GrouperDdl[] values()
for (GrouperDdl c : GrouperDdl.values()) System.out.println(c);
public static GrouperDdl 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 int getVersion()
DdlVersionable
getVersion
in interface DdlVersionable
DdlVersionable.getVersion()
public abstract String getGrouperVersion()
getGrouperVersion
in interface DdlVersionable
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 dropAllViews(DdlVersionBean ddlVersionBean)
dropAllViews
in interface DdlVersionable
ddlVersionBean
- public void addAllForeignKeysViewsEtc(DdlVersionBean ddlVersionBean)
addAllForeignKeysViewsEtc
in interface DdlVersionable
ddlVersionBean
- public String[] getSampleTablenames()
getSampleTablenames
in interface DdlVersionable
public boolean requiresEmptyChangelog()
DdlVersionable
requiresEmptyChangelog
in interface DdlVersionable
public boolean recreateViewsAndForeignKeys()
recreateViewsAndForeignKeys
in interface DdlVersionable
DdlVersionable.recreateViewsAndForeignKeys()
Copyright © 2016 Internet2. All rights reserved.