|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etools.sqltoxml.BaseProperties
This class provides database connection information for SQL and XML. The database connection information can be either set manually or loaded from an external file (which usually has the extension .xst). The database connection information can also be stored in an external file with the extension .xst.
QueryProperties
,
SQLProperties
Constructor Summary | |
BaseProperties()
The default constructor. |
Method Summary | |
java.lang.String |
getEncoding()
Returns the Java style encoding value for the properties file. |
java.lang.String |
getEncodingTag()
Returns the encoding value for the properties file to be written if store() is called. |
java.lang.String |
getJdbcDriver()
Returns a JDBC driver name. |
java.lang.String |
getJdbcServer()
Returns a JDBC server path. |
java.lang.String |
getLoginId()
Returns a database user ID that has the appropriate privilege to perform the query. |
java.lang.String |
getPassword()
Returns a password for the user ID that has the appropriate privilege to perform the query. |
abstract void |
load(java.io.InputStream stream)
Loads database operation values from an InputStream. |
abstract void |
load(java.lang.String xstFilename)
Loads database operation values from an external file. |
void |
setEncoding(java.lang.String enc)
Sets the Java style encoding value for the properties file to be written if store() is called. |
void |
setEncodingTag(java.lang.String encTag)
Sets the encoding value for the properties file to be written if store() is called. |
void |
setJdbcDriver(java.lang.String newJdbcDriver)
Sets a JDBC driver name. |
void |
setJdbcServer(java.lang.String newJdbcServer)
Sets a JDBC server path. |
void |
setLoginId(java.lang.String newLoginId)
Sets a database user ID that has a privilege to perform the query. |
void |
setPassword(java.lang.String newPassword)
Sets a password for the user ID that has a privilege to perform the query. |
abstract void |
store(java.lang.String xstFilename)
Stores database operation information to an external file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseProperties()
Method Detail |
public void setEncoding(java.lang.String enc)
enc
- Java style encoding value. For example, UTF8.setEncodingTag(java.lang.String)
,
store(java.lang.String)
public java.lang.String getEncoding()
getEncodingTag()
,
store(java.lang.String)
public void setEncodingTag(java.lang.String encTag)
encTag
- An encoding value. For example, UTF-8.setEncoding(java.lang.String)
,
store(java.lang.String)
public java.lang.String getEncodingTag()
getEncoding()
,
store(java.lang.String)
public abstract void load(java.lang.String xstFilename) throws java.lang.Exception
xstFilename
- The name of the external file.java.lang.Exception
- Thrown when loading from a file fails.public abstract void load(java.io.InputStream stream) throws java.lang.Exception
stream
- java.io.InputStream Provides database operation information
in an XML format.java.lang.Exception
- Thrown when loading from an InputStream is
failed.public abstract void store(java.lang.String xstFilename) throws java.lang.Exception
xstFilename
- The name of the external file to be createdjava.lang.Exception
- Thrown when storing to a file is failed.public java.lang.String getJdbcDriver()
COM.ibm.db2.jdbc.app.DB2Driver
public java.lang.String getJdbcServer()
jdbc:db2:hospitalwhere hospital is a database name for the query.
public java.lang.String getLoginId()
public java.lang.String getPassword()
public void setJdbcDriver(java.lang.String newJdbcDriver)
COM.ibm.db2.jdbc.app.DB2Driver
newJdbcDriver
- A JDBC driver class name.public void setJdbcServer(java.lang.String newJdbcServer)
jdbc:db2:hospitalwhere hospital is a database name for the query.
newJdbcServer
- A JDBC server name.public void setLoginId(java.lang.String newLoginId)
newLoginId
- A database user ID.public void setPassword(java.lang.String newPassword)
newPassword
- A password for the database user ID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |