public class JDBCPropertySet extends com.opensymphony.module.propertyset.database.JDBCPropertySet
| Modifier and Type | Field and Description |
|---|---|
private static String |
__GLOBAL_KEY_COL |
private static String |
__ITEM_KEY_COL |
private static String |
__ITEM_TYPE_COL |
private static Log |
__log |
private static String |
__STRING_COL |
private static String |
__TABLE_NAME |
protected DataSource |
_ds
datasource
|
static String |
OSWF_PREFIX
Prefix for osworkflow entries
|
| Constructor and Description |
|---|
JDBCPropertySet() |
| Modifier and Type | Method and Description |
|---|---|
private static List |
__doExpressionQuery(DataSource ds,
String query,
List values) |
private static Long |
__getWorkflowID(String globalKey) |
private static String |
_getCondition(DataSource ds,
com.opensymphony.workflow.query.Expression e,
List<String> values) |
private static String |
_getCondition(PropertySetExpression e,
List<String> values) |
protected void |
cleanup(Connection connection,
Statement statement,
ResultSet result) |
protected Connection |
getConnection() |
void |
init(Map config,
Map args) |
static boolean |
isPropertySetExpressionsNested(com.opensymphony.workflow.query.NestedExpression expr)
Test if an expression contains only nested PropertySet expression.
|
static List |
query(DataSource ds,
com.opensymphony.workflow.query.Expression e)
Process a query from an osworkflow expression.
|
exists, get, getKeys, getType, remove, remove, setImpl, supportsTypegetAsActualType, getBoolean, getData, getDate, getDouble, getInt, getKeys, getKeys, getKeys, getLong, getObject, getProperties, getSchema, getString, getText, getXML, isSettable, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setText, setXML, supportsTypes, toString, type, typepublic static final String OSWF_PREFIX
private static final String __TABLE_NAME
private static final String __GLOBAL_KEY_COL
private static final String __ITEM_KEY_COL
private static final String __ITEM_TYPE_COL
private static final String __STRING_COL
protected DataSource _ds
public JDBCPropertySet()
public void init(Map config, Map args)
init in interface com.opensymphony.module.propertyset.PropertySetinit in class com.opensymphony.module.propertyset.database.JDBCPropertySetprotected Connection getConnection() throws SQLException
getConnection in class com.opensymphony.module.propertyset.database.JDBCPropertySetSQLExceptionprotected void cleanup(Connection connection, Statement statement, ResultSet result)
cleanup in class com.opensymphony.module.propertyset.database.JDBCPropertySetpublic static boolean isPropertySetExpressionsNested(com.opensymphony.workflow.query.NestedExpression expr) throws com.opensymphony.workflow.StoreException
expr - The nested expression to test.true if the expression contains only PropertySet expression, false otherwise.com.opensymphony.workflow.StoreException - If an error occurs.public static List query(DataSource ds, com.opensymphony.workflow.query.Expression e) throws com.opensymphony.workflow.StoreException
ds - The datasourcee - The expression.com.opensymphony.workflow.StoreException - If an error occurs.private static String _getCondition(DataSource ds, com.opensymphony.workflow.query.Expression e, List<String> values) throws com.opensymphony.workflow.StoreException
com.opensymphony.workflow.StoreExceptionprivate static String _getCondition(PropertySetExpression e, List<String> values) throws com.opensymphony.workflow.StoreException
com.opensymphony.workflow.StoreExceptionprivate static List __doExpressionQuery(DataSource ds, String query, List values) throws com.opensymphony.workflow.StoreException
com.opensymphony.workflow.StoreExceptionprivate static Long __getWorkflowID(String globalKey)