|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.sql.XMLSQL
public class XMLSQL
XMLSQL provides wrappers around SQL queries and transforms ResultSets into java objects
| Nested Class Summary | |
|---|---|
static class |
XMLSQL.BatchStoreLongXML
Batch operation for adding parameters to the StoreLongXML prepared statement |
static class |
XMLSQL.BatchStoreXML
Batch operation for adding parameters to the StoreXML prepared statement |
static interface |
XMLSQL.StoreLongXMLParams
Interface for managing the parameters to the storeLongXML prepared statement. |
static class |
XMLSQL.StoreLongXMLParamsImpl
Default implementation of StoreLongXMLParams |
static interface |
XMLSQL.StoreXMLParams
Interface for managing the parameters to the storeXML prepared statement. |
static class |
XMLSQL.StoreXMLParamsImpl
Default implementation of StoreXMLParams |
| Field Summary | |
|---|---|
static java.lang.String |
fetchXMLLiteralNodeID
Constant "fetchXMLLiteralNodeID" used to reference prepared statement xml.fetchXMLLiteralNodeID
SELECT ID FROM ${a} WHERE HASH = ?
|
static java.lang.String |
fetchXMLNodeID
Constant "fetchXMLNodeID" used to reference prepared statement xml.fetchXMLNodeID
SELECT ID FROM ${a} WHERE VALUE =?
|
static java.lang.String |
fetchXMLValue
Constant "fetchXMLValue" used to reference prepared statement xml.fetchXMLValue
SELECT VALUE FROM ${a} WHERE ID = ?
|
static java.lang.String |
storeLongXML
Constant "storeLongXML" used to reference prepared statement xml.storeLongXML
INSERT INTO ${a} (ID, VALUE, HASH) VALUES(?, ?, ?)
|
static java.lang.String |
storeXML
Constant "storeXML" used to reference prepared statement xml.storeXML
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
|
| Constructor Summary | |
|---|---|
XMLSQL()
|
|
| Method Summary | |
|---|---|
static java.lang.Long |
fetchXMLLiteralNodeID(PreparedStatementCache sqlCache,
long hash,
java.lang.String longLiteralNodeTableName)
Runs the fetchXMLLiteralNodeID prepared statement. |
static java.lang.Long |
fetchXMLNodeID(PreparedStatementCache sqlCache,
java.lang.String value,
java.lang.String literalNodeTableName)
Runs the fetchXMLNodeID prepared statement. |
static java.lang.String |
fetchXMLValue(PreparedStatementCache sqlCache,
long id,
java.lang.String xmlNodeTableName)
Runs the fetchXMLValue prepared statement. |
static void |
prepareFetchXMLLiteralNodeID(java.sql.PreparedStatement ps,
long hash)
Sets the input parameters for the fetchXMLLiteralNodeID prepared statement. |
static void |
prepareFetchXMLNodeID(java.sql.PreparedStatement ps,
java.lang.String value)
Sets the input parameters for the fetchXMLNodeID prepared statement. |
static void |
prepareFetchXMLValue(java.sql.PreparedStatement ps,
long id)
Sets the input parameters for the fetchXMLValue prepared statement. |
static void |
prepareStoreLongXML(java.sql.PreparedStatement ps,
long id,
java.lang.String value,
long hash)
Sets the input parameters for the storeLongXML prepared statement. |
static void |
prepareStoreXML(java.sql.PreparedStatement ps,
long id,
java.lang.String value)
Sets the input parameters for the storeXML prepared statement. |
static void |
storeLongXML(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
long hash,
java.lang.String bulkLiteralTableName)
Runs the storeLongXML prepared statement. |
static void |
storeLongXML(PreparedStatementCache sqlCache,
XMLSQL.StoreLongXMLParams params,
java.lang.String bulkLiteralTableName)
Runs the storeLongXML prepared statement. |
static void |
storeXML(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
java.lang.String bulkLiteralTableName)
Runs the storeXML prepared statement. |
static void |
storeXML(PreparedStatementCache sqlCache,
XMLSQL.StoreXMLParams params,
java.lang.String bulkLiteralTableName)
Runs the storeXML prepared statement. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String fetchXMLValue
SELECT VALUE FROM ${a} WHERE ID = ?
public static final java.lang.String fetchXMLNodeID
SELECT ID FROM ${a} WHERE VALUE =?
public static final java.lang.String fetchXMLLiteralNodeID
SELECT ID FROM ${a} WHERE HASH = ?
public static final java.lang.String storeXML
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
public static final java.lang.String storeLongXML
INSERT INTO ${a} (ID, VALUE, HASH) VALUES(?, ?, ?)
| Constructor Detail |
|---|
public XMLSQL()
| Method Detail |
|---|
public static java.lang.String fetchXMLValue(PreparedStatementCache sqlCache,
long id,
java.lang.String xmlNodeTableName)
throws RdbException
SELECT VALUE FROM ${a} WHERE ID = ?
sqlCache - factory and cache of PreparedStatmentsid - template parameterxmlNodeTableName - template parameter
RdbException
public static void prepareFetchXMLValue(java.sql.PreparedStatement ps,
long id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parameter
java.sql.SQLException
public static java.lang.Long fetchXMLNodeID(PreparedStatementCache sqlCache,
java.lang.String value,
java.lang.String literalNodeTableName)
throws RdbException
SELECT ID FROM ${a} WHERE VALUE =?
sqlCache - factory and cache of PreparedStatmentsvalue - template parameterliteralNodeTableName - template parameter
RdbException
public static void prepareFetchXMLNodeID(java.sql.PreparedStatement ps,
java.lang.String value)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setvalue - template parameter
java.sql.SQLException
public static java.lang.Long fetchXMLLiteralNodeID(PreparedStatementCache sqlCache,
long hash,
java.lang.String longLiteralNodeTableName)
throws RdbException
SELECT ID FROM ${a} WHERE HASH = ?
sqlCache - factory and cache of PreparedStatmentshash - template parameterlongLiteralNodeTableName - template parameter
RdbException
public static void prepareFetchXMLLiteralNodeID(java.sql.PreparedStatement ps,
long hash)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are sethash - template parameter
java.sql.SQLException
public static void storeXML(PreparedStatementCache sqlCache,
XMLSQL.StoreXMLParams params,
java.lang.String bulkLiteralTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - StoreXMLParams input InterfacebulkLiteralTableName - template parameter
RdbException
public static void storeXML(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
java.lang.String bulkLiteralTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parametervalue - template parameterbulkLiteralTableName - template parameter
RdbException
public static void prepareStoreXML(java.sql.PreparedStatement ps,
long id,
java.lang.String value)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parametervalue - template parameter
java.sql.SQLException
public static void storeLongXML(PreparedStatementCache sqlCache,
XMLSQL.StoreLongXMLParams params,
java.lang.String bulkLiteralTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE, HASH) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - StoreLongXMLParams input InterfacebulkLiteralTableName - template parameter
RdbException
public static void storeLongXML(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
long hash,
java.lang.String bulkLiteralTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE, HASH) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parametervalue - template parameterhash - template parameterbulkLiteralTableName - template parameter
RdbException
public static void prepareStoreLongXML(java.sql.PreparedStatement ps,
long id,
java.lang.String value,
long hash)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parametervalue - template parameterhash - template parameter
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||