/** * Return true if some external transaction service is controlling transactions. */ public boolean usesExternalTransactionController() { if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } return this.login.shouldUseExternalTransactionController(); }
/** * Return true if some external transaction service is controlling transactions. */ public boolean usesExternalTransactionController() { if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } return this.login.shouldUseExternalTransactionController(); }
/** * Return true if some external transaction service is controlling transactions. */ public boolean usesExternalTransactionController() { if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } return this.login.shouldUseExternalTransactionController(); }
/** * INTERNAL: * This method notifies the accessor that a particular sets of writes has * completed. This notification can be used for such thing as flushing the * batch mechanism */ public void writesCompleted() { for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.writesCompleted(); } }
/** * INTERNAL: * This method notifies the accessor that a particular sets of writes has * completed. This notification can be used for such thing as flushing the * batch mechanism */ public void writesCompleted() { for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.writesCompleted(); } }
/** * INTERNAL: * This method notifies the accessor that a particular sets of writes has * completed. This notification can be used for such thing as flushing the * batch mechanism */ public void writesCompleted() { for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.writesCompleted(); } }
/** * INTERNAL: * Commit the transaction on all child sessions. * This assumes that the commit of the transaction will not fail because all of the * modification has already taken place and no errors would have occurred. */ protected void basicCommitTransaction() throws DatabaseException { // Do one last check it make sure that all sessions are still connected. for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.commitTransaction(); } }
throw DatabaseException.databaseAccessorNotConnected(); if (shouldCheckConnection && !isConnected()) { if (this.isInTransaction) { throw DatabaseException.databaseAccessorNotConnected(); } else { reconnect(session); currentSession = session; } else { throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected(); if (shouldCheckConnection && !isConnected()) { if (this.isInTransaction) { throw DatabaseException.databaseAccessorNotConnected(); } else { reconnect(session); currentSession = session; } else { throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected(); if (shouldCheckConnection && !isConnected()) { if (this.isInTransaction) { throw DatabaseException.databaseAccessorNotConnected(); } else { reconnect(session); currentSession = session; } else { throw DatabaseException.databaseAccessorNotConnected();
/** * INTERNAL: * Commit the transaction on all child sessions. * This assumes that the commit of the transaction will not fail because all of the * modification has already taken place and no errors would have occurred. */ protected void basicCommitTransaction() throws DatabaseException { // Do one last check it make sure that all sessions are still connected. for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.commitTransaction(); } }
/** * INTERNAL: * Commit the transaction on all child sessions. * This assumes that the commit of the transaction will not fail because all of the * modification has already taken place and no errors would have occurred. */ protected void basicCommitTransaction() throws DatabaseException { // Do one last check it make sure that all sessions are still connected. for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); if (!session.isConnected()) { throw DatabaseException.databaseAccessorNotConnected(); } } for (Iterator sessionEnum = getSessionsByName().values().iterator(); sessionEnum.hasNext();) { AbstractSession session = (AbstractSession)sessionEnum.next(); session.commitTransaction(); } }
/** * Execute the call. * @return depending of the type either the row count, row or vector of rows. */ public Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException { // If the login is null, then this accessor has never been connected. if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } if (session.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// pre-check to improve performance session.log(SessionLog.FINE, SessionLog.SQL, call.getLogString(this), (Object[])null, this, false); } Object result = basicExecuteCall(call, translationRow, session); return result; }
/** * Execute the call. * @return depending of the type either the row count, row or vector of rows. */ public Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException { // If the login is null, then this accessor has never been connected. if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } if (session.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// pre-check to improve performance session.log(SessionLog.FINE, SessionLog.SQL, call.getLogString(this), (Object[])null, this, false); } Object result = basicExecuteCall(call, translationRow, session); return result; }
/** * Execute the call. * @return depending of the type either the row count, row or vector of rows. */ public Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException { // If the login is null, then this accessor has never been connected. if (this.login == null) { throw DatabaseException.databaseAccessorNotConnected(); } if (session.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// pre-check to improve performance session.log(SessionLog.FINE, SessionLog.SQL, call.getLogString(this), (Object[])null, this, false); } Object result = basicExecuteCall(call, translationRow, session); return result; }
throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected();
throw DatabaseException.databaseAccessorNotConnected();