You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Gerhard Grosse <ge...@lex-com.net> on 2003/12/09 15:57:32 UTC

JDK 1.4 dependency in SqlTypeHelper.java

Hi all,

I just checked out CVS Head and I'm getting compile errors in
org.apache.ojb.broker.util.SqlTypeHelper.java: The methods
CallableStatement.get<Type>(int) are present only since JDK 1.4.

I hope this does not mean that OJB is dropping JDK 1.3 support? Are
there plans/ideas to fix this?

Thanks!
Gerhard


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: JDK 1.4 dependency in SqlTypeHelper.java

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Gerhard,

thanks again!
Checked in your fixes.

regards,
Armin

Gerhard Grosse wrote:
> Hi Armin,
> 
> Thanks for the quick fix. 
> 
> I had to add one change in
> org.apache.ojb.broker.metadata.torque.TorqueFieldGenerator.java:
> 
> + import org.apache.ojb.broker.metadata.JdbcType; (line 58)
> - int jdbcType = descriptor.getColumnJdbcType(); (line 109)
> + int jdbcType = descriptor.getJdbcType().getType(); (line 109)
> 
> then everything in the  main source tree compiled perfectly.
> 
> There are still some 1.4 dependencies in the junit test source, for
> example:
> import java.util.logging.Level 
> in 
> org.apache.ojb.p6spy.CountLogger.java.
> 
> But I can do without the testcases at the moment, so I'm fine for now.
> 
> Thanks again,
> Gerhard
> 
> On Tue, 09 Dec 2003 20:24:41 +0100, Armin Waibel
> <ar...@code-au-lait.de> wrote:
> 
> 
>>Hi Gerhard,
>>
>>Gerhard Grosse wrote:
>>
>>
>>>Hi all,
>>>
>>>I just checked out CVS Head and I'm getting compile errors in
>>>org.apache.ojb.broker.util.SqlTypeHelper.java: The methods
>>>CallableStatement.get<Type>(int) are present only since JDK 1.4.
>>>
>>>I hope this does not mean that OJB is dropping JDK 1.3 support? Are
>>>there plans/ideas to fix this?
>>
>>doh! You are right I think CallableStatement methods were introduced to 
>>support stored procedures.
>>I checked in a fix to avoid this. Please get latest CVS version of OJB 
>>again.
>>Thanks for the hint!
>>
>>regards,
>>Armin
>>
>>
>>>Thanks!
>>>Gerhard
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>>
>>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: JDK 1.4 dependency in SqlTypeHelper.java

Posted by Gerhard Grosse <ge...@lex-com.net>.
Hi Armin,

Thanks for the quick fix. 

I had to add one change in
org.apache.ojb.broker.metadata.torque.TorqueFieldGenerator.java:

+ import org.apache.ojb.broker.metadata.JdbcType; (line 58)
- int jdbcType = descriptor.getColumnJdbcType(); (line 109)
+ int jdbcType = descriptor.getJdbcType().getType(); (line 109)

then everything in the  main source tree compiled perfectly.

There are still some 1.4 dependencies in the junit test source, for
example:
import java.util.logging.Level 
in 
org.apache.ojb.p6spy.CountLogger.java.

But I can do without the testcases at the moment, so I'm fine for now.

Thanks again,
Gerhard

On Tue, 09 Dec 2003 20:24:41 +0100, Armin Waibel
<ar...@code-au-lait.de> wrote:

>Hi Gerhard,
>
>Gerhard Grosse wrote:
>
>> Hi all,
>> 
>> I just checked out CVS Head and I'm getting compile errors in
>> org.apache.ojb.broker.util.SqlTypeHelper.java: The methods
>> CallableStatement.get<Type>(int) are present only since JDK 1.4.
>> 
>> I hope this does not mean that OJB is dropping JDK 1.3 support? Are
>> there plans/ideas to fix this?
>
>doh! You are right I think CallableStatement methods were introduced to 
>support stored procedures.
>I checked in a fix to avoid this. Please get latest CVS version of OJB 
>again.
>Thanks for the hint!
>
>regards,
>Armin
>
>> 
>> Thanks!
>> Gerhard
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>> 
>> 
>> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: JDK 1.4 dependency in SqlTypeHelper.java

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Gerhard,

Gerhard Grosse wrote:

> Hi all,
> 
> I just checked out CVS Head and I'm getting compile errors in
> org.apache.ojb.broker.util.SqlTypeHelper.java: The methods
> CallableStatement.get<Type>(int) are present only since JDK 1.4.
> 
> I hope this does not mean that OJB is dropping JDK 1.3 support? Are
> there plans/ideas to fix this?

doh! You are right I think CallableStatement methods were introduced to 
support stored procedures.
I checked in a fix to avoid this. Please get latest CVS version of OJB 
again.
Thanks for the hint!

regards,
Armin

> 
> Thanks!
> Gerhard
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org