Class GrouperDdlEngine
java.lang.Object
edu.internet2.middleware.grouper.ddl.GrouperDdlEngine
runs ddl updates
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
if everything is the right versionstatic boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDllWorkerTableIfNeeded
(Boolean runScriptOverride) assignCallFromCommandLine
(boolean callFromCommandLine1) assignCompareFromDbVersion
(boolean theCompareFromDbVersion1) assignDeepCheck
(boolean theDeepCheck) assignDropBeforeCreate
(boolean theDropBeforeCreate) assignDropOnly
(boolean dropOnly1) just drop stuff, e.g.assignFromStartup
(boolean fromStartup1) if being called when grouper starts up to check DDLassignFromUnitTest
(boolean fromUnitTest1) true if just testing this methodassignInstallDefaultGrouperData
(boolean installDefaultGrouperData1) if registry install should be called afterwardsassignMaxVersions
(Map<String, DdlVersionable> maxVersions1) if unit testing, and not going to max, then associate object name with max versionassignPromptUser
(boolean promptUser1) promptUser to see if they want to do this...assignUseDdlUtils
(boolean theUseDdlUtils) assignWriteAndRunScript
(boolean theWriteAndRunScript) boolean
runDdl()
void
boolean
updateDdlIfNeededWithStaticSql
(Boolean runScriptOverride) return if up to date
-
Field Details
-
everythingRightVersion
public static boolean everythingRightVersionif everything is the right version -
installedGrouperFromScratchWithRunScript
public static boolean installedGrouperFromScratchWithRunScript
-
-
Constructor Details
-
GrouperDdlEngine
public GrouperDdlEngine()
-
-
Method Details
-
assignCallFromCommandLine
-
assignFromUnitTest
true if just testing this method -
assignCompareFromDbVersion
-
assignDropBeforeCreate
-
assignWriteAndRunScript
-
assignDropOnly
just drop stuff, e.g. for unit test -
assignInstallDefaultGrouperData
if registry install should be called afterwards -
assignMaxVersions
if unit testing, and not going to max, then associate object name with max version -
assignPromptUser
promptUser to see if they want to do this... if they havent been prompted already and if not configured not to prompt -
assignFromStartup
if being called when grouper starts up to check DDL- Parameters:
fromStartup1
-- Returns:
- this for chaining
-
assignUseDdlUtils
-
assignDeepCheck
-
addDllWorkerTableIfNeeded
-
updateDdlIfNeededWithStaticSql
return if up to date- Returns:
- true if up to date
-
runUpgradeTasks
public void runUpgradeTasks() -
runDdl
public boolean runDdl()- Returns:
- true if up to date, false if needs to run a script
-
getGrouperDdlCompareResult
-