@Override public M inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception { final List<M> result = entityWrapperList.inTransaction(entitySqlDaoWrapperFactory); return result.isEmpty() ? null : result.get(0); } };
@Override public ReturnType inTransaction(final EntitySqlDao<M, E> transactionalSqlDao, final TransactionStatus status) throws Exception { final EntitySqlDaoWrapperFactory factoryEntitySqlDao = new EntitySqlDaoWrapperFactory(h, clock, cacheControllerDispatcher, internalCallContextFactory); return entitySqlDaoTransactionWrapper.inTransaction(factoryEntitySqlDao); } }
@Override public M inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception { final List<M> result = entityWrapperList.inTransaction(entitySqlDaoWrapperFactory); return result.isEmpty() ? null : result.get(0); } };
@Override public ReturnType inTransaction(final EntitySqlDao<M, E> transactionalSqlDao, final TransactionStatus status) throws Exception { final EntitySqlDaoWrapperFactory factoryEntitySqlDao = new EntitySqlDaoWrapperFactory(h, clock, cacheControllerDispatcher, internalCallContextFactory); return entitySqlDaoTransactionWrapper.inTransaction(factoryEntitySqlDao); } }