Enum Class GcTableSyncSubtype
java.lang.Object
java.lang.Enum<GcTableSyncSubtype>
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcTableSyncSubtype
- All Implemented Interfaces:
Serializable
,Comparable<GcTableSyncSubtype>
,java.lang.constant.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 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.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.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 TypeMethodDescriptionvoid
formatData
(Map<String, Object> debugMap, GcTableSync gcTableSync) abstract boolean
see if full metadata syncabstract boolean
see if full syncabstract boolean
see if incremental syncboolean
see if full syncabstract void
retrieveData
(Map<String, Object> debugMap, GcTableSync gcTableSync) do the initial select query for the syncstatic void
runEmbeddedFullSync
(Map<String, Object> debugMap, GcGrouperSyncJob gcGrouperSyncJob, GcGrouperSyncLog gcGrouperSyncLog, GcTableSyncSubtype switchFromIncrementalToFullSubtype) abstract Integer
syncData
(Map<String, Object> debugMap, GcTableSync gcTableSync) do the initial compare stepstatic int
syncGroupings
(Map<String, Object> debugMap, GcTableSync gcTableSync, Collection<Object> groupings) sync groupings in fullstatic GcTableSyncSubtype
Returns the enum constant of this class with the specified name.static GcTableSyncSubtype
valueOfIgnoreCase
(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
-
formatData
-