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

public Class Section

extends Object
Class Inheritance
Imports
java.sql.ResultSet

Field Summary

Modifier and TypeField and Description
private Agent
private transient String
private boolean
private String
private byte[]
private int
private int
private String
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv
Section(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability)

public
Section(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability, boolean isGenerated)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
free()

public String
public String
public String
public byte[]

Returns:

the package name and consistency token information
getPKGNAMCBytes
()

retrieve the package name and consistency token information

public Section
public int
public String
public String
public int
private void
init(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability, boolean isGenerated)

public boolean
public void
setClientCursorName(String clientCursorName)

public void
public void
setPKGNAMCBytes(byte[]
the Packagename and consistency token information to store; should never be null.
b
)

Store the Packagename and consistency token information for reuse.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

agent_back to summary
private Agent agent_
clientCursorName_back to summary
private transient String clientCursorName_
isGeneratedback to summary
private boolean isGenerated
packageNameback to summary
private String packageName
PKGNAMCBytesback to summary
private byte[] PKGNAMCBytes
resultSetHoldability_back to summary
private int resultSetHoldability_
sectionNumberback to summary
private int sectionNumber
serverCursorNameback to summary
private String serverCursorName
serverCursorNameForPositionedUpdate_back to summary
pack-priv String serverCursorNameForPositionedUpdate_

Constructor Detail

Sectionback to summary
pack-priv Section(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability)
Sectionback to summary
public Section(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability, boolean isGenerated)

Method Detail

freeback to summary
pack-priv void free()
getClientCursorNameback to summary
public String getClientCursorName()
getPackageback to summary
public String getPackage()
getPackageNameback to summary
public String getPackageName()
getPKGNAMCBytesback to summary
public byte[] getPKGNAMCBytes()

retrieve the package name and consistency token information

Returns:byte[]

the package name and consistency token information

getPositionedUpdateSectionback to summary
public Section getPositionedUpdateSection() throws SqlException
getSectionNumberback to summary
public int getSectionNumber()
getServerCursorNameback to summary
public String getServerCursorName()
getServerCursorNameForPositionedUpdateback to summary
public String getServerCursorNameForPositionedUpdate()
getStaticStatementTypeback to summary
public int getStaticStatementType()
initback to summary
private void init(Agent agent, String name, int sectionNumber, String cursorName, int resultSetHoldability, boolean isGenerated)
isReservedPositionedUpdateback to summary
public boolean isReservedPositionedUpdate()
setClientCursorNameback to summary
public void setClientCursorName(String clientCursorName)
setCursorNameback to summary
public void setCursorName(String name)
setPKGNAMCBytesback to summary
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:byte[]

the Packagename and consistency token information to store; should never be null.