Object fromColumn ( K id , com . netflix . astyanax . model . Column < ByteBuffer > c ) { try { // Allocate a new entity Object entity = clazz . newInstance ( ) ; idMapper . setValue ( entity , id ) ; setEntityFieldsFromColumnName ( entity , c . getRawName ( ) . duplicate ( ) ) ; valueMapper . setField ( entity , c . getByteBufferValue ( ) . duplicate ( ) ) ; return entity ; } catch ( Exception e ) { throw new PersistenceException ( "failed to construct entity" , e ) ; } }
Return an object from the column