/** * Gets all entities with the given attribute value. * * @param attributeName The attribute name. * @param attributeValue The attribute value. * @param firstResult The first result that should be considered by the query. * @param maxResults The maximum numbers of results to be considered by the query. * @return All entities with the given attribute value. */ public Collection<FakeEntity> getByAttribute( final String attributeName, final Object attributeValue, final Integer firstResult, final Integer maxResults) { // Tries to get the entities. return fakeEntityDAO.getByAttribute(attributeName, attributeValue, firstResult, maxResults); }
/** * Gets all entities with the given attribute value. * * @param attributeValue The attribute value. * @param firstResult The first result that should be considered by the query. * @param maxResults The maximum numbers of results to be considered by the query. * @return All entities with the given attribute value. */ public Collection<FakeEntity> getBySomeOtherFakeEntityId2( final Integer attributeValue, final Integer firstResult, final Integer maxResults) { // Tries to get the entities. return fakeEntityDAO.getByAttribute( "someOtherFakeEntityId2", attributeValue, firstResult, maxResults); }
/** * Gets the fakeEntity with the given attribute value. * * @param attributeValue The attribute value. * @return The fakeEntity with the given attribute value. */ public FakeEntity getBySomeOtherFakeEntityId(final Integer attributeValue) { // Tries to get the entities. return fakeEntityDAO.getByAttribute("someOtherFakeEntityId", attributeValue); }
/** * Gets an fakeEntity by its attribute. * * @param attributeName The attribute name. * @param attributeValue The attribute value. * @return The fakeEntity by its attribute. */ public FakeEntity getByAttribute(final String attributeName, final Object attributeValue) { // Tries to get the fakeEntity. return fakeEntityDAO.getByAttribute(attributeName, attributeValue); }