Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-26 Thread jishnu123
Dear Ingmar Lötzsch, Thank you very much.I have solved that problem.The problem was IntArrayTypeMapper bean problem.The exact code you have mention previous mailI had to change IntArrayTypeMapper through Collection instead of int[] keys = (int[]) parameter;..Then its working fine

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-26 Thread Ingmar Lötzsch
Sorry, I have maked a mistake: > Your version of IntArrayTypeMapper expects a Collection but > actual parameter is of type org.ada.kms.domain.IntArray because you let > iBATIS call getKmsgrpaccessiblegroup(): > > #kmsgrpaccessiblegroups,handler=KmsArrayTypeMapper# must be #kmsgrpaccessiblegroup

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-26 Thread Ingmar Lötzsch
arameter == null) >>>>>>>> { >>>>>>>> setter.setNull(Types.CHAR); >>>>>>>> } >>>>>>>> else >>>>>>>>

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-26 Thread jishnu123
t;>> { >>>>>>>> if (parameter == null) >>>>>>>> { >>>>>>>> setter.setNull(Types.CHAR); >>>>>>>> } >>>>>>>

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-26 Thread jishnu123
;> throw new IllegalArgumentException("Could >>>>>>> not >>>>>>> convert null to a String value. " + "Valid argument is an array of >>>>>>> type >>>>>>> I_U8 Only "); >&g

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-14 Thread Ingmar Lötzsch
for (int i = 0; i < length; i++) >>>>>> { >>>>>> >>>>>> if (ourData[i].getValue() == (byte) >>>>>> '\0') >>>>>> //\0 byte value >>>&g

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-13 Thread jishnu123
+ byteVector); >>>>> String finalHexString = new String(); >>>>> StringBuffer finalString = new StringBuffer(); >>>>> //String returnString = new String(); >>>>>

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-12 Thread Ingmar Lötzsch
>> >>>> if ( ourData[0].getValue() != (byte)45 ) >>>> //Not a Negative Sign >>>> { >>>> log_.debug(" NOT A NEGATIVE SIGN "); >>>>

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-12 Thread jishnu123
checkString; >>> >>> } >>> else >>> { >>> >>> return null; >>> } >>> //return null; >>> >>> } &g

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-12 Thread Ingmar Lötzsch
s += 4) >> { >> int this_char = 0; >> try >> { >> this_char = Integer.parseInt(hex.substring(pos, pos + 4), >> 16); >> } >>

RE: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-11 Thread jishnu123
= "00"; > short[] b = new short[vector.size()]; > > for (int j = 0; j < vector.size(); j++) > { > > b[j] = ((Short) vector.get(j)).shortValue(); > } > for

RE: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-08 Thread Rahul Saluja
return result.substring(0, result.length() - 2); } } -Original Message- From: jishnu123 [mailto:rjis...@gmail.com] Sent: Friday, October 09, 2009 10:49 AM To: user-java@ibatis.apache.org Subject: Re: IBatis Array feild insertion problem in postgres database()Please help me)

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-08 Thread jishnu123
Thank you for your reply...I have already implemented type handler and all classes as follows...But i got the the same error as followsPlease help me.I didn't try array feild selectionI have been trying to insertion of array feild... I have to mention again that error as follows

Re: IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-08 Thread Ingmar Lötzsch
You can use a type handler and implement java.sql.Array. Example: 1st: abstract superclass as adapter public abstract class SqlArrayAdapter implements Array { public Object getArray() throws SQLException { // Auto-generated method stub return null;

IBatis Array feild insertion problem in postgres database()Please help me)

2009-10-08 Thread jishnu123
Hai, I have to tried insertion of array feild in postgres database using spring mvc with iBatis.I got two lines error ...like Error as follows... [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - [org.springframework.jdbc.support.