java.lang.Object
io.ebeaninternal.server.rawsql.SpiRawSql.ColumnMapping.Column
- All Implemented Interfaces:
Serializable
- Enclosing class:
SpiRawSql.ColumnMapping
A Column of the RawSql that is mapped to a bean property (or ignored).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringderivePropertyName(String dbAlias, String dbColumn) booleanReturn the DB column name including table alias (if it has one).Return the DB column alias if specified otherwise DB column.intReturn the index position of this column.Return the bean property this column is mapped to.inthashCode()voidtableAliasMapping(String path) Prepend the path to the property name.toString()
-
Constructor Details
-
Column
Construct a Column.
-
-
Method Details
-
derivePropertyName
-
equals
-
hashCode
public int hashCode() -
toString
-
getIndexPos
public int getIndexPos()Return the index position of this column. -
getDbColumnKey
Return the DB column alias if specified otherwise DB column. This is used as the key for mapping a column to a logical property. -
getDbColumn
Return the DB column name including table alias (if it has one). -
getPropertyName
Return the bean property this column is mapped to. -
tableAliasMapping
Prepend the path to the property name. For example if path is "customer" then "name" becomes "customer.name".
-