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.DataSource ds  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private MyDataSource()  
  • Method Summary

    Modifier and Type Method Description
    static java.sql.Connection getConnection()  

    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