|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jdbaccess.session.DBSessionImpl
public class DBSessionImpl
stateful session bean because of appId, which has to be set by client (server data access have to use the appId of the client) Synchronized: If an application server is used synchronized keyword has to be removed on all methods. Then the methods of class statement and subclasses have to get the synchronized keyword
| Field Summary | |
|---|---|
protected static int |
RECONNECT_TIME
|
| Constructor Summary | |
|---|---|
DBSessionImpl()
|
|
| Method Summary | |
|---|---|
void |
commit(com.jdbaccess.daimpl.TransactionImpl t)
|
DBSession |
create()
|
void |
deleteStmtsAndConnectionsFromPools(com.jdbaccess.daimpl.TransactionImpl transaction)
|
DBSession |
ejbCreate()
|
void |
end(com.jdbaccess.daimpl.DataAccessImpl da)
|
void |
end(com.jdbaccess.daimpl.QueryTransactionImpl t)
queries use the same connection more than once in a transaction |
void |
end(com.jdbaccess.daimpl.TransactionImpl t)
This method is called only by transactions (not by query transactions) |
java.lang.Object |
execute(com.jdbaccess.daimpl.DataAccessImpl da)
|
java.util.ArrayList |
getAllElements(com.jdbaccess.daimpl.ResultImpl result)
|
TransferObject |
getElement(com.jdbaccess.daimpl.ResultImpl result)
|
int |
getNewConnectionId()
|
int |
getNewQueryConnectionId()
queries use the same connection more than once in a transaction |
int |
getNewStatementId(com.jdbaccess.daimpl.DataAccessImpl da)
|
java.util.ArrayList |
getNextElements(com.jdbaccess.daimpl.ResultImpl result,
long count)
|
java.util.ArrayList |
getOutputParams(com.jdbaccess.daimpl.CallImpl call)
|
CallResult |
getResult(com.jdbaccess.daimpl.ProcedureImpl p,
int resultPosition)
|
java.lang.Long |
getSize(com.jdbaccess.daimpl.DataAccessImpl da)
for queries: return size of result for insert, update, delete, function, procedure: return count of inserts, updates or deletes |
boolean |
hasNetworkProblems(com.jdbaccess.daimpl.TransactionImpl transaction)
|
boolean |
newConnectionIsPossible()
|
void |
ping(long appId)
|
void |
rollback(com.jdbaccess.daimpl.TransactionImpl t)
|
void |
setAppId(long appId)
|
long |
setPosition(com.jdbaccess.daimpl.SelectImpl q,
long pos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int RECONNECT_TIME
| Constructor Detail |
|---|
public DBSessionImpl()
| Method Detail |
|---|
public void setAppId(long appId)
setAppId in interface DBSession
public DBSession create()
throws ApplicationException
create in interface DBSessionHomeApplicationException
public DBSession ejbCreate()
throws ApplicationException
ApplicationException
public int getNewConnectionId()
throws ApplicationException
getNewConnectionId in interface DBSessionApplicationException
public void end(com.jdbaccess.daimpl.TransactionImpl t)
throws ApplicationException
end in interface DBSessionApplicationException
public int getNewQueryConnectionId()
throws ApplicationException
getNewQueryConnectionId in interface DBSessionApplicationException
public void end(com.jdbaccess.daimpl.QueryTransactionImpl t)
throws ApplicationException
end in interface DBSessionApplicationException
public void commit(com.jdbaccess.daimpl.TransactionImpl t)
throws ApplicationException
commit in interface DBSessionApplicationException
public void rollback(com.jdbaccess.daimpl.TransactionImpl t)
throws ApplicationException
rollback in interface DBSessionApplicationException
public int getNewStatementId(com.jdbaccess.daimpl.DataAccessImpl da)
throws ApplicationException
getNewStatementId in interface DBSessionApplicationException
public void end(com.jdbaccess.daimpl.DataAccessImpl da)
throws ApplicationException
end in interface DBSessionApplicationException
public java.lang.Object execute(com.jdbaccess.daimpl.DataAccessImpl da)
throws ApplicationException
execute in interface DBSessionApplicationException
public java.util.ArrayList getAllElements(com.jdbaccess.daimpl.ResultImpl result)
throws ApplicationException
getAllElements in interface DBSessionApplicationException
public java.util.ArrayList getNextElements(com.jdbaccess.daimpl.ResultImpl result,
long count)
throws ApplicationException
getNextElements in interface DBSessionApplicationException
public TransferObject getElement(com.jdbaccess.daimpl.ResultImpl result)
throws ApplicationException
getElement in interface DBSessionApplicationException
public long setPosition(com.jdbaccess.daimpl.SelectImpl q,
long pos)
throws ApplicationException
setPosition in interface DBSessionApplicationException
public CallResult getResult(com.jdbaccess.daimpl.ProcedureImpl p,
int resultPosition)
throws ApplicationException
getResult in interface DBSessionApplicationException
public java.util.ArrayList getOutputParams(com.jdbaccess.daimpl.CallImpl call)
throws ApplicationException
getOutputParams in interface DBSessionApplicationException
public java.lang.Long getSize(com.jdbaccess.daimpl.DataAccessImpl da)
throws ApplicationException
getSize in interface DBSessionApplicationException
public void ping(long appId)
throws ApplicationException
ping in interface DBSessionApplicationExceptionpublic boolean newConnectionIsPossible()
newConnectionIsPossible in interface DBSessionpublic boolean hasNetworkProblems(com.jdbaccess.daimpl.TransactionImpl transaction)
hasNetworkProblems in interface DBSession
public void deleteStmtsAndConnectionsFromPools(com.jdbaccess.daimpl.TransactionImpl transaction)
throws ApplicationException
deleteStmtsAndConnectionsFromPools in interface DBSessionApplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||