first steps

View: New views
4 Messages — Rating Filter:   Alert me  

first steps

by steven.marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

Two things I stumbled upon building jdbi-2.1.0 and trunk:

1) You need to add lib/build/antlr*.jar to your classpath before invoking ant compile to make the antlr ant task available
2) OraclePreparedStatement.java doesn't build on JDK6


jDBI looks to hit a sweet spot and am prototyping with it. Thanks for making it available!

Steven Marcus

Re: first steps

by brianm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jan 20, 2008, at 4:14 PM, Steven Marcus wrote:

> Hello!
>
> Two things I stumbled upon building jdbi-2.1.0 and trunk:
>
> 1) You need to add lib/build/antlr*.jar to your classpath before  
> invoking ant compile to make the antlr ant task available

Ah, crap, ant classpath stuff kills me every time, thanks!

>
> 2) OraclePreparedStatement.java doesn't build on JDK6

Ouch! What is the error?

> jDBI looks to hit a sweet spot and am prototyping with it. Thanks  
> for making it available!

You're welcome!

-Brian

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: first steps

by steven.marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry... should have included this with the report:

compile-stubs:
    [mkdir] Created dir: /home/srnm/projects-libs/jdbi-trunk/build/stub-classes
    [javac] Compiling 1 source file to /home/srnm/projects-libs/jdbi-trunk/build/stub-classes
    [javac] /home/srnm/projects-libs/jdbi-trunk/src/stubs/oracle/jdbc/driver/OraclePreparedStatement.java:42: oracle.jdbc.driver.OraclePreparedStatement is not abstract and does not override abstract method setNClob(int, java.io.Reader) in java.sql.PreparedStatement
    [javac] public class OraclePreparedStatement implements PreparedStatement
    [javac]        ^
    [javac] 1 error


btw: The fact that the ResultSetMapper is pluggable is great! I prefer immutable objects where possible so I can use a mapper that creates via new Obj(arg1,arg2), or even Obj.create(arg1, arg2), with the bonus that object creation should be more efficient than via reflection.

thanks again!
Steven Marcus

Re: first steps

by steven.marcus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been working with the api a little and have come across two things:

1) binding doesn't appear to work in the following case

CREATE TABLE :tableName ( ... );

I had assumed that binding was a general substitution for named variables but mysql-j is always reporting an error. When I use String.format to substitute the table name there are no problems.

2) Also, it would be great if there were a way to get at the sql text post-binding for debug purposes.

thanks again!
Steven Marcus