Package org.apache.derby.client.am
Class Section
- java.lang.Object
-
- org.apache.derby.client.am.Section
-
public class Section extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Agent
agent_
private java.lang.String
clientCursorName_
private boolean
isGenerated
private java.lang.String
packageName
private byte[]
PKGNAMCBytes
private int
resultSetHoldability_
private int
sectionNumber
private java.lang.String
serverCursorName
(package private) java.lang.String
serverCursorNameForPositionedUpdate_
-
Constructor Summary
Constructors Constructor Description Section(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability)
Section(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability, boolean isGenerated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
free()
java.lang.String
getClientCursorName()
java.lang.String
getPackage()
java.lang.String
getPackageName()
byte[]
getPKGNAMCBytes()
retrieve the package name and consistency token informationSection
getPositionedUpdateSection()
int
getSectionNumber()
java.lang.String
getServerCursorName()
java.lang.String
getServerCursorNameForPositionedUpdate()
int
getStaticStatementType()
private void
init(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability, boolean isGenerated)
boolean
isReservedPositionedUpdate()
void
setClientCursorName(java.lang.String clientCursorName)
void
setCursorName(java.lang.String name)
void
setPKGNAMCBytes(byte[] b)
Store the Packagename and consistency token information for reuse.
-
-
-
Field Detail
-
sectionNumber
private int sectionNumber
-
packageName
private java.lang.String packageName
-
serverCursorName
private java.lang.String serverCursorName
-
resultSetHoldability_
private int resultSetHoldability_
-
PKGNAMCBytes
private byte[] PKGNAMCBytes
-
isGenerated
private boolean isGenerated
-
agent_
private Agent agent_
-
serverCursorNameForPositionedUpdate_
java.lang.String serverCursorNameForPositionedUpdate_
-
clientCursorName_
private transient java.lang.String clientCursorName_
-
-
Constructor Detail
-
Section
Section(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability)
-
Section
public Section(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability, boolean isGenerated)
-
-
Method Detail
-
init
private void init(Agent agent, java.lang.String name, int sectionNumber, java.lang.String cursorName, int resultSetHoldability, boolean isGenerated)
-
setPKGNAMCBytes
public void setPKGNAMCBytes(byte[] b)
Store the Packagename and consistency token information for reuse.- Case 1: if it is generated section, just store the byte array in PKGNAMCBytes.
- Case 2: for not a generated section, information is stored in the correct byte array depending on the holdability in SectionManager.
- Parameters:
b
- the Packagename and consistency token information to store; should never be null.
-
getPKGNAMCBytes
public byte[] getPKGNAMCBytes()
retrieve the package name and consistency token information
-
getPackageName
public java.lang.String getPackageName()
-
getSectionNumber
public int getSectionNumber()
-
getPackage
public java.lang.String getPackage()
-
getServerCursorName
public java.lang.String getServerCursorName()
-
getServerCursorNameForPositionedUpdate
public java.lang.String getServerCursorNameForPositionedUpdate()
-
getClientCursorName
public java.lang.String getClientCursorName()
-
setClientCursorName
public void setClientCursorName(java.lang.String clientCursorName)
-
free
void free()
-
isReservedPositionedUpdate
public boolean isReservedPositionedUpdate()
-
getStaticStatementType
public int getStaticStatementType()
-
getPositionedUpdateSection
public Section getPositionedUpdateSection() throws SqlException
- Throws:
SqlException
-
setCursorName
public void setCursorName(java.lang.String name)
-
-