java.lang.Object
io.ebeaninternal.server.rawsql.SpiRawSql.ColumnMapping
- All Implemented Interfaces:
Serializable
- Enclosing interface:
SpiRawSql
Defines the column mapping for raw sql DB columns to bean properties.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Column of the RawSql that is mapped to a bean property (or ignored). -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the property is mapped.booleanReturn an iterator of the Columns.intgetIndexPosition(String property) Return the index position by bean property name.Return the mapping by DB column.inthashCode()booleanisParsed()Returns true if the Columns where supplied by parsing the sql select clause.mapToColumn(String property) intsize()Return the number of columns in this column mapping.voidtableAliasMapping(String tableAlias, String path) Modify any column mappings with the given table alias to have the path prefix.
-
Method Details
-
equals
-
hashCode
public int hashCode() -
contains
Return true if the property is mapped. -
isParsed
public boolean isParsed()Returns true if the Columns where supplied by parsing the sql select clause.In the case where the columns where parsed then we can do extra checks on the column mapping such as, is the column a valid one in the sql and whether all the columns in the sql have been mapped.
-
size
public int size()Return the number of columns in this column mapping. -
getMapping
Return the mapping by DB column. -
getIndexPosition
Return the index position by bean property name. -
getColumns
Return an iterator of the Columns. -
tableAliasMapping
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.
-
mapToColumn
-