| java.lang.Object org.dspace.content.DSpaceObject
All known Subclasses: org.dspace.eperson.EPerson, org.dspace.content.Collection, org.dspace.browse.BrowseItem, org.dspace.content.Site, org.dspace.content.Item, org.dspace.content.Community, org.dspace.content.Bitstream, org.dspace.eperson.Group, org.dspace.content.Bundle,
DSpaceObject | abstract public class DSpaceObject (Code) | | Abstract base class for DSpace objects
|
Method Summary | |
protected void | addDetails(String d) Add a string to the cache of event details. | protected void | clearDetails() Reset the cache of event details. | public static DSpaceObject | find(Context context, int type, int id) Generic find for when the precise type of a DSO is not known, just the
a pair of type number and database ID. | protected String | getDetails() | abstract public String | getHandle() Get the Handle of the object. | abstract public int | getID() | abstract public String | getName() Get a proper name for the object. | abstract public int | getType() |
addDetails | protected void addDetails(String d)(Code) | | Add a string to the cache of event details. Automatically
separates entries with a comma.
Subclass can just start calling addDetails, since it creates
the cache if it needs to.
Parameters: detail - detail string to add. |
clearDetails | protected void clearDetails()(Code) | | Reset the cache of event details.
|
find | public static DSpaceObject find(Context context, int type, int id) throws SQLException(Code) | | Generic find for when the precise type of a DSO is not known, just the
a pair of type number and database ID.
Parameters: context - - the context Parameters: type - - type number Parameters: id - - id within table of type'd objects the object found, or null if it does not exist. throws: SQLException - only upon failure accessing the database. |
getHandle | abstract public String getHandle()(Code) | | Get the Handle of the object. This may return null
Handle of the object, or null if it doesn't haveone |
getID | abstract public int getID()(Code) | | Get the internal ID (database primary key) of this object
internal ID of object |
getName | abstract public String getName()(Code) | | Get a proper name for the object. This may return null .
Name should be suitable for display in a user interface.
Name for the object, or null if it doesn't haveone |
getType | abstract public int getType()(Code) | | Get the type of this object, found in Constants
type of the object |
|
|