public class BucketPropertySet
extends com.opensymphony.module.propertyset.AbstractPropertySet
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
BucketPropertySet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String key) |
protected java.lang.Object |
get(int type,
java.lang.String key) |
BucketPropertySetItem |
getByKey(java.lang.String key) |
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 |
remove()
This method is BAD and shouldn't be used really.
|
void |
remove(java.lang.String key) |
protected void |
setImpl(int type,
java.lang.String key,
java.lang.Object value) |
boolean |
supportsType(int type) |
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, typepublic java.util.Collection getKeys(java.lang.String prefix,
int type)
throws com.opensymphony.module.propertyset.PropertyException
getKeys in interface com.opensymphony.module.propertyset.PropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic int getType(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
getType in interface com.opensymphony.module.propertyset.PropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic boolean exists(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
exists in interface com.opensymphony.module.propertyset.PropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic void init(java.util.Map config,
java.util.Map args)
init in interface com.opensymphony.module.propertyset.PropertySetinit in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void remove(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
remove in interface com.opensymphony.module.propertyset.PropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic 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).
remove in interface com.opensymphony.module.propertyset.PropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic boolean supportsType(int type)
supportsType in interface com.opensymphony.module.propertyset.PropertySetsupportsType in class com.opensymphony.module.propertyset.AbstractPropertySetprotected void setImpl(int type,
java.lang.String key,
java.lang.Object value)
throws com.opensymphony.module.propertyset.PropertyException
setImpl in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionprotected java.lang.Object get(int type,
java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
get in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic BucketPropertySetItem getByKey(java.lang.String key) throws com.opensymphony.module.propertyset.PropertyException
com.opensymphony.module.propertyset.PropertyExceptionCopyright © 2014 Atlassian. All Rights Reserved.