cn.dreampie.web.model
类 Model<M extends Model>
java.lang.Object
com.jfinal.plugin.activerecord.Model<M>
cn.dreampie.web.model.Model<M>
- 所有已实现的接口:
- Serializable
public abstract class Model<M extends Model>
- extends com.jfinal.plugin.activerecord.Model<M>
Created by wangrenhui on 2014/7/1.
- 另请参见:
- 序列化表格
|
方法摘要 |
Long |
countAll()
|
Long |
countBy(String where,
Object... paras)
|
boolean |
deleteAll()
|
boolean |
deleteBy(String where,
Object... paras)
|
boolean |
dropAll()
|
boolean |
dropBy(String where,
Object... paras)
|
List<M> |
findAll()
|
List<M> |
findBy(String where,
Object... paras)
|
M |
findFirstBy(String where,
Object... paras)
|
List<M> |
findTopBy(int topNumber,
String where,
Object... paras)
|
Map<String,Object> |
getAttrs()
|
String |
getCountSql()
|
String |
getDeleteSql()
|
String |
getDropSql()
|
String |
getFromSql()
|
String |
getJson()
|
String |
getModelName()
|
String |
getNextSql(String where)
|
String |
getPreviousSql(String where)
|
String |
getPrimaryKey()
|
String |
getSelectSql()
|
protected String |
getSet(String set)
|
com.jfinal.plugin.activerecord.Table |
getTable()
|
String |
getTableName()
|
String |
getUpdateSql()
|
protected String |
getWhere(String where)
|
com.jfinal.plugin.activerecord.Page<M> |
paginateAll(int pageNumber,
int pageSize)
|
com.jfinal.plugin.activerecord.Page<M> |
paginateBy(int pageNumber,
int pageSize,
String where,
Object... paras)
|
boolean |
updateAll(String set,
Object... paras)
|
boolean |
updateBy(String set,
String where,
Object... paras)
|
| 从类 com.jfinal.plugin.activerecord.Model 继承的方法 |
clear, delete, deleteById, equals, find, find, findByCache, findByCache, findById, findById, findFirst, findFirst, get, get, getAttrNames, getAttrsEntrySet, getAttrValues, getBigDecimal, getBigInteger, getBoolean, getBytes, getDate, getDouble, getFloat, getInt, getLong, getNumber, getStr, getTime, getTimestamp, hashCode, keep, keep, paginate, paginate, paginateByCache, paginateByCache, put, remove, remove, removeNullValueAttrs, save, set, setAttrs, setAttrs, toJson, toString, update |
blank
protected static String blank
Model
public Model()
getAttrs
public Map<String,Object> getAttrs()
- 覆盖:
- 类
com.jfinal.plugin.activerecord.Model<M extends Model> 中的 getAttrs
getJson
public String getJson()
findAll
public List<M> findAll()
findBy
public List<M> findBy(String where,
Object... paras)
findTopBy
public List<M> findTopBy(int topNumber,
String where,
Object... paras)
findFirstBy
public M findFirstBy(String where,
Object... paras)
paginateAll
public com.jfinal.plugin.activerecord.Page<M> paginateAll(int pageNumber,
int pageSize)
paginateBy
public com.jfinal.plugin.activerecord.Page<M> paginateBy(int pageNumber,
int pageSize,
String where,
Object... paras)
updateAll
public boolean updateAll(String set,
Object... paras)
updateBy
public boolean updateBy(String set,
String where,
Object... paras)
deleteAll
public boolean deleteAll()
deleteBy
public boolean deleteBy(String where,
Object... paras)
dropAll
public boolean dropAll()
dropBy
public boolean dropBy(String where,
Object... paras)
countAll
public Long countAll()
countBy
public Long countBy(String where,
Object... paras)
getSet
protected String getSet(String set)
getWhere
protected String getWhere(String where)
getTable
public com.jfinal.plugin.activerecord.Table getTable()
getPrimaryKey
public String getPrimaryKey()
getTableName
public String getTableName()
getModelName
public String getModelName()
getSelectSql
public String getSelectSql()
getFromSql
public String getFromSql()
getUpdateSql
public String getUpdateSql()
getDeleteSql
public String getDeleteSql()
getDropSql
public String getDropSql()
getCountSql
public String getCountSql()
getNextSql
public String getNextSql(String where)
getPreviousSql
public String getPreviousSql(String where)
Copyright © 2014. All rights reserved.