public abstract class
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
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.
- obj – the object to be compared.
true if the given object is equal to this one.
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.
- key – The key referencing the String value.
- c – the Class of the returning Object.
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.
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.
- key – the key referencing the value to be retrieved.
the value retrieved by the specified key.
put(Object key, Object value)¶
Sets a single value to this DVO with a key as its reference.
- key – the key referencing the value to be set.
- value – the value object to be set to this DVO.
the previous value of the specified key in this hashtable, or null if it did not have one.