Serialized Form
-
Package org.apache.derby.agg
-
Package org.apache.derby.authentication
-
Class org.apache.derby.authentication.SystemPrincipal
class SystemPrincipal extends Object implements Serializable- serialVersionUID:
- 925380094921530190L
-
Serialization Methods
-
readObject
Called upon deserialization for restoring the state of this SystemPrincipal from a stream.- Throws:
IOException
ClassNotFoundException
-
-
Serialized Fields
-
name
String name
The name of the principal.Note that the name is not a "normalized" Authorization Identifier. This is due to peculiarities of the Java Security Runtime, which compares a
javax.security.auth.Subject
's Principals against the literal Principal name as declared in the policy files, and not against the return value of methodgetName()
. So, a normalization of names within SystemPrincipal doesn't affect permission checking by the SecurityManager.In order for a
javax.security.auth.Subject
to be granted permissions on the basis Authorization Identifier rules, e.g., for a Subject authenticated as edWard to fall under a policy clause declared for EDWARD, the Subject has to be constructed (or augmented) with both the literal name and the normalized Authorization Identifier.As an alternative approach, class
SystemPrincipal
could implement the non-standard interfacecom.sun.security.auth.PrincipalComparator
, which declares a methodimplies(Subject)
that would allow for Principals to match Subjects on the basis of normalized Authorization Identifiers. But then we'd be relying upon non-standard Security Runtime behaviour.
- See Also:
-
-
-
Package org.apache.derby.catalog
-
Package org.apache.derby.catalog.types
-
Class org.apache.derby.catalog.types.AggregateAliasInfo
class AggregateAliasInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.BaseTypeIdImpl
class BaseTypeIdImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.DecimalTypeIdImpl
class DecimalTypeIdImpl extends BaseTypeIdImpl implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.DefaultInfoImpl
class DefaultInfoImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.IndexDescriptorImpl
class IndexDescriptorImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on read errorClassNotFoundException
- See Also:
-
writeExternal
- Throws:
IOException
- Thrown on write error- See Also:
-
-
-
Class org.apache.derby.catalog.types.MethodAliasInfo
class MethodAliasInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.ReferencedColumnsDescriptorImpl
class ReferencedColumnsDescriptorImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
For triggers, 3 possible scenarios 1)referencedColumns is not null but referencedColumnsInTriggerAction is null - then following will get read referencedColumns.length individual elements from referencedColumns arrary eg create trigger tr1 after update of c1 on t1 for each row values(1); 2)referencedColumns is null but referencedColumnsInTriggerAction is not null - then following will get read -1 -1 referencedColumnsInTriggerAction.length individual elements from referencedColumnsInTriggerAction arrary eg create trigger tr1 after update on t1 referencing old as oldt for each row values(oldt.id); 3)referencedColumns and referencedColumnsInTriggerAction are not null - then following will get read -1 referencedColumns.length individual elements from referencedColumns arrary referencedColumnsInTriggerAction.length individual elements from referencedColumnsInTriggerAction arrary eg create trigger tr1 after update of c1 on t1 referencing old as oldt for each row values(oldt.id); Scenario 1 for triggers is possible for all different releases of dbs ie both pre-10.7 and 10.7(and higher). But scenarios 2 and 3 are only possible with database at 10.7 or higher releases. Prior to 10.7, we did not collect any trigger action column info and hence referencedColumnsInTriggerAction will always be null for triggers created prior to 10.7 release.- Throws:
IOException
- Thrown on read error- See Also:
-
writeExternal
For triggers, 3 possible scenarios 1)referencedColumns is not null but referencedColumnsInTriggerAction is null - then following gets written referencedColumns.length individual elements from referencedColumns arrary eg create trigger tr1 after update of c1 on t1 for each row values(1); This can also happen for a trigger like following if the database is at pre-10.7 level. This is for backward compatibility reasons because pre-10.7 releases do not collect/work with trigger action column info in system table. That functionality has been added starting 10.7 release eg create trigger tr1 after update on t1 referencing old as oldt for each row values(oldt.id); 2)referencedColumns is null but referencedColumnsInTriggerAction is not null - then following gets written -1 -1 referencedColumnsInTriggerAction.length individual elements from referencedColumnsInTriggerAction arrary eg create trigger tr1 after update on t1 referencing old as oldt for each row values(oldt.id); 3)referencedColumns and referencedColumnsInTriggerAction are not null - then following gets written -1 referencedColumns.length individual elements from referencedColumns arrary referencedColumnsInTriggerAction.length individual elements from referencedColumnsInTriggerAction arrary eg create trigger tr1 after update of c1 on t1 referencing old as oldt for each row values(oldt.id);- Throws:
IOException
- Thrown on write error- See Also:
-
-
-
Class org.apache.derby.catalog.types.RoutineAliasInfo
class RoutineAliasInfo extends MethodAliasInfo implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.RowMultiSetImpl
class RowMultiSetImpl extends BaseTypeIdImpl implements Externalizable-
Serialization Methods
-
readExternal
Read ourself from a formatable stream.
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write ourself to a formatable stream.
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.StatisticsImpl
class StatisticsImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
- See Also:
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.SynonymAliasInfo
class SynonymAliasInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.TypeDescriptorImpl
class TypeDescriptorImpl extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.UDTAliasInfo
class UDTAliasInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.catalog.types.UserDefinedTypeIdImpl
class UserDefinedTypeIdImpl extends BaseTypeIdImpl implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
-
Package org.apache.derby.client.am
-
Exception Class org.apache.derby.client.am.DisconnectException
class DisconnectException extends SqlException implements Serializable -
Exception Class org.apache.derby.client.am.SqlException
class SqlException extends Exception implements Serializable-
Serialized Fields
-
batchPositionLabel_
String batchPositionLabel_
-
cachedMessage_
String cachedMessage_
-
causeString_
String causeString_
-
errorcode_
int errorcode_
-
message_
String message_
-
nextException_
SqlException nextException_
-
sqlstate_
String sqlstate_
-
wrappedException_
SQLException wrappedException_
The wrapped SQLException, if one exists
-
-
-
Exception Class org.apache.derby.client.am.SqlWarning
class SqlWarning extends SqlException implements Serializable-
Serialized Fields
-
nextWarning_
SqlWarning nextWarning_
-
-
-
Exception Class org.apache.derby.client.am.XaException
class XaException extends XAException implements Serializable
-
-
Package org.apache.derby.drda
-
Class org.apache.derby.drda.NetServlet
class NetServlet extends javax.servlet.http.HttpServlet implements Serializable-
Serialized Fields
-
host
String host
-
logStatus
boolean logStatus
-
portNumber
int portNumber
-
server
NetworkServerControl server
-
traceStatus
boolean traceStatus
-
tracingDirectory
String tracingDirectory
-
-
-
-
Package org.apache.derby.iapi.error
-
Exception Class org.apache.derby.iapi.error.PassThroughException
class PassThroughException extends RuntimeException implements Serializable -
Exception Class org.apache.derby.iapi.error.StandardException
class StandardException extends Exception implements Serializable -
Exception Class org.apache.derby.iapi.error.StandardException.BadMessageArgumentException
class BadMessageArgumentException extends Throwable implements Serializable
-
-
Package org.apache.derby.iapi.services.io
-
Exception Class org.apache.derby.iapi.services.io.DerbyIOException
class DerbyIOException extends IOException implements Serializable-
Serialized Fields
-
sqlState
String sqlState
A Derby SQLState.
-
-
-
Class org.apache.derby.iapi.services.io.FormatableArrayHolder
class FormatableArrayHolder extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this array from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this array out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.services.io.FormatableBitSet
class FormatableBitSet extends Object implements Externalizable-
Serialization Methods
-
readExternal
Note: gracefully handles zero length bits -- will create a zero length array with no bits being used. Fortunately in.read() is ok with a zero length array so no special code.WARNING: this method cannot be changed w/o changing SQLBit because SQLBit calls this directly w/o calling read/writeObject(), so the format id is not stored in that case.
- Throws:
IOException
- See Also:
-
writeExternal
Format:- int length in bits
- byte[]
- Throws:
IOException
- See Also:
-
-
-
Class org.apache.derby.iapi.services.io.FormatableHashtable
-
Serialization Methods
-
readExternal
Read the hash table from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write the hash table out. Step through the enumeration and write the strings out in UTF.- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.services.io.FormatableIntHolder
class FormatableIntHolder extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this formatable from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on error
-
writeExternal
Write this formatable out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.services.io.FormatableLongHolder
class FormatableLongHolder extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this formatable from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on error
-
writeExternal
Write this formatable out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.services.io.FormatableProperties
class FormatableProperties extends Properties implements Externalizable-
Serialization Methods
-
readExternal
Read the properties from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on error
-
writeExternal
Write the properties out. Step through the enumeration and write the strings out in UTF.- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
-
Package org.apache.derby.iapi.sql.depend
-
Package org.apache.derby.iapi.sql.dictionary
-
Class org.apache.derby.iapi.sql.dictionary.ColumnDescriptorList
-
Class org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptorList
-
Class org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList
-
Serialized Fields
-
scanned
boolean scanned
-
-
-
Class org.apache.derby.iapi.sql.dictionary.GenericDescriptorList
class GenericDescriptorList extends ArrayList<E extends UniqueTupleDescriptor> implements Serializable-
Serialized Fields
-
scanned
boolean scanned
-
-
-
Class org.apache.derby.iapi.sql.dictionary.IndexRowGenerator
class IndexRowGenerator extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on read errorClassNotFoundException
- Thrown on read error- See Also:
-
writeExternal
- Throws:
IOException
- Thrown on write error
-
-
-
Class org.apache.derby.iapi.sql.dictionary.TriggerDescriptor
class TriggerDescriptor extends UniqueSQLObjectDescriptor implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.sql.dictionary.TriggerDescriptorList
class TriggerDescriptorList extends GenericDescriptorList<TriggerDescriptor> implements Serializable
-
-
Package org.apache.derby.iapi.sql.execute
-
Class org.apache.derby.iapi.sql.execute.ExecRowBuilder
class ExecRowBuilder extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
-
Package org.apache.derby.iapi.store.access
-
Package org.apache.derby.iapi.store.access.conglomerate
-
Package org.apache.derby.iapi.store.raw
-
Package org.apache.derby.iapi.store.raw.log
-
Package org.apache.derby.iapi.store.raw.xact
-
Package org.apache.derby.iapi.types
-
Class org.apache.derby.iapi.types.DataType
class DataType extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.DataTypeDescriptor
class DataTypeDescriptor extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.types.HarmonySerialBlob
class HarmonySerialBlob extends Object implements Serializable- serialVersionUID:
- -8144641928112860441L
-
Serialized Fields
-
blob
Blob blob
-
buf
byte[] buf
-
len
long len
-
origLen
long origLen
-
-
Class org.apache.derby.iapi.types.HarmonySerialClob
class HarmonySerialClob extends Object implements Serializable- serialVersionUID:
- -1662519690087375313L
-
Serialized Fields
-
buf
char[] buf
-
clob
Clob clob
-
len
long len
-
origLen
long origLen
-
-
Class org.apache.derby.iapi.types.JSQLType
class JSQLType extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error- See Also:
-
writeExternal
- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.iapi.types.NumberDataType
class NumberDataType extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLBit
class SQLBit extends SQLBinary implements Externalizable-
Serialization Methods
-
readExternal
delegated to bit- Throws:
IOException
- io exceptionClassNotFoundException
- class not found
-
writeExternal
Write the value out from the byte array (not called if null) using the 8.1 encoding.- Throws:
IOException
- io exception
-
-
-
Class org.apache.derby.iapi.types.SQLBlob
class SQLBlob extends SQLBinary implements Externalizable-
Serialization Methods
-
readExternal
delegated to bit- Throws:
IOException
- io exceptionClassNotFoundException
- class not found
-
writeExternal
Write the value out from the byte array (not called if null) using the 8.1 encoding.- Throws:
IOException
- io exception
-
-
-
Class org.apache.derby.iapi.types.SQLBoolean
class SQLBoolean extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLChar
class SQLChar extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
-
writeExternal
Writes a non-Clob data value to the modified UTF-8 format used by Derby. The maximum stored size is based upon the UTF format used to stored the String. The format consists of a two byte length field and a maximum number of three bytes for each character.
This puts an upper limit on the length of a stored String. The maximum stored length is 65535, these leads to the worse case of a maximum string length of 21844 ((65535 - 2) / 3).
Strings with stored length longer than 64K is handled with the following format: (1) 2 byte length: will be assigned 0. (2) UTF formated string data. (3) terminate the string with the following 3 bytes: first byte is: +---+---+---+---+---+---+---+---+ | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ second byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ third byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ The UTF format: Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.First, two bytes are written to the output stream as if by the
writeShort
method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character.- Throws:
IOException
- if an I/O error occurs.- Since:
- JDK1.0
- See Also:
-
-
-
Class org.apache.derby.iapi.types.SQLClob
class SQLClob extends SQLVarchar implements Externalizable-
Serialization Methods
-
readExternal
Reads and materializes the CLOB value from the stream.- Parameters:
in
- source stream- Throws:
UTFDataFormatException
- if an encoding error is detectedIOException
- if reading from the stream fails, or the content of the stream header is invalid
-
writeExternal
Writes the CLOB data value to the given destination stream using the modified UTF-8 format.- Parameters:
out
- destination stream- Throws:
IOException
- if writing to the destination stream fails- See Also:
-
-
-
Class org.apache.derby.iapi.types.SQLDate
class SQLDate extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the object- See Also:
-
writeExternal
- Throws:
IOException
- error writing data
-
-
-
Class org.apache.derby.iapi.types.SQLDecimal
class SQLDecimal extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
Note the use of rawData: we reuse the array if the incoming array is the same length or smaller than the array length.- Throws:
IOException
- See Also:
-
writeExternal
Distill the BigDecimal to a byte array and write out:- scale (zero or positive) as a byte
- length of byte array as a byte
- the byte array
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLDouble
class SQLDouble extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLInteger
class SQLInteger extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLLongint
class SQLLongint extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLLongVarbit
class SQLLongVarbit extends SQLVarbit implements Externalizable-
Serialization Methods
-
readExternal
delegated to bit- Throws:
IOException
- io exceptionClassNotFoundException
- class not found
-
writeExternal
Write the value out from the byte array (not called if null) using the 8.1 encoding.- Throws:
IOException
- io exception
-
-
-
Class org.apache.derby.iapi.types.SQLLongvarchar
class SQLLongvarchar extends SQLVarchar implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
-
writeExternal
Writes a non-Clob data value to the modified UTF-8 format used by Derby. The maximum stored size is based upon the UTF format used to stored the String. The format consists of a two byte length field and a maximum number of three bytes for each character.
This puts an upper limit on the length of a stored String. The maximum stored length is 65535, these leads to the worse case of a maximum string length of 21844 ((65535 - 2) / 3).
Strings with stored length longer than 64K is handled with the following format: (1) 2 byte length: will be assigned 0. (2) UTF formated string data. (3) terminate the string with the following 3 bytes: first byte is: +---+---+---+---+---+---+---+---+ | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ second byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ third byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ The UTF format: Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.First, two bytes are written to the output stream as if by the
writeShort
method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character.- Throws:
IOException
- if an I/O error occurs.- Since:
- JDK1.0
- See Also:
-
-
-
Class org.apache.derby.iapi.types.SQLReal
class SQLReal extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLRef
class SQLRef extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the objectClassNotFoundException
- Thrown if the class of the object read from the stream can't be found (not likely, since it's supposed to be SQLRef).- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLSmallint
class SQLSmallint extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLTime
class SQLTime extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the object- See Also:
-
writeExternal
- Throws:
IOException
- error writing data
-
-
-
Class org.apache.derby.iapi.types.SQLTimestamp
class SQLTimestamp extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the object- See Also:
-
writeExternal
- Throws:
IOException
- error writing data
-
-
-
Class org.apache.derby.iapi.types.SQLTinyint
class SQLTinyint extends NumberDataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.iapi.types.SQLVarbit
class SQLVarbit extends SQLBit implements Externalizable-
Serialization Methods
-
readExternal
delegated to bit- Throws:
IOException
- io exceptionClassNotFoundException
- class not found
-
writeExternal
Write the value out from the byte array (not called if null) using the 8.1 encoding.- Throws:
IOException
- io exception
-
-
-
Class org.apache.derby.iapi.types.SQLVarchar
class SQLVarchar extends SQLChar implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
-
writeExternal
Writes a non-Clob data value to the modified UTF-8 format used by Derby. The maximum stored size is based upon the UTF format used to stored the String. The format consists of a two byte length field and a maximum number of three bytes for each character.
This puts an upper limit on the length of a stored String. The maximum stored length is 65535, these leads to the worse case of a maximum string length of 21844 ((65535 - 2) / 3).
Strings with stored length longer than 64K is handled with the following format: (1) 2 byte length: will be assigned 0. (2) UTF formated string data. (3) terminate the string with the following 3 bytes: first byte is: +---+---+---+---+---+---+---+---+ | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ second byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ third byte is: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+---+---+ The UTF format: Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.First, two bytes are written to the output stream as if by the
writeShort
method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character.- Throws:
IOException
- if an I/O error occurs.- Since:
- JDK1.0
- See Also:
-
-
-
Class org.apache.derby.iapi.types.UserType
class UserType extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the objectClassNotFoundException
- Thrown if the class of the object is not found- See Also:
-
writeExternal
- Throws:
IOException
- error writing data
-
-
-
Class org.apache.derby.iapi.types.XML
class XML extends DataType implements Externalizable-
Serialization Methods
-
readExternal
Read an XML value from an input stream.- Parameters:
in
- The stream from which we're reading.- Throws:
IOException
-
writeExternal
Write an XML value.- Parameters:
out
- The stream to which we're writing.- Throws:
IOException
-
-
-
-
Package org.apache.derby.iapi.util
-
Class org.apache.derby.iapi.util.DoubleProperties
class DoubleProperties extends Properties implements Serializable-
Serialized Fields
-
read
Properties read
-
write
Properties write
-
-
-
Exception Class org.apache.derby.iapi.util.InterruptDetectedException
class InterruptDetectedException extends StandardException implements Serializable
-
-
Package org.apache.derby.impl.services.monitor
-
Class org.apache.derby.impl.services.monitor.UpdateServiceProperties
class UpdateServiceProperties extends Properties implements Serializable-
Serialized Fields
-
serviceBooted
boolean serviceBooted
-
serviceName
String serviceName
-
serviceType
PersistentService serviceType
-
storageFactory
WritableStorageFactory storageFactory
-
-
-
-
Package org.apache.derby.impl.services.uuid
-
Class org.apache.derby.impl.services.uuid.BasicUUID
class BasicUUID extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log stream
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
-
Package org.apache.derby.impl.sql
-
Class org.apache.derby.impl.sql.CursorInfo
class CursorInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.CursorTableReference
class CursorTableReference extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.GenericColumnDescriptor
class GenericColumnDescriptor extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.GenericResultDescription
class GenericResultDescription extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.GenericStorablePreparedStatement
class GenericStorablePreparedStatement extends GenericPreparedStatement implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- on error- See Also:
-
writeExternal
- Throws:
IOException
- on error
-
-
-
-
Package org.apache.derby.impl.sql.catalog
-
Class org.apache.derby.impl.sql.catalog.DD_Version
class DD_Version extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects. Set the minor version. Ignore the major version.- Parameters:
in
- read this.- Throws:
IOException
- on error
-
writeExternal
Write this object to a stream of stored objects. Write out the minor version which is bumped across minor release. Just to be safe, write out the major version too. This will allow us to do versioning of a specific Version impl in the future.- Parameters:
out
- write bytes here.- Throws:
IOException
- on error
-
-
-
Class org.apache.derby.impl.sql.catalog.DDColumnDependableFinder
class DDColumnDependableFinder extends DDdependableFinder implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects. Just read the byte array, besides what the parent does.- Parameters:
in
- read this.- Throws:
IOException
ClassNotFoundException
-
writeExternal
Write this object to a stream of stored objects. Just write the byte array, besides what the parent does.- Parameters:
out
- write bytes here.- Throws:
IOException
-
-
-
Class org.apache.derby.impl.sql.catalog.DDdependableFinder
class DDdependableFinder extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects. Nothing to do. Our persistent representation is just a 2-byte format id.- Parameters:
in
- read this.- Throws:
IOException
ClassNotFoundException
-
writeExternal
Write this object to a stream of stored objects. Again, nothing to do. We just stamp the output stream with our Format id.- Parameters:
out
- write bytes here.- Throws:
IOException
-
-
-
-
Package org.apache.derby.impl.sql.compile
-
Class org.apache.derby.impl.sql.compile.Token
class Token extends TokenBase implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
beginColumn
int beginColumn
-
beginLine
int beginLine
-
endColumn
int endColumn
-
endLine
int endLine
-
image
String image
-
kind
int kind
-
next
org.apache.derby.impl.sql.compile.Token next
-
specialToken
org.apache.derby.impl.sql.compile.Token specialToken
-
-
-
Package org.apache.derby.impl.sql.depend
-
Class org.apache.derby.impl.sql.depend.BasicProviderInfo
class BasicProviderInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
-
Package org.apache.derby.impl.sql.execute
-
Class org.apache.derby.impl.sql.execute.AggregatorInfo
class AggregatorInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.AggregatorInfoList
-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- on error- See Also:
-
writeExternal
- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.AvgAggregator
class AvgAggregator extends SumAggregator implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- on error- See Also:
-
writeExternal
- Throws:
IOException
- on error- See Also:
-
-
-
Class org.apache.derby.impl.sql.execute.ColumnInfo
class ColumnInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.ConstraintInfo
class ConstraintInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.CountAggregator
class CountAggregator extends SystemAggregator implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- io exceptionClassNotFoundException
- on error- See Also:
-
writeExternal
Although we are not expected to be persistent per se, we may be written out by the sorter temporarily. So we need to be able to write ourselves out and read ourselves back in.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.DeleteConstantAction
class DeleteConstantAction extends WriteCursorConstantAction implements Externalizable-
Serialization Methods
-
readExternal
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error- See Also:
-
writeExternal
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.FKInfo
class FKInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.IndexColumnOrder
class IndexColumnOrder extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.InsertConstantAction
class InsertConstantAction extends WriteCursorConstantAction implements Externalizable-
Serialization Methods
-
readExternal
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.MatchingClauseConstantAction
class MatchingClauseConstantAction extends Object implements Externalizable- serialVersionUID:
- -6725483265211088817L
-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
Class org.apache.derby.impl.sql.execute.MaxMinAggregator
class MaxMinAggregator extends OrderableAggregator implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- on error- See Also:
-
writeExternal
- Throws:
IOException
- on error- See Also:
-
-
-
Class org.apache.derby.impl.sql.execute.MergeConstantAction
class MergeConstantAction extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.StdDevPAggregator
- serialVersionUID:
- -265838381117407283L
-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
Class org.apache.derby.impl.sql.execute.StdDevSAggregator
- serialVersionUID:
- -265838381117407283L
-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
Class org.apache.derby.impl.sql.execute.SumAggregator
class SumAggregator extends OrderableAggregator implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- on error- See Also:
-
writeExternal
Although we are not expected to be persistent per se, we may be written out by the sorter temporarily. So we need to be able to write ourselves out and read ourselves back in. We rely on formatable to handle situations where value is null.Why would we be called to write ourselves out if we are null? For scalar aggregates, we don't bother setting up the aggregator since we only need a single row. So for a scalar aggregate that needs to go to disk, the aggregator might be null.
- Throws:
IOException
- on error- See Also:
-
-
-
Class org.apache.derby.impl.sql.execute.TriggerInfo
class TriggerInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object out- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.UpdatableVTIConstantAction
class UpdatableVTIConstantAction extends WriteCursorConstantAction implements Externalizable-
Serialization Methods
-
readExternal
Read this object from a stream of stored objects.- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
-
-
Class org.apache.derby.impl.sql.execute.UpdateConstantAction
class UpdateConstantAction extends WriteCursorConstantAction implements Externalizable-
Serialization Methods
-
readExternal
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error- See Also:
-
writeExternal
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error- See Also:
-
-
-
Class org.apache.derby.impl.sql.execute.UserDefinedAggregator
class UserDefinedAggregator extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- on errorClassNotFoundException
- See Also:
-
writeExternal
- Throws:
IOException
- on error
-
-
-
Class org.apache.derby.impl.sql.execute.VarPAggregator
class VarPAggregator extends Object implements Externalizable- serialVersionUID:
- 239794626052067761L
-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
Class org.apache.derby.impl.sql.execute.VarSAggregator
- serialVersionUID:
- -741087542836440595L
-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Package org.apache.derby.impl.store.access
-
Class org.apache.derby.impl.store.access.PC_XenaVersion
class PC_XenaVersion extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.access.StorableFormatId
class StorableFormatId extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.access.UTF
class UTF extends UserType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- Thrown on error reading the objectClassNotFoundException
- Thrown if the class of the object is not found- See Also:
-
writeExternal
- Throws:
IOException
- error writing data
-
-
-
-
Package org.apache.derby.impl.store.access.btree
-
Class org.apache.derby.impl.store.access.btree.BTree
class BTree extends GenericConglomerate implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
writeExternal
Store the stored representation of the column value in the stream. It might be easier to simply store the properties - which would certainly make upgrading easier.- Throws:
IOException
- thrown by writeObject()
-
-
-
Exception Class org.apache.derby.impl.store.access.btree.WaitError
class WaitError extends Throwable implements Serializable
-
-
Package org.apache.derby.impl.store.access.btree.index
-
Class org.apache.derby.impl.store.access.btree.index.B2I
class B2I extends BTree implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
writeExternal
Store the stored representation of the column value in the stream.For more detailed description of the ACCESS_B2I_V3_ID and ACCESS_B2I_V5_ID formats see documentation at top of file.
- Throws:
IOException
- thrown by writeObject()- See Also:
-
-
-
Class org.apache.derby.impl.store.access.btree.index.B2I_10_3
class B2I_10_3 extends B2I implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
writeExternal
Store the stored representation of the column value in the stream.For more detailed description of the format see documentation at top of file.
- Throws:
IOException
- thrown by writeObject()- See Also:
-
-
-
Class org.apache.derby.impl.store.access.btree.index.B2I_v10_2
class B2I_v10_2 extends B2I implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
writeExternal
Store the stored representation of the column value in the stream.For more detailed description of the format see documentation at top of file.
- Throws:
IOException
- thrown by writeObject()- See Also:
-
-
-
Class org.apache.derby.impl.store.access.btree.index.B2IStaticCompiledInfo
class B2IStaticCompiledInfo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
writeExternal
Store the stored representation of the column value in the stream. It might be easier to simply store the properties - which would certainly make upgrading easier.- Throws:
IOException
- thrown by writeObject()
-
-
-
Class org.apache.derby.impl.store.access.btree.index.B2IUndo
class B2IUndo extends Object implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream. This object has no state, so nothing to restore.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- See Also:
-
writeExternal
This object has no state, so nothing to write.- Throws:
IOException
-
-
-
-
Package org.apache.derby.impl.store.access.conglomerate
-
Class org.apache.derby.impl.store.access.conglomerate.GenericConglomerate
class GenericConglomerate extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
-
Package org.apache.derby.impl.store.access.heap
-
Class org.apache.derby.impl.store.access.heap.Heap
class Heap extends GenericConglomerate implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- See Also:
-
writeExternal
Store the stored representation of column value in stream.This routine uses the current database version to either store the the 10.2 format (ACCESS_HEAP_V2_ID) or the current format (ACCESS_HEAP_V3_ID).
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.access.heap.Heap_v10_2
class Heap_v10_2 extends Heap implements Externalizable-
Serialization Methods
-
readExternal
Restore the in-memory representation from the stream.- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- See Also:
-
writeExternal
Store the stored representation of the column value in the stream.For more detailed description of the format see documentation at top of file.
- Throws:
IOException
- See Also:
-
-
-
Class org.apache.derby.impl.store.access.heap.HeapRowLocation
class HeapRowLocation extends DataType implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
ClassNotFoundException
- A class needed to read the stored form of this object could not be found.IOException
- See Also:
-
writeExternal
- Throws:
IOException
-
-
-
-
Package org.apache.derby.impl.store.raw.data
-
Class org.apache.derby.impl.store.raw.data.AllocExtent
class AllocExtent extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.AllocPageOperation
class AllocPageOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- error reading from log streamClassNotFoundException
- cannot read object from input
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.ChainAllocPageOperation
class ChainAllocPageOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- error reading from log streamClassNotFoundException
- cannot read object from input
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.CompressSpacePageOperation
class CompressSpacePageOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- error reading from log streamClassNotFoundException
- cannot read object from input
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.CompressSpacePageOperation10_2
class CompressSpacePageOperation10_2 extends CompressSpacePageOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- error reading from log streamClassNotFoundException
- cannot read object from input
-
writeExternal
Public Methods of Formatable interface.- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.ContainerBasicOperation
class ContainerBasicOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.ContainerOperation
class ContainerOperation extends ContainerBasicOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- cannot read log record from log streamClassNotFoundException
- cannot read ByteArray object
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.ContainerUndoOperation
class ContainerUndoOperation extends ContainerBasicOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- cannot read log record from log streamClassNotFoundException
- cannot read ByteArray object
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.CopyRowsOperation
class CopyRowsOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.DeleteOperation
class DeleteOperation extends LogicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Class org.apache.derby.impl.store.raw.data.EncryptContainerOperation
class EncryptContainerOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.EncryptContainerUndoOperation
class EncryptContainerUndoOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- cannot read log record from log streamClassNotFoundException
- cannot read ByteArray object
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.InitPageOperation
class InitPageOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Class org.apache.derby.impl.store.raw.data.InsertOperation
class InsertOperation extends LogicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Class org.apache.derby.impl.store.raw.data.InvalidatePageOperation
class InvalidatePageOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.LogicalUndoOperation
class LogicalUndoOperation extends PageBasicOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Exception Class org.apache.derby.impl.store.raw.data.LongColumnException
class LongColumnException extends StandardException implements Serializable-
Serialized Fields
-
column
Object column
-
logBuffer
DynamicByteArrayOutputStream logBuffer
-
nextColumn
int nextColumn
-
realSpaceOnPage
int realSpaceOnPage
-
-
-
Class org.apache.derby.impl.store.raw.data.PhysicalUndoOperation
class PhysicalUndoOperation extends PageBasicOperation implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.PurgeOperation
class PurgeOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.RemoveFileOperation
class RemoveFileOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.SetReservedSpaceOperation
class SetReservedSpaceOperation extends PageBasicOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.UpdateFieldOperation
class UpdateFieldOperation extends LogicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.data.UpdateOperation
class UpdateOperation extends PhysicalPageOperation implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
- Throws:
IOException
-
-
-
-
Package org.apache.derby.impl.store.raw.log
-
Class org.apache.derby.impl.store.raw.log.CheckpointOperation
class CheckpointOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.log.ChecksumOperation
class ChecksumOperation extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.log.LogCounter
class LogCounter extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this in.- Throws:
IOException
- error reading from log streamClassNotFoundException
- corrupted log stream
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Class org.apache.derby.impl.store.raw.log.LogRecord
class LogRecord extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- corrupted log stream
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
-
Package org.apache.derby.impl.store.raw.xact
-
Class org.apache.derby.impl.store.raw.xact.BeginXact
class BeginXact extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.xact.EndXact
class EndXact extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.xact.GlobalXactId
class GlobalXactId extends GlobalXact implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log streamClassNotFoundException
- log stream corrupted
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
Class org.apache.derby.impl.store.raw.xact.TransactionTable
class TransactionTable extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
IOException
- problem reading the transaction tableClassNotFoundException
- problem reading the transaction table
-
writeExternal
- Throws:
IOException
- problem reading the transaction table
-
-
-
Class org.apache.derby.impl.store.raw.xact.TransactionTableEntry
class TransactionTableEntry extends Object implements Externalizable-
Serialization Methods
-
readExternal
- Throws:
ClassNotFoundException
IOException
-
writeExternal
- Throws:
IOException
-
-
-
Class org.apache.derby.impl.store.raw.xact.XactId
class XactId extends Object implements Externalizable-
Serialization Methods
-
readExternal
Read this in- Throws:
IOException
- error reading from log stream
-
writeExternal
Write this out.- Throws:
IOException
- error writing to log stream
-
-
-
-
Package org.apache.derby.impl.store.replication.buffer
-
Exception Class org.apache.derby.impl.store.replication.buffer.LogBufferFullException
class LogBufferFullException extends Exception implements Serializable
-
-
Package org.apache.derby.impl.store.replication.net
-
Class org.apache.derby.impl.store.replication.net.ReplicationMessage
class ReplicationMessage extends Object implements Externalizable- serialVersionUID:
- 1L
-
Serialization Methods
-
readExternal
Used to restore the contents of this object.- Parameters:
in
- the stream to read data from in order to restore the object.- Throws:
IOException
- If an exception occurs while reading from theInputStream
.ClassNotFoundException
- Class of a serialized object cannot be found.
-
writeExternal
Used to save the contents of this Object.- Parameters:
out
- the stream to write the object to.- Throws:
IOException
- if an exception occurs while writing to theOutputStream
.
-
-
-
Package org.apache.derby.impl.tools.ij
-
Exception Class org.apache.derby.impl.tools.ij.ijException
class ijException extends RuntimeException implements Serializable -
Exception Class org.apache.derby.impl.tools.ij.ijFatalException
class ijFatalException extends RuntimeException implements Serializable-
Serialized Fields
-
e
SQLException e
-
-
-
Exception Class org.apache.derby.impl.tools.ij.ijTokenException
class ijTokenException extends RuntimeException implements Serializable -
Exception Class org.apache.derby.impl.tools.ij.ParseException
class ParseException extends Exception implements Serializable-
Serialized Fields
-
currentToken
org.apache.derby.impl.tools.ij.Token currentToken
This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token. -
eol
String eol
The end of line string for this machine. -
expectedTokenSequences
int[][] expectedTokenSequences
Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse. -
specialConstructor
boolean specialConstructor
This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below). -
tokenImage
String[] tokenImage
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.
-
-
-
Class org.apache.derby.impl.tools.ij.Token
class Token extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
beginColumn
int beginColumn
-
beginLine
int beginLine
-
endColumn
int endColumn
-
endLine
int endLine
-
image
String image
-
kind
int kind
-
next
org.apache.derby.impl.tools.ij.Token next
-
specialToken
org.apache.derby.impl.tools.ij.Token specialToken
-
-
Exception Class org.apache.derby.impl.tools.ij.TokenMgrError
class TokenMgrError extends Error implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
errorCode
int errorCode
-
-
-
Package org.apache.derby.jdbc
-
Class org.apache.derby.jdbc.BasicClientConnectionPoolDataSource40
class BasicClientConnectionPoolDataSource40 extends BasicClientDataSource40 implements Serializable- serialVersionUID:
- -539234282156481378L
-
Serialization Methods
-
readObject
Read an object from the ObjectInputStream.This implementation differs from the default one by initiating state validation of the object created.
- Parameters:
inputStream
- data stream to read objects from- Throws:
ClassNotFoundException
- if instantiating a class failsIOException
- if reading from the stream fails
-
-
Serialized Fields
-
maxStatements
int maxStatements
Specifies the maximum number of statements that can be cached per connection by the JDBC driver.A value of
0
disables statement caching, negative values are not allowed. The default is that caching is disabled.
-
-
Class org.apache.derby.jdbc.BasicClientDataSource40
class BasicClientDataSource40 extends Object implements Serializable- serialVersionUID:
- 1894299584216955554L
-
Serialized Fields
-
connectionAttributes
String connectionAttributes
-
createDatabase
boolean createDatabase
Set to true if the database should be created. -
databaseName
String databaseName
Stores the relational database name, RDBNAME. The length of the database name may be limited to 18 bytes and therefore may throw an SQLException. -
dataSourceName
String dataSourceName
A data source name; used to name an underlying XADataSource, or ConnectionPoolDataSource when pooling of connections is done. -
description
String description
A description of this data source. -
loginTimeout
int loginTimeout
The time in seconds to wait for a connection request on this data source. The default value of zero indicates that either the system time out be used or no timeout limit. -
password
String password
-
portNumber
int portNumber
-
retrieveMessageText
boolean retrieveMessageText
-
securityMechanism
short securityMechanism
Security Mechanism can be specified explicitly either when obtaining a connection via a DriverManager or via Datasource. Via DriverManager, securityMechanism can be set on the connection request using the 'securityMechanism' attribute. Via DataSource, securityMechanism can be set by calling setSecurityMechanism() on the ClientDataSource If the security mechanism is not explicitly set as mentioned above, in that case the Client will try to upgrade the security mechanism to a more secure one, if possible. SeeBasicClientDataSource40.getUpgradedSecurityMechanism(java.lang.String)
. Therefore, need to keep track if the securityMechanism has been explicitly set. -
serverName
String serverName
-
shutdownDatabase
boolean shutdownDatabase
Set to true if the database should be shutdown. -
sslMode
int sslMode
-
traceDirectory
String traceDirectory
-
traceFile
String traceFile
-
traceFileAppend
boolean traceFileAppend
-
traceLevel
int traceLevel
-
user
String user
This property can be overwritten by specifing the username parameter on the DataSource.getConnection() method call. If user is specified, then password must also be specified, either in the data source object or provided on the DataSource.getConnection() call. Each data source implementation subclass will maintain it's ownpassword
property. This password property may or may not be declared transient, and therefore may be serialized to a file in clear-text, care must taken by the user to prevent security breaches. Derby-406 fix
-
-
Class org.apache.derby.jdbc.BasicClientXADataSource40
class BasicClientXADataSource40 extends BasicClientDataSource40 implements Serializable- serialVersionUID:
- 7057075094707674881L
-
Class org.apache.derby.jdbc.BasicEmbeddedConnectionPoolDataSource40
class BasicEmbeddedConnectionPoolDataSource40 extends BasicEmbeddedDataSource40 implements Serializable- serialVersionUID:
- 7852784308039674161L
-
Class org.apache.derby.jdbc.BasicEmbeddedDataSource40
class BasicEmbeddedDataSource40 extends Object implements Serializable- serialVersionUID:
- -4945135214995641182L
-
Serialized Fields
-
attributesAsPassword
boolean attributesAsPassword
Set password to be a set of connection attributes. -
connectionAttributes
String connectionAttributes
Derby specific connection attributes. Set byBasicEmbeddedDataSource40.setConnectionAttributes(java.lang.String)
. -
createDatabase
String createDatabase
Set to "create" if the database should be created. SeeBasicEmbeddedDataSource40.setCreateDatabase(java.lang.String)
. -
databaseName
String databaseName
-
dataSourceName
String dataSourceName
-
description
String description
-
loginTimeout
int loginTimeout
-
password
String password
-
shortDatabaseName
String shortDatabaseName
shortDatabaseName
has attributes ofdatabaseName
stripped off. SeeBasicEmbeddedDataSource40.databaseName
. -
shutdownDatabase
String shutdownDatabase
Set to "shutdown" if the database should be shutdown. SeeBasicEmbeddedDataSource40.setShutdownDatabase(java.lang.String)
. -
user
String user
-
-
Class org.apache.derby.jdbc.BasicEmbeddedXADataSource40
class BasicEmbeddedXADataSource40 extends BasicEmbeddedDataSource40 implements Serializable- serialVersionUID:
- -5715798975598379739L
-
Class org.apache.derby.jdbc.ClientConnectionPoolDataSource
class ClientConnectionPoolDataSource extends ClientDataSource implements Serializable- serialVersionUID:
- -539234282156481377L
-
Serialization Methods
-
readObject
Read an object from the ObjectInputStream.This implementation differs from the default one by initiating state validation of the object created.
- Parameters:
inputStream
- data stream to read objects from- Throws:
ClassNotFoundException
- if instantiating a class failsIOException
- if reading from the stream fails
-
-
Serialized Fields
-
maxStatements
int maxStatements
Specifies the maximum number of statements that can be cached per connection by the JDBC driver.A value of
0
disables statement caching, negative values are not allowed. The default is that caching is disabled.
-
-
Class org.apache.derby.jdbc.ClientConnectionPoolDataSource40
class ClientConnectionPoolDataSource40 extends ClientConnectionPoolDataSource implements Serializable- serialVersionUID:
- 6313966728809326579L
-
Class org.apache.derby.jdbc.ClientDataSource
class ClientDataSource extends BasicClientDataSource40 implements Serializable- serialVersionUID:
- 1894299584216955553L
-
Class org.apache.derby.jdbc.ClientDataSource40
class ClientDataSource40 extends ClientDataSource implements Serializable- serialVersionUID:
- -3936981157692787843L
-
Class org.apache.derby.jdbc.ClientXADataSource
class ClientXADataSource extends ClientDataSource implements Serializable- serialVersionUID:
- 7057075094707674880L
-
Class org.apache.derby.jdbc.ClientXADataSource40
class ClientXADataSource40 extends ClientXADataSource implements Serializable- serialVersionUID:
- -3463444509507830926L
-
Class org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource
class EmbeddedConnectionPoolDataSource extends EmbeddedDataSource implements Serializable- serialVersionUID:
- 7852784308039674160L
-
Class org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40
class EmbeddedConnectionPoolDataSource40 extends EmbeddedConnectionPoolDataSource implements Serializable- serialVersionUID:
- -4368824293743156916L
-
Class org.apache.derby.jdbc.EmbeddedDataSource
class EmbeddedDataSource extends ReferenceableDataSource implements Serializable- serialVersionUID:
- -4945135214995641181L
-
Class org.apache.derby.jdbc.EmbeddedDataSource40
class EmbeddedDataSource40 extends EmbeddedDataSource implements Serializable- serialVersionUID:
- 4472591890758954803L
-
Class org.apache.derby.jdbc.EmbeddedXADataSource
class EmbeddedXADataSource extends EmbeddedDataSource implements Serializable- serialVersionUID:
- -5715798975598379738L
-
Class org.apache.derby.jdbc.EmbeddedXADataSource40
class EmbeddedXADataSource40 extends EmbeddedXADataSource implements Serializable- serialVersionUID:
- 4048303427908481258L
-
Class org.apache.derby.jdbc.ReferenceableDataSource
class ReferenceableDataSource extends BasicEmbeddedDataSource40 implements Serializable- serialVersionUID:
- 1872877359127597176L
-
-
Package org.apache.derby.security
-
Class org.apache.derby.security.DatabasePermission
class DatabasePermission extends Permission implements Serializable-
Serialization Methods
-
readObject
Called upon Deserialization for restoring the state of this DatabasePermission from a stream.- Throws:
IOException
ClassNotFoundException
-
writeObject
Called upon Serialization for saving the state of this DatabasePermission to a stream.- Throws:
IOException
-
-
Serialized Fields
-
actions
String actions
The actions of this permission, as returned byDatabasePermission.getActions()
.
-
-
-
Class org.apache.derby.security.SystemPermission
class SystemPermission extends BasicPermission implements Serializable- serialVersionUID:
- 1965420504091489898L
-
Serialization Methods
-
readObject
Called upon deserialization for restoring the state of this SystemPermission from a stream.- Throws:
IOException
ClassNotFoundException
-
-
Serialized Fields
-
actions
String actions
Actions for this permission.
-
-
-
Package org.apache.derby.shared.common.error
-
Package org.apache.derby.shared.common.sanity
-
Package org.apache.derby.vti
-
Class org.apache.derby.vti.Restriction
class Restriction extends Object implements Serializable -
Class org.apache.derby.vti.Restriction.AND
class AND extends Restriction implements Serializable- serialVersionUID:
- -8205388794606605844L
-
Serialized Fields
-
_leftChild
Restriction _leftChild
-
_rightChild
Restriction _rightChild
-
-
Class org.apache.derby.vti.Restriction.ColumnQualifier
class ColumnQualifier extends Restriction implements Serializable- serialVersionUID:
- -8205388794606605844L
-
Class org.apache.derby.vti.Restriction.OR
class OR extends Restriction implements Serializable- serialVersionUID:
- -8205388794606605844L
-
Serialized Fields
-
_leftChild
Restriction _leftChild
-
_rightChild
Restriction _rightChild
-
-