com.opensymphony.module.propertyset.ofbiz
Class OFBizPropertySet

java.lang.Object
  |
  +--com.opensymphony.module.propertyset.AbstractPropertySet
        |
        +--com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet
All Implemented Interfaces:
PropertySet, java.io.Serializable

public class OFBizPropertySet
extends AbstractPropertySet
implements java.io.Serializable

This is the property set implementation for storing properties in the OFBiz Entity Engine.

Author:
Victor Salaman, Mike Cannon-Brookes $Revision: 1.7 $
See Also:
Serialized Form

Fields inherited from class com.opensymphony.module.propertyset.AbstractPropertySet
schema
 
Fields inherited from interface com.opensymphony.module.propertyset.PropertySet
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML
 
Constructor Summary
OFBizPropertySet(java.lang.String entityName, long entityId)
          A constructor which assumes that the default delegator name is "default" ;)
OFBizPropertySet(java.lang.String delegatorName, java.lang.String entityName, long entityId)
           
 
Method Summary
 boolean exists(java.lang.String key)
          Determine if property exists.
protected  java.lang.Object get(int type, java.lang.String key)
           
 java.util.Collection getKeys(java.lang.String prefix, int type)
          List all keys starting with supplied prefix of certain type.
 int getType(java.lang.String key)
          Returns type of value.
 void remove(java.lang.String key)
          Removes property.
protected  void setImpl(int type, java.lang.String key, java.lang.Object obj)
           
 
Methods inherited from class com.opensymphony.module.propertyset.AbstractPropertySet
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, supportsType, supportsTypes, toString, type, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OFBizPropertySet

public OFBizPropertySet(java.lang.String delegatorName,
                        java.lang.String entityName,
                        long entityId)
Parameters:
delegatorName - The name of the delegator to lookup
entityName - The name of the entity to retrieve properties for
entityId - The id of the entity to retrieve properties for

OFBizPropertySet

public OFBizPropertySet(java.lang.String entityName,
                        long entityId)
A constructor which assumes that the default delegator name is "default" ;)
Parameters:
entityName - The name of the entity to retrieve properties for
entityId - The id of the entity to retrieve properties for
Method Detail

exists

public boolean exists(java.lang.String key)
               throws PropertyException
Description copied from interface: PropertySet
Determine if property exists.
Overrides:
exists in class AbstractPropertySet

get

protected java.lang.Object get(int type,
                               java.lang.String key)
                        throws PropertyException
Overrides:
get in class AbstractPropertySet

getKeys

public java.util.Collection getKeys(java.lang.String prefix,
                                    int type)
                             throws PropertyException
Description copied from interface: PropertySet
List all keys starting with supplied prefix of certain type. See statics.
Overrides:
getKeys in class AbstractPropertySet
Following copied from interface: com.opensymphony.module.propertyset.PropertySet
Parameters:
prefix - String that keys must start with. If null, than all keys shall be returned.
type - Type to list. See static class variables. If null, then all types shall be returned.
Returns:
Unmodifiable Collection of Strings.

getType

public int getType(java.lang.String key)
            throws PropertyException
Description copied from interface: PropertySet
Returns type of value.
Overrides:
getType in class AbstractPropertySet
Following copied from interface: com.opensymphony.module.propertyset.PropertySet
Returns:
Type of value. See static class variables.

remove

public void remove(java.lang.String key)
            throws PropertyException
Description copied from interface: PropertySet
Removes property.
Overrides:
remove in class AbstractPropertySet

setImpl

protected void setImpl(int type,
                       java.lang.String key,
                       java.lang.Object obj)
                throws PropertyException
Overrides:
setImpl in class AbstractPropertySet

See www.opensymphony.com for more information.