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

com.bixuebihui.db.SqlLimit Maven / Gradle / Ivy

Go to download

a fast small database connection pool and a active record flavor mini framework

There is a newer version: 1.15.3.3
Show newest version
package com.bixuebihui.db;

/**
 * 

SqlLimit class.

* * @author xingwx * @version $Id: $Id */ public class SqlLimit { /** * Constant LIMIT_ONE */ public static final SqlLimit LIMIT_ONE= new SqlLimit(0, 1); /** Constant LIMIT_MAX */ public static final SqlLimit LIMIT_MAX= new SqlLimit(0, 10000); /** *

Constructor for SqlLimit.

* * @param begin a int. * @param num a int. */ public SqlLimit(int begin, int num) { this.begin = begin; this.num = num; } /** *

Constructor for SqlLimit.

* * @param src a {@link SqlLimit} object. */ public SqlLimit(SqlLimit src) { this.begin = src.begin; this.num = src.num; } private int begin; private int num; /** *

Getter for the field begin.

* * @return a int. */ public int getBegin() { return begin; } /** *

Setter for the field begin.

* * @param begin a int. */ public void setBegin(int begin) { this.begin = begin; } /** *

Getter for the field num.

* * @return a int. */ public int getNum() { return num; } /** *

getEnd.

* * @return a int. */ public int getEnd(){ return begin + num; } /** *

Setter for the field num.

* * @param num a int. */ public void setNum(int num) { this.num = num; } /** *

toString.

* * @return a {@link java.lang.String} object. */ @Override public String toString() { return " limit " + begin + "," + num; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy