E - the element typepublic abstract class AbstractSqlQueryEntityProperties<E extends AbstractSqlQueryEntityProperties<E>>
extends java.lang.Object
SqlQueryProperties
.| 限定符和类型 | 字段和说明 |
|---|---|
protected cn.featherfly.common.repository.builder.AliasManager |
aliasManager
The alias manager.
|
protected cn.featherfly.common.repository.mapping.ClassMapping<?> |
classMapping
The class mapping.
|
protected cn.featherfly.common.repository.mapping.MappingFactory |
factory
The factory.
|
protected java.lang.String |
idName
The id name.
|
protected java.util.function.Predicate<java.lang.Object> |
ignorePolicy
The ignore policy.
|
protected Jdbc |
jdbc
The jdbc.
|
protected cn.featherfly.common.db.builder.dml.basic.SqlSelectBasicBuilder |
selectBuilder
The select builder.
|
protected SqlPageFactory |
sqlPageFactory
The sql page factory.
|
| 构造器和说明 |
|---|
AbstractSqlQueryEntityProperties(Jdbc jdbc,
cn.featherfly.common.repository.mapping.ClassMapping<?> classMapping,
cn.featherfly.common.repository.mapping.MappingFactory factory,
SqlPageFactory sqlPageFactory,
cn.featherfly.common.repository.builder.AliasManager aliasManager,
java.util.function.Predicate<java.lang.Object> ignorePolicy)
Instantiates a new abstract sql query entity properties.
|
AbstractSqlQueryEntityProperties(Jdbc jdbc,
cn.featherfly.common.db.metadata.DatabaseMetadata databaseMetadata,
java.lang.String tableName,
java.lang.String tableAlias,
cn.featherfly.common.repository.mapping.MappingFactory factory,
SqlPageFactory sqlPageFactory,
cn.featherfly.common.repository.builder.AliasManager aliasManager,
java.util.function.Predicate<java.lang.Object> ignorePolicy)
Instantiates a new abstract sql query entity properties.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T,R> E |
avg(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Avg.
|
E |
avg(java.lang.String propertyName)
Avg.
|
<T,R> E |
count(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Count.
|
E |
count(java.lang.String propertyName)
Count.
|
<T,R> E |
distinct(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Distinct.
|
E |
distinct(java.lang.String propertyName)
Distinct.
|
protected java.lang.String |
getIdName()
Gets the id name.
|
<T,R> E |
id(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Id.
|
E |
id(java.lang.String propertyName)
Id.
|
<T,R> E |
max(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Max.
|
E |
max(java.lang.String propertyName)
Max.
|
<T,R> E |
min(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Min.
|
E |
min(java.lang.String propertyName)
Min.
|
E |
property(java.util.Collection<java.lang.String> propertyNames)
Property.
|
<T,R> E |
property(cn.featherfly.common.lang.function.SerializableFunction<T,R>... propertyNames)
Property.
|
<T,R> E |
property(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Property.
|
<T,R> E |
property(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName,
cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
Property.
|
E |
property(java.lang.String... propertyNames)
Property.
|
E |
property(java.lang.String propertyName)
Property.
|
E |
property(java.lang.String propertyName,
cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
Property.
|
E |
propertyAlias(java.util.Map<java.lang.String,java.lang.String> columnNameMap)
Property alias.
|
<T,R> E |
propertyAlias(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName,
java.lang.String alias)
Property alias.
|
E |
propertyAlias(java.lang.String columnName,
java.lang.String alias)
Property alias.
|
<T,R> E |
sum(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
Sum.
|
E |
sum(java.lang.String propertyName)
Sum.
|
protected Jdbc jdbc
protected java.lang.String idName
protected cn.featherfly.common.db.builder.dml.basic.SqlSelectBasicBuilder selectBuilder
protected cn.featherfly.common.repository.mapping.ClassMapping<?> classMapping
protected cn.featherfly.common.repository.mapping.MappingFactory factory
protected SqlPageFactory sqlPageFactory
protected cn.featherfly.common.repository.builder.AliasManager aliasManager
protected java.util.function.Predicate<java.lang.Object> ignorePolicy
public AbstractSqlQueryEntityProperties(Jdbc jdbc, cn.featherfly.common.repository.mapping.ClassMapping<?> classMapping, cn.featherfly.common.repository.mapping.MappingFactory factory, SqlPageFactory sqlPageFactory, cn.featherfly.common.repository.builder.AliasManager aliasManager, java.util.function.Predicate<java.lang.Object> ignorePolicy)
jdbc - jdbcclassMapping - classMappingfactory - MappingFactorysqlPageFactory - the sql page factoryaliasManager - aliasManagerignorePolicy - the ignore policypublic AbstractSqlQueryEntityProperties(Jdbc jdbc, cn.featherfly.common.db.metadata.DatabaseMetadata databaseMetadata, java.lang.String tableName, java.lang.String tableAlias, cn.featherfly.common.repository.mapping.MappingFactory factory, SqlPageFactory sqlPageFactory, cn.featherfly.common.repository.builder.AliasManager aliasManager, java.util.function.Predicate<java.lang.Object> ignorePolicy)
jdbc - jdbcdatabaseMetadata - databaseMetadatatableName - tableNametableAlias - tableAliasfactory - MappingFactorysqlPageFactory - the sql page factoryaliasManager - aliasManagerignorePolicy - the ignore policypublic E property(java.lang.String propertyName)
propertyName - the property namepublic E property(java.lang.String propertyName, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
propertyName - the property nameaggregateFunction - the aggregate functionpublic <T,R> E property(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
T - the generic typeR - the generic typepropertyName - the property nameaggregateFunction - the aggregate functionpublic E property(java.lang.String... propertyNames)
propertyNames - the property namespublic E property(java.util.Collection<java.lang.String> propertyNames)
propertyNames - the property namespublic <T,R> E property(cn.featherfly.common.lang.function.SerializableFunction<T,R>... propertyNames)
T - the generic typeR - the generic typepropertyNames - the property namespublic <T,R> E property(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic <T,R> E propertyAlias(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName, java.lang.String alias)
T - the generic typeR - the generic typepropertyName - the property namealias - the aliaspublic E propertyAlias(java.lang.String columnName, java.lang.String alias)
columnName - the column namealias - the aliaspublic E propertyAlias(java.util.Map<java.lang.String,java.lang.String> columnNameMap)
columnNameMap - the column name mappublic E id(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E id(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E count(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E count(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E sum(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E sum(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E max(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E max(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E min(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E min(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E avg(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E avg(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property namepublic E distinct(java.lang.String propertyName)
propertyName - the property namepublic <T,R> E distinct(cn.featherfly.common.lang.function.SerializableFunction<T,R> propertyName)
T - the generic typeR - the generic typepropertyName - the property nameprotected java.lang.String getIdName()