*/
public class TrashedResourceDAO extends AbstractDAO implements ITrashedResourceDAO {
@Override
public ResourceRecordVO getTrashedResource(String id) {
ResourceRecordVO resourceVo = null;
Connection conn = null;
PreparedStatement stat = null;
ResultSet res = null;
try {
conn = this.getConnection();
stat = conn.prepareStatement(SELECT_TRASHED_RESOURCE);
stat.setString(1, id);
res = stat.executeQuery();
if (res.next()) {
resourceVo = new ResourceRecordVO();
resourceVo.setId(id);
resourceVo.setResourceType(res.getString(1));
resourceVo.setDescr(res.getString(2));
resourceVo.setMainGroup(res.getString(3));
resourceVo.setXml(res.getString(4));
}
} catch (Throwable t) {
processDaoException(t, "Error loading record for trashed resource", "getTrashedResource");
} finally {
closeDaoResources(res, stat, conn);