oStm = oCon.prepareStatement("DELETE FROM ValorEnteroTraza where fkIdDoc=? AND Version=?");
oStm.setLong(1, lDocId);
oStm.setInt(2, iVersion);
nDeletedAttributes += oStm.executeUpdate();
oStm.close();
oCon.commit();
oCon.close("BaseModelObject.deleteVersion");
} catch (SQLException sqle) {
if (oCon!=null) {
try {
if (!oCon.isClosed()) oCon.close();