Enum Class GrouperDdl

java.lang.Object
java.lang.Enum<GrouperDdl>
edu.internet2.middleware.grouper.ddl.GrouperDdl
All Implemented Interfaces:
DdlVersionable, Serializable, Comparable<GrouperDdl>, Constable

public enum GrouperDdl extends Enum<GrouperDdl> implements DdlVersionable
ddl versions and stuff for grouper. All ddl classes must have a currentVersion method that returns the current version.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    first version of grouper, make sure the ddl table is there
    delete field name/type if in the right situation
    delete backup cols if configured to and if exist
    delete create source and modify source cols if they exist
    change stem name index if applicable
    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
    add indexes on group attribute name cols
    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
    drop original columns in membership table not needed for 1.5.
    add last membership change
    add user auditing and context ids
    all tables and indexes from grouper v1.3
    add alternate name
    add change log
    add privilege management
    add column to grouper_attribute_assign_value, remove composite memberships where the member is a group, add owner_id column to grouper_group_set
    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
    Add point in time indexes, add additional subject data to member table, add last immediate membership change column to grouper_groups.
    Grouper 2.1: add alternate name for stems, add source_id columns to point in time tables
    Grouper 2.2: migrate from attributeDefType domain to service, add stem set table, add attribute read/update privs, take care of legacy attributes
    Grouper 2.2 - continued: finish legacy attributes
    Grouper 2.2.1
    add grouper loader
    Grouper 2.3.0
    Grouper 2.4.0
    Grouper 2.5.0
     
     
     
     
     
     
     
    add in the hibernate_version_number cols
     
     
     
     
     
     
     
     
     
     
    convert uuid/id to just id
     
     
     
     
     
     
     
     
     
     
    delete uuid if in right situation
     
     
     
     
     
     
     
     
     
     
    delete backup cols if configured to and is exist
     
    drop grouper_sessions table if exists
    update the fields id as a foreign key, keep backups of old data
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
    context id column name
    static final String
    size of id cols
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add all foreign keys
    static int
    keep the current version here, increment as things change
    static int
     
    void
    dropAllViews(DdlVersionBean ddlVersionBean)
    drop all views
    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
    get the grouper version for this version, e.g.
    get the object name of this enum, e.g.
    an example table name so we can hone in on the exact metadata
    int
    get the version of this enum
    boolean
     
    boolean
    if this version requires an empty changelog
    abstract void
    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
    Returns the enum constant of this class with the specified name.
    static GrouperDdl[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • V13

      public static final GrouperDdl V13
      change stem name index if applicable
    • V12

      public static final GrouperDdl V12
      delete create source and modify source cols if they exist
    • V14

      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
       
    • V15

      public static final GrouperDdl V15
      add indexes on group attribute name cols
    • V16

      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
       
    • V17

      public static final GrouperDdl V17
       drop original columns in membership table not needed for 1.5.  also add unique index and field indexes.
       
    • V18

      public static final GrouperDdl V18
       add last membership change
       
    • V19

      public static final GrouperDdl V19
       add user auditing and context ids
       
    • V20

      public static final GrouperDdl V20
       add alternate name
       
    • V21

      public static final GrouperDdl V21
       add change log
       
    • V22

      public static final GrouperDdl V22
       add privilege management
       
    • V23

      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
       
    • V24

      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
       
    • V25

      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.
       
    • V26

      public static final GrouperDdl V26
       Grouper 2.1: add alternate name for stems, add source_id columns to point in time tables
       
    • V11

      public static final GrouperDdl V11
      delete backup cols if configured to and if exist
    • V10

      public static final GrouperDdl V10
      delete field name/type if in the right situation
    • V9

      public static final GrouperDdl V9
      update the fields id as a foreign key, keep backups of old data
    • V8

      public static final GrouperDdl V8
      drop grouper_sessions table if exists
    • V7

      public static final GrouperDdl V7
      delete backup cols if configured to and is exist
    • V6

      public static final GrouperDdl V6
      delete uuid if in right situation
    • V5

      public static final GrouperDdl V5
      convert uuid/id to just id
    • V4

      public static final GrouperDdl V4
      add in the hibernate_version_number cols
    • V3

      public static final GrouperDdl V3
      add grouper loader
    • V2

      public static final GrouperDdl V2
      all tables and indexes from grouper v1.3
    • V1

      public static final GrouperDdl V1
      first version of grouper, make sure the ddl table is there
    • V27

      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
       
    • V28

      public static final GrouperDdl V28
       Grouper 2.2 - continued: finish legacy attributes
       
    • V29

      public static final GrouperDdl V29
       Grouper 2.2.1
       
    • V30

      public static final GrouperDdl V30
       Grouper 2.3.0
       
    • V31

      public static final GrouperDdl V31
       Grouper 2.4.0
       
    • V32

      public static final GrouperDdl V32
       Grouper 2.5.0
       
    • V33

      public static final GrouperDdl V33
    • V34

      public static final GrouperDdl V34
    • V35

      public static final GrouperDdl V35
    • V36

      public static final GrouperDdl V36
    • V37

      public static final GrouperDdl V37
    • V38

      public static final GrouperDdl V38
    • V39

      public static final GrouperDdl V39
    • V40

      public static final GrouperDdl V40
    • V41

      public static final GrouperDdl V41
    • V42

      public static final GrouperDdl V42
    • V43

      public static final GrouperDdl V43
    • V44

      public static final GrouperDdl V44
    • V45

      public static final GrouperDdl V45
    • V46

      public static final GrouperDdl V46
    • V47

      public static final GrouperDdl V47
    • V48

      public static final GrouperDdl V48
    • V49

      public static final GrouperDdl V49
    • V50

      public static final GrouperDdl V50
    • V51

      public static final GrouperDdl V51
    • V52

      public static final GrouperDdl V52
    • V53

      public static final GrouperDdl V53
    • V54

      public static final GrouperDdl V54
    • V55

      public static final GrouperDdl V55
    • V56

      public static final GrouperDdl V56
    • V57

      public static final GrouperDdl V57
    • V58

      public static final GrouperDdl V58
    • V59

      public static final GrouperDdl V59
    • V60

      public static final GrouperDdl V60
    • V61

      public static final GrouperDdl V61
    • V62

      public static final GrouperDdl V62
    • V63

      public static final GrouperDdl V63
    • V64

      public static final GrouperDdl V64
    • V65

      public static final GrouperDdl V65
    • V66

      public static final GrouperDdl V66
    • V67

      public static final GrouperDdl V67
    • V68

      public static final GrouperDdl V68
    • V69

      public static final GrouperDdl V69
    • V70

      public static final GrouperDdl V70
  • Field Details

  • Method Details