Skip to content

Commit

Permalink
remove CUBRIDDriver.getDefaultConnection()
Browse files Browse the repository at this point in the history
  • Loading branch information
hgryoo committed Jul 20, 2023
1 parent cc410bf commit 22f8544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
8 changes: 1 addition & 7 deletions en/sql/jsp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,12 @@ Creating Connection
---------------------

To access the database from a Java stored function/procedure, you must use the server-side JDBC driver.
To acquire a connection to the database using the server-side JDBC driver, you can either use "**jdbc:default:connection:**" as the URL for JDBC connection, or call the **getDefaultConnection** () method of the **cubrid.jdbc.driver.CUBRIDDriver** class.
To acquire a connection to the database using the server-side JDBC driver, you can either use "**jdbc:default:connection:**" as the URL for JDBC connection.

.. code-block:: java
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
or

.. code-block:: java
Connection conn = cubrid.jdbc.driver.CUBRIDDriver.getDefaultConnection();
.. note::

The server-side JDBC is already registered, and you do not need to call "Class.forName("cubrid.jdbc.driver.CUBRIDDriver")"
Expand Down
11 changes: 2 additions & 9 deletions ko/sql/jsp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,20 +329,13 @@ Connection 생성
----------------

데이터베이스에 접근하기 위해서 서버 측 JDBC Connection을 생성해야한다.
서버 측 JDBC 드라이버로 해당 데이터베이스의 Connection을 얻는 방법은 아래와 같다.
첫 번째 방법은 JDBC 연결 URL로 "**jdbc:default:connection:**" 을 사용하는 것이고,
두 번째는 **cubrid.jdbc.driver.CUBRIDDriver** 클래스의 **getDefaultConnection** () 메서드를 호출하는 것이다.
서버 측 JDBC 드라이버로 해당 데이터베이스의 Connection을 얻는 방법은 아래와 같이
JDBC 연결 URL로 "**jdbc:default:connection:**" 을 사용한다.

.. code-block:: java
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
또는

.. code-block:: java
Connection conn = cubrid.jdbc.driver.CUBRIDDriver.getDefaultConnection();
.. note::

서버 측 JDBC 드라이버는 이미 등록되어 있기 때문에 Class.forName("cubrid.jdbc.driver.CUBRIDDriver")\를 호출하지 않아도 된다
Expand Down

0 comments on commit 22f8544

Please sign in to comment.