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<Field<ENTITY>,String> |
getSqlColumnNamer()
Returns a Function that will map a Field to a column name.
|
Function<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<Field<ENTITY>,String> sqlColumnNamer,
Function<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<Field<ENTITY>,String> getSqlColumnNamer()
Function<Field<ENTITY>,Class<?>> getSqlDatabaseTypeFunction()
Copyright © 2018 Speedment, Inc.. All rights reserved.