Entity - 实体类型PK - 主键类型public abstract class BaseEntity<Entity extends IEntity,PK extends Serializable> extends Object implements IEntity<PK>
| 构造器和说明 |
|---|
BaseEntity()
构造器
|
public IConnectionHolder getConnectionHolder()
public void setConnectionHolder(IConnectionHolder connectionHolder)
public IShardingable getShardingable()
public void setShardingable(IShardingable shardingable)
public String getDataSourceName()
public void setDataSourceName(String dsName)
protected IConnectionHolder __doGetConnectionHolderSafed() throws Exception
Exception - 可能产生的异常public IResultSet<Entity> find() throws Exception
Exceptionpublic IResultSet<Entity> find(IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> findAll() throws Exception
Exceptionpublic IResultSet<Entity> findAll(Fields fields) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Page page) throws Exception
Exceptionpublic Entity findFirst(Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic static <T extends IEntity> Cond buildEntityCond(T entity) throws Exception
ExceptionCopyright © 2019. All rights reserved.