AbstractDVO¶
-
public abstract class
AbstractDVO
implements DVO¶ The AbstractDVO, which implements the DVO interface, is simply a convenient abstract class for managing the data of a DVO. It implemented the methods of the DVO interface, provides some convenient methods and is backed by a Hashtable.
Author: Hugo Y. K. Lam
Constructors¶
Methods¶
equals¶
-
public boolean
equals
(Object obj)¶ Indicates whether the given object is equal to this one. The objects are equal if and only if the given object is an AbstractDVO object and the values contained in that object match with this one’s.
Parameters: - obj – the object to be compared.
Returns: true if the given object is equal to this one.
get¶
getBoolean¶
getData¶
getDate¶
getDirties¶
getDouble¶
getInt¶
getLong¶
getObject¶
-
public Object
getObject
(Object key, Class c)¶ Gets an Object from this DVO by its referencing key. If the value object is not of the Class specified, it will try to create an instance of the Class with the Object as the parameter.
Parameters: - key – The key referencing the String value.
- c – the Class of the returning Object.
Returns: the Object retrieved by its referencing key. If the value object is not of the Class specified, it will be an instance of the Class with the Object as the parameter. Null if the mentioned cannot be achieved.
getSQLDate¶
getString¶
getTimestamp¶
-
public java.sql.Timestamp
getTimestamp
(Object key)¶ Retrieves the value by the specified key in this AbstractDVO as a java.sql.Timestamp. It can transform java.sql.Date, java.util.Date and Oracle DATE and TIMESTAMP.
Parameters: - key – the key referencing the value to be retrieved.
Returns: the value retrieved by the specified key.
put¶
-
public Object
put
(Object key, Object value)¶ Sets a single value to this DVO with a key as its reference.
Parameters: - key – the key referencing the value to be set.
- value – the value object to be set to this DVO.
Returns: the previous value of the specified key in this hashtable, or null if it did not have one.