On Thursday, May 18, 2017 at 3:43:31 AM UTC-4, Lukas Eder wrote:
>
> Hi Kevin,
>
> Just to be sure, in your snippet, you didn't omit any "else" or "return" 
> or any other sort of statement that would break out of the method prior to 
> checking your instanceof AuditTable check?
>

No, there is nothing in between.
 

>
> Also, what's the complete code of your visit listener right now? When is 
> pushConditions() called?
>

First line of Overriding visitEnd
    @Override
    public void visitEnd(VisitContext context) {
        pushConditions(context);

 

>
> Lukas
>
> 2017-05-18 0:30 GMT+02:00 Kevin Embree <[email protected] <javascript:>>
> :
>
>> One step closer, yet no joy.
>> I customized the Generation Strategy and get a Table that implements a 
>> custom interface 'AuditedTable'
>> public class Junit extends TableImpl<JunitRecord> implements AuditedTable 
>> {
>>
>> But in the visitListener ...
>>     <E> void pushConditions(VisitContext context) {
>>         if (context.queryPart() instanceof Table){
>>             LOG.info("... Table " + context.queryPart().toString());
>>         // Check if we're visiting a special table
>>         if ((context.queryPart()) instanceof AuditedTable) {
>>                 LOG.info("... AuditedTable " + 
>> context.queryPart().toString());
>> 'instanceof Table' works as I expected.
>> But 'Instanceof AuditedTable' doesn't. I must be misunderstanding how the 
>> AST queryParts work.
>> Any nudge in the right direction would greatly appreciated.
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/d/optout.

Reply via email to