Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to call Oracle function which retrun Oracle record type?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tural Muradbeyli  
View profile  
 More options Sep 6 2012, 1:08 am
From: Tural Muradbeyli <tural.muradbe...@gmail.com>
Date: Wed, 5 Sep 2012 22:08:03 -0700 (PDT)
Local: Thurs, Sep 6 2012 1:08 am
Subject: How to call Oracle function which retrun Oracle record type?

I have record type in package specification:

 TYPE Payment_Capabilities IS RECORD(
    pp_partial_payment NUMBER(1) DEFAULT 0,
    co_advance_payment NUMBER(1) DEFAULT 0,
    dp_deposit_payment NUMBER(1) DEFAULT 0,
    dr_deposit_repay   NUMBER(1) DEFAULT 0,
    wp_wallet_payment  NUMBER(1) DEFAULT 0,
    wr_wallet_repay    NUMBER(1) DEFAULT 0,
    ss_prepaid_payment NUMBER(1) DEFAULT 0);

and function which returns this type. I use MyBatis integration with Spring. How to call (using MyBatis XML Mapper) this function and map result to POJO object?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guy Rouillier  
View profile  
 More options Sep 7 2012, 4:06 pm
From: Guy Rouillier <guy.rouill...@gmail.com>
Date: Fri, 07 Sep 2012 16:06:45 -0400
Local: Fri, Sep 7 2012 4:06 pm
Subject: Re: How to call Oracle function which retrun Oracle record type?
Can you show us an example of how you would do this with straight Java
and JDBC, without MyBatis?  I found the following article using Google:
http://betteratoracle.com/posts/31-passing-record-types-between-oracl....
  Based on the fact that you need to use Oracle-specific Java classes -
oracle.sql instead of java.sql - my guess would be that this cannot be
done with MyBatis.

On 9/6/2012 1:08 AM, Tural Muradbeyli wrote:

> I have record type in package specification:

> |  TYPEPayment_Capabilities  IS RECORD( pp_partial_payment NUMBER(1)
> DEFAULT0, co_advance_payment NUMBER(1)  DEFAULT0, dp_deposit_payment
> NUMBER(1)  DEFAULT0, dr_deposit_repay   NUMBER(1)  DEFAULT0,
> wp_wallet_payment  NUMBER(1)  DEFAULT0, wr_wallet_repay    NUMBER(1)
> DEFAULT0, ss_prepaid_payment NUMBER(1)  DEFAULT0);

> |and function which returns this type. I use MyBatis integration with
> Spring. How to call (using MyBatis XML Mapper) this function and map
> result to POJO object?

--
Guy Rouillier

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dridi Boukelmoune  
View profile  
 More options Sep 10 2012, 5:13 am
From: Dridi Boukelmoune <dridi.boukelmo...@zenika.com>
Date: Mon, 10 Sep 2012 11:13:35 +0200
Local: Mon, Sep 10 2012 5:13 am
Subject: Re: How to call Oracle function which retrun Oracle record type?
Hi,

Don't forget type handlers for specific API.
http://www.mybatis.org/core/configuration.html#typeHandlers

Dridi
http://www.zenika.com

--
Dridi Boukelmoune
Développeur/Formateur

GSM : +33 (0)6 17 91 14 23


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tural Muradbeyli  
View profile  
 More options Oct 16 2012, 3:31 pm
From: Tural Muradbeyli <tural.muradbe...@gmail.com>
Date: Tue, 16 Oct 2012 12:31:00 -0700 (PDT)
Subject: Re: How to call Oracle function which retrun Oracle record type?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntPort  
View profile  
 More options Oct 17 2012, 4:31 am
From: AntPort <antonioporto...@gmail.com>
Date: Wed, 17 Oct 2012 01:31:49 -0700 (PDT)
Local: Wed, Oct 17 2012 4:31 am
Subject: Re: How to call Oracle function which retrun Oracle record type?

Please check this thread
https://groups.google.com/forum/?fromgroups=#!topic/mybatis-user/ajPX...
.
You can combine solution from the thread with the article in Guy's post...

(Notice: passing STRUCT parameters to CallableStatement might not work with
ojdbc14 Oracle driver, use ojdbc6 instead...)

Dana četvrtak, 6. rujna 2012. 07:08:03 UTC+2, korisnik Tural Muradbeyli
napisao je:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »