Package org.apache.derby.client.am
Class SectionManager
java.lang.Object
org.apache.derby.client.am.SectionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Agent
private static final String
private static final String
(package private) byte[]
private final int
private int
(package private) byte[]
private static final String
private static final String
private final Hashtable
<String, WeakReference<ClientResultSet>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
freeSection
(Section section, int resultSetHoldability) (package private) Section
getDynamicSection
(int resultSetHoldability) (package private) ClientResultSet
getPositionedUpdateResultSet
(String cursorName) (package private) Section
getPositionedUpdateSection
(String cursorName, boolean useExecuteImmediateSection) (package private) Section
getPositionedUpdateSection
(Section querySection) private Section
getSection
(Stack freeSections, String packageName, String cursorNamePrefix, int resultSetHoldability) (package private) void
mapCursorNameToQuerySection
(String cursorName, Section section) (package private) void
mapCursorNameToResultSet
(String cursorName, ClientResultSet resultSet) (package private) void
removeCursorNameToQuerySectionMapping
(String clientCursorName, String serverCursorName) (package private) void
removeCursorNameToResultSetMapping
(String clientCursorName, String serverCursorName) (package private) void
setPKGNAMCBytes
(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
-