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:
-
Field Summary
FieldsFields inherited from class com.opensymphony.module.propertyset.AbstractPropertySet
schemaFields inherited from interface com.opensymphony.module.propertyset.PropertySet
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Objectintvoidvoidremove()This method is BAD and shouldn't be used really.voidprotected voidvoidbooleansupportsType(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
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
BucketPropertySet
public BucketPropertySet()
-
-
Method Details
-
getKeys
public Collection getKeys(String prefix, int type) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
getKeysin interfacecom.opensymphony.module.propertyset.PropertySet- Specified by:
getKeysin classcom.opensymphony.module.propertyset.AbstractPropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getType
- Specified by:
getTypein interfacecom.opensymphony.module.propertyset.PropertySet- Specified by:
getTypein classcom.opensymphony.module.propertyset.AbstractPropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
exists
- Specified by:
existsin interfacecom.opensymphony.module.propertyset.PropertySet- Specified by:
existsin classcom.opensymphony.module.propertyset.AbstractPropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
init
- Specified by:
initin interfacecom.opensymphony.module.propertyset.PropertySet- Overrides:
initin classcom.opensymphony.module.propertyset.AbstractPropertySet
-
remove
- Specified by:
removein interfacecom.opensymphony.module.propertyset.PropertySet- Specified by:
removein classcom.opensymphony.module.propertyset.AbstractPropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
remove
public void remove() throws com.opensymphony.module.propertyset.PropertyExceptionThis 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:
supportsTypein interfacecom.opensymphony.module.propertyset.PropertySet- Overrides:
supportsTypein classcom.opensymphony.module.propertyset.AbstractPropertySet
-
setImpl
protected void setImpl(int type, String key, Object value) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setImplin 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:
getin classcom.opensymphony.module.propertyset.AbstractPropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setText
- Specified by:
setTextin interfacecom.opensymphony.module.propertyset.PropertySet- Overrides:
setTextin classcom.opensymphony.module.propertyset.AbstractPropertySet
-
getText
- Specified by:
getTextin interfacecom.opensymphony.module.propertyset.PropertySet- Overrides:
getTextin classcom.opensymphony.module.propertyset.AbstractPropertySet
-
getByKey
public BucketPropertySetItem getByKey(String key) throws com.opensymphony.module.propertyset.PropertyException - Throws:
com.opensymphony.module.propertyset.PropertyException
-