private AsyncOperation enqueueDatabaseOperation( AsyncOperation.OperationType operationtype, Object obj, int i) { AsyncOperation asyncoperation = new AsyncOperation(operationtype, daoSession.getDatabase(), obj, i); executor.enqueue(asyncoperation); return asyncoperation; }
private AsyncOperation enqueEntityOperation( AsyncOperation.OperationType operationtype, Class class1, Object obj, int i) { AsyncOperation asyncoperation = new AsyncOperation(operationtype, daoSession.getDao(class1), obj, i); executor.enqueue(asyncoperation); return asyncoperation; }