|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.module.propertyset.AbstractPropertySet
bucket.user.propertyset.BucketPropertySet
public class BucketPropertySet
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
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 |
Constructor Summary | |
---|---|
BucketPropertySet()
|
Method Summary | |
---|---|
boolean |
exists(String key)
|
protected Object |
get(int type,
String key)
|
BucketPropertySetItem |
getByKey(String key)
|
Collection |
getKeys(String prefix,
int type)
|
int |
getType(String key)
|
void |
init(Map config,
Map args)
|
void |
remove()
This method is BAD and shouldn't be used really. |
void |
remove(String key)
|
protected void |
setImpl(int type,
String key,
Object value)
|
boolean |
supportsType(int type)
|
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 |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public BucketPropertySet()
Method Detail |
---|
public Collection getKeys(String prefix, int type) throws com.opensymphony.module.propertyset.PropertyException
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
getKeys
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
public int getType(String key) throws com.opensymphony.module.propertyset.PropertyException
getType
in interface com.opensymphony.module.propertyset.PropertySet
getType
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
public boolean exists(String key) throws com.opensymphony.module.propertyset.PropertyException
exists
in interface com.opensymphony.module.propertyset.PropertySet
exists
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
public void init(Map config, Map args)
init
in interface com.opensymphony.module.propertyset.PropertySet
init
in class com.opensymphony.module.propertyset.AbstractPropertySet
public void remove(String key) throws com.opensymphony.module.propertyset.PropertyException
remove
in interface com.opensymphony.module.propertyset.PropertySet
remove
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
public void remove() throws com.opensymphony.module.propertyset.PropertyException
It is non transactional removal (if called without a transaction) and potentially other keys could be added while trying to remove all keys.
It also executes LOTS of SQL instead of a single remove query (which would be neater).
com.opensymphony.module.propertyset.PropertyException
public boolean supportsType(int type)
supportsType
in interface com.opensymphony.module.propertyset.PropertySet
supportsType
in class com.opensymphony.module.propertyset.AbstractPropertySet
protected void setImpl(int type, String key, Object value) throws com.opensymphony.module.propertyset.PropertyException
setImpl
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
protected Object get(int type, String key) throws com.opensymphony.module.propertyset.PropertyException
get
in class com.opensymphony.module.propertyset.AbstractPropertySet
com.opensymphony.module.propertyset.PropertyException
public BucketPropertySetItem getByKey(String key) throws com.opensymphony.module.propertyset.PropertyException
com.opensymphony.module.propertyset.PropertyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |