org.apache.jetspeed.prefs.om.impl
Class PropertyImpl

java.lang.Object
  extended byorg.apache.jetspeed.prefs.om.impl.PropertyImpl
All Implemented Interfaces:
Cloneable, org.apache.jetspeed.prefs.om.Property, Serializable

public class PropertyImpl
extends Object
implements org.apache.jetspeed.prefs.om.Property

Property interface implementation.

Represents a property key/value pair.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  boolean booleanPropertyValue
           
private  Timestamp creationDate
           
private  Timestamp datePropertyValue
           
private  double doublePropertyValue
           
private  long longPropertyValue
           
private  Timestamp modifiedDate
           
private  long nodeId
           
private  org.apache.jetspeed.prefs.om.PropertyKey propertyKey
           
private  long propertyKeyId
           
private  long propertyValueId
           
private  String textPropertyValue
           
 
Fields inherited from interface org.apache.jetspeed.prefs.om.Property
BOOLEAN_TYPE, DOUBLE_TYPE, LONG_TYPE, STRING_TYPE, TIMESTAMP_TYPE
 
Constructor Summary
PropertyImpl()
          Property implementation default constructor.
PropertyImpl(long nodeId, long propertyKeyId, org.apache.jetspeed.prefs.om.PropertyKey propertyKey, int valueObjectType, Object valueObject)
          Property constructor given a property key id, node id and the appropriate value object type and value: 0=Boolean, 1=Long, 2=Double, 3=String, 4=Timestamp
 
Method Summary
 boolean getBooleanPropertyValue()
           
 Timestamp getCreationDate()
           
 Timestamp getDatePropertyValue()
           
 double getDoublePropertyValue()
           
 long getLongPropertyValue()
           
 Timestamp getModifiedDate()
           
 long getNodeId()
           
 org.apache.jetspeed.prefs.om.PropertyKey getPropertyKey()
           
 long getPropertyKeyId()
           
 String getPropertyValue(int valueObjectType)
           
 long getPropertyValueId()
           
 String getTextPropertyValue()
           
 void setBooleanPropertyValue(boolean booleanPropertyValue)
           
 void setCreationDate(Timestamp creationDate)
           
 void setDatePropertyValue(Timestamp datePropertyValue)
           
 void setDoublePropertyValue(double doublePropertyValue)
           
 void setLongPropertyValue(long longPropertyValue)
           
 void setModifiedDate(Timestamp modifiedDate)
           
 void setNodeId(long nodeId)
           
 void setPropertyKey(org.apache.jetspeed.prefs.om.PropertyKey propertyKey)
           
 void setPropertyKeyId(long propertyKeyId)
           
 void setPropertyValue(int valueObjectType, String valueObject)
           
 void setPropertyValueId(long propertyValueId)
           
 void setTextPropertyValue(String textPropertyValue)
           
 String toString()
          Convert Property to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeId

private long nodeId

propertyValueId

private long propertyValueId

propertyKeyId

private long propertyKeyId

propertyKey

private org.apache.jetspeed.prefs.om.PropertyKey propertyKey

booleanPropertyValue

private boolean booleanPropertyValue

datePropertyValue

private Timestamp datePropertyValue

longPropertyValue

private long longPropertyValue

doublePropertyValue

private double doublePropertyValue

textPropertyValue

private String textPropertyValue

creationDate

private Timestamp creationDate

modifiedDate

private Timestamp modifiedDate
Constructor Detail

PropertyImpl

public PropertyImpl()

Property implementation default constructor.


PropertyImpl

public PropertyImpl(long nodeId,
                    long propertyKeyId,
                    org.apache.jetspeed.prefs.om.PropertyKey propertyKey,
                    int valueObjectType,
                    Object valueObject)
Property constructor given a property key id, node id and the appropriate value object type and value:

Parameters:
propertyKeyId - The property key id.
nodeId - The node id.
valueObjectType - The value object type.
valueObject - The value object.
Method Detail

getPropertyValue

public final String getPropertyValue(int valueObjectType)
Specified by:
getPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getPropertyValue(int)

setPropertyValue

public final void setPropertyValue(int valueObjectType,
                                   String valueObject)
Specified by:
setPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setPropertyValue(int, java.lang.String)

getPropertyValueId

public long getPropertyValueId()
Specified by:
getPropertyValueId in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getPropertyValueId()

setPropertyValueId

public void setPropertyValueId(long propertyValueId)
Specified by:
setPropertyValueId in interface org.apache.jetspeed.prefs.om.Property
See Also:
org.apache.jetspeed.prefs.om.Property#setPropertyValueId(int)

getNodeId

public long getNodeId()
Specified by:
getNodeId in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getNodeId()

setNodeId

public void setNodeId(long nodeId)
Specified by:
setNodeId in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setNodeId(long)

getPropertyKeyId

public long getPropertyKeyId()
Specified by:
getPropertyKeyId in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getPropertyKeyId()

setPropertyKeyId

public void setPropertyKeyId(long propertyKeyId)
Specified by:
setPropertyKeyId in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setPropertyKeyId(long)

getPropertyKey

public org.apache.jetspeed.prefs.om.PropertyKey getPropertyKey()
Specified by:
getPropertyKey in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getPropertyKey()

setPropertyKey

public void setPropertyKey(org.apache.jetspeed.prefs.om.PropertyKey propertyKey)
Specified by:
setPropertyKey in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setPropertyKey(org.apache.jetspeed.prefs.om.PropertyKey)

getBooleanPropertyValue

public boolean getBooleanPropertyValue()
Specified by:
getBooleanPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getBooleanPropertyValue()

setBooleanPropertyValue

public void setBooleanPropertyValue(boolean booleanPropertyValue)
Specified by:
setBooleanPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setBooleanPropertyValue(boolean)

getDatePropertyValue

public Timestamp getDatePropertyValue()
Specified by:
getDatePropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getDatePropertyValue()

setDatePropertyValue

public void setDatePropertyValue(Timestamp datePropertyValue)
Specified by:
setDatePropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setDatePropertyValue(java.sql.Timestamp)

getLongPropertyValue

public long getLongPropertyValue()
Specified by:
getLongPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getLongPropertyValue()

setLongPropertyValue

public void setLongPropertyValue(long longPropertyValue)
Specified by:
setLongPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setLongPropertyValue(long)

getDoublePropertyValue

public double getDoublePropertyValue()
Specified by:
getDoublePropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getDoublePropertyValue()

setDoublePropertyValue

public void setDoublePropertyValue(double doublePropertyValue)
Specified by:
setDoublePropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setDoublePropertyValue(double)

getTextPropertyValue

public String getTextPropertyValue()
Specified by:
getTextPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getTextPropertyValue()

setTextPropertyValue

public void setTextPropertyValue(String textPropertyValue)
Specified by:
setTextPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setTextPropertyValue(java.lang.String)

getCreationDate

public Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getCreationDate()

setCreationDate

public void setCreationDate(Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.jetspeed.prefs.om.Property
See Also:
org.apache.jetspeed.ospi.om.prefs.Property#setCreationDate(java.sql.Timestamp)

getModifiedDate

public Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.getModifiedDate()

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)
Specified by:
setModifiedDate in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setModifiedDate(java.sql.Timestamp)

toString

public String toString()

Convert Property to string.

Returns:
The Property string value.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.