|
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
local.tomas.common.xml.impl.SqlStoreImpl
public class SqlStoreImpl
SQL store implementation.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_TYPE
Attribute. |
static String |
CHAR_TYPE
Character. |
static String |
DOC_END_TYPE
End of document. |
static String |
DOC_TYPE
Document |
static String |
END_TOKEN_TYPE
End token. |
static String |
LOCAL_NAME_TYPE
Local name. |
static String |
QNAME_TYPE
QName. |
static String |
START_TOKEN_TYPE
Start token. |
static String |
URI_TYPE
URI. |
| Fields inherited from class local.tomas.common.xml.XMLSqlStore |
|---|
ID_FIELD, SEQUENCE_FIELD, TABLE_NAME, TYPE_FIELD, VALUE_FIELD |
| Constructor Summary | |
|---|---|
SqlStoreImpl(Connection conn)
Construct SQL store from connection. |
|
| Method Summary | |
|---|---|
void |
deleteXml(int id)
Delete an XML structure from the database. |
int |
getBatchSize()
Get the batch size. |
String |
getField(int id)
Get database table or column name. |
int |
getMaxValueSize()
Get the maximum number of characters used to store values in the value column of the database. |
Result |
getResult(int id)
Get XML transformation result to store an XML structure in the database. |
Source |
getSource(int id)
Get XML transformation source to retrieve an XML structure from the database. |
void |
setBatchSize(int batchSize)
Set the batch size. |
void |
setField(int id,
String value)
Define database table or column name. |
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 local.tomas.common.xml.XMLSqlStore |
|---|
createStore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DOC_TYPE
public static final String DOC_END_TYPE
public static final String CHAR_TYPE
public static final String START_TOKEN_TYPE
public static final String END_TOKEN_TYPE
public static final String ATTRIBUTE_TYPE
public static final String URI_TYPE
public static final String QNAME_TYPE
public static final String LOCAL_NAME_TYPE
| Constructor Detail |
|---|
public SqlStoreImpl(Connection conn)
conn - JDBC connection| Method Detail |
|---|
public void setField(int id,
String value)
XMLSqlStore
setField in class XMLSqlStoreid - - used to identify the column. See the constants of this class.value - - new name.public String getField(int id)
XMLSqlStore
getField in class XMLSqlStoreid - - used to identify the column. See the constants of this class.
public int getMaxValueSize()
XMLSqlStore
getMaxValueSize in class XMLSqlStorepublic void setMaxValueSize(int size)
XMLSqlStore
setMaxValueSize in class XMLSqlStoresize - - number of characterspublic int getBatchSize()
getBatchSize in class XMLSqlStorepublic void setBatchSize(int batchSize)
setBatchSize in class XMLSqlStorebatchSize - The batch size to set.
public Source getSource(int id)
throws XMLException
XMLSqlStore
getSource in class XMLSqlStoreid - - unique identifier of XML structure in the database
XMLException
public Result getResult(int id)
throws XMLException
XMLSqlStore
getResult in class XMLSqlStoreid - - unique identifier of XML strucure in the database
XMLException
public void deleteXml(int id)
throws XMLException
XMLSqlStore
deleteXml in class XMLSqlStoreid - - 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 | |||||||||