|
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.BasicItem<D> net.sf.basedb.core.OwnedItem<D> net.sf.basedb.core.SharedItem<D> net.sf.basedb.core.CommonItem<LabelData> net.sf.basedb.core.Label
public class Label
This class represents a labelling compund. Labels are used
together with Extract
:s to create LabeledExtract
:s.
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Fields inherited from interface net.sf.basedb.core.Nameable |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Constructor Summary | |
---|---|
Label(LabelData labelData)
|
Method Summary | |
---|---|
static Label |
getById(DbControl dc,
int id)
Get a Label item when you know the id. |
Date |
getEntryDate()
Get the date that the item was registered in the database. |
ItemQuery<LabeledExtract> |
getLabeledExtracts()
Get a query that returns all labeled extracts labeled with this label. |
static Label |
getNew(DbControl dc)
Create a new Label item. |
static ItemQuery<Label> |
getQuery()
Get a query that returns labels. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Get all: LabeledExtract :s labeled with this label
|
boolean |
isUsed()
Check if: Some LabeledExtract :s are labeled with this label
|
Methods inherited from class net.sf.basedb.core.CommonItem |
---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved, toTransferable |
Methods inherited from class net.sf.basedb.core.SharedItem |
---|
getItemKey, getProjectKey, initPermissions, isShared, onBeforeCommit, setItemKey, setProjectKey, toTransferable |
Methods inherited from class net.sf.basedb.core.OwnedItem |
---|
getOwner, isOwner, setOwner, takeOwnership, toTransferable |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.Identifiable |
---|
getId, getVersion |
Methods inherited from interface net.sf.basedb.core.AccessControlled |
---|
checkPermission, getPermissions, hasPermission |
Methods inherited from interface net.sf.basedb.core.Ownable |
---|
getOwner, isOwner, setOwner, takeOwnership |
Field Detail |
---|
public static final Item TYPE
Item.LABEL
,
getType()
Constructor Detail |
---|
Label(LabelData labelData)
Method Detail |
---|
public static Label getNew(DbControl dc) throws BaseException
Label
item.
dc
- The DbControl
which will be used for
permission checking and database access
Label
item
BaseException
- If there is an errorpublic static Label getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
Label
item 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
Label
item
ItemNotFoundException
- If an item with the specified
id is not found
PermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission to the item
BaseException
- If there is another errorpublic static ItemQuery<Label> getQuery()
ItemQuery
objectpublic Item getType()
Identifiable
Item
enumeration.
getType
in interface Identifiable
public Date getEntryDate()
Registered
getEntryDate
in interface Registered
public boolean isUsed() throws BaseException
LabeledExtract
:s are labeled with this label
isUsed
in class BasicItem<LabelData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public Set<ItemProxy> getUsingItems()
LabeledExtract
:s labeled with this label
getUsingItems
in class BasicItem<LabelData>
BasicItem.addUsingItems(Set, Item, org.hibernate.Query)
public ItemQuery<LabeledExtract> getLabeledExtracts() throws BaseException
ItemQuery
object
BaseException
- If the query could not be created and configured.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |