public class BucketPropertySet extends com.opensymphony.module.propertyset.AbstractPropertySet implements 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(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) |
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, typepublic Collection getKeys(String prefix, int type) throws com.opensymphony.module.propertyset.PropertyException
getKeys in interface com.opensymphony.module.propertyset.PropertySetgetKeys in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic int getType(String key) throws com.opensymphony.module.propertyset.PropertyException
getType in interface com.opensymphony.module.propertyset.PropertySetgetType in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic boolean exists(String key) throws com.opensymphony.module.propertyset.PropertyException
exists in interface com.opensymphony.module.propertyset.PropertySetexists in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic void init(Map config, Map args)
init in interface com.opensymphony.module.propertyset.PropertySetinit in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void remove(String key) throws com.opensymphony.module.propertyset.PropertyException
remove in interface com.opensymphony.module.propertyset.PropertySetremove in class com.opensymphony.module.propertyset.AbstractPropertySetcom.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).
com.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,
String key,
Object value)
throws com.opensymphony.module.propertyset.PropertyException
setImpl in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionprotected Object get(int type, String key) throws com.opensymphony.module.propertyset.PropertyException
get in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyExceptionpublic void setText(String key, String value)
setText in interface com.opensymphony.module.propertyset.PropertySetsetText in class com.opensymphony.module.propertyset.AbstractPropertySetpublic String getText(String key)
getText in interface com.opensymphony.module.propertyset.PropertySetgetText in class com.opensymphony.module.propertyset.AbstractPropertySetpublic BucketPropertySetItem getByKey(String key) throws com.opensymphony.module.propertyset.PropertyException
com.opensymphony.module.propertyset.PropertyExceptionCopyright © 2003–2022 Atlassian. All rights reserved.