org.infoglue.cms.util.workflow
Class InfoGlueJDBCPropertySet
java.lang.Object
com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.database.JDBCPropertySet
org.infoglue.cms.util.workflow.InfoGlueJDBCPropertySet
- All Implemented Interfaces:
- com.opensymphony.module.propertyset.PropertySet
public class InfoGlueJDBCPropertySet
- extends com.opensymphony.module.propertyset.database.JDBCPropertySet
This is an implementation of a property set manager for JDBC.
- Author:
- Mattias Bogeblad
| Fields inherited from class com.opensymphony.module.propertyset.database.JDBCPropertySet |
closeConnWhenDone, ds |
| Fields inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
schema |
| Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
|
Method Summary |
static void |
clearCaches()
|
boolean |
exists(java.lang.String key)
|
protected java.lang.Object |
get(int type,
java.lang.String key)
|
protected java.sql.Connection |
getConnection()
|
java.util.Collection |
getKeys(java.lang.String prefix,
int type)
|
int |
getType(java.lang.String key)
|
void |
init(java.util.Map config,
java.util.Map args)
|
void |
printDriverStats()
|
static void |
reCache()
|
void |
remove(java.lang.String key)
|
protected void |
setImpl(int type,
java.lang.String key,
java.lang.Object value)
|
void |
setupDriver(java.lang.String connectURI,
java.lang.String userName,
java.lang.String password)
|
void |
shutdownDriver()
|
| Methods inherited from class com.opensymphony.module.propertyset.database.JDBCPropertySet |
cleanup, remove, supportsType |
| Methods inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
getAsActualType, 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, type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InfoGlueJDBCPropertySet
public InfoGlueJDBCPropertySet()
getKeys
public java.util.Collection getKeys(java.lang.String prefix,
int type)
throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet- Overrides:
getKeys in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
getType
public int getType(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
getType in interface com.opensymphony.module.propertyset.PropertySet- Overrides:
getType in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
exists
public boolean exists(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
exists in interface com.opensymphony.module.propertyset.PropertySet- Overrides:
exists in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
init
public void init(java.util.Map config,
java.util.Map args)
- Specified by:
init in interface com.opensymphony.module.propertyset.PropertySet- Overrides:
init in class com.opensymphony.module.propertyset.database.JDBCPropertySet
remove
public void remove(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
remove in interface com.opensymphony.module.propertyset.PropertySet- Overrides:
remove in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
setImpl
protected void setImpl(int type,
java.lang.String key,
java.lang.Object value)
throws com.opensymphony.module.propertyset.PropertyException
- Overrides:
setImpl in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
get
protected java.lang.Object get(int type,
java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
- Overrides:
get in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
getConnection
protected java.sql.Connection getConnection()
throws java.sql.SQLException
- Overrides:
getConnection in class com.opensymphony.module.propertyset.database.JDBCPropertySet
- Throws:
java.sql.SQLException
setupDriver
public void setupDriver(java.lang.String connectURI,
java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
printDriverStats
public void printDriverStats()
throws java.lang.Exception
- Throws:
java.lang.Exception
shutdownDriver
public void shutdownDriver()
throws java.lang.Exception
- Throws:
java.lang.Exception
clearCaches
public static void clearCaches()
reCache
public static void reCache()
Copyright © 2005 InfoGlue.org All Rights Reserved.