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

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

public class PropertyImpl
extends java.lang.Object
implements Property

Property interface implementation.

Represents a property key/value pair.

Author:
David Le Strat
See Also:
Serialized Form

Constructor Summary
PropertyImpl()
           Property implementation default constructor.
PropertyImpl(long nodeId, java.lang.String propertyName, java.lang.Object valueObject)
          Property constructor given a property key id, node id and the appropriate value.
 
Method Summary
 java.sql.Timestamp getCreationDate()
           Getter for creation date.
 java.sql.Timestamp getModifiedDate()
           Getter for the modified date.
 long getNodeId()
           Getter for the node id.
 java.lang.String getPropertyName()
           Getter for the property name.
 java.lang.String getPropertyValue()
           Utility method used to return the property value as a String.
 long getPropertyValueId()
           Getter for the property value id.
 void setCreationDate(java.sql.Timestamp creationDate)
           Setter for the creation date.
 void setModifiedDate(java.sql.Timestamp modifiedDate)
           Setter for the modified date.
 void setNodeId(long nodeId)
           Setter for the node id.
 void setPropertyName(java.lang.String propertyName)
           Setter for the property name.
 void setPropertyValue(java.lang.String valueObject)
           Utility method used to identify with property value to set based on the value object type.
 void setPropertyValueId(long propertyValueId)
           Setter for the property value id.
 java.lang.String toString()
           Convert Property to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyImpl

public PropertyImpl()

Property implementation default constructor.


PropertyImpl

public PropertyImpl(long nodeId,
                    java.lang.String propertyName,
                    java.lang.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 java.lang.String getPropertyValue()
Description copied from interface: Property

Utility method used to return the property value as a String.

Specified by:
getPropertyValue in interface Property
Returns:
The property value as a String.
See Also:
Property.getPropertyValue()

setPropertyValue

public final void setPropertyValue(java.lang.String valueObject)
Description copied from interface: Property

Utility method used to identify with property value to set based on the value object type.

Specified by:
setPropertyValue in interface Property
Parameters:
valueObject - The value object.
See Also:
Property.setPropertyValue(java.lang.String)

getPropertyValueId

public long getPropertyValueId()
Description copied from interface: Property

Getter for the property value id.

Specified by:
getPropertyValueId in interface Property
Returns:
The property value id.
See Also:
Property.getPropertyValueId()

setPropertyValueId

public void setPropertyValueId(long propertyValueId)
Description copied from interface: Property

Setter for the property value id.

Specified by:
setPropertyValueId in interface Property
Parameters:
propertyValueId - The property value id.
See Also:
org.apache.jetspeed.prefs.om.Property#setPropertyValueId(int)

getNodeId

public long getNodeId()
Description copied from interface: Property

Getter for the node id.

Specified by:
getNodeId in interface Property
Returns:
The node id.
See Also:
Property.getNodeId()

setNodeId

public void setNodeId(long nodeId)
Description copied from interface: Property

Setter for the node id.

Specified by:
setNodeId in interface Property
Parameters:
nodeId - The node id.
See Also:
Property.setNodeId(long)

getPropertyName

public java.lang.String getPropertyName()
Description copied from interface: Property

Getter for the property name.

Specified by:
getPropertyName in interface Property
Returns:
Returns the propertyName.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Description copied from interface: Property

Setter for the property name.

Specified by:
setPropertyName in interface Property
Parameters:
propertyName - The propertyName to set.

getCreationDate

public java.sql.Timestamp getCreationDate()
Description copied from interface: Property

Getter for creation date.

Specified by:
getCreationDate in interface Property
Returns:
The creation date.
See Also:
Property.getCreationDate()

setCreationDate

public void setCreationDate(java.sql.Timestamp creationDate)
Description copied from interface: Property

Setter for the creation date.

Specified by:
setCreationDate in interface Property
Parameters:
creationDate - The creation date.
See Also:
org.apache.jetspeed.ospi.om.prefs.Property#setCreationDate(java.sql.Timestamp)

getModifiedDate

public java.sql.Timestamp getModifiedDate()
Description copied from interface: Property

Getter for the modified date.

Specified by:
getModifiedDate in interface Property
Returns:
The modified date.
See Also:
Property.getModifiedDate()

setModifiedDate

public void setModifiedDate(java.sql.Timestamp modifiedDate)
Description copied from interface: Property

Setter for the modified date.

Specified by:
setModifiedDate in interface Property
Parameters:
modifiedDate - The modified date.
See Also:
Property.setModifiedDate(java.sql.Timestamp)

toString

public java.lang.String toString()

Convert Property to string.

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


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