Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CUBRIDMAN-183] Remove CUBRIDDriver.getDefaultConnection() (#423) #424

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
Loading