public ENTITY mapFromRow ( Row row ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( format ( "Map row %s back to entity of type %s" , row , entityClass . getCanonicalName ( ) ) ) ; } validateNotNull ( row , "Row object should not be null" ) ; final String tableName = row . getColumnDefinitions ( ) . asList ( ) . get ( 0 ) . getTable ( ) ; final String entityTableName = meta_internal . getTableOrViewName ( ) ; validateTableTrue ( entityTableName . equals ( tableName ) , "CQL row is from table '%s', it cannot be mapped to entity '%s' associated to table '%s'" , tableName , entityClass . getCanonicalName ( ) , entityTableName ) ; return meta_internal . createEntityFrom ( row ) ; }
Map a given row back to an entity instance . This method provides a raw object mapping facility . Advanced features like interceptors are not available . User codecs are taken into account though .