public interface DSpaceObjectLegacySupportService<T extends DSpaceObject>
| Modifier and Type | Method and Description |
|---|---|
T |
findByIdOrLegacyId(Context context,
String id) |
T |
findByLegacyId(Context context,
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.
|
int |
getSupportsTypeConstant()
Returns the Constants which this service supports
|
T findByIdOrLegacyId(Context context, String id) throws SQLException
SQLExceptionT findByLegacyId(Context context, int id) throws SQLException
context - - the contextid - - the legacy id within table of type'd objectsSQLException - only upon failure accessing the database.int getSupportsTypeConstant()
Copyright © 2016 DuraSpace. All Rights Reserved.