Class SectionManager
java.lang.Object
org.apache.derby.client.am.SectionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Agentprivate static final Stringprivate static final String(package private) byte[]private final intprivate int(package private) byte[]private static final Stringprivate static final Stringprivate final Hashtable<String, WeakReference<ClientResultSet>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidfreeSection(Section section, int resultSetHoldability) (package private) SectiongetDynamicSection(int resultSetHoldability) (package private) ClientResultSetgetPositionedUpdateResultSet(String cursorName) (package private) SectiongetPositionedUpdateSection(String cursorName, boolean useExecuteImmediateSection) (package private) SectiongetPositionedUpdateSection(Section querySection) private SectiongetSection(Stack freeSections, String packageName, String cursorNamePrefix, int resultSetHoldability) (package private) voidmapCursorNameToQuerySection(String cursorName, Section section) (package private) voidmapCursorNameToResultSet(String cursorName, ClientResultSet resultSet) (package private) voidremoveCursorNameToQuerySectionMapping(String clientCursorName, String serverCursorName) (package private) voidremoveCursorNameToResultSetMapping(String clientCursorName, String serverCursorName) (package private) voidsetPKGNAMCBytes(byte[] b, int resultSetHoldability) Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes
-
Field Details
-
agent_
-
freeSectionsNonHold_
-
freeSectionsHold_
-
nextAvailableSectionNumber_
private int nextAvailableSectionNumber_ -
holdPKGNAMCBytes
byte[] holdPKGNAMCBytes -
noHoldPKGNAMCBytes
byte[] noHoldPKGNAMCBytes -
packageNameWithHold__
- See Also:
-
packageNameWithNoHold__
- See Also:
-
cursorNamePrefixWithHold__
- See Also:
-
cursorNamePrefixWithNoHold__
- See Also:
-
positionedUpdateCursorNameToQuerySection_
-
positionedUpdateCursorNameToResultSet_
private final Hashtable<String, WeakReference<ClientResultSet>> positionedUpdateCursorNameToResultSet_ -
maxNumSections_
private final int maxNumSections_- See Also:
-
-
Constructor Details
-
SectionManager
-
-
Method Details
-
setPKGNAMCBytes
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
- Throws:
SqlException
-
getSection
private Section getSection(Stack freeSections, String packageName, String cursorNamePrefix, int resultSetHoldability) throws SqlException - Throws:
SqlException
-
freeSection
-
getPositionedUpdateSection
- Throws:
SqlException
-
getPositionedUpdateSection
Section getPositionedUpdateSection(String cursorName, boolean useExecuteImmediateSection) throws SqlException - Throws:
SqlException
-
mapCursorNameToQuerySection
-
mapCursorNameToResultSet
-
getPositionedUpdateResultSet
- Throws:
SqlException
-
removeCursorNameToResultSetMapping
-
removeCursorNameToQuerySectionMapping
-