change EPStatement expression at runtime

View: New views
5 Messages — Rating Filter:   Alert me  

change EPStatement expression at runtime

by Arnold, Maik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: change EPStatement expression at runtime

by Alexandre Vasseur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




Re: change EPStatement expression at runtime

by simol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@amd.com> 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@amd.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Re: change EPStatement expression at runtime

by sonicfab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Something 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:
>
http://www.nabble.com/change-EPStatement-expression-at-runtime-tp21541994p24950087.html

> 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 runtime

by simol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, it works.

Thank you,
Laura

sonicfab wrote:
Something 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@yahoo.com>:

>
> 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@amd.com> 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@amd.com
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list, please visit:
> >>
> >>    http://xircles.codehaus.org/manage_email
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/change-EPStatement-expression-at-runtime-tp21541994p24950087.html
> 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