Package helma.objectmodel.db
Class Property
java.lang.Object
helma.objectmodel.db.Property
- All Implemented Interfaces:
IProperty
,Serializable
,Cloneable
,Comparable
public final class Property
extends Object
implements IProperty, Serializable, Cloneable, Comparable
A property implementation for Nodes stored inside a database. Basically
the same as for transient nodes, with a few hooks added.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
boolean
Return true if object o is equal to this property.boolean
double
long
getName()
Get the name of the propertyint
getType()
getValue()
void
setBooleanValue
(boolean bool) void
setDateValue
(Date date) void
setFloatValue
(double d) void
setIntegerValue
(long l) void
setJavaObjectValue
(Object obj) protected void
Set the name of the propertyvoid
setNodeHandle
(NodeHandle handle) void
setNodeValue
(Node node) void
setStringValue
(String str) protected void
Directly set the value of this property.toString()
-
Constructor Details
-
Property
Creates a new Property object.- Parameters:
node
- ...
-
Property
Creates a new Property object.- Parameters:
propname
- ...node
- ...
-
Property
Creates a new Property object.- Parameters:
propname
- ...node
- ...valueNode
- ...
-
-
Method Details
-
getName
Get the name of the property -
setName
Set the name of the property -
getValue
-
getType
public int getType() -
setValue
Directly set the value of this property. -
setStringValue
- Parameters:
str
- ...
-
setIntegerValue
public void setIntegerValue(long l) - Parameters:
l
- ...
-
setFloatValue
public void setFloatValue(double d) - Parameters:
d
- ...
-
setDateValue
- Parameters:
date
- ...
-
setBooleanValue
public void setBooleanValue(boolean bool) - Parameters:
bool
- ...
-
setNodeValue
- Parameters:
node
- ...
-
setNodeHandle
- Parameters:
handle
- ...
-
getNodeHandle
- Returns:
- ...
-
convertToNodeReference
- Parameters:
rel
- the Relation
-
setJavaObjectValue
- Parameters:
obj
- ...
-
getStringValue
- Specified by:
getStringValue
in interfaceIProperty
- Returns:
- ...
-
toString
-
getIntegerValue
public long getIntegerValue()- Specified by:
getIntegerValue
in interfaceIProperty
- Returns:
- ...
-
getFloatValue
public double getFloatValue()- Specified by:
getFloatValue
in interfaceIProperty
- Returns:
- ...
-
getDateValue
- Specified by:
getDateValue
in interfaceIProperty
- Returns:
- ...
-
getTimestampValue
- Returns:
- ...
-
getBooleanValue
public boolean getBooleanValue()- Specified by:
getBooleanValue
in interfaceIProperty
- Returns:
- ...
-
getNodeValue
- Specified by:
getNodeValue
in interfaceIProperty
- Returns:
- ...
-
getJavaObjectValue
- Specified by:
getJavaObjectValue
in interfaceIProperty
- Returns:
- ...
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- See Also:
-
equals
Return true if object o is equal to this property.
-