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

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

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  Timestamp creationDate
           
private  Timestamp modifiedDate
           
private  long nodeId
           
private  String propertyName
           
private  String propertyValue
           
private  long propertyValueId
           
private static long serialVersionUID
          The serial version uid.
 
Constructor Summary
PropertyImpl()
           Property implementation default constructor.
PropertyImpl(long nodeId, String propertyName, Object valueObject)
          Property constructor given a property key id, node id and the appropriate value.
 
Method Summary
 Timestamp getCreationDate()
           
 Timestamp getModifiedDate()
           
 long getNodeId()
           
 String getPropertyName()
           
 String getPropertyValue()
           
 long getPropertyValueId()
           
 void setCreationDate(Timestamp creationDate)
           
 void setModifiedDate(Timestamp modifiedDate)
           
 void setNodeId(long nodeId)
           
 void setPropertyName(String propertyName)
           
 void setPropertyValue(String valueObject)
           
 void setPropertyValueId(long propertyValueId)
           
 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

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

nodeId

private long nodeId

propertyName

private String propertyName

propertyValue

private String propertyValue

propertyValueId

private long propertyValueId

creationDate

private Timestamp creationDate

modifiedDate

private Timestamp modifiedDate
Constructor Detail

PropertyImpl

public PropertyImpl()

Property implementation default constructor.


PropertyImpl

public PropertyImpl(long nodeId,
                    String propertyName,
                    Object valueObject)
Property constructor given a property key id, node id and the appropriate value.

Parameters:
nodeId - The node id.
propertyName - The property name.
valueObject - The value object.
Method Detail

getPropertyValue

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

setPropertyValue

public final void setPropertyValue(String valueObject)
Specified by:
setPropertyValue in interface org.apache.jetspeed.prefs.om.Property
See Also:
Property.setPropertyValue(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)

getPropertyName

public String getPropertyName()
Specified by:
getPropertyName in interface org.apache.jetspeed.prefs.om.Property
Returns:
Returns the propertyName.

setPropertyName

public void setPropertyName(String propertyName)
Specified by:
setPropertyName in interface org.apache.jetspeed.prefs.om.Property
Parameters:
propertyName - The propertyName to set.

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.

Overrides:
toString in class Object
Returns:
The Property string value.


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