com.infoteria.asteria.connection
Class AbstractConnection

java.lang.Object
  |
  +--com.infoteria.asteria.connection.AbstractConnection
All Implemented Interfaces:
Connection
Direct Known Subclasses:
CommonConnection, NullConnection, RDBConnection

public abstract class AbstractConnection
extends Object
implements Connection

コネクション実装の基底クラスです。


Method Summary
 boolean canUse(User user)
           
 ConnectionEntry getEntry()
           
 int getUseCount()
          コネクション使用回数を取得します。
 int incUseCount()
          コネクション使用回数をインクリメントします。
 void release()
           
 TestResult test(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.infoteria.asteria.connection.Connection
close, commit, init, isAlive, open, reset, rollback, term, test
 

Method Detail

getEntry

public ConnectionEntry getEntry()
Description copied from interface: Connection
ConnectionEntryを取得します。
Specified by:
getEntry in interface Connection

release

public void release()
Description copied from interface: Connection
コネクションを解放します。
Specified by:
release in interface Connection

canUse

public boolean canUse(User user)
Description copied from interface: Connection
コネクションが引数のuserに使用可能かどうかを返します。
Specified by:
canUse in interface Connection

incUseCount

public int incUseCount()
コネクション使用回数をインクリメントします。
Specified by:
incUseCount in interface Connection

getUseCount

public int getUseCount()
コネクション使用回数を取得します。
Specified by:
getUseCount in interface Connection

test

public TestResult test(Object obj)
Specified by:
test in interface Connection