Field Summary |
|
final public static String | CONNECTION_KEEPALIVE Boolean property to ensure that the connection is valid and reconnects automatically when queries are executed. |
final public static String | JDBC_ESCAPE_PROC Boolean property to turn on/off escaping processing in the JDBC driver. |
final public static String | JDBC_GENERATE_KEYS Boolean property to tell database connection that you want genereated keys if available from ResultSets. |
final public static String | JDBC_HOLDABILITY Integer property for configuring resultset holdability. |
final public static String | JDBC_MAX_FIELD_SIZE Integer property to configure the maximum field size a Statement object should return. |
final public static String | JDBC_MAX_ROWS Integer property to configure the maximum number of rows a Statement object should return. |
final public static String | JDBC_REVERSE_FETCHING Boolean property for enabling reverse fetching of ResultSet data. |
final public static String | JDBC_TRACE_ENABLED Boolean property for enabling JDBC tracing through the java.sql.DriverManager mechanisim. |
final public static String | LOGIN_TIMEOUT Integer property for the number of seconds that should pass before a connection times-out when connecting. |
final public static String | MAX_EXCEPTION_CHAIN_LENGTH Integer property to determine how deep to process chained SQLExceptions & SQLWarnings. |
final public static String | PREFERRED_CATALOG String property for declaring a specifc catalog to use for catalog sensitive operations. |
final public static String | PREFERRED_SCHEMA String property for declaring a specifc schema to use for schema sensitive operations. |
final public static String | PRINT_STACKTRACES Boolean property to debug JDBC activity by printing stack traces on exceptions. |
final public static String | QUERY_TIMEOUT Integer property for the number of seconds that should pass before a statement execution times-out. |
final public static String | STORE_CREDENTIALS Boolean property that indicates wheter the storage of the service credentials actually occurs. |
final public static String | USE_SECURE_CREDENTIALS Boolean property that indicates wheter the storage of the service credentials are un-encrypted. |
Method Summary |
|
public synchronized void | addPropertyChangeListener(PropertyChangeListener listener) Add a PropertyChangeListener to the listener list. |
public synchronized void | addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property. |
public boolean | addResource(File location) Adds a resourceURL as part of creating a custom classloader for a connection.
This method will always return false if a null resourceURL is received. |
public boolean | containsSettings() Helper method for determining if this profile contains any settings. |
public int | getLoginTimeout() Get the number of seconds allowed before timing out on creating a connection. |
public long | getMaxExceptionLength() Get the maximum number of chained exceptions to show for SQLExceptions. |
public long | getMaxFieldSize() Get the connections' preferred maximum field size for a data recieved from statements. |
public long | getMaxRowCount() Gets the maximum number of rows to receive from a statement. |
public String | getPreferredCatalog() Gets the preferred schema to use for schema sensitive operations. |
public String | getPreferredSchema() Gets the preferred schema to use for schema sensitive operations. |
public int | getQueryTimeout() Get the number of seconds allowed before timing out on execution of statements. |
public boolean | isCredentialsPersistent() Gets the flag for determining is service passwords are persistent. |
public boolean | isCredentialsSecure() Gets the flag for determining is service passwords are encrypted. |
public boolean | isDebuggingEnabled() Determines if stacktraces should be displayed when exceptions occur. |
public boolean | isEscapeProcessing() Sets the preferred escape processing flag for configuring statements. |
public boolean | isKeepAlive() Determines if connections are automatically recovered when disconnected. |
public boolean | isResultsetKeys() Sets the parameter for accessing ResultSet keys for each statement. |
public boolean | isReverseFetching() Gets the flag for enabling reverse-fetchings when executing statements. |
public boolean | isTracingEnabled() Determines if JDBC tracing through the java.sql.DriverManager is enabled. |
public synchronized void | removePropertyChangeListener(PropertyChangeListener listener) Remove a PropertyChangeListener from the listener list. |
public synchronized void | removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific profile setting. |
public boolean | removeResource(File location) Removes given resourceURL from this profile.
Parameters: location - to needs to be removed from this profile. |
public Enumeration<File> | resourceElements() Returns a enumeration of the resource URLs defined in this class. |
public void | setCredentialsPersistent(boolean credentialsPersistent) Sets whether the credentials for a service are persistent with the rest of the configuration. |
public void | setCredentialsSecure(boolean credentialsSecure) Sets whether the credentials for a service are encrypted or plain-text. |
public void | setDebuggingEnabled(boolean debuggingEnabled) Sets stacktraces on exceptions from JDBC operations to be displayed. |
public void | setEscapeProcessing(boolean escapeProcessing) Sets the preferred escape processing flag when configuring statements. |
public void | setKeepAlive(boolean keepAlive) Sets the preferred keep-alive parameter for the connection. |
public void | setLoginTimeout(int loginTimeout) Sets the number of seconds to wait for a connection to be made. |
public void | setMaxExceptionLength(int maxExceptionLength) Sets the maximum number of chained exceptions to display for SQLExceptions. |
public void | setMaxFieldSize(long maxFieldSize) Sets the preferred max field size for data recieved from statements. |
public void | setMaxRowCount(long maxRowCount) Sets the preferred maximum number of rows to recieve from a statement. |
public void | setPreferredCatalog(String preferredCatalog) Sets the preferred catalog name to use when performing catalog sensitve operations. |
public void | setPreferredSchema(String preferredSchema) Sets the preferred schema name to use when performing schema sensitve operations. |
public void | setQueryTimeout(int queryTimeout) Sets the number of seconds to wait for a connection to be made. |
public void | setResultsetKeys(boolean resultsetKeys) Sets the parameter to access generated keys from executed statements. |
public void | setReverseFetching(boolean reverseFetching) Sets the flag to enable reverse-fetching when results are recieve from a statement. |
public void | setTracingEnabled(boolean tracingEnabled) Configures JDBC tracing through the java.sql.DriverManager. |
public synchronized ClassLoader | toClassLoader() Create a ClassLoader using the implied classloader of this class. |
public synchronized Properties | toProperties() Exports the settings of this profile as a properties object. |