public String objectToString ( T object ) { StringBuilder sb = new StringBuilder ( 64 ) ; sb . append ( object . getClass ( ) . getSimpleName ( ) ) ; for ( FieldType fieldType : fieldTypes ) { sb . append ( ' ' ) . append ( fieldType . getColumnName ( ) ) . append ( ' ' ) ; try { sb . append ( fieldType . extractJavaFieldValue ( object ) ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Could not generate toString of field " + fieldType , e ) ; } } return sb . toString ( ) ; }
Return a string representation of the object .