|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.DSpaceObject
public abstract class DSpaceObject
Abstract base class for DSpace objects
| Constructor Summary | |
|---|---|
DSpaceObject()
|
|
| 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. |
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 String |
getHandle()
Get the Handle of the object. |
abstract int |
getID()
Get the internal ID (database primary key) of this object |
abstract String |
getName()
Get a proper name for the object. |
abstract int |
getType()
Get the type of this object, found in Constants |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSpaceObject()
| Method Detail |
|---|
protected void clearDetails()
protected void addDetails(String d)
detail - detail string to add.protected String getDetails()
public abstract int getType()
public abstract int getID()
public abstract String getHandle()
null
null if it doesn't have
onepublic abstract String getName()
null.
Name should be suitable for display in a user interface.
null if it doesn't have
one
public static DSpaceObject find(Context context,
int type,
int id)
throws SQLException
context - - the contexttype - - type numberid - - id within table of type'd objects
SQLException - only upon failure accessing the database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||