I don't quite understand.

Do you want to do something like this:

public String myFunction(Value value) {
     if (value.getTable.getName().equals("MyTable")) {
         return "AAA" + value.getText();
     } else {
         return "BBB" + value.getText();
     }
}

That is: Your function wants to know the name of the table associated with
the value passed to it?

If that *is* what you want, Why do you want it?

Cheers
Kerry


On Wed, Jul 14, 2010 at 9:57 PM, bocher <[email protected]> wrote:

> Hi,
>
> I'd like to obtain the referenced table in sql statement to perform a
> specific process with myFunction.
>
> Select myFunction(avalue) from mytable;
>
> In my java code I want to know if the column avalue is referenced to
> mytable
>
> The same thing if I write
>
>
> Select myFunction(a.avalue) from mytable a;
>
> or
>
> Select myFunction(a.avalue, b.avalue2) from mytable a, mytable2 b;
>
>
> Is there a simple way to do that or do I need to use the H2 expression
> parser ?
>
>
> Thanks a lot
>
> Erwan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<h2-database%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to