public interface DatatypeService extends OpenmrsService
CustomDatatype
and CustomDatatypeHandler
.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<?>> datatypeClass) |
ClobDatatypeStorage |
saveClobDatatypeStorage(ClobDatatypeStorage storage)
Creates or updates a clob storage object
|
onShutdown, onStartup
java.util.Set<java.lang.Class<? extends CustomDatatype<?>>> getAllDatatypeClasses()
java.util.Set<java.lang.Class<? extends CustomDatatypeHandler<?,?>>> getAllHandlerClasses()
<T extends CustomDatatype<?>> T getDatatype(java.lang.Class<T> clazz, java.lang.String config) throws CustomDatatypeException
clazz
- config
- CustomDatatype
, with a configuration setCustomDatatypeException
CustomDatatypeHandler<?,?> getHandler(CustomDatatype<?> datatype, java.lang.String handlerConfig)
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 BaseAttributeTypeValidatordatatype
- handlerConfig
- java.util.List<java.lang.Class<? extends CustomDatatypeHandler>> getHandlerClasses(java.lang.Class<? extends CustomDatatype<?>> datatypeClass)
datatypeClass
- CustomDatatype
classClobDatatypeStorage getClobDatatypeStorage(java.lang.Integer id)
id
- ClobDatatypeStorage getClobDatatypeStorageByUuid(java.lang.String uuid)
uuid
- ClobDatatypeStorage saveClobDatatypeStorage(ClobDatatypeStorage storage)
storage
- void deleteClobDatatypeStorage(ClobDatatypeStorage storage)
storage
- the object to deleteCopyright © 2018 OpenMRS Inc.. All Rights Reserved.