@Test public void getSqlKeyTrue() throws Exception { assertThat(getSqlKey(getTestInputsSqlKey(true)), is("SQLQuery:c05adb0bad168df8966ba01a77697005f75ed8bd08815593c5524d6375312ccd")); }
@NotNull public static String getSqlKey(@NotNull final SQLInputs sqlInputs) { if (sqlInputs.isIgnoreCase()) { return SQLUtils.computeSessionId(sqlInputs.getDbServer().toLowerCase() + sqlInputs.getDbType().toLowerCase() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType().toLowerCase() + sqlInputs.getSqlCommand().toLowerCase() + sqlInputs.getKey()); } return SQLUtils.computeSessionId(sqlInputs.getDbServer() + sqlInputs.getDbType() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType() + sqlInputs.getSqlCommand() + sqlInputs.getKey()); }
SQLInputsUtils { @NotNull public static String getSqlKey(@NotNull final SQLInputs sqlInputs) { if (sqlInputs.isIgnoreCase()) { return SQLUtils.computeSessionId(sqlInputs.getDbServer().toLowerCase() + sqlInputs.getDbType().toLowerCase() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType().toLowerCase() + sqlInputs.getSqlCommand().toLowerCase() + sqlInputs.getKey()); } return SQLUtils.computeSessionId(sqlInputs.getDbServer() + sqlInputs.getDbType() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType() + sqlInputs.getSqlCommand() + sqlInputs.getKey()); } }
SQLInputsUtils { @NotNull public static String getSqlKey(@NotNull final SQLInputs sqlInputs) { if (sqlInputs.isIgnoreCase()) { return SQLUtils.computeSessionId(sqlInputs.getDbServer().toLowerCase() + sqlInputs.getDbType().toLowerCase() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType().toLowerCase() + sqlInputs.getSqlCommand().toLowerCase() + sqlInputs.getKey()); } return SQLUtils.computeSessionId(sqlInputs.getDbServer() + sqlInputs.getDbType() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType() + sqlInputs.getSqlCommand() + sqlInputs.getKey()); }  }
SQLInputsUtils { @NotNull public static String getSqlKey(@NotNull final SQLInputs sqlInputs) { if (sqlInputs.isIgnoreCase()) { return SQLUtils.computeSessionId(sqlInputs.getDbServer().toLowerCase() + sqlInputs.getDbType().toLowerCase() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType().toLowerCase() + sqlInputs.getSqlCommand().toLowerCase() + sqlInputs.getKey()); } return SQLUtils.computeSessionId(sqlInputs.getDbServer() + sqlInputs.getDbType() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType() + sqlInputs.getSqlCommand() + sqlInputs.getKey()); }  static boolean checkIsNetcool(@NotNull final String dbType); @NotNull static String getOrDefaultDBClass(final String dbClass, final String dbType); @NotNull static GlobalSessionObject<Map<String, Object>> getOrDefaultGlobalSessionObj(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject); @NotNull static String getOrLower(@NotNull final String aString, final boolean toLower); static int getOrDefaultDBPort(final String dbPort, final String dbType); @NotNull static List<String> getSqlCommands(final String sqlCommandsStr, final String scriptFileName, final String commandsDelimiter); @NotNull static List<String> getDbUrls(final String dbUrl); @NotNull static Properties getOrDefaultDBPoolingProperties(final String dbPoolingProperties, final String defaultVal); static int getResultSetConcurrency(final String resultSetConcurrency); static int getResultSetType(final String resultSetType); static int getResultSetTypeForDbType(final String resultSetType, final String dbType); static boolean notInCollectionIgnoreCase(final String toCheck, final Iterable<String> inList); static boolean inCollectionIgnoreCase(final String toCheck, final Iterable<String> inList); @NotNull static String getDbType(@NotNull final String dbType); @NotNull static String getSqlKey(@NotNull final SQLInputs sqlInputs); @NotNull static SqlDatabase getDbClassForType(@NotNull final String dbType); @NotNull static DBType getDbEnumForType(@NotNull final String dbType); }
SQLInputsUtils { @NotNull public static String getSqlKey(@NotNull final SQLInputs sqlInputs) { if (sqlInputs.isIgnoreCase()) { return SQLUtils.computeSessionId(sqlInputs.getDbServer().toLowerCase() + sqlInputs.getDbType().toLowerCase() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType().toLowerCase() + sqlInputs.getSqlCommand().toLowerCase() + sqlInputs.getKey()); } return SQLUtils.computeSessionId(sqlInputs.getDbServer() + sqlInputs.getDbType() + sqlInputs.getUsername() + sqlInputs.getPassword() + sqlInputs.getInstance() + sqlInputs.getDbPort() + sqlInputs.getDbName() + sqlInputs.getAuthenticationType() + sqlInputs.getSqlCommand() + sqlInputs.getKey()); }  static boolean checkIsNetcool(@NotNull final String dbType); @NotNull static String getOrDefaultDBClass(final String dbClass, final String dbType); @NotNull static GlobalSessionObject<Map<String, Object>> getOrDefaultGlobalSessionObj(@NotNull final GlobalSessionObject<Map<String, Object>> globalSessionObject); @NotNull static String getOrLower(@NotNull final String aString, final boolean toLower); static int getOrDefaultDBPort(final String dbPort, final String dbType); @NotNull static List<String> getSqlCommands(final String sqlCommandsStr, final String scriptFileName, final String commandsDelimiter); @NotNull static List<String> getDbUrls(final String dbUrl); @NotNull static Properties getOrDefaultDBPoolingProperties(final String dbPoolingProperties, final String defaultVal); static int getResultSetConcurrency(final String resultSetConcurrency); static int getResultSetType(final String resultSetType); static int getResultSetTypeForDbType(final String resultSetType, final String dbType); static boolean notInCollectionIgnoreCase(final String toCheck, final Iterable<String> inList); static boolean inCollectionIgnoreCase(final String toCheck, final Iterable<String> inList); @NotNull static String getDbType(@NotNull final String dbType); @NotNull static String getSqlKey(@NotNull final SQLInputs sqlInputs); @NotNull static SqlDatabase getDbClassForType(@NotNull final String dbType); @NotNull static DBType getDbEnumForType(@NotNull final String dbType);  }