All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.agimatec.sql.query.QueryDefinition Maven / Gradle / Ivy

There is a newer version: 2.5.27
Show newest version
package com.agimatec.sql.query;

import java.io.Serializable;

/** This object allows to query for any SQL possible that does return plain data. */
public class QueryDefinition implements Serializable {
    public static final int UNLIMITED = 0;
    private String queryName;
    private Object queryObject; // optional

    public String getQueryName() {
        return queryName;
    }

    public void setQueryName(final String qsn) {
        queryName = qsn;
    }

    public Object getQueryObject() {
        return queryObject;
    }

    public void setQueryObject(final Object ser) {
        queryObject = ser;
    }

    /**
     * constant to indicate that maxResults should be unlimited,
     * that means that complete results are wanted.
     */
    private int maxResults = UNLIMITED; // optional

    public int getMaxResults() {
        return maxResults;
    }

    public void setMaxResults(final int i) {
        maxResults = i;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy