Package org.apache.derby.impl.sql
Class CursorTableReference
- java.lang.Object
-
- org.apache.derby.impl.sql.CursorTableReference
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Formatable,TypedFormat,ExecCursorTableReference
public class CursorTableReference extends java.lang.Object implements ExecCursorTableReference, Formatable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbaseNameprivate java.lang.StringexposedNameThis class implements Formatable.private java.lang.StringschemaName
-
Constructor Summary
Constructors Constructor Description CursorTableReference()Niladic constructor for FormatableCursorTableReference(java.lang.String exposedName, java.lang.String baseName, java.lang.String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseName()Return the base name of the tablejava.lang.StringgetExposedName()Return the exposed name of the table.java.lang.StringgetSchemaName()Return the schema for the table.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)Write this object out
-
-
-
Field Detail
-
exposedName
private java.lang.String exposedName
This 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.
-
baseName
private java.lang.String baseName
-
schemaName
private java.lang.String schemaName
-
-
Method Detail
-
getBaseName
public java.lang.String getBaseName()
Return the base name of the table- Specified by:
getBaseNamein interfaceExecCursorTableReference- Returns:
- the base name
-
getExposedName
public java.lang.String getExposedName()
Return the exposed name of the table. Exposed name is another term for correlation name. If there is no correlation, this will return the base name.- Specified by:
getExposedNamein interfaceExecCursorTableReference- Returns:
- the base name
-
getSchemaName
public java.lang.String getSchemaName()
Return the schema for the table.- Specified by:
getSchemaNamein interfaceExecCursorTableReference- Returns:
- the schema name
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object out- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here- Throws:
java.io.IOException- thrown on error
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-