code: 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;
      }
docs: Builds the select query.
  
  @param descriptor
  the descriptor
  @return the string builder