Package org.apache.derby.impl.sql
Class CursorInfo
java.lang.Object
org.apache.derby.impl.sql.CursorInfo
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
A basic holder for information about cursors
for execution.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ExecCursorTableReference
This class implements Formatable.(package private) int
-
Constructor Summary
ConstructorsConstructorDescriptionNiladic constructor for FormatableCursorInfo
(int updateMode, ExecCursorTableReference targetTable, List<String> updateColumns) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the formatID which corresponds to this class.void
Read this object from a stream of stored objects.toString()
void
Write this object out
-
Field Details
-
targetTable
ExecCursorTableReference targetTableThis class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. -
updateColumns
-
updateMode
int updateMode
-
-
Constructor Details
-
CursorInfo
public CursorInfo()Niladic constructor for Formatable -
CursorInfo
-
-
Method Details
-
writeExternal
Write this object out- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
readExternal
Read this object from a stream of stored objects.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- the formatID of this class
-
toString
-