@Test @SuppressWarnings("unchecked") public void testDeleteEntryByToken() { final long entryId = 103L; sut.execute("token3"); Query q = getEntityManager().createQuery("from OAuthDomainEntry e where e.id = :tokenId").setParameter( "tokenId", entryId); List results = q.getResultList(); Assert.assertEquals(0, results.size()); }
@Override public Boolean execute(final String inRequest) { Query q = getEntityManager().createQuery("DELETE from OAuthDomainEntry e where e.token = :token").setParameter( "token", inRequest); q.executeUpdate(); return Boolean.TRUE; }
DeleteOAuthEntry extends BaseArgDomainMapper<String, Boolean> { @Override public Boolean execute(final String inRequest) { Query q = getEntityManager().createQuery("DELETE from OAuthDomainEntry e where e.token = :token").setParameter( "token", inRequest); q.executeUpdate(); return Boolean.TRUE; } }
DeleteOAuthEntry extends BaseArgDomainMapper<String, Boolean> { @Override public Boolean execute(final String inRequest) { Query q = getEntityManager().createQuery("DELETE from OAuthDomainEntry e where e.token = :token").setParameter( "token", inRequest); q.executeUpdate(); return Boolean.TRUE; }  }
DeleteOAuthEntry extends BaseArgDomainMapper<String, Boolean> { @Override public Boolean execute(final String inRequest) { Query q = getEntityManager().createQuery("DELETE from OAuthDomainEntry e where e.token = :token").setParameter( "token", inRequest); q.executeUpdate(); return Boolean.TRUE; }  @Override Boolean execute(final String inRequest); }
DeleteOAuthEntry extends BaseArgDomainMapper<String, Boolean> { @Override public Boolean execute(final String inRequest) { Query q = getEntityManager().createQuery("DELETE from OAuthDomainEntry e where e.token = :token").setParameter( "token", inRequest); q.executeUpdate(); return Boolean.TRUE; }  @Override Boolean execute(final String inRequest);  }