CachingOfBizPropertySet
(keyed as "ofbiz-cached"
instead. Since v6.2.@Deprecated public class JiraCachingPropertySet extends Object implements com.opensymphony.module.propertyset.PropertySet
init(Map, Map)
before use.
Similar to com.opensymphony.module.propertyset.cached.CachingPropertySet class but does more caching.
This class is threadsafe. It uses a Lock
to co-ordinate concurrent access. This means that improper
publication is avoided as long as init(Map, Map)
is called from the creating thread before use.
Constructor and Description |
---|
JiraCachingPropertySet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Deprecated.
Clears any cached properties.
|
boolean |
exists(String key)
Deprecated.
|
Object |
getAsActualType(String key)
Deprecated.
|
boolean |
getBoolean(String key)
Deprecated.
|
byte[] |
getData(String key)
Deprecated.
|
Date |
getDate(String key)
Deprecated.
|
double |
getDouble(String key)
Deprecated.
|
int |
getInt(String key)
Deprecated.
|
Collection |
getKeys()
Deprecated.
|
Collection |
getKeys(int type)
Deprecated.
|
Collection |
getKeys(String prefix)
Deprecated.
|
Collection |
getKeys(String prefix,
int type)
Deprecated.
|
long |
getLong(String key)
Deprecated.
|
Object |
getObject(String key)
Deprecated.
|
Properties |
getProperties(String key)
Deprecated.
|
com.opensymphony.module.propertyset.PropertySetSchema |
getSchema()
Deprecated.
|
String |
getString(String key)
Deprecated.
|
String |
getText(String key)
Deprecated.
|
int |
getType(String key)
Deprecated.
|
Document |
getXML(String key)
Deprecated.
|
void |
init(Map config,
Map args)
Deprecated.
Initialises this JiraCachingPropertySet.
|
boolean |
isSettable(String property)
Deprecated.
|
void |
remove()
Deprecated.
|
void |
remove(String key)
Deprecated.
|
void |
setAsActualType(String key,
Object value)
Deprecated.
|
void |
setBoolean(String key,
boolean value)
Deprecated.
|
void |
setData(String key,
byte[] value)
Deprecated.
|
void |
setDate(String key,
Date value)
Deprecated.
|
void |
setDouble(String key,
double value)
Deprecated.
|
void |
setInt(String key,
int value)
Deprecated.
|
void |
setLong(String key,
long value)
Deprecated.
|
void |
setObject(String key,
Object value)
Deprecated.
|
void |
setProperties(String key,
Properties value)
Deprecated.
|
void |
setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema)
Deprecated.
|
void |
setString(String key,
String value)
Deprecated.
|
void |
setText(String key,
String value)
Deprecated.
|
void |
setXML(String key,
Document value)
Deprecated.
|
boolean |
supportsType(int type)
Deprecated.
|
boolean |
supportsTypes()
Deprecated.
|
public void setAsActualType(String key, Object value)
setAsActualType
in interface com.opensymphony.module.propertyset.PropertySet
public Object getAsActualType(String key)
getAsActualType
in interface com.opensymphony.module.propertyset.PropertySet
public void setBoolean(String key, boolean value)
setBoolean
in interface com.opensymphony.module.propertyset.PropertySet
public boolean getBoolean(String key)
getBoolean
in interface com.opensymphony.module.propertyset.PropertySet
public void setData(String key, byte[] value)
setData
in interface com.opensymphony.module.propertyset.PropertySet
public byte[] getData(String key)
getData
in interface com.opensymphony.module.propertyset.PropertySet
public void setDate(String key, Date value)
setDate
in interface com.opensymphony.module.propertyset.PropertySet
public Date getDate(String key)
getDate
in interface com.opensymphony.module.propertyset.PropertySet
public void setDouble(String key, double value)
setDouble
in interface com.opensymphony.module.propertyset.PropertySet
public double getDouble(String key)
getDouble
in interface com.opensymphony.module.propertyset.PropertySet
public void setInt(String key, int value)
setInt
in interface com.opensymphony.module.propertyset.PropertySet
public int getInt(String key)
getInt
in interface com.opensymphony.module.propertyset.PropertySet
public Collection getKeys()
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
public Collection getKeys(int type)
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
public Collection getKeys(String prefix)
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
public Collection getKeys(String prefix, int type)
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
public void setLong(String key, long value)
setLong
in interface com.opensymphony.module.propertyset.PropertySet
public long getLong(String key)
getLong
in interface com.opensymphony.module.propertyset.PropertySet
public void setObject(String key, Object value)
setObject
in interface com.opensymphony.module.propertyset.PropertySet
public Object getObject(String key)
getObject
in interface com.opensymphony.module.propertyset.PropertySet
public void setProperties(String key, Properties value)
setProperties
in interface com.opensymphony.module.propertyset.PropertySet
public Properties getProperties(String key)
getProperties
in interface com.opensymphony.module.propertyset.PropertySet
public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema)
setSchema
in interface com.opensymphony.module.propertyset.PropertySet
public com.opensymphony.module.propertyset.PropertySetSchema getSchema()
getSchema
in interface com.opensymphony.module.propertyset.PropertySet
public boolean isSettable(String property)
isSettable
in interface com.opensymphony.module.propertyset.PropertySet
public void setString(String key, String value)
setString
in interface com.opensymphony.module.propertyset.PropertySet
public String getString(String key)
getString
in interface com.opensymphony.module.propertyset.PropertySet
public void setText(String key, String value)
setText
in interface com.opensymphony.module.propertyset.PropertySet
public String getText(String key)
getText
in interface com.opensymphony.module.propertyset.PropertySet
public int getType(String key)
getType
in interface com.opensymphony.module.propertyset.PropertySet
public void setXML(String key, Document value)
setXML
in interface com.opensymphony.module.propertyset.PropertySet
public Document getXML(String key)
getXML
in interface com.opensymphony.module.propertyset.PropertySet
public boolean exists(String key)
exists
in interface com.opensymphony.module.propertyset.PropertySet
public void init(Map config, Map args)
The args
parameter must always contain an entry of type PropertySet under the key "PropertySet".
If args
contains a Boolean
entry under the key of "bulkload" which is set to
true
, then all the values in the underlying PropertySet will be preloaded into the cache.
init
in interface com.opensymphony.module.propertyset.PropertySet
config
- Config from PropertySetConfigargs
- Map of args passed to PropertySetManager.getInstance()PropertySet.init(java.util.Map, java.util.Map)
,
PropertySetManager.getInstance(String, java.util.Map)
public void remove(String key)
remove
in interface com.opensymphony.module.propertyset.PropertySet
public boolean supportsType(int type)
supportsType
in interface com.opensymphony.module.propertyset.PropertySet
public boolean supportsTypes()
supportsTypes
in interface com.opensymphony.module.propertyset.PropertySet
public void remove() throws com.opensymphony.module.propertyset.PropertyException
remove
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void clearCache()
PropertySet
.Copyright © 2002-2021 Atlassian. All Rights Reserved.
View cookie preferences