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, onStartupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutdown, onStartuppublic 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 DatatypeServiceDatatypeService.getAllDatatypeClasses()@Transactional(readOnly=true) public java.util.Set<java.lang.Class<? extends CustomDatatypeHandler<?,?>>> getAllHandlerClasses()
getAllHandlerClasses in interface DatatypeServiceDatatypeService.getAllHandlerClasses()@Transactional(readOnly=true) public <T extends CustomDatatype<?>> T getDatatype(java.lang.Class<T> clazz, java.lang.String config)
getDatatype in interface DatatypeServiceCustomDatatype, 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 DatatypeServiceCustomDatatype classDatatypeService.getHandlerClasses(Class)@Transactional(readOnly=true) public CustomDatatypeHandler<?,?> getHandler(CustomDatatype<?> datatype, java.lang.String handlerConfig)
DatatypeServiceCustomDatatype, 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 DatatypeServiceDatatypeService.getHandler(org.openmrs.customdatatype.CustomDatatype, java.lang.String)public ClobDatatypeStorage getClobDatatypeStorage(java.lang.Integer id)
DatatypeServicegetClobDatatypeStorage in interface DatatypeServiceDatatypeService.getClobDatatypeStorage(java.lang.Integer)public ClobDatatypeStorage getClobDatatypeStorageByUuid(java.lang.String uuid)
DatatypeServicegetClobDatatypeStorageByUuid in interface DatatypeServiceDatatypeService.getClobDatatypeStorageByUuid(java.lang.String)public ClobDatatypeStorage saveClobDatatypeStorage(ClobDatatypeStorage storage)
DatatypeServicesaveClobDatatypeStorage in interface DatatypeServiceDatatypeService.saveClobDatatypeStorage(org.openmrs.api.db.ClobDatatypeStorage)public void deleteClobDatatypeStorage(ClobDatatypeStorage storage)
DatatypeServicedeleteClobDatatypeStorage in interface DatatypeServicestorage - the object to deleteDatatypeService.deleteClobDatatypeStorage(org.openmrs.api.db.ClobDatatypeStorage)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.