|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.u2.jdbcx.UniJDBCCoreDataSource
UniJDBCCoreDataSource class is the abstract class from which UniJDBCDataSource and UniJDBCConnectionPoolDataSource are extended.
DataSource
, Serialized FormField Summary | |
protected java.util.Properties |
DSProperties
|
protected com.ibm.u2.jdbc.UniJDBCMsgFactory |
mMsgFactory
|
protected java.lang.String |
password
|
protected java.lang.String |
user
|
protected java.lang.String |
value
|
Constructor Summary | |
UniJDBCCoreDataSource()
Constructor. |
Method Summary | |
void |
addProp(java.lang.String key,
java.lang.Object value)
Adds a property to the property list. |
java.lang.String |
getAccount()
Gets the account name/path. |
protected java.lang.String |
getCountry()
Gets the country for localized error message reporting. |
java.lang.String |
getDataSourceName()
Gets the DataSource name. |
java.lang.String |
getDBMSType()
Gets the type of the DBMS. |
java.lang.String |
getDescription()
Gets the description of the DataSource. |
java.util.Properties |
getDsProperties()
Returns the Properties objects in the CoreDataSource. |
protected java.lang.String |
getLanguage()
Gets the language for localized error message reporting. |
int |
getLoginTimeout()
Get the login timeout. |
java.io.PrintWriter |
getLogWriter()
Gets the logwriter for the DataSource. |
protected com.ibm.u2.jdbc.UniJDBCMsgFactory |
getMsgFactory()
|
java.lang.String |
getNetworkType()
Gets the network type. |
protected java.lang.String |
getODBCConfigURL()
Gets the URL for ODBC configuration file. |
protected java.lang.String |
getODBCDSName()
Gets the odbc data soruce name. |
java.lang.String |
getPassword()
Gets the password of the user for connecting to the database. |
java.lang.Object |
getProp(java.lang.String key)
Get the value of a property from the property list. |
java.lang.String |
getServerHost()
Gets the database server host name. |
int |
getServerPort()
Gets the database server port number |
java.lang.String |
getService()
Gets the service. |
protected java.lang.String |
getTraceFile()
Gets the trace file. |
protected int |
getTraceLevel()
Gets the trace-level. |
java.lang.String |
getUser()
Gets the user id for connecting to the database. |
void |
readProperties(java.io.InputStream in)
Reads the properties from an input stream |
void |
removeProperty(java.lang.String key)
Removes the property from the DataSource property list |
void |
setAccount(java.lang.String account)
Sets the account. |
protected void |
setCountry(java.lang.String country)
Sets the country for localized error message reporting. |
void |
setDataSourceName(java.lang.String dsName)
Sets the DataSource name. |
void |
setDBMSType(java.lang.String dbtype)
Sets the type of the DBMS. |
void |
setDescription(java.lang.String descrip)
Sets the description of the DataSource. |
protected void |
setLanguage(java.lang.String language)
Sets the language for localized error message reporting. |
void |
setLoginTimeout(int seconds)
Sets the login time out. |
void |
setLogWriter(java.io.PrintWriter out)
Sets the logwriter for the DataSource. |
void |
setNetworkType(java.lang.String network)
Sets the network type. |
protected void |
setODBCConfigURL(java.lang.String url)
Sets the URL for odbc configuration file. |
protected void |
setODBCDSName(java.lang.String odsn)
Sets the ODBC datasource name. |
void |
setPassword(java.lang.String passwd)
sets the password of the user for connecting to the database. |
void |
setServerHost(java.lang.String hostname)
Sets the database server host name. |
void |
setServerPort(int port)
Sets the server port number. |
void |
setService(java.lang.String service)
Sets the service. |
protected void |
setTraceFile(java.lang.String ifile)
Sets the user id to be used to connect with this DataSource. |
protected void |
setTraceLevel(int level)
Sets the trace-level |
void |
setUser(java.lang.String iuser)
Sets the user id for connecting to the database. |
void |
writeProperties(java.io.OutputStream out)
Writes the properties of the DataSource to an outputstream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties DSProperties
protected java.lang.String value
protected transient java.lang.String user
protected transient java.lang.String password
protected transient com.ibm.u2.jdbc.UniJDBCMsgFactory mMsgFactory
Constructor Detail |
public UniJDBCCoreDataSource()
Method Detail |
public int getLoginTimeout()
public void setLoginTimeout(int seconds)
seconds
- the timeout value.public java.io.PrintWriter getLogWriter()
public void setLogWriter(java.io.PrintWriter out)
out
- the logwriter.public java.util.Properties getDsProperties()
public void addProp(java.lang.String key, java.lang.Object value)
key
- the key for this property.value
- the value for this property.public java.lang.Object getProp(java.lang.String key)
key
- the key of the property that is to be retrieved.public void writeProperties(java.io.OutputStream out) throws java.io.IOException
out
- the stream to which the properties are to be written.java.io.IOException
- when an I/O error is encountered while writing
to the output stream.public void readProperties(java.io.InputStream in) throws java.io.IOException
in
- the inputstream from which the properties are to be read.java.io.IOException
- when an I/O error is encountered while reading
from the input stream.public void removeProperty(java.lang.String key)
key
- Property to be removedpublic java.lang.String getDataSourceName()
public void setDataSourceName(java.lang.String dsName)
dsName
- the datasource name.public java.lang.String getDescription()
public void setDescription(java.lang.String descrip)
descrip
- the description of the DataSource.public java.lang.String getServerHost()
public void setServerHost(java.lang.String hostname)
hostname
- the database server host name.public int getServerPort()
public void setServerPort(int port)
port
- the database server port number.public java.lang.String getAccount()
public void setAccount(java.lang.String account)
account
- The account name/path.protected java.lang.String getODBCDSName()
protected void setODBCDSName(java.lang.String odsn)
getODBCConfigURL
method.odsn
- the datasource name in the configuration file.setODBCDSName(java.lang.String)
protected java.lang.String getODBCConfigURL()
protected void setODBCConfigURL(java.lang.String url)
url
- the URL.public java.lang.String getDBMSType()
public void setDBMSType(java.lang.String dbtype)
UNIVERSE
and
UNIDATA
.dbtype
- the type of the DBMS.public java.lang.String getNetworkType()
public void setNetworkType(java.lang.String network)
public java.lang.String getService()
public void setService(java.lang.String service)
protected java.lang.String getLanguage()
protected void setLanguage(java.lang.String language)
language
- the language.protected java.lang.String getCountry()
protected void setCountry(java.lang.String country)
country
- the country.public java.lang.String getPassword()
public void setPassword(java.lang.String passwd)
passwd
- the password.public java.lang.String getUser()
public void setUser(java.lang.String iuser)
iuser
- the user id.protected int getTraceLevel()
protected void setTraceLevel(int level)
level
- The level to be set to.protected java.lang.String getTraceFile()
protected void setTraceFile(java.lang.String ifile)
iuser
- the user id.protected com.ibm.u2.jdbc.UniJDBCMsgFactory getMsgFactory()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |