org.apache.derby.client.am
Class SectionManager

java.lang.Object
  extended by org.apache.derby.client.am.SectionManager

public class SectionManager
extends java.lang.Object


Field Summary
(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
           
(package private)  java.util.Stack freeSectionsHold_
           
(package private)  java.util.Stack 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 positionedUpdateCursorNameToQuerySection_
           
private  java.util.Hashtable positionedUpdateCursorNameToResultSet_
           
 
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
 

Field Detail

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_
Constructor Detail

SectionManager

public SectionManager(java.lang.String collection,
                      Agent agent,
                      java.lang.String databaseName)
Method Detail

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 stored
resultSetHoldability - 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)

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.