|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
change EPStatement expression at runtimeHi @all,
Is it possible to change the EPStatement expression at runtime? I didn't find any method like myEPStatement.setText( "new Expression String") Or should I delete the statement and create it new with the new expression? Thanks a lot Maik -- Maik Arnold - Werkstudent/ Factory Automation AMD Fab 36 LLC & Co. KG-Wilschdorfer Landstraße 101 01109 Dresden E-Mail: maik.arnold@... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: change EPStatement expression at runtimeStatements have a lifecycle and are not conceptually designed to be modified arbitrarily at runtime
You can indeed create new statements instead at runtime, and also use prepared statement if you use many variants of a similar common abstract statement. Alex On Mon, Jan 19, 2009 at 1:24 PM, Arnold, Maik <Maik.Arnold@...> wrote: Hi @all, |
|
|
Re: change EPStatement expression at runtimeHi all,
I am searching for a way to get (list) all the EPStatements. I see that there is a way to get the statement names (epService.getEPAdministrator().getStatementNames()), but I need to get the EPL statements (select ....). Do you how I can do this? Thank you, Laura
|
|
|
Re: change EPStatement expression at runtimeSomething like this maybe :
List<String> stmtNames = Arrays.asList(epService.getEPAdministrator().getStatementNames()); for (String name : stmtNames) { String stmt = epService.getEPAdministrator().getStatement(name).getText(); } Selon simol <clsimona@...>: > > Hi all, > > I am searching for a way to get (list) all the EPStatements. > I see that there is a way to get the statement names > (epService.getEPAdministrator().getStatementNames()), > but I need to get the EPL statements (select ....). > Do you how I can do this? > > Thank you, > Laura > > > Alexandre Vasseur wrote: > > > > Statements have a lifecycle and are not conceptually designed to be > > modified > > arbitrarily at runtime > > You can indeed create new statements instead at runtime, and also use > > prepared statement if you use many variants of a similar common abstract > > statement. > > Alex > > > > On Mon, Jan 19, 2009 at 1:24 PM, Arnold, Maik <Maik.Arnold@...> wrote: > > > >> Hi @all, > >> > >> Is it possible to change the EPStatement expression at runtime? > >> I didn't find any method like myEPStatement.setText( "new Expression > >> String") > >> > >> Or should I delete the statement and create it new with the new > >> expression? > >> > >> Thanks a lot > >> Maik > >> > >> -- > >> Maik Arnold - Werkstudent/ Factory Automation > >> AMD Fab 36 LLC & Co. KG-Wilschdorfer LandstraÃe 101 > >> 01109 Dresden > >> E-Mail: maik.arnold@... > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > >> > > > > > > -- > View this message in context: > > Sent from the Esper User list mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: change EPStatement expression at runtimeYes, it works.
Thank you, Laura
|
| Free embeddable forum powered by Nabble | Forum Help |