Package bucket.user.propertyset
Class BucketPropertySet
- java.lang.Object
-
- com.opensymphony.module.propertyset.AbstractPropertySet
-
- bucket.user.propertyset.BucketPropertySet
-
- All Implemented Interfaces:
com.opensymphony.module.propertyset.PropertySet
,Serializable
public class BucketPropertySet extends com.opensymphony.module.propertyset.AbstractPropertySet implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description BucketPropertySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(String key)
protected Object
get(int type, String key)
BucketPropertySetItem
getByKey(String key)
Collection
getKeys(String prefix, int type)
String
getText(String key)
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)
void
setText(String key, String 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, getXML, isSettable, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setXML, supportsTypes, toString, type, type
-
-
-
-
Method Detail
-
getKeys
public Collection getKeys(String prefix, int type) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
getKeys
in interfacecom.opensymphony.module.propertyset.PropertySet
- Specified by:
getKeys
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getType
public int getType(String key) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
getType
in interfacecom.opensymphony.module.propertyset.PropertySet
- Specified by:
getType
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
exists
public boolean exists(String key) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
exists
in interfacecom.opensymphony.module.propertyset.PropertySet
- Specified by:
exists
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
init
public void init(Map config, Map args)
- Specified by:
init
in interfacecom.opensymphony.module.propertyset.PropertySet
- Overrides:
init
in classcom.opensymphony.module.propertyset.AbstractPropertySet
-
remove
public void remove(String key) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
remove
in interfacecom.opensymphony.module.propertyset.PropertySet
- Specified by:
remove
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
remove
public void remove() throws com.opensymphony.module.propertyset.PropertyException
This method is BAD and shouldn't be used really. Try to avoid using it at all costs.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).
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
supportsType
public boolean supportsType(int type)
- Specified by:
supportsType
in interfacecom.opensymphony.module.propertyset.PropertySet
- Overrides:
supportsType
in classcom.opensymphony.module.propertyset.AbstractPropertySet
-
setImpl
protected void setImpl(int type, String key, Object value) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
setImpl
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
get
protected Object get(int type, String key) throws com.opensymphony.module.propertyset.PropertyException
- Specified by:
get
in classcom.opensymphony.module.propertyset.AbstractPropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setText
public void setText(String key, String value)
- Specified by:
setText
in interfacecom.opensymphony.module.propertyset.PropertySet
- Overrides:
setText
in classcom.opensymphony.module.propertyset.AbstractPropertySet
-
getText
public String getText(String key)
- Specified by:
getText
in interfacecom.opensymphony.module.propertyset.PropertySet
- Overrides:
getText
in classcom.opensymphony.module.propertyset.AbstractPropertySet
-
getByKey
public BucketPropertySetItem getByKey(String key) throws com.opensymphony.module.propertyset.PropertyException
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
-