Package helma.objectmodel.db
Class Property
- java.lang.Object
-
- helma.objectmodel.db.Property
-
- All Implemented Interfaces:
IProperty
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
public final class Property extends java.lang.Object implements IProperty, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
A property implementation for Nodes stored inside a database. Basically the same as for transient nodes, with a few hooks added.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object obj)
void
convertToNodeReference(Relation rel)
boolean
equals(java.lang.Object obj)
Return true if object o is equal to this property.boolean
getBooleanValue()
java.util.Date
getDateValue()
double
getFloatValue()
long
getIntegerValue()
java.lang.Object
getJavaObjectValue()
java.lang.String
getName()
Get the name of the propertyNodeHandle
getNodeHandle()
INode
getNodeValue()
java.lang.String
getStringValue()
java.sql.Timestamp
getTimestampValue()
int
getType()
java.lang.Object
getValue()
void
setBooleanValue(boolean bool)
void
setDateValue(java.util.Date date)
void
setFloatValue(double d)
void
setIntegerValue(long l)
void
setJavaObjectValue(java.lang.Object obj)
protected void
setName(java.lang.String name)
Set the name of the propertyvoid
setNodeHandle(NodeHandle handle)
void
setNodeValue(Node node)
void
setStringValue(java.lang.String str)
protected void
setValue(java.lang.Object value, int type)
Directly set the value of this property.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the property
-
setName
protected void setName(java.lang.String name)
Set the name of the property
-
getValue
public java.lang.Object getValue()
-
getType
public int getType()
-
setValue
protected void setValue(java.lang.Object value, int type)
Directly set the value of this property.
-
setStringValue
public void setStringValue(java.lang.String str)
- Parameters:
str
- ...
-
setIntegerValue
public void setIntegerValue(long l)
- Parameters:
l
- ...
-
setFloatValue
public void setFloatValue(double d)
- Parameters:
d
- ...
-
setDateValue
public void setDateValue(java.util.Date date)
- Parameters:
date
- ...
-
setBooleanValue
public void setBooleanValue(boolean bool)
- Parameters:
bool
- ...
-
setNodeValue
public void setNodeValue(Node node)
- Parameters:
node
- ...
-
setNodeHandle
public void setNodeHandle(NodeHandle handle)
- Parameters:
handle
- ...
-
getNodeHandle
public NodeHandle getNodeHandle()
- Returns:
- ...
-
convertToNodeReference
public void convertToNodeReference(Relation rel)
- Parameters:
rel
- the Relation
-
setJavaObjectValue
public void setJavaObjectValue(java.lang.Object obj)
- Parameters:
obj
- ...
-
getStringValue
public java.lang.String getStringValue()
- Specified by:
getStringValue
in interfaceIProperty
- Returns:
- ...
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- ...
-
getIntegerValue
public long getIntegerValue()
- Specified by:
getIntegerValue
in interfaceIProperty
- Returns:
- ...
-
getFloatValue
public double getFloatValue()
- Specified by:
getFloatValue
in interfaceIProperty
- Returns:
- ...
-
getDateValue
public java.util.Date getDateValue()
- Specified by:
getDateValue
in interfaceIProperty
- Returns:
- ...
-
getTimestampValue
public java.sql.Timestamp getTimestampValue()
- Returns:
- ...
-
getBooleanValue
public boolean getBooleanValue()
- Specified by:
getBooleanValue
in interfaceIProperty
- Returns:
- ...
-
getNodeValue
public INode getNodeValue()
- Specified by:
getNodeValue
in interfaceIProperty
- Returns:
- ...
-
getJavaObjectValue
public java.lang.Object getJavaObjectValue()
- Specified by:
getJavaObjectValue
in interfaceIProperty
- Returns:
- ...
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interfacejava.lang.Comparable
- See Also:
The following cases throw a ClassCastException - Properties of a different type - Properties of boolean or node type
-
equals
public boolean equals(java.lang.Object obj)
Return true if object o is equal to this property.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the object to compare to- Returns:
- true if this equals obj
- See Also:
Object.equals(java.lang.Object)
-
-