Top Fields Constructors Methods
org.apache.derby.client.am

public Class SectionManager

extends Object
Class Inheritance
Imports
java.lang.ref.WeakReference, java.sql.ResultSet, java.util.Hashtable, .Stack, org.apache.derby.shared.common.reference.SQLState

Field Summary

Modifier and TypeField and Description
private Agent
private static final String
private static final String
private final Stack<Section>
private final Stack<Section>
pack-priv byte[]
private final int
private int
pack-priv byte[]
private static final String
private static final String
private final Hashtable<String, Section>
private final Hashtable<String, WeakReference<ClientResultSet>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
freeSection(Section section, int resultSetHoldability)

pack-priv Section
getDynamicSection(int resultSetHoldability)

pack-priv ClientResultSet
pack-priv Section
pack-priv Section
getPositionedUpdateSection(String cursorName, boolean useExecuteImmediateSection)

private Section
getSection(Stack<E> freeSections, String packageName, String cursorNamePrefix, int resultSetHoldability)

pack-priv void
pack-priv void
pack-priv void
removeCursorNameToQuerySectionMapping(String clientCursorName, String serverCursorName)

pack-priv void
removeCursorNameToResultSetMapping(String clientCursorName, String serverCursorName)

pack-priv void
setPKGNAMCBytes(byte[]
bytearray that has the PKGNAMC information to be stored
b
,
int
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
resultSetHoldability
)

Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

agent_back to summary
private Agent agent_
cursorNamePrefixWithHold__back to summary
private static final String cursorNamePrefixWithHold__
cursorNamePrefixWithNoHold__back to summary
private static final String cursorNamePrefixWithNoHold__
freeSectionsHold_back to summary
private final Stack<Section> freeSectionsHold_
freeSectionsNonHold_back to summary
private final Stack<Section> freeSectionsNonHold_
holdPKGNAMCBytesback to summary
pack-priv byte[] holdPKGNAMCBytes
maxNumSections_back to summary
private final int maxNumSections_
nextAvailableSectionNumber_back to summary
private int nextAvailableSectionNumber_
noHoldPKGNAMCBytesback to summary
pack-priv byte[] noHoldPKGNAMCBytes
packageNameWithHold__back to summary
private static final String packageNameWithHold__
packageNameWithNoHold__back to summary
private static final String packageNameWithNoHold__
positionedUpdateCursorNameToQuerySection_back to summary
private final Hashtable<String, Section> positionedUpdateCursorNameToQuerySection_
positionedUpdateCursorNameToResultSet_back to summary
private final Hashtable<String, WeakReference<ClientResultSet>> positionedUpdateCursorNameToResultSet_

Constructor Detail

SectionManagerback to summary
public SectionManager(Agent agent)

Method Detail

freeSectionback to summary
pack-priv void freeSection(Section section, int resultSetHoldability)
getDynamicSectionback to summary
pack-priv Section getDynamicSection(int resultSetHoldability) throws SqlException
getPositionedUpdateResultSetback to summary
pack-priv ClientResultSet getPositionedUpdateResultSet(String cursorName) throws SqlException
getPositionedUpdateSectionback to summary
pack-priv Section getPositionedUpdateSection(Section querySection) throws SqlException
getPositionedUpdateSectionback to summary
pack-priv Section getPositionedUpdateSection(String cursorName, boolean useExecuteImmediateSection) throws SqlException
getSectionback to summary
private Section getSection(Stack<E> freeSections, String packageName, String cursorNamePrefix, int resultSetHoldability) throws SqlException
mapCursorNameToQuerySectionback to summary
pack-priv void mapCursorNameToQuerySection(String cursorName, Section section)
mapCursorNameToResultSetback to summary
pack-priv void mapCursorNameToResultSet(String cursorName, ClientResultSet resultSet)
removeCursorNameToQuerySectionMappingback to summary
pack-priv void removeCursorNameToQuerySectionMapping(String clientCursorName, String serverCursorName)
removeCursorNameToResultSetMappingback to summary
pack-priv void removeCursorNameToResultSetMapping(String clientCursorName, String serverCursorName)
setPKGNAMCBytesback to summary
pack-priv void setPKGNAMCBytes(byte[] b, int resultSetHoldability)

Store the Packagename and consistency token information This is called from Section.setPKGNAMCBytes

Parameters
b:byte[]

bytearray that has the PKGNAMC information to be stored

resultSetHoldability:int

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