# Serialized Form

- ## Package org.apache.derby.agg

- ## Package org.apache.derby.authentication

  - ### Class org.apache.derby.authentication.SystemPrincipal extends Object implements Serializable

    serialVersionUID:
      925380094921530190L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream s)
                             throws IOException,
                                    ClassNotFoundException

        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 method `getName()`. 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 interface `com.sun.security.auth.PrincipalComparator`, which declares a method `implies(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:
          User Names & Authorization Identifiers in Derby

- ## Package org.apache.derby.catalog

- ## Package org.apache.derby.drda

  - ### Class org.apache.derby.drda.NetServlet extends HttpServlet implements Serializable

    - ### Serialized Fields

      - #### host

            String host

      - #### portNumber

            int portNumber

      - #### tracingDirectory

            String tracingDirectory

      - #### logStatus

            boolean logStatus

      - #### traceStatus

            boolean traceStatus

      - #### server

            NetworkServerControl server

- ## Package org.apache.derby.jdbc

  - ### Class org.apache.derby.jdbc.BasicClientConnectionPoolDataSource40 extends BasicClientDataSource40 implements Serializable

    serialVersionUID:
      -539234282156481378L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream inputStream)
                             throws ClassNotFoundException,
                                    IOException

        Read an object from the ObjectInputStream.

        This implementation differs from the default one by initiating state validation of the object created.

        Throws:
          `ClassNotFoundException` - if instantiating a class fails
          `IOException` - 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 extends Object implements Serializable

    serialVersionUID:
      1894299584216955554L

    - ### Serialized Fields

      - #### 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.

      - #### 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.

      - #### description

            String description

        A description of this data source.

      - #### dataSourceName

            String dataSourceName

        A data source name; used to name an underlying XADataSource, or ConnectionPoolDataSource when pooling of connections is done.

      - #### portNumber

            int portNumber

      - #### serverName

            String serverName

      - #### 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 own `password` 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

      - #### 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. See `BasicClientDataSource40.getUpgradedSecurityMechanism(java.lang.String)`. Therefore, need to keep track if the securityMechanism has been explicitly set.

      - #### retrieveMessageText

            boolean retrieveMessageText

      - #### traceFile

            String traceFile

      - #### traceDirectory

            String traceDirectory

      - #### traceFileAppend

            boolean traceFileAppend

      - #### password

            String password

      - #### sslMode

            int sslMode

      - #### createDatabase

            boolean createDatabase

        Set to true if the database should be created.

      - #### shutdownDatabase

            boolean shutdownDatabase

        Set to true if the database should be shutdown.

      - #### connectionAttributes

            String connectionAttributes

      - #### traceLevel

            int traceLevel

  - ### Class org.apache.derby.jdbc.BasicClientXADataSource40 extends BasicClientDataSource40 implements Serializable

    serialVersionUID:
      7057075094707674881L

  - ### Class org.apache.derby.jdbc.BasicEmbeddedConnectionPoolDataSource40 extends BasicEmbeddedDataSource40 implements Serializable

    serialVersionUID:
      7852784308039674161L

  - ### Class org.apache.derby.jdbc.BasicEmbeddedDataSource40 extends Object implements Serializable

    serialVersionUID:
      -4945135214995641182L

    - ### Serialized Fields

      - #### description

            String description

        Set by `BasicEmbeddedDataSource40.setDescription(java.lang.String)`.

      - #### dataSourceName

            String dataSourceName

        Set by `BasicEmbeddedDataSource40.setDataSourceName(java.lang.String)`.

      - #### databaseName

            String databaseName

        Set by `BasicEmbeddedDataSource40.setDatabaseName(java.lang.String)`.

      - #### connectionAttributes

            String connectionAttributes

        Derby specific connection attributes. Set by `BasicEmbeddedDataSource40.setConnectionAttributes(java.lang.String)`.

      - #### createDatabase

            String createDatabase

        Set to "create" if the database should be created. See `BasicEmbeddedDataSource40.setCreateDatabase(java.lang.String)`.

      - #### shutdownDatabase

            String shutdownDatabase

        Set to "shutdown" if the database should be shutdown. See `BasicEmbeddedDataSource40.setShutdownDatabase(java.lang.String)`.

      - #### attributesAsPassword

            boolean attributesAsPassword

        Set password to be a set of connection attributes.

      - #### shortDatabaseName

            String shortDatabaseName

        `shortDatabaseName` has attributes of `databaseName` stripped off. See `BasicEmbeddedDataSource40.databaseName`.

      - #### password

            String password

        Set by `BasicEmbeddedDataSource40.setPassword(java.lang.String)`.

      - #### user

            String user

        Set by `BasicEmbeddedDataSource40.setUser(java.lang.String)`.

      - #### loginTimeout

            int loginTimeout

        Set by `BasicEmbeddedDataSource40.setLoginTimeout(int)`.

  - ### Class org.apache.derby.jdbc.BasicEmbeddedXADataSource40 extends BasicEmbeddedDataSource40 implements Serializable

    serialVersionUID:
      -5715798975598379739L

  - ### Class org.apache.derby.jdbc.ClientConnectionPoolDataSource extends ClientDataSource implements Serializable

    serialVersionUID:
      -539234282156481377L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream inputStream)
                             throws ClassNotFoundException,
                                    IOException

        Read an object from the ObjectInputStream.

        This implementation differs from the default one by initiating state validation of the object created.

        Throws:
          `ClassNotFoundException` - if instantiating a class fails
          `IOException` - 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 extends ClientConnectionPoolDataSource implements Serializable

    serialVersionUID:
      6313966728809326579L

  - ### Class org.apache.derby.jdbc.ClientDataSource extends BasicClientDataSource40 implements Serializable

    serialVersionUID:
      1894299584216955553L

  - ### Class org.apache.derby.jdbc.ClientDataSource40 extends ClientDataSource implements Serializable

    serialVersionUID:
      -3936981157692787843L

  - ### Class org.apache.derby.jdbc.ClientXADataSource extends ClientDataSource implements Serializable

    serialVersionUID:
      7057075094707674880L

  - ### Class org.apache.derby.jdbc.ClientXADataSource40 extends ClientXADataSource implements Serializable

    serialVersionUID:
      -3463444509507830926L

  - ### Class org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource extends EmbeddedDataSource implements Serializable

    serialVersionUID:
      7852784308039674160L

  - ### Class org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40 extends EmbeddedConnectionPoolDataSource implements Serializable

    serialVersionUID:
      -4368824293743156916L

  - ### Class org.apache.derby.jdbc.EmbeddedDataSource extends org.apache.derby.jdbc.ReferenceableDataSource implements Serializable

    serialVersionUID:
      -4945135214995641181L

  - ### Class org.apache.derby.jdbc.EmbeddedDataSource40 extends EmbeddedDataSource implements Serializable

    serialVersionUID:
      4472591890758954803L

  - ### Class org.apache.derby.jdbc.EmbeddedXADataSource extends EmbeddedDataSource implements Serializable

    serialVersionUID:
      -5715798975598379738L

  - ### Class org.apache.derby.jdbc.EmbeddedXADataSource40 extends EmbeddedXADataSource implements Serializable

    serialVersionUID:
      4048303427908481258L

  - ### Class org.apache.derby.jdbc.ReferenceableDataSource extends BasicEmbeddedDataSource40 implements Serializable

    serialVersionUID:
      1872877359127597176L

- ## Package org.apache.derby.security

  - ### Class org.apache.derby.security.DatabasePermission extends Permission implements Serializable

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream s)
                             throws IOException,
                                    ClassNotFoundException

        Called upon Deserialization for restoring the state of this DatabasePermission from a stream.
        Throws:
          `IOException`
          `ClassNotFoundException`

      - #### writeObject

            private void writeObject(ObjectOutputStream s)
                              throws IOException

        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 by `DatabasePermission.getActions()`.

  - ### Class org.apache.derby.security.SystemPermission extends BasicPermission implements Serializable

    serialVersionUID:
      1965420504091489898L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream s)
                             throws IOException,
                                    ClassNotFoundException

        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.vti

  - ### Class org.apache.derby.vti.Restriction extends Object implements Serializable

  - ### Class org.apache.derby.vti.Restriction.AND extends Restriction implements Serializable

    serialVersionUID:
      -8205388794606605844L

    - ### Serialized Fields

      - #### _leftChild

            Restriction _leftChild

      - #### _rightChild

            Restriction _rightChild

  - ### Class org.apache.derby.vti.Restriction.ColumnQualifier extends Restriction implements Serializable

    serialVersionUID:
      -8205388794606605844L

    - ### Serialized Fields

      - #### OPERATOR_SYMBOLS

            String[] OPERATOR_SYMBOLS

      - #### _columnName

            String _columnName

        name of column being restricted

      - #### _comparisonOperator

            int _comparisonOperator

        comparison operator, one of the ORDER_OP constants

      - #### _constantOperand

            Object _constantOperand

        value to compare the column to

  - ### Class org.apache.derby.vti.Restriction.OR extends Restriction implements Serializable

    serialVersionUID:
      -8205388794606605844L

    - ### Serialized Fields

      - #### _leftChild

            Restriction _leftChild

      - #### _rightChild

            Restriction _rightChild

Apache Derby 10.13 API Documentation - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.