|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.RawSql.ColumnMapping
public static final class RawSql.ColumnMapping
Defines the column mapping for raw sql DB columns to bean properties.
Nested Class Summary | |
---|---|
static class |
RawSql.ColumnMapping.Column
A Column of the RawSql that is mapped to a bean property (or ignored). |
Method Summary | |
---|---|
Iterator<RawSql.ColumnMapping.Column> |
getColumns()
Return an iterator of the Columns. |
int |
getIndexPosition(String property)
Return the index position by bean property name. |
Map<String,String> |
getMapping()
Return the mapping by DB column. |
boolean |
isParsed()
Returns true if the Columns where supplied by parsing the sql select clause. |
int |
queryHash()
Return the query hash for this column mapping. |
int |
size()
Return the number of columns in this column mapping. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int queryHash()
public boolean isParsed()
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.
public int size()
public Map<String,String> getMapping()
public int getIndexPosition(String property)
public Iterator<RawSql.ColumnMapping.Column> getColumns()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |