Package myhome.domain
Class MyDataSource
java.lang.Object
myhome.domain.MyDataSource
public class MyDataSource
extends java.lang.Object
- Author:
- miri DB와 연결을 위한 클래스
-
Field Summary
Fields Modifier and Type Field Description private static javax.sql.DataSourceds -
Constructor Summary
Constructors Modifier Constructor Description privateMyDataSource() -
Method Summary
Modifier and Type Method Description static java.sql.ConnectiongetConnection()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ds
private static javax.sql.DataSource ds
-
-
Constructor Details
-
MyDataSource
private MyDataSource()
-
-
Method Details
-
getConnection
public static java.sql.Connection getConnection() throws java.sql.SQLException- Throws:
java.sql.SQLException
-