com.shift.framework.rdbc
Class GauceDataSource

java.lang.Object
  extended by com.shift.framework.rdbc.GauceDataSource
All Implemented Interfaces:
java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource

public class GauceDataSource
extends java.lang.Object
implements javax.sql.DataSource

Database¿¡ ConnectionÀ» À§ÇÑ ¹°¸®ÀûÀÎ data source·ÎÀÇ ¿¬°áÀ» À§ÇÑ ÆÑÅ丮ÀÎ DataSource¸¦ ±¸ÇöÇÑ GauceDataSource´Â ConnectionÀ» »ý¼ºÇÏ¿© ¹ÝȯÇÏ´Â ¿ªÇÒÀ» ÇÑ´Ù.

Version:
1.0
Author:
Shift Information & Communication

Constructor Summary
GauceDataSource(org.w3c.dom.Node node)
          »ý¼ºÀÚ, data sourceÀÇ ¼³Á¤³»¿ëÀ» °¡Áø DocumentÀÇ °¢ ³ëµå¹× ¾îÆ®¸®ºäÆ®¸¦ °¡Áø NamedNodeMapÀ» °¡Áø´Ù.
 
Method Summary
 java.sql.Connection getConnection()
          Connecion¸¦ ¹ÝȯÇÑ´Ù.
 java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
          Connecion¸¦ ¹ÝȯÇÑ´Ù.
 int getLoginTimeout()
          ±¸ÇöµÇÁö ¾ÊÀ½.
 java.io.PrintWriter getLogWriter()
          ±¸ÇöµÇÁö ¾ÊÀ½.
 void setLoginTimeout(int seconds)
          ±¸ÇöµÇÁö ¾ÊÀ½.
 void setLogWriter(java.io.PrintWriter out)
          ±¸ÇöµÇÁö ¾ÊÀ½.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

GauceDataSource

public GauceDataSource(org.w3c.dom.Node node)
»ý¼ºÀÚ, data sourceÀÇ ¼³Á¤³»¿ëÀ» °¡Áø DocumentÀÇ °¢ ³ëµå¹× ¾îÆ®¸®ºäÆ®¸¦ °¡Áø NamedNodeMapÀ» °¡Áø´Ù.

Parameters:
node - attrs - DocumentÀÇ °¢ ³ëµå¹× ¾îÆ®¸®ºäÆ®¸¦ °¡Áø NamedNodeMap
Since:
1.0
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Connecion¸¦ ¹ÝȯÇÑ´Ù.

Specified by:
getConnection in interface javax.sql.DataSource
Returns:
Connecion
Throws:
java.sql.SQLException
Since:
1.0

getConnection

public java.sql.Connection getConnection(java.lang.String username,
                                         java.lang.String password)
                                  throws java.sql.SQLException
Connecion¸¦ ¹ÝȯÇÑ´Ù.

Specified by:
getConnection in interface javax.sql.DataSource
Parameters:
username - - data source¿¡ ¼³Á¤µÈ »ç¿ëÀÚ À̸§
password - - data source¿¡ ¼³Á¤µÈ »ç¿ëÀÚ ÆÐ½º¿öµå
Returns:
Connecion
Throws:
java.sql.SQLException
Since:
1.0

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws java.sql.SQLException
±¸ÇöµÇÁö ¾ÊÀ½. ÀÚ¼¼ÇÑ °ÍÀº JAVA API¸¦ ÂüÁ¶ÇÑ´Ù.

Specified by:
getLogWriter in interface javax.sql.CommonDataSource
Returns:
java.io.PrintWriter
Throws:
java.sql.SQLException
Since:
1.0

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
                  throws java.sql.SQLException
±¸ÇöµÇÁö ¾ÊÀ½. ÀÚ¼¼ÇÑ °ÍÀº JAVA API¸¦ ÂüÁ¶ÇÑ´Ù.

Specified by:
setLogWriter in interface javax.sql.CommonDataSource
Parameters:
out -
Throws:
java.sql.SQLException
Since:
1.0

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws java.sql.SQLException
±¸ÇöµÇÁö ¾ÊÀ½. ÀÚ¼¼ÇÑ °ÍÀº JAVA API¸¦ ÂüÁ¶ÇÑ´Ù.

Specified by:
setLoginTimeout in interface javax.sql.CommonDataSource
Parameters:
seconds -
Throws:
java.sql.SQLException
Since:
1.0

getLoginTimeout

public int getLoginTimeout()
                    throws java.sql.SQLException
±¸ÇöµÇÁö ¾ÊÀ½. ÀÚ¼¼ÇÑ °ÍÀº JAVA API¸¦ ÂüÁ¶ÇÑ´Ù.

Specified by:
getLoginTimeout in interface javax.sql.CommonDataSource
Returns:
int
Throws:
java.sql.SQLException
Since:
1.0