final class Values
extends java.lang.Object
Constructor and Description |
---|
Values() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.Object |
getDataValue(java.lang.Object value)
Convert an item values to a data value.
|
(package private) static java.util.List<java.lang.Object> |
getDataValues(java.util.List<?> itemValues)
Convert a list of item values to data values.
|
(package private) static java.lang.Object |
getItemValue(DbControl dc,
java.lang.Object value)
Convert a a data value to a item value.
|
(package private) static java.util.List<java.lang.Object> |
getItemValues(DbControl dc,
java.util.List<?> dataValues)
Convert a list of data values to item values.
|
static java.lang.Object getItemValue(DbControl dc, java.lang.Object value) throws PermissionDeniedException, BaseException
BasicData
objects will be converted to their correspoding
BasicItem
objects, Date
:s will be copied
since they are mutable, etc. This method is needed for
example by the Annotation.getValues()
method to make
sure that the database can't be modified without the proper permissions.
Objects implementing the BatchableData
interface are
not converted since these objects are safe for use with clients
if they are evicted from the Hibernate session.
dc
- The DbControl to use for item conversion and evictionvalue
- The value to convertPermissionDeniedException
- If the value is an item
which the logged in user doesn't have read permission forBaseException
- If there is another errorstatic java.util.List<java.lang.Object> getItemValues(DbControl dc, java.util.List<?> dataValues) throws PermissionDeniedException, ItemNotFoundException, BaseException
static java.lang.Object getDataValue(java.lang.Object value)
BasicItem
objects will be converted to their correspoding
BasicData
objects, Date
:s will be copied
since they are mutable, etc.value
- The value to convertstatic java.util.List<java.lang.Object> getDataValues(java.util.List<?> itemValues)
getDataValue(Object)