Class Agent
java.lang.Object
org.apache.derby.client.am.Agent
- Direct Known Subclasses:
NetAgent
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) SqlExceptionprivate boolean[]private int(package private) ClientConnection(package private) final CrossConvertersprivate SqlExceptionprivate boolean(package private) SectionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void(package private) voidprivate voidfinal voidprivate voidbeginBatchedReadChain(ClientStatement statement, int batchSize) (package private) final voidbeginBatchedWriteChain(ClientStatement statement) protected voidbeginReadChain(ClientStatement statement) protected voidvoidbeginWriteChain(ClientStatement statement) abstract voidabstract void(package private) voidprotected final void(package private) voidcheckForSupportedDataType(int dataType) Checks whether a data type is supported forsetObject(int, Object, int)andsetObject(int, Object, int, int).voidclose()abstract voidclose_()(package private) final void(package private) final voidprivate final voidenableBatchedExceptionTracking(int batchSize) (package private) final voidendBatchedReadChain(long[] updateCounts, SqlException accumulatedExceptions) private final voidvoidprotected abstract voidfinal voidflow(ClientStatement statement) (package private) final voidflowBatch(ClientStatement statement, int batchSize) final voidabstract voidflush_()final PrintWriterprivate final SqlExceptionlabelAsBatchedException(SqlException e, int index) final booleanprotected abstract void(package private) voidresetAgent(ClientConnection connection, LogWriter logWriter, int loginTimeout, String server, int port) private voidresetAgent(LogWriter logWriter) protected abstract voidresetAgent_(LogWriter logWriter, int loginTimeout, String server, int port) final voidsetBatchedExceptionLabelIndex(int index) final voidsetLogWriter(LogWriter logWriter)
-
Field Details
-
accumulatedReadExceptions_
SqlException accumulatedReadExceptions_ -
enableBatchedExceptionTracking_
private boolean enableBatchedExceptionTracking_ -
batchedExceptionLabelIndex_
private int batchedExceptionLabelIndex_ -
batchedExceptionGenerated_
private boolean[] batchedExceptionGenerated_ -
connection_
ClientConnection connection_ -
sectionManager_
SectionManager sectionManager_ -
logWriter_
-
crossConverters_
-
deferredException_
-
-
Constructor Details
-
Agent
-
-
Method Details
-
checkForDeferredExceptions
- Throws:
SqlException
-
checkForSupportedDataType
Checks whether a data type is supported forsetObject(int, Object, int)andsetObject(int, Object, int, int).- Parameters:
dataType- the data type to check- Throws:
SqlException- if the type is not supported
-
accumulateDeferredException
-
resetAgent
-
resetAgent
void resetAgent(ClientConnection connection, LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException - Throws:
SqlException
-
resetAgent_
protected abstract void resetAgent_(LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException - Throws:
SqlException
-
loggingEnabled
public final boolean loggingEnabled() -
setLogWriter
-
getLogWriter
-
accumulateReadException
-
accumulateDisconnectException
-
accumulateChainBreakingReadExceptionAndThrow
public final void accumulateChainBreakingReadExceptionAndThrow(DisconnectException e) throws DisconnectException - Throws:
DisconnectException
-
markChainBreakingException_
protected abstract void markChainBreakingException_() -
checkForChainBreakingException_
- Throws:
SqlException
-
enableBatchedExceptionTracking
private final void enableBatchedExceptionTracking(int batchSize) -
disableBatchedExceptionTracking
final void disableBatchedExceptionTracking() -
setBatchedExceptionLabelIndex
public final void setBatchedExceptionLabelIndex(int index) -
labelAsBatchedException
-
checkForExceptions
- Throws:
SqlException
-
flow
- Throws:
SqlException
-
flowBatch
- Throws:
SqlException
-
flowOutsideUOW
- Throws:
SqlException
-
flush_
- Throws:
DisconnectException
-
close_
- Throws:
SqlException
-
close
- Throws:
SqlException
-
disconnectEvent
final void disconnectEvent() -
beginWriteChainOutsideUOW
- Throws:
SqlException
-
beginWriteChain
- Throws:
SqlException
-
beginBatchedWriteChain
- Throws:
SqlException
-
endWriteChain
protected abstract void endWriteChain() -
endBatchedWriteChain
private final void endBatchedWriteChain() -
beginReadChain
- Throws:
SqlException
-
beginBatchedReadChain
- Throws:
SqlException
-
beginReadChainOutsideUOW
- Throws:
SqlException
-
endReadChain
- Throws:
SqlException
-
endBatchedReadChain
final void endBatchedReadChain(long[] updateCounts, SqlException accumulatedExceptions) throws BatchUpdateException - Throws:
BatchUpdateException
-