Hey Lukas,

Is there any way to retrieve the column index of a certain field?  (And 
sorry if this is obvious but I looked over the JavaDoc multiple times and 
couldn't find it.)

Basically I have this scenario:

Tables A, B, C, D, E, F that share similar columns (same column name, type, 
and index)

I want to use this method I made:

- - - - -

  private Field<?> coelasce(int fieldIndex) {

    return DSL.coalesce(A.field(fieldIndex),

      /*          */B.field(fieldIndex),

      /*          */C.field(fieldIndex),

      /*          */D.field(fieldIndex),

      /*          */E.field(fieldIndex),

      /*          */F.field(fieldIndex);

  }

- - - - -

Is this possible?  I was/am hesitant to use field.getName() since I assume 
that would be fully qualified and thus specific to the table (e.g. "C.blah")

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to