public class DatatypeServiceImpl extends BaseOpenmrsService implements DatatypeService
DatatypeService
Constructor and Description |
---|
DatatypeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteClobDatatypeStorage(ClobDatatypeStorage storage)
Deletes a clob storage object from the database
|
java.util.Set<java.lang.Class<? extends CustomDatatype<?>>> |
getAllDatatypeClasses() |
java.util.Set<java.lang.Class<? extends CustomDatatypeHandler<?,?>>> |
getAllHandlerClasses() |
ClobDatatypeStorage |
getClobDatatypeStorage(java.lang.Integer id)
Gets a clob storage object by its id
|
ClobDatatypeStorage |
getClobDatatypeStorageByUuid(java.lang.String uuid)
Gets a clob storage object by its uuid
|
<T extends CustomDatatype<?>> |
getDatatype(java.lang.Class<T> clazz,
java.lang.String config) |
CustomDatatypeHandler<?,?> |
getHandler(CustomDatatype<?> datatype,
java.lang.String handlerConfig)
Gets the default handler for a
CustomDatatype , and sets its configuration
TODO probably remove the config argument since it doesn't make sense to let people provide handlerConfig to the default handler. |
java.util.List<java.lang.Class<? extends CustomDatatypeHandler>> |
getHandlerClasses(java.lang.Class<? extends CustomDatatype<?>> datatype) |
ClobDatatypeStorage |
saveClobDatatypeStorage(ClobDatatypeStorage storage)
Creates or updates a clob storage object
|
void |
setDao(DatatypeDAO dao)
Sets the dao
|
onShutdown, onStartup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onShutdown, onStartup
public void setDao(DatatypeDAO dao)
dao
- the dao to set@Transactional(readOnly=true) public java.util.Set<java.lang.Class<? extends CustomDatatype<?>>> getAllDatatypeClasses()
getAllDatatypeClasses
in interface DatatypeService
DatatypeService.getAllDatatypeClasses()
@Transactional(readOnly=true) public java.util.Set<java.lang.Class<? extends CustomDatatypeHandler<?,?>>> getAllHandlerClasses()
getAllHandlerClasses
in interface DatatypeService
DatatypeService.getAllHandlerClasses()
@Transactional(readOnly=true) public <T extends CustomDatatype<?>> T getDatatype(java.lang.Class<T> clazz, java.lang.String config)
getDatatype
in interface DatatypeService
CustomDatatype
, with a configuration setDatatypeService.getDatatype(java.lang.Class, java.lang.String)
@Transactional(readOnly=true) public java.util.List<java.lang.Class<? extends CustomDatatypeHandler>> getHandlerClasses(java.lang.Class<? extends CustomDatatype<?>> datatype)
getHandlerClasses
in interface DatatypeService
CustomDatatype
classDatatypeService.getHandlerClasses(Class)
@Transactional(readOnly=true) public CustomDatatypeHandler<?,?> getHandler(CustomDatatype<?> datatype, java.lang.String handlerConfig)
DatatypeService
CustomDatatype
, and sets its configuration
TODO probably remove the config argument since it doesn't make sense to let people provide handlerConfig to the default handler. If we remove this argument, we also need to change BaseAttributeTypeValidatorgetHandler
in interface DatatypeService
DatatypeService.getHandler(org.openmrs.customdatatype.CustomDatatype, java.lang.String)
public ClobDatatypeStorage getClobDatatypeStorage(java.lang.Integer id)
DatatypeService
getClobDatatypeStorage
in interface DatatypeService
DatatypeService.getClobDatatypeStorage(java.lang.Integer)
public ClobDatatypeStorage getClobDatatypeStorageByUuid(java.lang.String uuid)
DatatypeService
getClobDatatypeStorageByUuid
in interface DatatypeService
DatatypeService.getClobDatatypeStorageByUuid(java.lang.String)
public ClobDatatypeStorage saveClobDatatypeStorage(ClobDatatypeStorage storage)
DatatypeService
saveClobDatatypeStorage
in interface DatatypeService
DatatypeService.saveClobDatatypeStorage(org.openmrs.api.db.ClobDatatypeStorage)
public void deleteClobDatatypeStorage(ClobDatatypeStorage storage)
DatatypeService
deleteClobDatatypeStorage
in interface DatatypeService
storage
- the object to deleteDatatypeService.deleteClobDatatypeStorage(org.openmrs.api.db.ClobDatatypeStorage)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.