Entity - 实体类型PK - 主键类型public abstract class BaseEntity<Entity extends IEntity,PK extends Serializable> extends Object implements IEntity<PK>
| Constructor and Description |
|---|
BaseEntity()
构造器
|
BaseEntity(IDatabase dbOwner)
构造器
|
public BaseEntity()
public BaseEntity(IDatabase dbOwner)
dbOwner - 所属JDBC数据库管理器public IDatabaseConnectionHolder getConnectionHolder()
public void setConnectionHolder(IDatabaseConnectionHolder connectionHolder)
public IShardingable getShardingable()
public void setShardingable(IShardingable shardingable)
public String getDataSourceName()
public void setDataSourceName(String dataSourceName)
public IDatabase getDbOwner()
public void setDbOwner(IDatabase dbOwner)
public static IDatabaseConnectionHolder getSafeConnectionHolder(IDatabase owner, IDatabaseConnectionHolder connectionHolder, String dataSourceName) throws Exception
owner - 数据库管理器connectionHolder - 当前数据库连接持有对象dataSourceName - 数据源名称Exception - 可能产生的异常protected IDatabase doGetSafeOwner()
protected IDatabaseConnectionHolder doGetSafeConnectionHolder() throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass) throws Exception
Exceptionpublic IResultSet<Entity> find() throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, GroupBy groupBy, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(OrderBy orderBy, GroupBy groupBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, GroupBy groupBy, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Fields fields, OrderBy orderBy, GroupBy groupBy, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Fields fields) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Fields fields, Page page) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic static <Entity extends IEntity> IResultSet<Entity> find(IDatabase owner, IDatabaseConnectionHolder connectionHolder, String dataSourceName, IShardingable shardingable, Class<Entity> entityClass, Where where, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic static <Entity extends IEntity,T extends Serializable> IResultSet<T> find(IDatabase owner, String dataSourceName, IShardingable shardingable, Class<Entity> entityClass, Class<T> beanClass, Where where, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> find(Class<T> beanClass, Where where, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic IResultSet<Entity> find(Where where, Fields fields, Page page, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> findAll(Class<T> beanClass) throws Exception
Exceptionpublic IResultSet<Entity> findAll() throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> findAll(Class<T> beanClass, OrderBy orderBy) throws Exception
Exceptionpublic IResultSet<Entity> findAll(OrderBy orderBy) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> findAll(Class<T> beanClass, Fields fields, Page page) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Fields fields, Page page) throws Exception
Exceptionpublic <T extends Serializable> IResultSet<T> findAll(Class<T> beanClass, Fields fields, OrderBy orderBy, Page page) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Fields fields, OrderBy orderBy, Page page) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Fields fields) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Fields fields, OrderBy orderBy) throws Exception
Exceptionpublic IResultSet<Entity> findAll(Page page) throws Exception
Exceptionpublic IResultSet<Entity> findAll(OrderBy orderBy, Page page) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic Entity findFirst(OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields, OrderBy orderBy) throws Exception
Exceptionpublic Entity findFirst(Fields fields, OrderBy orderBy) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic Entity findFirst(Fields fields, OrderBy orderBy, GroupBy groupBy) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(Fields fields, OrderBy orderBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Fields fields, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(Fields fields, OrderBy orderBy, GroupBy groupBy, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Where where) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Where where, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(Where where, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Where where, Fields fields) throws Exception
Exceptionpublic static <Entity extends IEntity> Entity findFirst(IDatabase owner, IDatabaseConnectionHolder connectionHolder, String dataSourceName, IShardingable shardingable, Class<Entity> entityClass, Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic static <Entity extends IEntity,T extends Serializable> T findFirst(IDatabase owner, String dataSourceName, IShardingable shardingable, Class<Entity> entityClass, Class<T> beanClass, Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic <T extends Serializable> T findFirst(Class<T> beanClass, Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic Entity findFirst(Where where, Fields fields, IDBLocker dbLocker) throws Exception
Exceptionpublic boolean isMatchAny()
public Entity matchAny()
public Entity matchAny(boolean matchAny)
public <T extends BaseEntity> EntityStateWrapper<T> stateWrapper() throws Exception
Exceptionpublic <T extends BaseEntity> EntityStateWrapper<T> stateWrapper(boolean ignoreNull) throws Exception
Exceptionpublic static <T extends IEntity> Cond buildCond(IDatabase owner, T entity) throws Exception
ExceptionCopyright © 2022. All rights reserved.