Enum Class GcTableSyncSubtype
java.lang.Object
java.lang.Enum<GcTableSyncSubtype>
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcTableSyncSubtype
- All Implemented Interfaces:
Serializable,Comparable<GcTableSyncSubtype>,Constable
type of table sync
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionfull sync get primary keys and a col that if not matching indicates an updatefull sync all columnsfull sync but do groups on single col primary key or single group col (e.g. group name of memberships)full sync but do groups on single col primary key or single group col, and only do add or remove on groupsget all incremental rows and all columns in those rows (e.g. last updated col on source, which might not get deletes unless there is a disabled flag)get all incremental rows, which have the primary keys of rows that need updatingget all incremental rows, which have the primary keys of rows that need updating -
Method Summary
Modifier and TypeMethodDescriptionvoidformatData(Map<String, Object> debugMap, GcTableSync gcTableSync) abstract booleansee if full metadata syncabstract booleansee if full syncabstract booleansee if incremental syncbooleansee if full syncabstract voidretrieveData(Map<String, Object> debugMap, GcTableSync gcTableSync) do the initial select query for the syncstatic voidrunEmbeddedFullSync(Map<String, Object> debugMap, GcGrouperSyncJob gcGrouperSyncJob, GcGrouperSyncLog gcGrouperSyncLog, GcTableSyncSubtype switchFromIncrementalToFullSubtype) abstract IntegersyncData(Map<String, Object> debugMap, GcTableSync gcTableSync) do the initial compare stepsyncData(Map<String, Object> debugMap, GcTableSync gcTableSync, GcTableSyncPhase phase) phase-controlled variant of syncData.static intsyncGroupings(Map<String, Object> debugMap, GcTableSync gcTableSync, Collection<Object> groupings) sync groupings in fullstatic GcTableSyncSubtypeReturns the enum constant of this class with the specified name.static GcTableSyncSubtypevalueOfIgnoreCase(String string, boolean exceptionOnNull) do a case-insensitive matchingstatic GcTableSyncSubtype[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
fullSyncFull
full sync all columns -
fullSyncGroups
full sync but do groups on single col primary key or single group col (e.g. group name of memberships) -
fullSyncChangeFlag
full sync get primary keys and a col that if not matching indicates an update -
incrementalAllColumns
get all incremental rows and all columns in those rows (e.g. last updated col on source, which might not get deletes unless there is a disabled flag) -
incrementalPrimaryKey
get all incremental rows, which have the primary keys of rows that need updating -
fullSyncMetadata
full sync but do groups on single col primary key or single group col, and only do add or remove on groups -
incrementalFromIdentifiedPrimaryKeys
get all incremental rows, which have the primary keys of rows that need updating
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
syncGroupings
public static int syncGroupings(Map<String, Object> debugMap, GcTableSync gcTableSync, Collection<Object> groupings) sync groupings in full- Parameters:
debugMap-gcTableSync-groupings-- Returns:
- records changed
-
runEmbeddedFullSync
public static void runEmbeddedFullSync(Map<String, Object> debugMap, GcGrouperSyncJob gcGrouperSyncJob, GcGrouperSyncLog gcGrouperSyncLog, GcTableSyncSubtype switchFromIncrementalToFullSubtype) -
isFullSync
public abstract boolean isFullSync()see if full sync- Returns:
- true if full sync or false if incremental
-
isFullMetadataSync
public abstract boolean isFullMetadataSync()see if full metadata sync- Returns:
- true if full sync or false if incremental
-
isIncrementalSync
public abstract boolean isIncrementalSync()see if incremental sync- Returns:
- true if full sync or false if incremental
-
isNeedsGroupColumn
public boolean isNeedsGroupColumn()see if full sync- Returns:
- true if full sync or false if incremental
-
valueOfIgnoreCase
do a case-insensitive matching- Parameters:
string-exceptionOnNull- will not allow null or blank entries- Returns:
- the enum or null or exception if not found
-
retrieveData
do the initial select query for the sync- Parameters:
debugMap- , gcTableSync
-
syncData
do the initial compare step- Parameters:
debugMap- , gcTableSync- Returns:
- records changed or null if not applicable
-
syncData
public Integer syncData(Map<String, Object> debugMap, GcTableSync gcTableSync, GcTableSyncPhase phase) phase-controlled variant of syncData. Default implementation only honors INSERTS_UPDATES_DELETES; subtypes that support partial-phase sync should override.- Parameters:
debugMap-gcTableSync-phase- which DML phases to execute- Returns:
- records changed
-
formatData
-