org.apache.log4j.db
クラス ConnectionSourceSkeleton

java.lang.Object
  上位を拡張 org.apache.log4j.spi.ComponentBase
      上位を拡張 org.apache.log4j.db.ConnectionSourceSkeleton
すべての実装されたインタフェース:
ConnectionSource, org.apache.log4j.spi.Component, org.apache.log4j.spi.OptionHandler
直系の既知のサブクラス:
DataSourceConnectionSource, DriverManagerConnectionSource, JNDIConnectionSource

public abstract class ConnectionSourceSkeleton
extends org.apache.log4j.spi.ComponentBase
implements ConnectionSource

作成者:
Ceki Gülcü

フィールドの概要
 
クラス org.apache.log4j.spi.ComponentBase から継承されたフィールド
repository
 
インタフェース org.apache.log4j.db.ConnectionSource から継承されたフィールド
HSQL_DIALECT, MSSQL_DIALECT, MYSQL_DIALECT, ORACLE_DIALECT, POSTGRES_DIALECT, UNKNOWN_DIALECT
 
コンストラクタの概要
ConnectionSourceSkeleton()
           
 
メソッドの概要
 void discoverConnnectionProperties()
          Learn relevant information about this connection source.
 java.lang.String getOverriddenSupportsGetGeneratedKeys()
          Returns the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver.
 java.lang.String getPassword()
          Get the password for this connection source.
 int getSQLDialectCode()
          Get the SQL dialect that should be used for this connection.
 java.lang.String getUser()
          Get the user for this connection source.
 void setOverriddenSupportsGetGeneratedKeys(java.lang.String overriddenSupportsGetGeneratedKeys)
          Sets the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver.
 void setPassword(java.lang.String password)
          Sets the password.
 void setUser(java.lang.String username)
          Sets the username.
 boolean supportsBatchUpdates()
          Does this connection support batch updates?
 boolean supportsGetGeneratedKeys()
          Does this connection support the JDBC Connection.getGeneratedKeys method?
 
クラス org.apache.log4j.spi.ComponentBase から継承されたメソッド
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.apache.log4j.db.ConnectionSource から継承されたメソッド
getConnection
 
インタフェース org.apache.log4j.spi.Component から継承されたメソッド
setLoggerRepository
 
インタフェース org.apache.log4j.spi.OptionHandler から継承されたメソッド
activateOptions
 

コンストラクタの詳細

ConnectionSourceSkeleton

public ConnectionSourceSkeleton()
メソッドの詳細

discoverConnnectionProperties

public void discoverConnnectionProperties()
Learn relevant information about this connection source.


supportsGetGeneratedKeys

public final boolean supportsGetGeneratedKeys()
Does this connection support the JDBC Connection.getGeneratedKeys method?

定義:
インタフェース ConnectionSource 内の supportsGetGeneratedKeys

getSQLDialectCode

public final int getSQLDialectCode()
インタフェース ConnectionSource の記述:
Get the SQL dialect that should be used for this connection. Note that the dialect is not needed if the JDBC driver supports the getGeneratedKeys method.

定義:
インタフェース ConnectionSource 内の getSQLDialectCode

getPassword

public final java.lang.String getPassword()
Get the password for this connection source.


setPassword

public final void setPassword(java.lang.String password)
Sets the password.

パラメータ:
password - The password to set

getUser

public final java.lang.String getUser()
Get the user for this connection source.


setUser

public final void setUser(java.lang.String username)
Sets the username.

パラメータ:
username - The username to set

getOverriddenSupportsGetGeneratedKeys

public java.lang.String getOverriddenSupportsGetGeneratedKeys()
Returns the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver. In certain cases, getting (e.g. Oracle 10g) generated keys does not work because it returns the ROWID, not the value of the sequence.

戻り値:
A non null string, with "true" or "false" value, if overridden, null if not overridden.

setOverriddenSupportsGetGeneratedKeys

public void setOverriddenSupportsGetGeneratedKeys(java.lang.String overriddenSupportsGetGeneratedKeys)
Sets the "overridden" value of "supportsGetGeneratedKeys" property of the JDBC driver. In certain cases, getting (e.g. Oracle 10g) generated keys does not work because it returns the ROWID, not the value of the sequence.

パラメータ:
overriddenSupportsGetGeneratedKeys - A non null string, with "true" or "false" value, if overridden, null if not overridden.

supportsBatchUpdates

public final boolean supportsBatchUpdates()
Does this connection support batch updates?

定義:
インタフェース ConnectionSource 内の supportsBatchUpdates


Copyright © 2010 Apache Software Foundation. All Rights Reserved.