ENTITY - the entity typepublic interface SqlStreamOptimizerInfo<ENTITY>
| Modifier and Type | Method and Description |
|---|---|
ToLongBiFunction<String,List<Object>> |
getCounter()
Returns a BiFunction that will read in the count long value from the
database.
|
DbmsType |
getDbmsType()
Returns the DbmsType.
|
Function<com.speedment.runtime.field.Field<ENTITY>,String> |
getSqlColumnNamer()
Returns a Function that will map a Field to a column name.
|
Function<com.speedment.runtime.field.Field<ENTITY>,Class<?>> |
getSqlDatabaseTypeFunction()
Returns a Function that will map a Field to a column class type.
|
String |
getSqlSelect()
Returns the SQL select statement.
|
String |
getSqlSelectCount()
Returns the SQL select count statement.
|
static <ENTITY> SqlStreamOptimizerInfo<ENTITY> |
of(DbmsType dbmsType,
String sqlSelect,
String sqlSelectCount,
ToLongBiFunction<String,List<Object>> counter,
Function<com.speedment.runtime.field.Field<ENTITY>,String> sqlColumnNamer,
Function<com.speedment.runtime.field.Field<ENTITY>,Class<?>> sqlDatabaseTypeFunction) |
DbmsType getDbmsType()
String getSqlSelect()
The initial value is "SELECT " + sqlColumnList + " FROM " + sqlTableReference;
String getSqlSelectCount()
"SELECT COUNT(*) FROM " + sqlTableReference;
ToLongBiFunction<String,List<Object>> getCounter()
E.g. getCounter.apply("select count(*) from user", emptyList()))
Function<com.speedment.runtime.field.Field<ENTITY>,String> getSqlColumnNamer()
Function<com.speedment.runtime.field.Field<ENTITY>,Class<?>> getSqlDatabaseTypeFunction()
static <ENTITY> SqlStreamOptimizerInfo<ENTITY> of(DbmsType dbmsType, String sqlSelect, String sqlSelectCount, ToLongBiFunction<String,List<Object>> counter, Function<com.speedment.runtime.field.Field<ENTITY>,String> sqlColumnNamer, Function<com.speedment.runtime.field.Field<ENTITY>,Class<?>> sqlDatabaseTypeFunction)
Copyright © 2019 Speedment, Inc.. All rights reserved.