de.opitzconsulting.orcas.diff.ParameterDefaults Maven / Gradle / Ivy
The newest version!
package de.opitzconsulting.orcas.diff;
import de.opitzconsulting.orcas.diff.Parameters.FailOnErrorMode;
public class ParameterDefaults {
public static final String jdbcdriver = "oracle.jdbc.OracleDriver";
public static final String scriptfolderPostfix = ".sql";
public static final String scriptfolderPrefix = "";
public static final boolean scriptfolderrecursive = true;
public static final String spoolfile = "orcas_spoolfile.sql";
public static final String spoolfolder = "log/";
public static final String loglevel = "info";
public static final FailOnErrorMode failOnErrorMode = FailOnErrorMode.ALWAYS;
public static final String usernameorcas = "";
public static final boolean logonly = false;
public static final boolean dropmode = false;
public static final boolean indexparallelcreate = true;
public static final boolean indexmovetablespace = true;
public static final boolean tablemovetablespace = true;
public static final boolean createmissingfkindexes = true;
public static final String excludewheretable = "object_name like '%$%'";
public static final String excludewheresequence = "object_name like '%$%'";
public static final String excludewheremview = "object_name like '%$%'";
public static final String dateformat = "dd.mm.yy";
public static final String extensionparameter = "";
public static final String targetplsql = "";
public static final String replaceablesfolder = "src/main/sql/replaceables";
public static final String staticsfolder = "src/main/sql/statics";
public static final boolean additionsonly = false;
public static final boolean logignoredstatements = true;
public static final String xmllogfile = "log.xml";
public static final boolean setunusedinsteadofdropcolumn = false;
public static final boolean indexonlinecreate = false;
public static final boolean minimizestatementcount = false;
public static final String charsetname = "UTF-8";
public static final String charsetnamesqllog = null;
public static final String excludewhereview = "1 = 0";
public static final String excludewhereobjecttype = "1 = 0";
public static final String excludewherepackage = "1 = 0";
public static final String excludewheretrigger = "1 = 0";
public static final String excludewherefunction = "1 = 0";
public static final String excludewhereprocedure = "1 = 0";
public static final boolean extractremovedefaultvaluesfrommodel = true;
public static final String viewextractmode = "text";
public static final boolean sqlplustable = false;
public static final boolean orderColumnsByName = false;
public static final boolean isOneTimeScriptLogonlyMode = false;
public static final boolean dbdocPlantuml = false;
public static final boolean logCompileErrors = true;
public static final boolean mviewlogmovetablespace = false;
public static String excludewheregrant = "not(owner = user)";
public static String excludewheresynonym = "not((owner = user) or (owner = 'PUBLIC' and table_owner = user and db_link is null))";
public static ExecuteSqlErrorHandler executeSqlErrorHandler =
(e, pSql, pCallableStatementProvider, pParameters, pExecuteSqlErrorHandlerCallback) -> {
switch (pParameters.getFailOnErrorMode()) {
case NEVER:
pExecuteSqlErrorHandlerCallback.logError();
return;
case ALWAYS:
pExecuteSqlErrorHandlerCallback.rethrow();
return;
case IGNORE_DROP:
if (pSql.toLowerCase().trim().startsWith("drop ")) {
pExecuteSqlErrorHandlerCallback.logInfo("ignoring: " + e.getMessage().trim() + " [" + pSql.trim() + "]");
return;
} else {
pExecuteSqlErrorHandlerCallback.rethrow();
return;
}
}
};
public static boolean updateEnabledStatus = false;
public static int staticsSpoolMaxLineLength = 2000;
public static boolean isExtractViewCommnents = false;
public static boolean isExtractViewCommnets = isExtractViewCommnents ;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy