Java Mailing List Archive

http://www.java2.5341.com/

Home » user-java.ibatis »

Mapping an Array of String

Mr.Squirrel

2010-06-01

Replies: Find Java Web Hosting

Author LoginPost Reply

hello,

i am calling an oracle stored procedure which return the type "TABLE OF
VARCHAR2" (as output parameter)
How can i map this type to the java type "String []" ?

SqlMap.xml :
<parameterMap id="calculDroits" class="CalculDroits">
   <parameter property="seqFormation" jdbcType="ARRAY"
javaType="java.lang.String[]" mode="OUT" />
</parameterMap>      

<procedure id="pCalculDroits" parameterMap="calculDroits">
    { call pbw_calculDroitsReins.Du(?) }
</procedure>


JavaBean CalculDroits.java :
public class CalculDroits implements Serializable{

 private static final long serialVersionUID = 9014779368033647012L;
 
 private String[] codesDroit;

 public String[] getCodesDroit() {
   return codesDroit;
 }
 public void setCodesDroit(String[] codesDroit) {
   this.codesDroit = codesDroit;
 }
}

Thank you
--
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@(protected)
For additional commands, e-mail: user-java-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.