/** * Set the main attributes to null to make sure the object is no longer used. */ protected void invalidate() { setModified(); database = null; id = -1; name = null; trace = null; }
@Override public void rename(String newName) { checkRename(); name = newName; setModified(); }