Package de.xanders.data.common.util

Examples of de.xanders.data.common.util.CriteriaSearch


    /**
     * @see BankAccountDao#findByCriteria(BankAccountCriteria)
     */
    public java.util.List handleFindByCriteria(final BankAccountCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), BankAccountImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here


    /**
     * @see CreditCardDao#findByCriteria(CreditCardCriteria)
     */
    public java.util.List handleFindByCriteria(final CreditCardCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), CreditCardImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see SalesOrderDao#findByCriteria(SalesOrderCriteria)
     */
    public java.util.List handleFindByCriteria(final SalesOrderCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), SalesOrderImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see QuoteDao#findByCriteria(OpportunityCriteria)
     */
    public java.util.List handleFindByCriteria(final OpportunityCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), OpportunityImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see ContactDao#findByCriteria(ContactCriteria)
     */
    public java.util.List handleFindByCriteria(final ContactCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), ContactImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see CasesDao#findByCriteria(CasesCriteria)
     */
    public java.util.List handleFindByCriteria(final CasesCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), CasesImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see ActivityDao#findByCriteria(ActivityCriteria)
     */
    public java.util.List handleFindByCriteria(final ActivityCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), ActivityImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            CriteriaSearchParameter param1 = new CriteriaSearchParameter(criteria.getBeginDate(),
                    "beginDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
            criteriaSearch.addParameter(param1);
            CriteriaSearchParameter param2 = new CriteriaSearchParameter(criteria.getEndDate(),
                    "endDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
            criteriaSearch.addParameter(param2);
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see InvoiceDao#findByCriteria(InvoiceCriteria)
     */
    public java.util.List handleFindByCriteria(final InvoiceCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), InvoiceImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see LeadDao#findByCriteria(LeadCriteria)
     */
    public java.util.List handleFindByCriteria(final LeadCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), LeadImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

    /**
     * @see CampaignDao#findByCriteria(CampaignCriteria)
     */
    public java.util.List handleFindByCriteria(final CampaignCriteria criteria) {
        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), CampaignImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
        }
        catch (org.hibernate.HibernateException ex) {
            throw super.convertHibernateAccessException(ex);
View Full Code Here

TOP

Related Classes of de.xanders.data.common.util.CriteriaSearch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.