|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.common.xml.XMLSqlStore
public abstract class XMLSqlStore
Use this class to store and retrieve XML in a database.
| Field Summary | |
|---|---|
static int |
ID_FIELD
Name of ID column in table. |
static int |
SEQUENCE_FIELD
Name of sequence column in table. |
static int |
TABLE_NAME
|
static int |
TYPE_FIELD
Name of type column in table. |
static int |
VALUE_FIELD
Name of value column in table. |
| Constructor Summary | |
|---|---|
protected |
XMLSqlStore()
|
| Method Summary | |
|---|---|
static XMLSqlStore |
createStore(Connection conn)
Create an SQL store for a database connection. |
abstract void |
deleteXml(int id)
Delete an XML structure from the database. |
abstract int |
getBatchSize()
Get batch size for inserts. |
abstract String |
getField(int id)
Get database table or column name. |
abstract int |
getMaxValueSize()
Get the maximum number of characters used to store values in the value column of the database. |
abstract Result |
getResult(int id)
Get XML transformation result to store an XML structure in the database. |
abstract Source |
getSource(int id)
Get XML transformation source to retrieve an XML structure from the database. |
abstract void |
setBatchSize(int size)
Set batch size for inserts. |
abstract void |
setField(int id,
String value)
Define database table or column name. |
abstract void |
setMaxValueSize(int size)
Set the maximum number of characters used to store values in the value column of the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TABLE_NAME
public static final int ID_FIELD
xml_id.
public static final int SEQUENCE_FIELD
xml_seq.
public static final int TYPE_FIELD
xml_type.
public static final int VALUE_FIELD
getMaxValueSize()
(default 128).
| Constructor Detail |
|---|
protected XMLSqlStore()
| Method Detail |
|---|
public static XMLSqlStore createStore(Connection conn)
conn - - the database connection
public abstract void setField(int id,
String value)
id - - used to identify the column. See the constants of this class.value - - new name.public abstract String getField(int id)
id - - used to identify the column. See the constants of this class.
public abstract void setMaxValueSize(int size)
size - - number of characterspublic abstract int getMaxValueSize()
public abstract int getBatchSize()
public abstract void setBatchSize(int size)
size - batch size
public abstract Source getSource(int id)
throws XMLException
id - - unique identifier of XML structure in the database
XMLException
public abstract Result getResult(int id)
throws XMLException
id - - unique identifier of XML strucure in the database
XMLException
public abstract void deleteXml(int id)
throws XMLException
id - - unique identifier of XML structure in the database.
XMLException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||