public class SectionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Agent |
agent_ |
(package private) java.lang.String |
collection_ |
(package private) static java.lang.String |
cursorNamePrefixWithHold__ |
(package private) static java.lang.String |
cursorNamePrefixWithNoHold__ |
(package private) java.lang.String |
databaseName |
private java.util.Stack<Section> |
freeSectionsHold_ |
private java.util.Stack<Section> |
freeSectionsNonHold_ |
(package private) static int |
HOLD |
byte[] |
holdPKGNAMCBytes |
(package private) int |
maxNumSections_ |
(package private) int |
nextAvailableSectionNumber_ |
(package private) static int |
NO_HOLD |
byte[] |
noHoldPKGNAMCBytes |
(package private) static java.lang.String |
packageNameWithHold__ |
(package 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<ResultSet>> |
positionedUpdateCursorNameToResultSet_ |
Constructor and Description |
---|
SectionManager(java.lang.String collection,
Agent agent,
java.lang.String databaseName) |
Modifier and Type | Method and Description |
---|---|
void |
freeSection(Section section,
int resultSetHoldability) |
Section |
getDynamicSection(int resultSetHoldability) |
(package private) ResultSet |
getPositionedUpdateResultSet(java.lang.String cursorName) |
(package private) Section |
getPositionedUpdateSection(Section querySection) |
(package private) Section |
getPositionedUpdateSection(java.lang.String cursorName,
boolean useExecuteImmediateSection) |
protected 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,
ResultSet 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) |
void |
setPKGNAMCBytes(byte[] b,
int resultSetHoldability)
Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes
|
java.lang.String collection_
Agent agent_
static final int HOLD
static final int NO_HOLD
private final java.util.Stack<Section> freeSectionsNonHold_
private final java.util.Stack<Section> freeSectionsHold_
int nextAvailableSectionNumber_
public byte[] holdPKGNAMCBytes
public byte[] noHoldPKGNAMCBytes
static final java.lang.String packageNameWithHold__
static final java.lang.String packageNameWithNoHold__
static final java.lang.String cursorNamePrefixWithHold__
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<ResultSet>> positionedUpdateCursorNameToResultSet_
java.lang.String databaseName
int maxNumSections_
public SectionManager(java.lang.String collection, Agent agent, java.lang.String databaseName)
public 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_COMMITpublic Section getDynamicSection(int resultSetHoldability) throws SqlException
SqlException
protected Section getSection(java.util.Stack freeSections, java.lang.String packageName, java.lang.String cursorNamePrefix, int resultSetHoldability) throws SqlException
SqlException
public 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, ResultSet resultSet)
ResultSet 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.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.