|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.Reporter
public class Reporter
This is an utilitiy class for reporters.
Field Summary | |
---|---|
private static org.hibernate.metadata.ClassMetadata |
metaData
|
Constructor Summary | |
---|---|
Reporter()
|
Method Summary | |
---|---|
static ReporterData |
getByExternalId(DbControl dc,
String externalId)
Get a ReporterData object when you know the external id. |
static ReporterData |
getById(DbControl dc,
int id)
Get a ReporterData object when you know the ID. |
static DynamicReporterQuery |
getDynamicQuery()
Get a dynamic query object configured to retrieve reporter information. |
static ReporterData |
getNew(String externalId)
Get a new instance of a reporter, and setting the external ID. |
static ReporterData |
getProxy(int reporterId)
Get a proxy reporter object. |
static DataQuery<ReporterData> |
getQuery()
Get a query object configured to retrieve reporters. |
static ReporterType |
getReporterType(DbControl dc,
ReporterData reporter)
Get the reporter type item from a reporter data object. |
static void |
setReporterType(ReporterData reporter,
ReporterType reporterType)
Set the reporter type on a reporter data object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.hibernate.metadata.ClassMetadata metaData
Constructor Detail |
---|
public Reporter()
Method Detail |
---|
public static ReporterData getNew(String externalId) throws InvalidDataException, BaseException
externalId
- The external id of the new reporter
ReporterData
class
InvalidDataException
- If the external id is null
BaseException
- If there is some other error.public static ReporterData getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
ReporterData
object when you know the ID.
dc
- The DbControl
which will be used for
permission checking and database access.id
- The ID of the item to load.
ReporterData
object.
ItemNotFoundException
- If an item with the specified
id is not found
PermissionDeniedException
- If the logged in user doesn't
have read permission to the item
BaseException
- If there is another errorpublic static ReporterData getByExternalId(DbControl dc, String externalId) throws ItemNotFoundException, PermissionDeniedException, BaseException
ReporterData
object when you know the external id. Use
this method only when you need to get a few reporters. If you need
to get many reporter use the ReporterBatcher.getByExternalId(String)
method instead. It has better performance since it resuses a single
query instead of creating a new one each time as this method does.
dc
- The DbControl
which will be used for
database access.externalId
- The external id of the reporter to load.
ReporterData
object.
ItemNotFoundException
- If an item with the specified
id is not found
PermissionDeniedException
- If the logged in user doesn't
have read permission to the item
BaseException
- If there is another errorpublic static ReporterData getProxy(int reporterId)
reporterId
- The ID of the reporter
public static DataQuery<ReporterData> getQuery()
DataQuery
objectpublic static DynamicReporterQuery getDynamicQuery()
Query.select(net.sf.basedb.core.query.Select)
DynamicReporterQuery
objectpublic static ReporterType getReporterType(DbControl dc, ReporterData reporter) throws PermissionDeniedException, BaseException
dc
- The DbControl
which will be used for
permission checking and database access.reporter
- The reporter to get the reporter type data for.
ReporterType
object.
PermissionDeniedException
- If the logged in user doesn't
have read permission to the item
BaseException
- If there is another errorpublic static void setReporterType(ReporterData reporter, ReporterType reporterType) throws PermissionDeniedException, BaseException
BasicBatcher.update(net.sf.basedb.core.data.BatchableData)
for the changes to be saved in the database.
reporter
- The reporter data objectreporterType
- The new reporter type or null
PermissionDeniedException
- If the logged in user doesn't have
use permission on the reporter type
BaseException
- If there is another error
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |