Method from com.mysql.jdbc.ConnectionPropertiesImpl Detail: |
protected static DriverPropertyInfo[] exposeAsDriverPropertyInfo(Properties info,
int slotsToReserve) throws SQLException {
return (new ConnectionPropertiesImpl() {
}).exposeAsDriverPropertyInfoInternal(info, slotsToReserve);
}
Exposes all ConnectionPropertyInfo instances as DriverPropertyInfo |
protected DriverPropertyInfo[] exposeAsDriverPropertyInfoInternal(Properties info,
int slotsToReserve) throws SQLException {
initializeProperties(info);
int numProperties = PROPERTY_LIST.size();
int listSize = numProperties + slotsToReserve;
DriverPropertyInfo[] driverProperties = new DriverPropertyInfo[listSize];
for (int i = slotsToReserve; i < listSize; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i - slotsToReserve);
try {
ConnectionProperty propToExpose = (ConnectionProperty) propertyField
.get(this);
if (info != null) {
propToExpose.initializeFrom(info);
}
driverProperties[i] = propToExpose.getAsDriverPropertyInfo();
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException(Messages.getString("ConnectionProperties.InternalPropertiesFailure"), //$NON-NLS-1$
SQLError.SQL_STATE_GENERAL_ERROR, getExceptionInterceptor());
}
}
return driverProperties;
}
|
protected Properties exposeAsProperties(Properties info) throws SQLException {
if (info == null) {
info = new Properties();
}
int numPropertiesToSet = PROPERTY_LIST.size();
for (int i = 0; i < numPropertiesToSet; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i);
try {
ConnectionProperty propToGet = (ConnectionProperty) propertyField
.get(this);
Object propValue = propToGet.getValueAsObject();
if (propValue != null) {
info.setProperty(propToGet.getPropertyName(), propValue
.toString());
}
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException("Internal properties failure", //$NON-NLS-1$
SQLError.SQL_STATE_GENERAL_ERROR, getExceptionInterceptor());
}
}
return info;
}
|
public String exposeAsXml() throws SQLException {
StringBuffer xmlBuf = new StringBuffer();
xmlBuf.append("< ConnectionProperties >"); //$NON-NLS-1$
int numPropertiesToSet = PROPERTY_LIST.size();
int numCategories = PROPERTY_CATEGORIES.length;
Map propertyListByCategory = new HashMap();
for (int i = 0; i < numCategories; i++) {
propertyListByCategory.put(PROPERTY_CATEGORIES[i], new Map[] {
new TreeMap(), new TreeMap() });
}
//
// The following properties are not exposed as 'normal' properties, but
// they are
// settable nonetheless, so we need to have them documented, make sure
// that they sort 'first' as #1 and #2 in the category
//
StringConnectionProperty userProp = new StringConnectionProperty(
NonRegisteringDriver.USER_PROPERTY_KEY, null,
Messages.getString("ConnectionProperties.Username"), Messages.getString("ConnectionProperties.allVersions"), CONNECTION_AND_AUTH_CATEGORY, //$NON-NLS-1$ //$NON-NLS-2$
Integer.MIN_VALUE + 1);
StringConnectionProperty passwordProp = new StringConnectionProperty(
NonRegisteringDriver.PASSWORD_PROPERTY_KEY, null,
Messages.getString("ConnectionProperties.Password"), Messages.getString("ConnectionProperties.allVersions"), //$NON-NLS-1$ //$NON-NLS-2$
CONNECTION_AND_AUTH_CATEGORY, Integer.MIN_VALUE + 2);
Map[] connectionSortMaps = (Map[]) propertyListByCategory
.get(CONNECTION_AND_AUTH_CATEGORY);
TreeMap userMap = new TreeMap();
userMap.put(userProp.getPropertyName(), userProp);
connectionSortMaps[0].put(new Integer(userProp.getOrder()), userMap);
TreeMap passwordMap = new TreeMap();
passwordMap.put(passwordProp.getPropertyName(), passwordProp);
connectionSortMaps[0]
.put(new Integer(passwordProp.getOrder()), passwordMap);
try {
for (int i = 0; i < numPropertiesToSet; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i);
ConnectionProperty propToGet = (ConnectionProperty) propertyField
.get(this);
Map[] sortMaps = (Map[]) propertyListByCategory.get(propToGet
.getCategoryName());
int orderInCategory = propToGet.getOrder();
if (orderInCategory == Integer.MIN_VALUE) {
sortMaps[1].put(propToGet.getPropertyName(), propToGet);
} else {
Integer order = new Integer(orderInCategory);
Map orderMap = (Map)sortMaps[0].get(order);
if (orderMap == null) {
orderMap = new TreeMap();
sortMaps[0].put(order, orderMap);
}
orderMap.put(propToGet.getPropertyName(), propToGet);
}
}
for (int j = 0; j < numCategories; j++) {
Map[] sortMaps = (Map[]) propertyListByCategory
.get(PROPERTY_CATEGORIES[j]);
Iterator orderedIter = sortMaps[0].values().iterator();
Iterator alphaIter = sortMaps[1].values().iterator();
xmlBuf.append("\n < PropertyCategory name=\""); //$NON-NLS-1$
xmlBuf.append(PROPERTY_CATEGORIES[j]);
xmlBuf.append("\" >"); //$NON-NLS-1$
while (orderedIter.hasNext()) {
Iterator orderedAlphaIter = ((Map)orderedIter.next()).values().iterator();
while (orderedAlphaIter.hasNext()) {
ConnectionProperty propToGet = (ConnectionProperty) orderedAlphaIter
.next();
xmlBuf.append("\n < Property name=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.getPropertyName());
xmlBuf.append("\" required=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.required ? "Yes" : "No"); //$NON-NLS-1$ //$NON-NLS-2$
xmlBuf.append("\" default=\""); //$NON-NLS-1$
if (propToGet.getDefaultValue() != null) {
xmlBuf.append(propToGet.getDefaultValue());
}
xmlBuf.append("\" sortOrder=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.getOrder());
xmlBuf.append("\" since=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.sinceVersion);
xmlBuf.append("\" >\n"); //$NON-NLS-1$
xmlBuf.append(" "); //$NON-NLS-1$
xmlBuf.append(propToGet.description);
xmlBuf.append("\n < /Property >"); //$NON-NLS-1$
}
}
while (alphaIter.hasNext()) {
ConnectionProperty propToGet = (ConnectionProperty) alphaIter
.next();
xmlBuf.append("\n < Property name=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.getPropertyName());
xmlBuf.append("\" required=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.required ? "Yes" : "No"); //$NON-NLS-1$ //$NON-NLS-2$
xmlBuf.append("\" default=\""); //$NON-NLS-1$
if (propToGet.getDefaultValue() != null) {
xmlBuf.append(propToGet.getDefaultValue());
}
xmlBuf.append("\" sortOrder=\"alpha\" since=\""); //$NON-NLS-1$
xmlBuf.append(propToGet.sinceVersion);
xmlBuf.append("\" >\n"); //$NON-NLS-1$
xmlBuf.append(" "); //$NON-NLS-1$
xmlBuf.append(propToGet.description);
xmlBuf.append("\n < /Property >"); //$NON-NLS-1$
}
xmlBuf.append("\n < /PropertyCategory >"); //$NON-NLS-1$
}
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException("Internal properties failure", //$NON-NLS-1$
SQLError.SQL_STATE_GENERAL_ERROR, getExceptionInterceptor());
}
xmlBuf.append("\n< /ConnectionProperties >"); //$NON-NLS-1$
return xmlBuf.toString();
}
|
public boolean getAllowLoadLocalInfile() {
return this.allowLoadLocalInfile.getValueAsBoolean();
}
|
public boolean getAllowMultiQueries() {
return this.allowMultiQueries.getValueAsBoolean();
}
|
public boolean getAllowNanAndInf() {
return allowNanAndInf.getValueAsBoolean();
}
|
public boolean getAllowUrlInLocalInfile() {
return this.allowUrlInLocalInfile.getValueAsBoolean();
}
|
public boolean getAlwaysSendSetIsolation() {
return this.alwaysSendSetIsolation.getValueAsBoolean();
}
|
public boolean getAutoClosePStmtStreams() {
return this.autoClosePStmtStreams.getValueAsBoolean();
}
|
public boolean getAutoDeserialize() {
return autoDeserialize.getValueAsBoolean();
}
|
public boolean getAutoGenerateTestcaseScript() {
return this.autoGenerateTestcaseScriptAsBoolean;
}
|
public boolean getAutoReconnectForPools() {
return this.autoReconnectForPoolsAsBoolean;
}
|
public boolean getAutoSlowLog() {
return this.autoSlowLog.getValueAsBoolean();
}
|
public int getBlobSendChunkSize() {
return blobSendChunkSize.getValueAsInt();
}
|
public boolean getBlobsAreStrings() {
return this.blobsAreStrings.getValueAsBoolean();
}
|
public boolean getCacheCallableStatements() {
return this.cacheCallableStatements.getValueAsBoolean();
}
|
public boolean getCacheCallableStmts() {
return getCacheCallableStatements();
}
|
public boolean getCachePrepStmts() {
return getCachePreparedStatements();
}
|
public boolean getCachePreparedStatements() {
return ((Boolean) this.cachePreparedStatements.getValueAsObject())
.booleanValue();
}
|
public boolean getCacheResultSetMetadata() {
return this.cacheResultSetMetaDataAsBoolean;
}
|
public boolean getCacheServerConfiguration() {
return cacheServerConfiguration.getValueAsBoolean();
}
|
public int getCallableStatementCacheSize() {
return this.callableStatementCacheSize.getValueAsInt();
}
|
public int getCallableStmtCacheSize() {
return getCallableStatementCacheSize();
}
|
public boolean getCapitalizeTypeNames() {
return this.capitalizeTypeNames.getValueAsBoolean();
}
|
public String getCharacterSetResults() {
return this.characterSetResults.getValueAsString();
}
|
public String getClientCertificateKeyStorePassword() {
return clientCertificateKeyStorePassword.getValueAsString();
}
|
public String getClientCertificateKeyStoreType() {
return clientCertificateKeyStoreType.getValueAsString();
}
|
public String getClientCertificateKeyStoreUrl() {
return clientCertificateKeyStoreUrl.getValueAsString();
}
|
public String getClientInfoProvider() {
return this.clientInfoProvider.getValueAsString();
}
|
public String getClobCharacterEncoding() {
return this.clobCharacterEncoding.getValueAsString();
}
|
public boolean getClobberStreamingResults() {
return this.clobberStreamingResults.getValueAsBoolean();
}
|
public boolean getCompensateOnDuplicateKeyUpdateCounts() {
return this.compensateOnDuplicateKeyUpdateCounts.getValueAsBoolean();
}
|
public int getConnectTimeout() {
return this.connectTimeout.getValueAsInt();
}
|
public String getConnectionCollation() {
return this.connectionCollation.getValueAsString();
}
|
public String getConnectionLifecycleInterceptors() {
return this.connectionLifecycleInterceptors.getValueAsString();
}
|
public boolean getContinueBatchOnError() {
return this.continueBatchOnError.getValueAsBoolean();
}
|
public boolean getCreateDatabaseIfNotExist() {
return this.createDatabaseIfNotExist.getValueAsBoolean();
}
|
public int getDefaultFetchSize() {
return this.defaultFetchSize.getValueAsInt();
}
|
public boolean getDontTrackOpenResources() {
return this.dontTrackOpenResources.getValueAsBoolean();
}
|
public boolean getDumpMetadataOnColumnNotFound() {
return this.dumpMetadataOnColumnNotFound.getValueAsBoolean();
}
|
public boolean getDumpQueriesOnException() {
return this.dumpQueriesOnException.getValueAsBoolean();
}
|
public boolean getDynamicCalendars() {
return this.dynamicCalendars.getValueAsBoolean();
}
|
public boolean getElideSetAutoCommits() {
return this.elideSetAutoCommits.getValueAsBoolean();
}
|
public boolean getEmptyStringsConvertToZero() {
return this.emptyStringsConvertToZero.getValueAsBoolean();
}
|
public boolean getEmulateLocators() {
return this.emulateLocators.getValueAsBoolean();
}
|
public boolean getEmulateUnsupportedPstmts() {
return this.emulateUnsupportedPstmts.getValueAsBoolean();
}
|
public boolean getEnablePacketDebug() {
return this.enablePacketDebug.getValueAsBoolean();
}
|
public boolean getEnableQueryTimeouts() {
return this.enableQueryTimeouts.getValueAsBoolean();
}
|
public String getEncoding() {
return this.characterEncodingAsString;
}
|
public ExceptionInterceptor getExceptionInterceptor() {
return null;
}
|
public String getExceptionInterceptors() {
return this.exceptionInterceptors.getValueAsString();
}
|
public boolean getExplainSlowQueries() {
return this.explainSlowQueries.getValueAsBoolean();
}
|
public boolean getFailOverReadOnly() {
return this.failOverReadOnly.getValueAsBoolean();
}
|
public boolean getFunctionsNeverReturnBlobs() {
return this.functionsNeverReturnBlobs.getValueAsBoolean();
}
|
public boolean getGatherPerfMetrics() {
return getGatherPerformanceMetrics();
}
|
public boolean getGatherPerformanceMetrics() {
return this.gatherPerformanceMetrics.getValueAsBoolean();
}
|
public boolean getGenerateSimpleParameterMetadata() {
return this.generateSimpleParameterMetadata.getValueAsBoolean();
}
|
protected boolean getHighAvailability() {
return this.highAvailabilityAsBoolean;
}
|
public boolean getHoldResultsOpenOverStatementClose() {
return holdResultsOpenOverStatementClose.getValueAsBoolean();
}
|
public boolean getIgnoreNonTxTables() {
return this.ignoreNonTxTables.getValueAsBoolean();
}
|
public boolean getIncludeInnodbStatusInDeadlockExceptions() {
return this.includeInnodbStatusInDeadlockExceptions.getValueAsBoolean();
}
|
public int getInitialTimeout() {
return this.initialTimeout.getValueAsInt();
}
|
public boolean getInteractiveClient() {
return this.isInteractiveClient.getValueAsBoolean();
}
|
public boolean getIsInteractiveClient() {
return this.isInteractiveClient.getValueAsBoolean();
}
|
public boolean getJdbcCompliantTruncation() {
return this.jdbcCompliantTruncation.getValueAsBoolean();
}
|
public boolean getJdbcCompliantTruncationForReads() {
return this.jdbcCompliantTruncationForReads;
}
|
public String getLargeRowSizeThreshold() {
return this.largeRowSizeThreshold.getValueAsString();
}
|
public int getLoadBalanceBlacklistTimeout() {
return loadBalanceBlacklistTimeout.getValueAsInt();
}
|
public String getLoadBalanceStrategy() {
return this.loadBalanceStrategy.getValueAsString();
}
|
public String getLocalSocketAddress() {
return this.localSocketAddress.getValueAsString();
}
|
public int getLocatorFetchBufferSize() {
return this.locatorFetchBufferSize.getValueAsInt();
}
|
public boolean getLogSlowQueries() {
return this.logSlowQueries.getValueAsBoolean();
}
|
public boolean getLogXaCommands() {
return this.logXaCommands.getValueAsBoolean();
}
|
public String getLogger() {
return this.loggerClassName.getValueAsString();
}
|
public String getLoggerClassName() {
return this.loggerClassName.getValueAsString();
}
|
public boolean getMaintainTimeStats() {
return maintainTimeStatsAsBoolean;
}
|
public int getMaxAllowedPacket() {
return this.maxAllowedPacket.getValueAsInt();
}
|
public int getMaxQuerySizeToLog() {
return this.maxQuerySizeToLog.getValueAsInt();
}
|
public int getMaxReconnects() {
return this.maxReconnects.getValueAsInt();
}
|
public int getMaxRows() {
return this.maxRowsAsInt;
}
|
public int getMetadataCacheSize() {
return this.metadataCacheSize.getValueAsInt();
}
|
public int getNetTimeoutForStreamingResults() {
return this.netTimeoutForStreamingResults.getValueAsInt();
}
|
public boolean getNoAccessToProcedureBodies() {
return this.noAccessToProcedureBodies.getValueAsBoolean();
}
|
public boolean getNoDatetimeStringSync() {
return this.noDatetimeStringSync.getValueAsBoolean();
}
|
public boolean getNoTimezoneConversionForTimeType() {
return this.noTimezoneConversionForTimeType.getValueAsBoolean();
}
|
public boolean getNullCatalogMeansCurrent() {
return this.nullCatalogMeansCurrent.getValueAsBoolean();
}
|
public boolean getNullNamePatternMatchesAll() {
return this.nullNamePatternMatchesAll.getValueAsBoolean();
}
|
public boolean getOverrideSupportsIntegrityEnhancementFacility() {
return this.overrideSupportsIntegrityEnhancementFacility.getValueAsBoolean();
}
|
public int getPacketDebugBufferSize() {
return this.packetDebugBufferSize.getValueAsInt();
}
|
public boolean getPadCharsWithSpace() {
return this.padCharsWithSpace.getValueAsBoolean();
}
|
public boolean getParanoid() {
return this.paranoid.getValueAsBoolean();
}
|
public String getPasswordCharacterEncoding() {
return this.passwordCharacterEncoding.getValueAsString();
}
|
public boolean getPedantic() {
return this.pedantic.getValueAsBoolean();
}
|
public boolean getPinGlobalTxToPhysicalConnection() {
return this.pinGlobalTxToPhysicalConnection.getValueAsBoolean();
}
|
public boolean getPopulateInsertRowWithDefaultValues() {
return this.populateInsertRowWithDefaultValues.getValueAsBoolean();
}
|
public int getPrepStmtCacheSize() {
return getPreparedStatementCacheSize();
}
|
public int getPrepStmtCacheSqlLimit() {
return getPreparedStatementCacheSqlLimit();
}
|
public int getPreparedStatementCacheSize() {
return ((Integer) this.preparedStatementCacheSize.getValueAsObject())
.intValue();
}
|
public int getPreparedStatementCacheSqlLimit() {
return ((Integer) this.preparedStatementCacheSqlLimit
.getValueAsObject()).intValue();
}
|
public boolean getProcessEscapeCodesForPrepStmts() {
return this.processEscapeCodesForPrepStmts.getValueAsBoolean();
}
|
public boolean getProfileSQL() {
return this.profileSQL.getValueAsBoolean();
}
|
public boolean getProfileSql() {
return this.profileSQLAsBoolean;
}
|
public String getProfilerEventHandler() {
return this.profilerEventHandler.getValueAsString();
}
|
public String getPropertiesTransform() {
return this.propertiesTransform.getValueAsString();
}
|
public int getQueriesBeforeRetryMaster() {
return this.queriesBeforeRetryMaster.getValueAsInt();
}
|
public boolean getQueryTimeoutKillsConnection() {
return this.queryTimeoutKillsConnection.getValueAsBoolean();
}
|
public boolean getReconnectAtTxEnd() {
return this.reconnectTxAtEndAsBoolean;
}
|
public boolean getRelaxAutoCommit() {
return this.relaxAutoCommit.getValueAsBoolean();
}
|
public int getReportMetricsIntervalMillis() {
return this.reportMetricsIntervalMillis.getValueAsInt();
}
|
public boolean getRequireSSL() {
return this.requireSSL.getValueAsBoolean();
}
|
public String getResourceId() {
return this.resourceId.getValueAsString();
}
|
public int getResultSetSizeThreshold() {
return this.resultSetSizeThreshold.getValueAsInt();
}
|
protected boolean getRetainStatementAfterResultSetClose() {
return this.retainStatementAfterResultSetClose.getValueAsBoolean();
}
|
public int getRetriesAllDown() {
return this.retriesAllDown.getValueAsInt();
}
|
public boolean getRewriteBatchedStatements() {
return this.rewriteBatchedStatements.getValueAsBoolean();
}
|
public boolean getRollbackOnPooledClose() {
return this.rollbackOnPooledClose.getValueAsBoolean();
}
|
public boolean getRoundRobinLoadBalance() {
return this.roundRobinLoadBalance.getValueAsBoolean();
}
|
public boolean getRunningCTS13() {
return this.runningCTS13.getValueAsBoolean();
}
|
public int getSecondsBeforeRetryMaster() {
return this.secondsBeforeRetryMaster.getValueAsInt();
}
|
public int getSelfDestructOnPingMaxOperations() {
return this.selfDestructOnPingMaxOperations.getValueAsInt();
}
|
public int getSelfDestructOnPingSecondsLifetime() {
return this.selfDestructOnPingSecondsLifetime.getValueAsInt();
}
|
public String getServerTimezone() {
return this.serverTimezone.getValueAsString();
}
|
public String getSessionVariables() {
return sessionVariables.getValueAsString();
}
|
public int getSlowQueryThresholdMillis() {
return this.slowQueryThresholdMillis.getValueAsInt();
}
|
public long getSlowQueryThresholdNanos() {
return this.slowQueryThresholdNanos.getValueAsLong();
}
|
public String getSocketFactory() {
return getSocketFactoryClassName();
}
|
public String getSocketFactoryClassName() {
return this.socketFactoryClassName.getValueAsString();
}
|
public int getSocketTimeout() {
return this.socketTimeout.getValueAsInt();
}
|
public String getStatementInterceptors() {
return this.statementInterceptors.getValueAsString();
}
|
public boolean getStrictFloatingPoint() {
return this.strictFloatingPoint.getValueAsBoolean();
}
|
public boolean getStrictUpdates() {
return this.strictUpdates.getValueAsBoolean();
}
|
public boolean getTcpKeepAlive() {
return this.tcpKeepAlive.getValueAsBoolean();
}
|
public boolean getTcpNoDelay() {
return this.tcpNoDelay.getValueAsBoolean();
}
|
public int getTcpRcvBuf() {
return this.tcpRcvBuf.getValueAsInt();
}
|
public int getTcpSndBuf() {
return this.tcpSndBuf.getValueAsInt();
}
|
public int getTcpTrafficClass() {
return this.tcpTrafficClass.getValueAsInt();
}
|
public boolean getTinyInt1isBit() {
return this.tinyInt1isBit.getValueAsBoolean();
}
|
public boolean getTraceProtocol() {
return this.traceProtocol.getValueAsBoolean();
}
|
public boolean getTransformedBitIsBoolean() {
return this.transformedBitIsBoolean.getValueAsBoolean();
}
|
public boolean getTreatUtilDateAsTimestamp() {
return this.treatUtilDateAsTimestamp.getValueAsBoolean();
}
|
public String getTrustCertificateKeyStorePassword() {
return trustCertificateKeyStorePassword.getValueAsString();
}
|
public String getTrustCertificateKeyStoreType() {
return trustCertificateKeyStoreType.getValueAsString();
}
|
public String getTrustCertificateKeyStoreUrl() {
return trustCertificateKeyStoreUrl.getValueAsString();
}
|
public boolean getUltraDevHack() {
return getUseUltraDevWorkAround();
}
|
public boolean getUseAffectedRows() {
return this.useAffectedRows.getValueAsBoolean();
}
|
public boolean getUseBlobToStoreUTF8OutsideBMP() {
return this.useBlobToStoreUTF8OutsideBMP.getValueAsBoolean();
}
|
public boolean getUseColumnNamesInFindColumn() {
return this.useColumnNamesInFindColumn.getValueAsBoolean();
}
|
public boolean getUseCompression() {
return this.useCompression.getValueAsBoolean();
}
|
public String getUseConfigs() {
return this.useConfigs.getValueAsString();
}
|
public boolean getUseCursorFetch() {
return this.useCursorFetch.getValueAsBoolean();
}
|
public boolean getUseDirectRowUnpack() {
return this.useDirectRowUnpack.getValueAsBoolean();
}
|
public boolean getUseDynamicCharsetInfo() {
return this.useDynamicCharsetInfo.getValueAsBoolean();
}
|
public boolean getUseFastDateParsing() {
return this.useFastDateParsing.getValueAsBoolean();
}
|
public boolean getUseFastIntParsing() {
return this.useFastIntParsing.getValueAsBoolean();
}
|
public boolean getUseGmtMillisForDatetimes() {
return this.useGmtMillisForDatetimes.getValueAsBoolean();
}
|
public boolean getUseHostsInPrivileges() {
return this.useHostsInPrivileges.getValueAsBoolean();
}
|
public boolean getUseInformationSchema() {
return this.useInformationSchema.getValueAsBoolean();
}
|
public boolean getUseJDBCCompliantTimezoneShift() {
return this.useJDBCCompliantTimezoneShift.getValueAsBoolean();
}
|
public boolean getUseJvmCharsetConverters() {
return this.useJvmCharsetConverters.getValueAsBoolean();
}
|
public boolean getUseLegacyDatetimeCode() {
return this.useLegacyDatetimeCode.getValueAsBoolean();
}
|
public boolean getUseLocalSessionState() {
return this.useLocalSessionState.getValueAsBoolean();
}
|
public boolean getUseLocalTransactionState() {
return this.useLocalTransactionState.getValueAsBoolean();
}
|
public boolean getUseNanosForElapsedTime() {
return this.useNanosForElapsedTime.getValueAsBoolean();
}
|
public boolean getUseOldAliasMetadataBehavior() {
return this.useOldAliasMetadataBehavior.getValueAsBoolean();
}
|
public boolean getUseOldUTF8Behavior() {
return this.useOldUTF8BehaviorAsBoolean;
}
|
public boolean getUseOnlyServerErrorMessages() {
return this.useOnlyServerErrorMessages.getValueAsBoolean();
}
|
public boolean getUseReadAheadInput() {
return this.useReadAheadInput.getValueAsBoolean();
}
|
public boolean getUseSSL() {
return this.useSSL.getValueAsBoolean();
}
|
public boolean getUseSSPSCompatibleTimezoneShift() {
return this.useSSPSCompatibleTimezoneShift.getValueAsBoolean();
}
|
public boolean getUseServerPrepStmts() {
return getUseServerPreparedStmts();
}
|
public boolean getUseServerPreparedStmts() {
return this.detectServerPreparedStmts.getValueAsBoolean();
}
|
public boolean getUseSqlStateCodes() {
return this.useSqlStateCodes.getValueAsBoolean();
}
|
public boolean getUseStreamLengthsInPrepStmts() {
return this.useStreamLengthsInPrepStmts.getValueAsBoolean();
}
|
public boolean getUseTimezone() {
return this.useTimezone.getValueAsBoolean();
}
|
public boolean getUseUltraDevWorkAround() {
return this.useUltraDevWorkAround.getValueAsBoolean();
}
|
public boolean getUseUnbufferedInput() {
return this.useUnbufferedInput.getValueAsBoolean();
}
|
public boolean getUseUnicode() {
return this.useUnicodeAsBoolean;
}
|
public boolean getUseUsageAdvisor() {
return this.useUsageAdvisorAsBoolean;
}
|
public String getUtf8OutsideBmpExcludedColumnNamePattern() {
return this.utf8OutsideBmpExcludedColumnNamePattern.getValueAsString();
}
|
public String getUtf8OutsideBmpIncludedColumnNamePattern() {
return this.utf8OutsideBmpIncludedColumnNamePattern.getValueAsString();
}
|
public boolean getVerifyServerCertificate() {
return this.verifyServerCertificate.getValueAsBoolean();
}
|
public boolean getYearIsDateType() {
return this.yearIsDateType.getValueAsBoolean();
}
|
public String getZeroDateTimeBehavior() {
return this.zeroDateTimeBehavior.getValueAsString();
}
|
protected void initializeFromRef(Reference ref) throws SQLException {
int numPropertiesToSet = PROPERTY_LIST.size();
for (int i = 0; i < numPropertiesToSet; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i);
try {
ConnectionProperty propToSet = (ConnectionProperty) propertyField
.get(this);
if (ref != null) {
propToSet.initializeFrom(ref);
}
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException("Internal properties failure", //$NON-NLS-1$
SQLError.SQL_STATE_GENERAL_ERROR, getExceptionInterceptor());
}
}
postInitialization();
}
Initializes driver properties that come from a JNDI reference (in the
case of a javax.sql.DataSource bound into some name service that doesn't
handle Java objects directly). |
protected void initializeProperties(Properties info) throws SQLException {
if (info != null) {
// For backwards-compatibility
String profileSqlLc = info.getProperty("profileSql"); //$NON-NLS-1$
if (profileSqlLc != null) {
info.put("profileSQL", profileSqlLc); //$NON-NLS-1$
}
Properties infoCopy = (Properties) info.clone();
infoCopy.remove(NonRegisteringDriver.HOST_PROPERTY_KEY);
infoCopy.remove(NonRegisteringDriver.USER_PROPERTY_KEY);
infoCopy.remove(NonRegisteringDriver.PASSWORD_PROPERTY_KEY);
infoCopy.remove(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
infoCopy.remove(NonRegisteringDriver.PORT_PROPERTY_KEY);
infoCopy.remove("profileSql"); //$NON-NLS-1$
int numPropertiesToSet = PROPERTY_LIST.size();
for (int i = 0; i < numPropertiesToSet; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i);
try {
ConnectionProperty propToSet = (ConnectionProperty) propertyField
.get(this);
propToSet.initializeFrom(infoCopy);
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException(
Messages.getString("ConnectionProperties.unableToInitDriverProperties") //$NON-NLS-1$
+ iae.toString(),
SQLError.SQL_STATE_GENERAL_ERROR, getExceptionInterceptor());
}
}
postInitialization();
}
}
Initializes driver properties that come from URL or properties passed to
the driver manager. |
protected void postInitialization() throws SQLException {
// Support 'old' profileSql capitalization
if (this.profileSql.getValueAsObject() != null) {
this.profileSQL.initializeFrom(this.profileSql.getValueAsObject()
.toString());
}
this.reconnectTxAtEndAsBoolean = ((Boolean) this.reconnectAtTxEnd
.getValueAsObject()).booleanValue();
// Adjust max rows
if (this.getMaxRows() == 0) {
// adjust so that it will become MysqlDefs.MAX_ROWS
// in execSQL()
this.maxRows.setValueAsObject(Constants.integerValueOf(-1));
}
//
// Check character encoding
//
String testEncoding = this.getEncoding();
if (testEncoding != null) {
// Attempt to use the encoding, and bail out if it
// can't be used
try {
String testString = "abc"; //$NON-NLS-1$
testString.getBytes(testEncoding);
} catch (UnsupportedEncodingException UE) {
throw SQLError.createSQLException(Messages.getString(
"ConnectionProperties.unsupportedCharacterEncoding",
new Object[] {testEncoding}), "0S100", getExceptionInterceptor()); //$NON-NLS-1$ //$NON-NLS-2$
}
}
// Metadata caching is only supported on JDK-1.4 and newer
// because it relies on LinkedHashMap being present.
// Check (and disable) if not supported
if (((Boolean) this.cacheResultSetMetadata.getValueAsObject())
.booleanValue()) {
try {
Class.forName("java.util.LinkedHashMap"); //$NON-NLS-1$
} catch (ClassNotFoundException cnfe) {
this.cacheResultSetMetadata.setValue(false);
}
}
this.cacheResultSetMetaDataAsBoolean = this.cacheResultSetMetadata
.getValueAsBoolean();
this.useUnicodeAsBoolean = this.useUnicode.getValueAsBoolean();
this.characterEncodingAsString = ((String) this.characterEncoding
.getValueAsObject());
this.highAvailabilityAsBoolean = this.autoReconnect.getValueAsBoolean();
this.autoReconnectForPoolsAsBoolean = this.autoReconnectForPools
.getValueAsBoolean();
this.maxRowsAsInt = ((Integer) this.maxRows.getValueAsObject())
.intValue();
this.profileSQLAsBoolean = this.profileSQL.getValueAsBoolean();
this.useUsageAdvisorAsBoolean = this.useUsageAdvisor
.getValueAsBoolean();
this.useOldUTF8BehaviorAsBoolean = this.useOldUTF8Behavior
.getValueAsBoolean();
this.autoGenerateTestcaseScriptAsBoolean = this.autoGenerateTestcaseScript
.getValueAsBoolean();
this.maintainTimeStatsAsBoolean = this.maintainTimeStats
.getValueAsBoolean();
this.jdbcCompliantTruncationForReads = getJdbcCompliantTruncation();
if (getUseCursorFetch()) {
// assume they want to use server-side prepared statements
// because they're required for this functionality
setDetectServerPreparedStmts(true);
}
}
|
public void setAllowLoadLocalInfile(boolean property) {
this.allowLoadLocalInfile.setValue(property);
}
|
public void setAllowMultiQueries(boolean property) {
this.allowMultiQueries.setValue(property);
}
|
public void setAllowNanAndInf(boolean flag) {
this.allowNanAndInf.setValue(flag);
}
|
public void setAllowUrlInLocalInfile(boolean flag) {
this.allowUrlInLocalInfile.setValue(flag);
}
|
public void setAlwaysSendSetIsolation(boolean flag) {
this.alwaysSendSetIsolation.setValue(flag);
}
|
public void setAutoClosePStmtStreams(boolean flag) {
this.autoClosePStmtStreams.setValue(flag);
}
|
public void setAutoDeserialize(boolean flag) {
this.autoDeserialize.setValue(flag);
}
|
public void setAutoGenerateTestcaseScript(boolean flag) {
this.autoGenerateTestcaseScript.setValue(flag);
this.autoGenerateTestcaseScriptAsBoolean = this.autoGenerateTestcaseScript
.getValueAsBoolean();
}
|
public void setAutoReconnect(boolean flag) {
this.autoReconnect.setValue(flag);
}
|
public void setAutoReconnectForConnectionPools(boolean property) {
this.autoReconnectForPools.setValue(property);
this.autoReconnectForPoolsAsBoolean = this.autoReconnectForPools
.getValueAsBoolean();
}
|
public void setAutoReconnectForPools(boolean flag) {
this.autoReconnectForPools.setValue(flag);
}
|
public void setAutoSlowLog(boolean flag) {
this.autoSlowLog.setValue(flag);
}
|
public void setBlobSendChunkSize(String value) throws SQLException {
this.blobSendChunkSize.setValue(value);
}
|
public void setBlobsAreStrings(boolean flag) {
this.blobsAreStrings.setValue(flag);
}
|
public void setCacheCallableStatements(boolean flag) {
this.cacheCallableStatements.setValue(flag);
}
|
public void setCacheCallableStmts(boolean flag) {
setCacheCallableStatements(flag);
}
|
public void setCachePrepStmts(boolean flag) {
setCachePreparedStatements(flag);
}
|
public void setCachePreparedStatements(boolean flag) {
this.cachePreparedStatements.setValue(flag);
}
|
public void setCacheResultSetMetadata(boolean property) {
this.cacheResultSetMetadata.setValue(property);
this.cacheResultSetMetaDataAsBoolean = this.cacheResultSetMetadata
.getValueAsBoolean();
}
|
public void setCacheServerConfiguration(boolean flag) {
this.cacheServerConfiguration.setValue(flag);
}
|
public void setCallableStatementCacheSize(int size) {
this.callableStatementCacheSize.setValue(size);
}
|
public void setCallableStmtCacheSize(int cacheSize) {
setCallableStatementCacheSize(cacheSize);
}
|
public void setCapitalizeDBMDTypes(boolean property) {
this.capitalizeTypeNames.setValue(property);
}
|
public void setCapitalizeTypeNames(boolean flag) {
this.capitalizeTypeNames.setValue(flag);
}
|
public void setCharacterEncoding(String encoding) {
this.characterEncoding.setValue(encoding);
}
|
public void setCharacterSetResults(String characterSet) {
this.characterSetResults.setValue(characterSet);
}
|
public void setClientCertificateKeyStorePassword(String value) {
this.clientCertificateKeyStorePassword.setValue(value);
}
|
public void setClientCertificateKeyStoreType(String value) {
this.clientCertificateKeyStoreType.setValue(value);
}
|
public void setClientCertificateKeyStoreUrl(String value) {
this.clientCertificateKeyStoreUrl.setValue(value);
}
|
public void setClientInfoProvider(String classname) {
this.clientInfoProvider.setValue(classname);
}
|
public void setClobCharacterEncoding(String encoding) {
this.clobCharacterEncoding.setValue(encoding);
}
|
public void setClobberStreamingResults(boolean flag) {
this.clobberStreamingResults.setValue(flag);
}
|
public void setCompensateOnDuplicateKeyUpdateCounts(boolean flag) {
this.compensateOnDuplicateKeyUpdateCounts.setValue(flag);
}
|
public void setConnectTimeout(int timeoutMs) {
this.connectTimeout.setValue(timeoutMs);
}
|
public void setConnectionCollation(String collation) {
this.connectionCollation.setValue(collation);
}
|
public void setConnectionLifecycleInterceptors(String interceptors) {
this.connectionLifecycleInterceptors.setValue(interceptors);
}
|
public void setContinueBatchOnError(boolean property) {
this.continueBatchOnError.setValue(property);
}
|
public void setCreateDatabaseIfNotExist(boolean flag) {
this.createDatabaseIfNotExist.setValue(flag);
}
|
public void setDefaultFetchSize(int n) {
this.defaultFetchSize.setValue(n);
}
|
public void setDetectServerPreparedStmts(boolean property) {
this.detectServerPreparedStmts.setValue(property);
}
|
public void setDontTrackOpenResources(boolean flag) {
this.dontTrackOpenResources.setValue(flag);
}
|
public void setDumpMetadataOnColumnNotFound(boolean flag) {
this.dumpMetadataOnColumnNotFound.setValue(flag);
}
|
public void setDumpQueriesOnException(boolean flag) {
this.dumpQueriesOnException.setValue(flag);
}
|
public void setDynamicCalendars(boolean flag) {
this.dynamicCalendars.setValue(flag);
}
|
public void setElideSetAutoCommits(boolean flag) {
this.elideSetAutoCommits.setValue(flag);
}
|
public void setEmptyStringsConvertToZero(boolean flag) {
this.emptyStringsConvertToZero.setValue(flag);
}
|
public void setEmulateLocators(boolean property) {
this.emulateLocators.setValue(property);
}
|
public void setEmulateUnsupportedPstmts(boolean flag) {
this.emulateUnsupportedPstmts.setValue(flag);
}
|
public void setEnablePacketDebug(boolean flag) {
this.enablePacketDebug.setValue(flag);
}
|
public void setEnableQueryTimeouts(boolean flag) {
this.enableQueryTimeouts.setValue(flag);
}
|
public void setEncoding(String property) {
this.characterEncoding.setValue(property);
this.characterEncodingAsString = this.characterEncoding
.getValueAsString();
}
|
public void setExceptionInterceptors(String exceptionInterceptors) {
this.exceptionInterceptors.setValue(exceptionInterceptors);
}
|
public void setExplainSlowQueries(boolean flag) {
this.explainSlowQueries.setValue(flag);
}
|
public void setFailOverReadOnly(boolean flag) {
this.failOverReadOnly.setValue(flag);
}
|
public void setFunctionsNeverReturnBlobs(boolean flag) {
this.functionsNeverReturnBlobs.setValue(flag);
}
|
public void setGatherPerfMetrics(boolean flag) {
setGatherPerformanceMetrics(flag);
}
|
public void setGatherPerformanceMetrics(boolean flag) {
this.gatherPerformanceMetrics.setValue(flag);
}
|
public void setGenerateSimpleParameterMetadata(boolean flag) {
this.generateSimpleParameterMetadata.setValue(flag);
}
|
protected void setHighAvailability(boolean property) {
this.autoReconnect.setValue(property);
this.highAvailabilityAsBoolean = this.autoReconnect.getValueAsBoolean();
}
|
public void setHoldResultsOpenOverStatementClose(boolean flag) {
this.holdResultsOpenOverStatementClose.setValue(flag);
}
|
public void setIgnoreNonTxTables(boolean property) {
this.ignoreNonTxTables.setValue(property);
}
|
public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag) {
this.includeInnodbStatusInDeadlockExceptions.setValue(flag);
}
|
public void setInitialTimeout(int property) {
this.initialTimeout.setValue(property);
}
|
public void setInteractiveClient(boolean property) {
setIsInteractiveClient(property);
}
|
public void setIsInteractiveClient(boolean property) {
this.isInteractiveClient.setValue(property);
}
|
public void setJdbcCompliantTruncation(boolean flag) {
this.jdbcCompliantTruncation.setValue(flag);
}
|
public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads) {
this.jdbcCompliantTruncationForReads = jdbcCompliantTruncationForReads;
}
|
public void setLargeRowSizeThreshold(String value) {
try {
this.largeRowSizeThreshold.setValue(value);
} catch (SQLException sqlEx) {
RuntimeException ex = new RuntimeException(sqlEx.getMessage());
ex.initCause(sqlEx);
throw ex;
}
}
|
public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout) {
this.loadBalanceBlacklistTimeout.setValue(loadBalanceBlacklistTimeout);
}
|
public void setLoadBalanceStrategy(String strategy) {
this.loadBalanceStrategy.setValue(strategy);
}
|
public void setLocalSocketAddress(String address) {
this.localSocketAddress.setValue(address);
}
|
public void setLocatorFetchBufferSize(String value) throws SQLException {
this.locatorFetchBufferSize.setValue(value);
}
|
public void setLogSlowQueries(boolean flag) {
this.logSlowQueries.setValue(flag);
}
|
public void setLogXaCommands(boolean flag) {
this.logXaCommands.setValue(flag);
}
|
public void setLogger(String property) {
this.loggerClassName.setValueAsObject(property);
}
|
public void setLoggerClassName(String className) {
this.loggerClassName.setValue(className);
}
|
public void setMaintainTimeStats(boolean flag) {
this.maintainTimeStats.setValue(flag);
this.maintainTimeStatsAsBoolean = this.maintainTimeStats
.getValueAsBoolean();
}
|
public void setMaxAllowedPacket(int max) {
this.maxAllowedPacket.setValue(max);
}
|
public void setMaxQuerySizeToLog(int sizeInBytes) {
this.maxQuerySizeToLog.setValue(sizeInBytes);
}
|
public void setMaxReconnects(int property) {
this.maxReconnects.setValue(property);
}
|
public void setMaxRows(int property) {
this.maxRows.setValue(property);
this.maxRowsAsInt = this.maxRows.getValueAsInt();
}
|
public void setMetadataCacheSize(int value) {
this.metadataCacheSize.setValue(value);
}
|
public void setNetTimeoutForStreamingResults(int value) {
this.netTimeoutForStreamingResults.setValue(value);
}
|
public void setNoAccessToProcedureBodies(boolean flag) {
this.noAccessToProcedureBodies.setValue(flag);
}
|
public void setNoDatetimeStringSync(boolean flag) {
this.noDatetimeStringSync.setValue(flag);
}
|
public void setNoTimezoneConversionForTimeType(boolean flag) {
this.noTimezoneConversionForTimeType.setValue(flag);
}
|
public void setNullCatalogMeansCurrent(boolean value) {
this.nullCatalogMeansCurrent.setValue(value);
}
|
public void setNullNamePatternMatchesAll(boolean value) {
this.nullNamePatternMatchesAll.setValue(value);
}
|
public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag) {
this.overrideSupportsIntegrityEnhancementFacility.setValue(flag);
}
|
public void setPacketDebugBufferSize(int size) {
this.packetDebugBufferSize.setValue(size);
}
|
public void setPadCharsWithSpace(boolean flag) {
this.padCharsWithSpace.setValue(flag);
}
|
public void setParanoid(boolean property) {
this.paranoid.setValue(property);
}
|
public void setPasswordCharacterEncoding(String characterSet) {
this.passwordCharacterEncoding.setValue(characterSet);
}
|
public void setPedantic(boolean property) {
this.pedantic.setValue(property);
}
|
public void setPinGlobalTxToPhysicalConnection(boolean flag) {
this.pinGlobalTxToPhysicalConnection.setValue(flag);
}
|
public void setPopulateInsertRowWithDefaultValues(boolean flag) {
this.populateInsertRowWithDefaultValues.setValue(flag);
}
|
public void setPrepStmtCacheSize(int cacheSize) {
setPreparedStatementCacheSize(cacheSize);
}
|
public void setPrepStmtCacheSqlLimit(int sqlLimit) {
setPreparedStatementCacheSqlLimit(sqlLimit);
}
|
public void setPreparedStatementCacheSize(int cacheSize) {
this.preparedStatementCacheSize.setValue(cacheSize);
}
|
public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit) {
this.preparedStatementCacheSqlLimit.setValue(cacheSqlLimit);
}
|
public void setProcessEscapeCodesForPrepStmts(boolean flag) {
this.processEscapeCodesForPrepStmts.setValue(flag);
}
|
public void setProfileSQL(boolean flag) {
this.profileSQL.setValue(flag);
}
|
public void setProfileSql(boolean property) {
this.profileSQL.setValue(property);
this.profileSQLAsBoolean = this.profileSQL.getValueAsBoolean();
}
|
public void setProfilerEventHandler(String handler) {
this.profilerEventHandler.setValue(handler);
}
|
public void setPropertiesTransform(String value) {
this.propertiesTransform.setValue(value);
}
|
public void setQueriesBeforeRetryMaster(int property) {
this.queriesBeforeRetryMaster.setValue(property);
}
|
public void setQueryTimeoutKillsConnection(boolean queryTimeoutKillsConnection) {
this.queryTimeoutKillsConnection.setValue(queryTimeoutKillsConnection);
}
|
public void setReconnectAtTxEnd(boolean property) {
this.reconnectAtTxEnd.setValue(property);
this.reconnectTxAtEndAsBoolean = this.reconnectAtTxEnd
.getValueAsBoolean();
}
|
public void setRelaxAutoCommit(boolean property) {
this.relaxAutoCommit.setValue(property);
}
|
public void setReportMetricsIntervalMillis(int millis) {
this.reportMetricsIntervalMillis.setValue(millis);
}
|
public void setRequireSSL(boolean property) {
this.requireSSL.setValue(property);
}
|
public void setResourceId(String resourceId) {
this.resourceId.setValue(resourceId);
}
|
public void setResultSetSizeThreshold(int threshold) {
this.resultSetSizeThreshold.setValue(threshold);
}
|
public void setRetainStatementAfterResultSetClose(boolean flag) {
this.retainStatementAfterResultSetClose.setValue(flag);
}
|
public void setRetriesAllDown(int retriesAllDown) {
this.retriesAllDown.setValue(retriesAllDown);
}
|
public void setRewriteBatchedStatements(boolean flag) {
this.rewriteBatchedStatements.setValue(flag);
}
|
public void setRollbackOnPooledClose(boolean flag) {
this.rollbackOnPooledClose.setValue(flag);
}
|
public void setRoundRobinLoadBalance(boolean flag) {
this.roundRobinLoadBalance.setValue(flag);
}
|
public void setRunningCTS13(boolean flag) {
this.runningCTS13.setValue(flag);
}
|
public void setSecondsBeforeRetryMaster(int property) {
this.secondsBeforeRetryMaster.setValue(property);
}
|
public void setSelfDestructOnPingMaxOperations(int maxOperations) {
this.selfDestructOnPingMaxOperations.setValue(maxOperations);
}
|
public void setSelfDestructOnPingSecondsLifetime(int seconds) {
this.selfDestructOnPingSecondsLifetime.setValue(seconds);
}
|
public void setServerTimezone(String property) {
this.serverTimezone.setValue(property);
}
|
public void setSessionVariables(String variables) {
this.sessionVariables.setValue(variables);
}
|
public void setSlowQueryThresholdMillis(int millis) {
this.slowQueryThresholdMillis.setValue(millis);
}
|
public void setSlowQueryThresholdNanos(long nanos) {
this.slowQueryThresholdNanos.setValue(nanos);
}
|
public void setSocketFactory(String name) {
setSocketFactoryClassName(name);
}
|
public void setSocketFactoryClassName(String property) {
this.socketFactoryClassName.setValue(property);
}
|
public void setSocketTimeout(int property) {
this.socketTimeout.setValue(property);
}
|
public void setStatementInterceptors(String value) {
this.statementInterceptors.setValue(value);
}
|
public void setStrictFloatingPoint(boolean property) {
this.strictFloatingPoint.setValue(property);
}
|
public void setStrictUpdates(boolean property) {
this.strictUpdates.setValue(property);
}
|
public void setTcpKeepAlive(boolean flag) {
this.tcpKeepAlive.setValue(flag);
}
|
public void setTcpNoDelay(boolean flag) {
this.tcpNoDelay.setValue(flag);
}
|
public void setTcpRcvBuf(int bufSize) {
this.tcpRcvBuf.setValue(bufSize);
}
|
public void setTcpSndBuf(int bufSize) {
this.tcpSndBuf.setValue(bufSize);
}
|
public void setTcpTrafficClass(int classFlags) {
this.tcpTrafficClass.setValue(classFlags);
}
|
public void setTinyInt1isBit(boolean flag) {
this.tinyInt1isBit.setValue(flag);
}
|
public void setTraceProtocol(boolean flag) {
this.traceProtocol.setValue(flag);
}
|
public void setTransformedBitIsBoolean(boolean flag) {
this.transformedBitIsBoolean.setValue(flag);
}
|
public void setTreatUtilDateAsTimestamp(boolean flag) {
this.treatUtilDateAsTimestamp.setValue(flag);
}
|
public void setTrustCertificateKeyStorePassword(String value) {
this.trustCertificateKeyStorePassword.setValue(value);
}
|
public void setTrustCertificateKeyStoreType(String value) {
this.trustCertificateKeyStoreType.setValue(value);
}
|
public void setTrustCertificateKeyStoreUrl(String value) {
this.trustCertificateKeyStoreUrl.setValue(value);
}
|
public void setUltraDevHack(boolean flag) {
setUseUltraDevWorkAround(flag);
}
|
public void setUseAffectedRows(boolean flag) {
this.useAffectedRows.setValue(flag);
}
|
public void setUseBlobToStoreUTF8OutsideBMP(boolean flag) {
this.useBlobToStoreUTF8OutsideBMP.setValue(flag);
}
|
public void setUseColumnNamesInFindColumn(boolean flag) {
this.useColumnNamesInFindColumn.setValue(flag);
}
|
public void setUseCompression(boolean property) {
this.useCompression.setValue(property);
}
|
public void setUseConfigs(String configs) {
this.useConfigs.setValue(configs);
}
|
public void setUseCursorFetch(boolean flag) {
this.useCursorFetch.setValue(flag);
}
|
public void setUseDirectRowUnpack(boolean flag) {
this.useDirectRowUnpack.setValue(flag);
}
|
public void setUseDynamicCharsetInfo(boolean flag) {
this.useDynamicCharsetInfo.setValue(flag);
}
|
public void setUseFastDateParsing(boolean flag) {
this.useFastDateParsing.setValue(flag);
}
|
public void setUseFastIntParsing(boolean flag) {
this.useFastIntParsing.setValue(flag);
}
|
public void setUseGmtMillisForDatetimes(boolean flag) {
this.useGmtMillisForDatetimes.setValue(flag);
}
|
public void setUseHostsInPrivileges(boolean property) {
this.useHostsInPrivileges.setValue(property);
}
|
public void setUseInformationSchema(boolean flag) {
this.useInformationSchema.setValue(flag);
}
|
public void setUseJDBCCompliantTimezoneShift(boolean flag) {
this.useJDBCCompliantTimezoneShift.setValue(flag);
}
|
public void setUseJvmCharsetConverters(boolean flag) {
this.useJvmCharsetConverters.setValue(flag);
}
|
public void setUseLegacyDatetimeCode(boolean flag) {
this.useLegacyDatetimeCode.setValue(flag);
}
|
public void setUseLocalSessionState(boolean flag) {
this.useLocalSessionState.setValue(flag);
}
|
public void setUseLocalTransactionState(boolean flag) {
this.useLocalTransactionState.setValue(flag);
}
|
public void setUseNanosForElapsedTime(boolean flag) {
this.useNanosForElapsedTime.setValue(flag);
}
|
public void setUseOldAliasMetadataBehavior(boolean flag) {
this.useOldAliasMetadataBehavior.setValue(flag);
}
|
public void setUseOldUTF8Behavior(boolean flag) {
this.useOldUTF8Behavior.setValue(flag);
this.useOldUTF8BehaviorAsBoolean = this.useOldUTF8Behavior
.getValueAsBoolean();
}
|
public void setUseOnlyServerErrorMessages(boolean flag) {
this.useOnlyServerErrorMessages.setValue(flag);
}
|
public void setUseReadAheadInput(boolean flag) {
this.useReadAheadInput.setValue(flag);
}
|
public void setUseSSL(boolean property) {
this.useSSL.setValue(property);
}
|
public void setUseSSPSCompatibleTimezoneShift(boolean flag) {
this.useSSPSCompatibleTimezoneShift.setValue(flag);
}
|
public void setUseServerPrepStmts(boolean flag) {
setUseServerPreparedStmts(flag);
}
|
public void setUseServerPreparedStmts(boolean flag) {
this.detectServerPreparedStmts.setValue(flag);
}
|
public void setUseSqlStateCodes(boolean flag) {
this.useSqlStateCodes.setValue(flag);
}
|
public void setUseStreamLengthsInPrepStmts(boolean property) {
this.useStreamLengthsInPrepStmts.setValue(property);
}
|
public void setUseTimezone(boolean property) {
this.useTimezone.setValue(property);
}
|
public void setUseUltraDevWorkAround(boolean property) {
this.useUltraDevWorkAround.setValue(property);
}
|
public void setUseUnbufferedInput(boolean flag) {
this.useUnbufferedInput.setValue(flag);
}
|
public void setUseUnicode(boolean flag) {
this.useUnicode.setValue(flag);
this.useUnicodeAsBoolean = this.useUnicode.getValueAsBoolean();
}
|
public void setUseUsageAdvisor(boolean useUsageAdvisorFlag) {
this.useUsageAdvisor.setValue(useUsageAdvisorFlag);
this.useUsageAdvisorAsBoolean = this.useUsageAdvisor
.getValueAsBoolean();
}
|
public void setUtf8OutsideBmpExcludedColumnNamePattern(String regexPattern) {
this.utf8OutsideBmpExcludedColumnNamePattern.setValue(regexPattern);
}
|
public void setUtf8OutsideBmpIncludedColumnNamePattern(String regexPattern) {
this.utf8OutsideBmpIncludedColumnNamePattern.setValue(regexPattern);
}
|
public void setVerifyServerCertificate(boolean flag) {
this.verifyServerCertificate.setValue(flag);
}
|
public void setYearIsDateType(boolean flag) {
this.yearIsDateType.setValue(flag);
}
|
public void setZeroDateTimeBehavior(String behavior) {
this.zeroDateTimeBehavior.setValue(behavior);
}
|
protected void storeToRef(Reference ref) throws SQLException {
int numPropertiesToSet = PROPERTY_LIST.size();
for (int i = 0; i < numPropertiesToSet; i++) {
java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST
.get(i);
try {
ConnectionProperty propToStore = (ConnectionProperty) propertyField
.get(this);
if (ref != null) {
propToStore.storeTo(ref);
}
} catch (IllegalAccessException iae) {
throw SQLError.createSQLException(Messages.getString("ConnectionProperties.errorNotExpected"), getExceptionInterceptor()); //$NON-NLS-1$
}
}
}
|
public boolean useUnbufferedInput() {
return this.useUnbufferedInput.getValueAsBoolean();
}
|