public class MySQLConnectionManager extends DatabaseConnectionManager
DatabaseConnectionManager.DatabaseConnectionManagerWrapper
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev
The CVS Revision String.
|
databaseConnectionManagers
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
MySQLConnectionManager()
The constructor stores the values for the connection.
|
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection(ConnectionClosedListener source)
This method returns a connection object for the provided parameters.
|
int |
getConnectTimeout() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getHostname() |
int |
getQueryTimeout() |
int |
getTimeout() |
void |
setConnectTimeout(int connectionTimeout) |
void |
setDatabaseName(java.lang.String databaseName) |
void |
setHostname(java.lang.String hostname) |
void |
setQueryTimeout(int queryTimeout) |
void |
setTimeout(int timeout) |
checkForValidEntries, closeConnection, destroy, getAsyncConnectionTimeout, getDatabaseConnectionManagers, getDriverClassName, getPassword, getUrl, getUrlInternal, getUsername, isAsyncConnect, removeListener, setAsyncConnect, setAsyncConnectionTimeout, setDriverClassName, setName, setPassword, setUrl, setUsername, VIBEvent
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, start, stop, tick, toString
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public static final java.lang.String cvsRev
public MySQLConnectionManager()
public java.sql.Connection getConnection(ConnectionClosedListener source) throws java.sql.SQLException
getConnection
in class DatabaseConnectionManager
ConnectionClosedListener
- the bean which will listen for the connection to close.if
- an exception occurs.java.sql.SQLException
public int getConnectTimeout()
public java.lang.String getDatabaseName()
public java.lang.String getHostname()
public int getQueryTimeout()
public int getTimeout()
public void setConnectTimeout(int connectionTimeout)
connectionTimeout
- The connectionTimeout to set.public void setDatabaseName(java.lang.String databaseName)
databaseName
- The databaseName to set.public void setHostname(java.lang.String hostname)
hostname
- The hostname to set.public void setQueryTimeout(int queryTimeout)
queryTimeout
- The queryTimeout to set.public void setTimeout(int timeout)
timeout
- The timeout to set.Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.