Package io.ebeaninternal.server.rawsql
Class DRawSqlBuilder
- java.lang.Object
-
- io.ebeaninternal.server.rawsql.DRawSqlBuilder
-
- All Implemented Interfaces:
RawSqlBuilder
public class DRawSqlBuilder extends Object implements RawSqlBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawSqlBuilder
columnMapping(String dbColumn, String propertyName)
Set the mapping of a DB Column to a bean property.RawSqlBuilder
columnMappingIgnore(String dbColumn)
Ignore this DB column.RawSql
create()
Create the immutable RawSql object.RawSqlBuilder
tableAliasMapping(String tableAlias, String path)
Modify any column mappings with the given table alias to have the path prefix.
-
-
-
Method Detail
-
columnMapping
public RawSqlBuilder columnMapping(String dbColumn, String propertyName)
Description copied from interface:RawSqlBuilder
Set the mapping of a DB Column to a bean property.For Unparsed SQL the columnMapping MUST be defined in the same order that the columns appear in the SQL statement.
- Specified by:
columnMapping
in interfaceRawSqlBuilder
- Parameters:
dbColumn
- the DB column that we are mapping to a bean propertypropertyName
- the bean property that we are mapping the DB column to.
-
columnMappingIgnore
public RawSqlBuilder columnMappingIgnore(String dbColumn)
Description copied from interface:RawSqlBuilder
Ignore this DB column. It is not mapped to any bean property.- Specified by:
columnMappingIgnore
in interfaceRawSqlBuilder
-
tableAliasMapping
public RawSqlBuilder tableAliasMapping(String tableAlias, String path)
Description copied from interface:RawSqlBuilder
Modify any column mappings with the given table alias to have the path prefix.For example modify all mappings with table alias "c" to have the path prefix "customer".
For the "Root type" you don't need to specify a tableAliasMapping.
- Specified by:
tableAliasMapping
in interfaceRawSqlBuilder
-
create
public RawSql create()
Description copied from interface:RawSqlBuilder
Create the immutable RawSql object. Do this after all the column mapping has been defined.- Specified by:
create
in interfaceRawSqlBuilder
-
-