org.apache.derby.client.am
Class SectionManager
java.lang.Object
org.apache.derby.client.am.SectionManager
public class SectionManager
- extends java.lang.Object
Constructor Summary |
SectionManager(java.lang.String collection,
Agent agent,
java.lang.String databaseName)
|
Method Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
collection_
java.lang.String collection_
agent_
Agent agent_
HOLD
static final int HOLD
- See Also:
- Constant Field Values
NO_HOLD
static final int NO_HOLD
- See Also:
- Constant Field Values
freeSectionsNonHold_
java.util.Stack freeSectionsNonHold_
freeSectionsHold_
java.util.Stack freeSectionsHold_
nextAvailableSectionNumber_
int nextAvailableSectionNumber_
holdPKGNAMCBytes
public byte[] holdPKGNAMCBytes
noHoldPKGNAMCBytes
public byte[] noHoldPKGNAMCBytes
packageNameWithHold__
static final java.lang.String packageNameWithHold__
- See Also:
- Constant Field Values
packageNameWithNoHold__
static final java.lang.String packageNameWithNoHold__
- See Also:
- Constant Field Values
cursorNamePrefixWithHold__
static final java.lang.String cursorNamePrefixWithHold__
- See Also:
- Constant Field Values
cursorNamePrefixWithNoHold__
static final java.lang.String cursorNamePrefixWithNoHold__
- See Also:
- Constant Field Values
positionedUpdateCursorNameToQuerySection_
private java.util.Hashtable positionedUpdateCursorNameToQuerySection_
positionedUpdateCursorNameToResultSet_
private java.util.Hashtable positionedUpdateCursorNameToResultSet_
databaseName
java.lang.String databaseName
maxNumSections_
int maxNumSections_
SectionManager
public SectionManager(java.lang.String collection,
Agent agent,
java.lang.String databaseName)
setPKGNAMCBytes
public void setPKGNAMCBytes(byte[] b,
int resultSetHoldability)
- Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes
- Parameters:
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_COMMIT
getDynamicSection
public Section getDynamicSection(int resultSetHoldability)
throws SqlException
- Throws:
SqlException
getSection
protected Section getSection(java.util.Stack freeSections,
java.lang.String packageName,
java.lang.String cursorNamePrefix,
int resultSetHoldability)
throws SqlException
- Throws:
SqlException
freeSection
public void freeSection(Section section,
int resultSetHoldability)
getPositionedUpdateSection
Section getPositionedUpdateSection(Section querySection)
throws SqlException
- Throws:
SqlException
getPositionedUpdateSection
Section getPositionedUpdateSection(java.lang.String cursorName,
boolean useExecuteImmediateSection)
throws SqlException
- Throws:
SqlException
mapCursorNameToQuerySection
void mapCursorNameToQuerySection(java.lang.String cursorName,
Section section)
mapCursorNameToResultSet
void mapCursorNameToResultSet(java.lang.String cursorName,
ResultSet resultSet)
getPositionedUpdateResultSet
ResultSet getPositionedUpdateResultSet(java.lang.String cursorName)
throws SqlException
- Throws:
SqlException
removeCursorNameToResultSetMapping
void removeCursorNameToResultSetMapping(java.lang.String clientCursorName,
java.lang.String serverCursorName)
removeCursorNameToQuerySectionMapping
void removeCursorNameToQuerySectionMapping(java.lang.String clientCursorName,
java.lang.String serverCursorName)
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.