|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etools.sqltoxml.BaseProperties | +--com.ibm.etools.xmltosql.SQLProperties
This class is used to provide data necessary for XMLToSQL to update database tables. An instance of this class is used as an argument to the XMLToSQL constructor.
Field Summary | |
static java.lang.String |
DELETE
SQL DELETE action type. |
static java.lang.String |
INSERT
SQL INSERT action type. |
static java.lang.String |
UPDATE
SQL UPDATE action type. |
Constructor Summary | |
SQLProperties()
The default constructor. |
Method Summary | |
java.lang.String |
getAction()
Returns the action to be performed by XMLToSQL |
java.lang.String |
getSchema()
Returns the schema name. |
void |
load(java.io.InputStream stream)
Loads necessary database manipulation values from an InputStream. |
void |
load(java.lang.String xstFilename)
Loads necessary database manipulation values from an external file. |
void |
setAction(java.lang.String type)
Sets the action to be performed by XMLToSQL. |
void |
setSchema(java.lang.String schemaName)
Sets the schema name if required. |
void |
store(java.lang.String xstFilename)
Stores database manipulation values to an external file. |
Methods inherited from class com.ibm.etools.sqltoxml.BaseProperties |
getEncoding, getEncodingTag, getJdbcDriver, getJdbcServer, getLoginId, getPassword, setEncoding, setEncodingTag, setJdbcDriver, setJdbcServer, setLoginId, setPassword |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INSERT
public static final java.lang.String UPDATE
public static final java.lang.String DELETE
Constructor Detail |
public SQLProperties()
Method Detail |
public void setAction(java.lang.String type)
SQLProperties.INSERT : New rows are added to the table from the XML document. SQLProperties.UPDATE : Existing rows are updated from the XML document. SQLProperties.DELETE : Existing rows are deleted based on the XML document.
type
- SQLProperties.INSERT, SQLProperties.UPDATE, or
SQLProperties.DELETEpublic java.lang.String getAction()
setAction(java.lang.String)
public void setSchema(java.lang.String schemaName)
UPDATE schemaName.tableName SET ...
schemaName
- Schema name of the tablepublic java.lang.String getSchema()
setSchema(java.lang.String)
public void load(java.lang.String xstFilename) throws java.lang.Exception
load
in class BaseProperties
xstFilename
- The name of the properties file.java.lang.Exception
- Thrown when loading from a file is failed.public void load(java.io.InputStream stream) throws java.lang.Exception
load
in class BaseProperties
stream
- java.io.InputStream Provides necessary property values in an XML format.java.lang.Exception
- Thrown when loading from an InputStream fails.public void store(java.lang.String xstFilename) throws java.lang.Exception
store
in class BaseProperties
xstFilename
- The name of the external file to be createdjava.lang.Exception
- Thrown when storing to a file fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |