Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 | 

Connection Configuration

The DriverManager is a basic service for JDBC driver management and performs functions such as selecting a database driver and creating a new database connection. If the CUBRID JDBC driver is registered, database connection is made by calling the DriverManager.getConnection (db-url, user-id, password) method. The getConnection method returns the Connection object, which is used for query and command executions and transaction commit or rollback. The URL is composed as follows:


String url = "jdbc:cubrid:";
String userid = "";
String password = "";
try {
   Connection conn =
   // Do something with the Connection


   } catch (SQLException e) {
       System.out.println("SQLException:" + e.getMessage());
       System.out.println("SQLState: " + e.getSQLState());

Note The rollback method, which requests the transaction rollback, exits when the server completes the work.