%Windows下指定jre的.bat脚本,将jre包放在工具根目录%
set path=jre\bin
start java -jar VertX-Generator.jar
#unix下指定jre的sh脚本,将jre包放在工具根目录
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
set path = Contents/Home/bin #设置你jre的bin路径
java -jar $DIR/VertX-Generator.jar
startRow:从第几行开始取数据 注意事项:数据从0开始;
rowSize:每次取多少行数据;
Assist assist = new Assist ().setStartRow(0).setRowSize(15);//从第1行开始取数据,取15行数据
resultColumn自定义列说明
resultColumn为自定义返回的列,比如表中有5列,你只想取出2列
这个时候你就可以调用Assist对象的setResultColumn(String resultColumn)方法
参数为想要取出的列,多个列以逗号,分开;比如要取出id跟名字那么参数的参数值就为===>"id as 别名 , name as 别名";
require条件集说明
require属性为条件集,当查询的时需要条件,就可以调用Assist对象的andXXX或者orXXX默认忽略where 后面第一个and或or
示例:assist.andEq("id",1) 结果查询的SQL语句就是: where id = 1
The MIT License (MIT)
Copyright (c) 2017 github.shenzhenMirren
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.