Oracle10g JDBC

oracle.jdbc.driver
Class OracleDriver

java.lang.Object
  extended byoracle.jdbc.driver.OracleDriver
All Implemented Interfaces:
java.sql.Driver
Direct Known Subclasses:
OracleDriver

public class OracleDriver
extends java.lang.Object
implements java.sql.Driver

Oracle JDBC driver class.


Field Summary
static java.lang.String access_string
          Deprecated. unused
static java.lang.String accumulate_batch_result
           
static char at_sign_character
           
static java.lang.String batch_string
          Deprecated. use default_execute_batch_string
static java.lang.String BUILD_DATE
           
static java.lang.String database_string
           
static java.lang.String dataSizeBytes
          Deprecated. unused
static java.lang.String dataSizeChars
          Deprecated. unused
static java.lang.String dataSizeUnitsPropertyName
          Deprecated. unused
static java.lang.String default_execute_batch_string
           
static java.lang.String default_row_prefetch_string
           
static java.lang.String defaultnchar_string
           
static java.lang.String defaultncharprop_string
           
static java.lang.String disable_defineColumnType_string
          Disable the method OracleStatement.defineColumnType when equal "true".
static java.lang.String dll_string
          Set the name of the native library for the oci driver.
static java.lang.String dms_parent_name_string
           
static java.lang.String dms_parent_type_string
           
static java.lang.String dms_stmt_metrics_string
          Property which enables/disables DMS Statement metrics
static java.lang.String execute_batch_string
          Deprecated. use default_execute_batch_string
static java.lang.String fixed_string_string
           
static java.lang.String include_synonyms_string
           
static java.lang.String j2ee_compliance
           
static java.lang.String logon_as_internal_str
           
static java.lang.String nls_lang_backdoor
           
static java.lang.String oracle_string
           
static java.lang.String password_string
           
static java.lang.String prefetch_string
          Deprecated. use default_row_prefetch_string
static boolean PRIVATE_TRACE
           
static java.lang.String process_escapes_string
           
static java.lang.String protocol_string
           
static java.lang.String protocolFullName_string
          Deprecated. unused
static java.lang.String remarks_string
          Deprecated. use report_remarks_string
static java.lang.String report_remarks_string
           
static java.lang.String restrict_getTables_string
           
static java.lang.String row_prefetch_string
          Deprecated. use default_row_prefetch_string
static java.lang.String server_string
           
static char slash_character
           
static java.lang.String synonyms_string
          Deprecated. use include_synonyms_string
static java.lang.String tcp_no_delay
           
static boolean TRACE
           
static java.lang.String useFetchSizeWithLongColumn_prop_string
           
static java.lang.String useFetchSizeWithLongColumn_string
           
static java.lang.String user_string
           
static java.lang.String v8compatible_string
          If the value of this property is "true", JDBC uses an Oracle 8i compatible representation for date data.
static java.lang.String xa_trans_loose
          Deprecated. unused
 
Constructor Summary
OracleDriver()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          Test to see if this driver understands a sub-protocol.
static void clearDefaultTZ()
           
 java.sql.Connection connect(java.lang.String url, java.util.Properties info)
          Connect to a database.
 java.sql.Connection defaultConnection()
          Obtain the default static Connection.
static java.util.TimeZone getDefaultTZ()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
           
static java.lang.String getSystemProperty(java.lang.String str, java.lang.String defaultValue)
           
 boolean jdbcCompliant()
           
 java.lang.String processSqlEscapes(java.lang.String sqlString)
          This method processes the SQL just as JDBC does before execution and returns the resulting String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slash_character

public static final char slash_character
See Also:
Constant Field Values

at_sign_character

public static final char at_sign_character
See Also:
Constant Field Values

oracle_string

public static final java.lang.String oracle_string
See Also:
Constant Field Values

protocol_string

public static final java.lang.String protocol_string
See Also:
Constant Field Values

user_string

public static final java.lang.String user_string
See Also:
Constant Field Values

password_string

public static final java.lang.String password_string
See Also:
Constant Field Values

database_string

public static final java.lang.String database_string
See Also:
Constant Field Values

server_string

public static final java.lang.String server_string
See Also:
Constant Field Values

access_string

public static final java.lang.String access_string
Deprecated. unused

See Also:
Constant Field Values

protocolFullName_string

public static final java.lang.String protocolFullName_string
Deprecated. unused

See Also:
Constant Field Values

logon_as_internal_str

public static final java.lang.String logon_as_internal_str
See Also:
Constant Field Values

prefetch_string

public static final java.lang.String prefetch_string
Deprecated. use default_row_prefetch_string

See Also:
Constant Field Values

row_prefetch_string

public static final java.lang.String row_prefetch_string
Deprecated. use default_row_prefetch_string

See Also:
Constant Field Values

default_row_prefetch_string

public static final java.lang.String default_row_prefetch_string
See Also:
Constant Field Values

batch_string

public static final java.lang.String batch_string
Deprecated. use default_execute_batch_string

See Also:
Constant Field Values

execute_batch_string

public static final java.lang.String execute_batch_string
Deprecated. use default_execute_batch_string

See Also:
Constant Field Values

default_execute_batch_string

public static final java.lang.String default_execute_batch_string
See Also:
Constant Field Values

process_escapes_string

public static final java.lang.String process_escapes_string
See Also:
Constant Field Values

dms_parent_name_string

public static final java.lang.String dms_parent_name_string
See Also:
Constant Field Values

