Frequently Asked Questions

How to connect to a database using LDBC?

Use the JDBC driver org.ldbc.jdbcDriver instead of the regular database driver, and the url jdbc:ldbc:<vendor-database-url> instead of jdbc:<vendor-database-url>.

It is not required to register the JDBC driver of the underlying driver as well; the LDBC driver will do that.

Example (connecting to a PointBase database using LDBC):

Connection conn=DriverManager.getConnection("jdbc:ldbc:pointbase:sample",user,password);

I can not compile LDBC

You may need to 'switch' the code to the JDK you use, or you may need to rename / delete the Oracle adapter. For details, see 'How to Build'.

Why do I have to use LDBC? Is LDBC not standard compliant?

LDBC is fully standard compliant. Unfortunately, all major database are not, that is why LDBC is required. The LDBC driver ensures that all JDBC methods behave the same for all (major) databases. LDBC does not define a new database API, but it documents and enforces the expected behaviour. LDBC fixes problems and incompatibilities of specific databases and JDBC drivers.

Will my application be a slower when using LDBC?

No. When using standard techniques like stored procedures, you application will not be measurably slower when using LDBC as compared to using the vendor JDBC driver directly. In certain situations your application may run faster when using LDBC, because of optimizations built into LDBC.