1 Jun 2010 16:14
Mapping an Array of String
Mr.Squirrel <francois.albert <at> univ-nantes.fr>
2010-06-01 14:14:38 GMT
2010-06-01 14:14:38 GMT
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;
}
(Continue reading)
RSS Feed