User's Manual

Chapter 10. Kernel Tutorial 109
public class Note extends AuditedACSObject {
/**
* BASE_DATA_OBJECT_TYPE represents the full objectType name for the
* Note class
**/
private static final String BASE_DATA_OBJECT_TYPE =
"com.arsdigita.notes.Note";
/**
* Default constructor. The contained DataObject is
* initialized with a new DataObject with an
* ObjectType of "Note".
*
* @see AuditedACSObject#AuditedACSObject(String)
* @see com.arsdigita.persistence.DataObject
* @see com.arsdigita.persistence.metadata.ObjectType
**/
public Note() { (1)
this(BASE_DATA_OBJECT_TYPE);
}
/**
* Constructor. The contained DataObject is
* initialized with a new DataObject with an
* ObjectType specified by the string
* typeName
*
* @param typeName The name of the ObjectType of the
* contained DataObject.
*
* @see AuditedACSObject#AuditedACSObject(ObjectType)
* @see com.arsdigita.persistence.DataObject
* @see com.arsdigita.persistence.metadata.ObjectType
**/
public Note(String typeName) { (2)
super(typeName);
}
/**
* Constructor. The contained DataObject is
* initialized with a new DataObject with an
* ObjectType specified by type
*
* @param type The ObjectType of the contained
* DataObject.
*
* @see AuditedACSObject#AuditedACSObject(ObjectType)
* @see com.arsdigita.persistence.DataObject
* @see com.arsdigita.persistence.metadata.ObjectType
**/
public Note(ObjectType type) {
super(type); (3)
}
/**
* Constructor. Retrieves a Note instance, retrieving an existing
* note from the database with OID oid. Throws an exception if an
* object with OID oid does not exist or the object
* is not of type Note
*
* @param oid The OID for the retrieved