Search in sources :

Example 6 with SerializedObject

use of org.openmrs.api.db.SerializedObject in project openmrs-core by openmrs.

the class HibernateSerializedObjectDAO method purgeObject.

/**
 * @see SerializedObjectDAO#purgeObject(Integer)
 */
@Override
public void purgeObject(Integer id) throws DAOException {
    SerializedObject o = getSerializedObject(id);
    sessionFactory.getCurrentSession().delete(o);
}
Also used : SerializedObject(org.openmrs.api.db.SerializedObject)

Aggregations

SerializedObject (org.openmrs.api.db.SerializedObject)6 ArrayList (java.util.ArrayList)2 IOException (java.io.IOException)1 Date (java.util.Date)1 Criteria (org.hibernate.Criteria)1 Auditable (org.openmrs.Auditable)1 OpenmrsData (org.openmrs.OpenmrsData)1 OpenmrsMetadata (org.openmrs.OpenmrsMetadata)1 DAOException (org.openmrs.api.db.DAOException)1 ReportDesign (org.openmrs.module.reporting.report.ReportDesign)1 ReportDefinition (org.openmrs.module.reporting.report.definition.ReportDefinition)1 SerializationException (org.openmrs.serialization.SerializationException)1