dms_parent_type_string

public static final java.lang.String dms_parent_type_string
See Also:
Constant Field Values

accumulate_batch_result

public static final java.lang.String accumulate_batch_result
See Also:
Constant Field Values

j2ee_compliance

public static final java.lang.String j2ee_compliance
See Also:
Constant Field Values

v8compatible_string

public static final java.lang.String v8compatible_string
If the value of this property is "true", JDBC uses an Oracle 8i compatible representation for date data.

See Also:
Constant Field Values

xa_trans_loose

public static final java.lang.String xa_trans_loose
Deprecated. unused

See Also:
Constant Field Values

tcp_no_delay

public static final java.lang.String tcp_no_delay
See Also:
Constant Field Values

defaultnchar_string

public static final java.lang.String defaultnchar_string
See Also:
Constant Field Values

defaultncharprop_string

public static final java.lang.String defaultncharprop_string
See Also:
Constant Field Values

useFetchSizeWithLongColumn_prop_string

public static final java.lang.String useFetchSizeWithLongColumn_prop_string
See Also:
Constant Field Values

useFetchSizeWithLongColumn_string

public static final java.lang.String useFetchSizeWithLongColumn_string
See Also:
Constant Field Values

remarks_string

public static final java.lang.String remarks_string
Deprecated. use report_remarks_string

See Also:
Constant Field Values

report_remarks_string

public static final java.lang.String report_remarks_string
See Also:
Constant Field Values

synonyms_string

public static final java.lang.String synonyms_string
Deprecated. use include_synonyms_string

See Also:
Constant Field Values

include_synonyms_string

public static final java.lang.String include_synonyms_string
See Also:
Constant Field Values

restrict_getTables_string

public static final java.lang.String restrict_getTables_string
See Also:
Constant Field Values

fixed_string_string

public static final java.lang.String fixed_string_string
See Also:
Constant Field Values

dll_string

public static final java.lang.String dll_string
Set the name of the native library for the oci driver. If not set, the default name, libocijdbcX (X is a version number), is used.

See Also:
Constant Field Values

nls_lang_backdoor

public static final java.lang.String nls_lang_backdoor
See Also:
Constant Field Values

disable_defineColumnType_string

public static final java.lang.String disable_defineColumnType_string
Disable the method OracleStatement.defineColumnType when equal "true". When this connection property has the value true, the method defineColumnType is has no effect. This is highly recommended when using the Thin driver, especially when the database character set contains four byte characters that expand to two UCS2 surrogate characters, e.g. AL32UTF8. The method defineColumnType provides no performance benefit (or any other benefit) when used with the 10g Thin driver. This property is provided so that you do not have to remove the calls from your code. This is especially valuable if you use the same code with Thin driver and either the OCI or Server Internal driver.

See Also:
Constant Field Values

dataSizeUnitsPropertyName

public static final java.lang.String dataSizeUnitsPropertyName
Deprecated. unused

See Also:
Constant Field Values

dataSizeBytes

public static final java.lang.String dataSizeBytes
Deprecated. unused

See Also:
Constant Field Values

dataSizeChars

public static final java.lang.String dataSizeChars
Deprecated. unused

See Also:
Constant Field Values

dms_stmt_metrics_string

public static final java.lang.String dms_stmt_metrics_string
Property which enables/disables DMS Statement metrics

See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

PRIVATE_TRACE

public static final boolean PRIVATE_TRACE
See Also:
Constant Field Values

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values
Constructor Detail

OracleDriver

public OracleDriver()
Method Detail

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties info)
                            throws java.sql.SQLException
Connect to a database.

Specified by:
connect in interface java.sql.Driver
Parameters:
url - URL string.
info - A list of arbitary string tag/value pairs as connection arguments, normally "user" and "password" properties are used.
Returns:
a Connection object that represents the database located at the specified URL.
Throws:
java.sql.SQLException

defaultConnection

public java.sql.Connection defaultConnection()
                                      throws java.sql.SQLException
Obtain the default static Connection.

This function is deprecated. Use DriverManager.getConnection("jdbc:oracle:kprb:");

Throws:
java.sql.SQLException

acceptsURL

public boolean acceptsURL(java.lang.String url)
Test to see if this driver understands a sub-protocol.

The OracleDriver class accepts URLs that use the sub-protocol "oracle", and sub-names "oci8", "thin", "kprb", "oci".

Specified by:
acceptsURL in interface java.sql.Driver
Parameters:
url - The URL of the database to which to connect.
Returns:
true if the specified url contains a valid subprotocol, or false if not.

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                     java.util.Properties info)
                                              throws java.sql.SQLException
Specified by:
getPropertyInfo in interface java.sql.Driver
Throws:
java.sql.SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface java.sql.Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface java.sql.Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface java.sql.Driver

processSqlEscapes

public java.lang.String processSqlEscapes(java.lang.String sqlString)
                                   throws java.sql.SQLException
This method processes the SQL just as JDBC does before execution and returns the resulting String.

Parameters:
sqlString - the SQL expression to be processed
Returns:
the SQL after processing
Throws:
java.sql.SQLException - if there is a problem in processing the SQL

getSystemProperty

public static java.lang.String getSystemProperty(java.lang.String str,
                                                 java.lang.String defaultValue)

getDefaultTZ

public static java.util.TimeZone getDefaultTZ()

clearDefaultTZ

public static void clearDefaultTZ()

Oracle10g JDBC

Copyright © 1998,2004, Oracle. All rights reserved