public class SectionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Agent |
agent_ |
private static java.lang.String |
cursorNamePrefixWithHold__ |
private static java.lang.String |
cursorNamePrefixWithNoHold__ |
private java.util.Stack<Section> |
freeSectionsHold_ |
private java.util.Stack<Section> |
freeSectionsNonHold_ |
(package private) byte[] |
holdPKGNAMCBytes |
private int |
maxNumSections_ |
private int |
nextAvailableSectionNumber_ |
(package private) byte[] |
noHoldPKGNAMCBytes |
private static java.lang.String |
packageNameWithHold__ |
private static java.lang.String |
packageNameWithNoHold__ |
private java.util.Hashtable<java.lang.String,Section> |
positionedUpdateCursorNameToQuerySection_ |
private java.util.Hashtable<java.lang.String,java.lang.ref.WeakReference<ClientResultSet>> |
positionedUpdateCursorNameToResultSet_ |
Constructor and Description |
---|
SectionManager(Agent agent) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
freeSection(Section section,
int resultSetHoldability) |
(package private) Section |
getDynamicSection(int resultSetHoldability) |
(package private) ClientResultSet |
getPositionedUpdateResultSet(java.lang.String cursorName) |
(package private) Section |
getPositionedUpdateSection(Section querySection) |
(package private) Section |
getPositionedUpdateSection(java.lang.String cursorName,
boolean useExecuteImmediateSection) |
private Section |
getSection(java.util.Stack freeSections,
java.lang.String packageName,
java.lang.String cursorNamePrefix,
int resultSetHoldability) |
(package private) void |
mapCursorNameToQuerySection(java.lang.String cursorName,
Section section) |
(package private) void |
mapCursorNameToResultSet(java.lang.String cursorName,
ClientResultSet resultSet) |
(package private) void |
removeCursorNameToQuerySectionMapping(java.lang.String clientCursorName,
java.lang.String serverCursorName) |
(package private) void |
removeCursorNameToResultSetMapping(java.lang.String clientCursorName,
java.lang.String serverCursorName) |
(package private) void |
setPKGNAMCBytes(byte[] b,
int resultSetHoldability)
Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes
|
private Agent agent_
private final java.util.Stack<Section> freeSectionsNonHold_
private final java.util.Stack<Section> freeSectionsHold_
private int nextAvailableSectionNumber_
byte[] holdPKGNAMCBytes
byte[] noHoldPKGNAMCBytes
private static final java.lang.String packageNameWithHold__
private static final java.lang.String packageNameWithNoHold__
private static final java.lang.String cursorNamePrefixWithHold__
private static final java.lang.String cursorNamePrefixWithNoHold__
private final java.util.Hashtable<java.lang.String,Section> positionedUpdateCursorNameToQuerySection_
private final java.util.Hashtable<java.lang.String,java.lang.ref.WeakReference<ClientResultSet>> positionedUpdateCursorNameToResultSet_
private final int maxNumSections_
public SectionManager(Agent agent)
void setPKGNAMCBytes(byte[] b, int resultSetHoldability)
b
- bytearray that has the PKGNAMC information to be storedresultSetHoldability
- depending on the holdability store it in the correct byte array packagename and
consistency token information for when holdability is set to HOLD_CURSORS_OVER_COMMIT
is stored in holdPKGNAMCBytes and in noHoldPKGNAMCBytes when holdability is set to
CLOSE_CURSORS_AT_COMMITSection getDynamicSection(int resultSetHoldability) throws SqlException
SqlException
private Section getSection(java.util.Stack freeSections, java.lang.String packageName, java.lang.String cursorNamePrefix, int resultSetHoldability) throws SqlException
SqlException
void freeSection(Section section, int resultSetHoldability)
Section getPositionedUpdateSection(Section querySection) throws SqlException
SqlException
Section getPositionedUpdateSection(java.lang.String cursorName, boolean useExecuteImmediateSection) throws SqlException
SqlException
void mapCursorNameToQuerySection(java.lang.String cursorName, Section section)
void mapCursorNameToResultSet(java.lang.String cursorName, ClientResultSet resultSet)
ClientResultSet getPositionedUpdateResultSet(java.lang.String cursorName) throws SqlException
SqlException
void removeCursorNameToResultSetMapping(java.lang.String clientCursorName, java.lang.String serverCursorName)
void removeCursorNameToQuerySectionMapping(java.lang.String clientCursorName, java.lang.String serverCursorName)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.