org.apache.struts.config
クラス DataSourceConfig

java.lang.Object
  拡張org.apache.struts.config.DataSourceConfig
すべての実装インタフェース:
java.io.Serializable

public class DataSourceConfig
extends java.lang.Object
implements java.io.Serializable

A JavaBean representing the configuration information of a <data-source> element from a Struts configuration file.

WARNING - The properties of this configuration bean are recognized by the default data source implementation, but some or all of them may be ignored by custom data source implementations.

導入されたバージョン:
Struts 1.1
バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:41 $
関連項目:
直列化された形式

フィールドの概要
protected  boolean configured
          Has this component been completely configured?
protected  java.lang.String key
          The servlet context attribute key under which this data source is stored and made available.
protected  java.util.HashMap properties
          The custom configuration properties for this data source implementation.
protected  java.lang.String type
          The fully qualified class name of the javax.sql.DataSource implementation class.
 
コンストラクタの概要
DataSourceConfig()
           
 
メソッドの概要
 void addProperty(java.lang.String name, java.lang.String value)
          Add a new custom configuration property.
 void freeze()
          Freeze the configuration of this data source.
 java.lang.String getKey()
           
 java.util.Map getProperties()
           
 java.lang.String getType()
           
 void setKey(java.lang.String key)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
          Return a String representation of this object.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

configured

protected boolean configured
Has this component been completely configured?


key

protected java.lang.String key
The servlet context attribute key under which this data source is stored and made available.


properties

protected java.util.HashMap properties
The custom configuration properties for this data source implementation.


type

protected java.lang.String type
The fully qualified class name of the javax.sql.DataSource implementation class.

コンストラクタの詳細

DataSourceConfig

public DataSourceConfig()
メソッドの詳細

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

getProperties

public java.util.Map getProperties()

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)
Add a new custom configuration property.

パラメータ:
name - Custom property name
value - Custom property value

freeze

public void freeze()
Freeze the configuration of this data source.


toString

public java.lang.String toString()
Return a String representation of this object.



このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation