Programmatically add a statement

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

Programmatically add a statement

by Joseph Piron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!

AW: Programmatically add a statement

by Kambix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!

Re: Programmatically add a statement

by Joseph Piron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Kambiz,

thanks for your answer.
Unfortunately, I'm not able to go further.
Indeed, the CachingStatement has a constructor which gets a MappedStatement as argument and I don't find the BaseStatement in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any example for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@...>
Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!


Re: Programmatically add a statement

by yuridewit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am also interested in this. I would like to have a templatized CRUD sqlmap that can generate a final sqlmap for a specific POJO based on the POJO fields. Is creating statement dynamically something that can be done or has been done in the past?
thanks.

On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.piron@...> wrote:
Hello Kambiz,

thanks for your answer.
Unfortunately, I'm not able to go further.
Indeed, the CachingStatement has a constructor which gets a MappedStatement as argument and I don't find the BaseStatement in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any example for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@...>

Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!



Re: Programmatically add a statement

by Joseph Piron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No one knows how to do this ?
I really need help as I'm rather stuck here... :)

Br all,
Joseph PIRON.

2009/9/25 Yuri de Wit <ydewit@...>
I am also interested in this. I would like to have a templatized CRUD sqlmap that can generate a final sqlmap for a specific POJO based on the POJO fields. Is creating statement dynamically something that can be done or has been done in the past?
thanks.


On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.piron@...> wrote:
Hello Kambiz,

thanks for your answer.
Unfortunately, I'm not able to go further.
Indeed, the CachingStatement has a constructor which gets a MappedStatement as argument and I don't find the BaseStatement in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any example for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@...>

Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!




Re: Programmatically add a statement

by Clinton Begin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should probably post this to the user list, rather than the dev list.  There's more people on it, and it will also make it clear which version you're using. Scanning this thread I see references to both Java and .NET...

Clinton

On Mon, Sep 28, 2009 at 2:01 AM, Joseph Piron <joseph.piron@...> wrote:
No one knows how to do this ?
I really need help as I'm rather stuck here... :)

Br all,
Joseph PIRON.

2009/9/25 Yuri de Wit <ydewit@...>

I am also interested in this. I would like to have a templatized CRUD sqlmap that can generate a final sqlmap for a specific POJO based on the POJO fields. Is creating statement dynamically something that can be done or has been done in the past?
thanks.


On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.piron@...> wrote:
Hello Kambiz,

thanks for your answer.
Unfortunately, I'm not able to go further.
Indeed, the CachingStatement has a constructor which gets a MappedStatement as argument and I don't find the BaseStatement in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any example for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@...>

Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!





Re: Programmatically add a statement

by Joseph Piron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, I'll do this.

2009/9/28 Clinton Begin <clinton.begin@...>
You should probably post this to the user list, rather than the dev list.  There's more people on it, and it will also make it clear which version you're using. Scanning this thread I see references to both Java and .NET...

Clinton


On Mon, Sep 28, 2009 at 2:01 AM, Joseph Piron <joseph.piron@...> wrote:
No one knows how to do this ?
I really need help as I'm rather stuck here... :)

Br all,
Joseph PIRON.

2009/9/25 Yuri de Wit <ydewit@...>

I am also interested in this. I would like to have a templatized CRUD sqlmap that can generate a final sqlmap for a specific POJO based on the POJO fields. Is creating statement dynamically something that can be done or has been done in the past?
thanks.


On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.piron@...> wrote:
Hello Kambiz,

thanks for your answer.
Unfortunately, I'm not able to go further.
Indeed, the CachingStatement has a constructor which gets a MappedStatement as argument and I don't find the BaseStatement in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any example for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@...>

Hello Joseph,
 
MappedStatement is an interface.
You can also use your own Class implementing the MappedStatement interface.
 
kambiz


 

 


Von: Joseph Piron [mailto:joseph.piron@...]
Gesendet: Donnerstag, 24. September 2009 22:03
An: dev@...
Betreff: Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet api.
Indeed, I'm trying to add a statement in runtime and I haven't found enough information on how to do this... :)
I've tried the AddMappedStatement method, but the MappedStatement class doesn't seem to have a constructor..

Could someone help me ?

Thanks all!