381382383384385386387388389390391
database.deleteByQuery(Query.from(History.class).where("objectId = ?", objectId)); database.deleteByQuery(Query.from(Trash.class).where("objectId = ?", objectId)); objectState.delete(); database.commitWrites(); } finally { database.endWrites(); } } } /**