if (tl == null) return;
tlh.delete(tl);
}
public void doDeleteMatrix(Long id) {
MatrixHome mh = (MatrixHome) ContextManager.getBean("matrixHome");
Matrix m = mh.findPersistedObjectByID(Matrix.class, id);
if (m == null) return;
if (m instanceof CharacterMatrix) {
CharacterMatrix cm = (CharacterMatrix) m;
mh.cascadeDeleteRows(cm.getRowsReadOnly());
mh.cascadeDeleteElements(cm);
mh.cascadeDeleteColumns(cm);
}
mh.delete(m);
}