public StringBuilder buildSelectQuery ( TableGeneratorDiscriptor descriptor ) { StringBuilder builder = new StringBuilder ( "Select " ) ; ensureCase ( builder , descriptor . getValueColumnName ( ) , false ) . append ( " from " ) ; ensureCase ( builder , descriptor . getTable ( ) , false ) . append ( " where " ) ; ensureCase ( builder , descriptor . getPkColumnName ( ) , false ) . append ( " = '" ) . append ( descriptor . getPkColumnValue ( ) + "'" ) ; return builder ; }
Builds the select query .