Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2  
org.apache.derby.authentication.* (1)org.apache.derby.catalog.* (25)
org.apache.derby.client.* (111)org.apache.derby.database.* (2)
org.apache.derby.diag.* (7)org.apache.derby.drda.* (2)
org.apache.derby.iapi.* (411)org.apache.derby.impl.* (835)
org.apache.derby.io.* (4)org.apache.derby.jdbc.* (20)

Package Samples:

org.apache.derby.client.am
org.apache.derby.client.net
org.apache.derby.client.resources
org.apache.derby.client
org.apache.derby.jdbc
org.apache.derby.drda
org.apache.derby.impl.drda
org.apache.derby.authentication
org.apache.derby.catalog.types
org.apache.derby.catalog
org.apache.derby.database
org.apache.derby.diag
org.apache.derby.iapi.db
org.apache.derby.iapi.error
org.apache.derby.iapi.jdbc
org.apache.derby.iapi.reference
org.apache.derby.iapi.services.cache
org.apache.derby.iapi.services.classfile
org.apache.derby.iapi.services.compiler
org.apache.derby.iapi.services.context

Classes:

ResourceAdapter: The resource adapter is the clearing house for managing connections, transactions, and XAResources in a JDBC based resource manager living in the distributed transaction processing environment. There is one instance of ResourceAdapter per Resource Manager (database). The ResourceAdapter is responsible for keeping track of all run time global transactions and their state. The resource adapter only knows of run time global transactions, i.e., it does not know of in-doubt global transactions re-created by recovery. The following is an overall design of the JTA implementation in cloudscape, most of ...
DependencyManager: Dependency Manager Interface The dependency manager tracks needs that dependents have of providers. This is a general purpose interface interface which is associated with a DataDictinary object; infact the dependencymanager is really the datadictionary keeping track of dependcies between objects that it handles (descriptors) as well as prepared statements. The primary example of this is a prepared statement's needs of schema objects such as tables. Dependencies are used so that we can determine when we need to recompile a statement; compiled statements depend on schema objects like tables and constraints, ...
Monitor: Services A service is a collection of modules that combine to provide the full functionality defined by the service. A service is defined by three pieces of information: A fully qualified java class name that identifies the functionality or API that the service must provide. Typically this class represents a java interface. This class name is termed the factory interface . The identifier of the service. Services are identified by a String, this may be hard-coded, come from a UUID or any other source. An optional java.util.Properties set. The running functionality of the service is provided by a ...
TempTableInfo: The temp tables will have following data structure TableDescriptor Declared in savepoint level Dropped in savepoint level Modified in savepoint level The actual logic LanguageConnectionContext will keep the "current savepoint level". At any point in time, this is the total number of savepoints defined for a transaction. At the start of any new transaction, the "current savepoint level" will be set to 0. Everytime a new user defined savepoint is set, store returns the total number of savepoints for the connection at that point. For eg, in a new transaction, "current savepoint level' will be 0. When ...
ReclaimSpaceHelper: This class helps a BaseDataFactory reclaims unused space. Space needs to be reclaimed in the following cases: Row with long columns or overflow row pieces is deleted Insertion of a row that has long columns or overflows to other row pieces is rolled back Row is updated and the head row or some row pieces shrunk Row is updated and some long columns are orphaned because they are updated Row is updated and some long columns are created but the update rolled back Row is updated and some new row pieces are created but the update rolled back We can implement a lot of optimization if we know that btree ...
EmbeddedDataSource: EmbeddedDataSource is Derby's DataSource implementation. A DataSource is a factory for Connection objects. An object that implements the DataSource interface will typically be registered with a JNDI service provider. EmbeddedDataSource automatically supports the correct JDBC specification version for the Java Virtual Machine's environment. JDBC 3.0 - Java 2 - JDK 1.4, J2SE 5.0 JDBC 2.0 - Java 2 - JDK 1.2,1.3 The following is a list of properties that can be set on a Derby DataSource object: Standard DataSource properties (from JDBC 3.0 specification). databaseName (String): Mandatory This property ...
CoalesceFunctionNode: This node represents coalesce/value function which returns the first argument that is not null. The arguments are evaluated in the order in which they are specified, and the result of the function is the first argument that is not null. The result can be null only if all the arguments can be null. The selected argument is converted, if necessary, to the attributes of the result. SQL Reference Guide for DB2 has section titled "Rules for result data types" at the following url http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0008480.htm I have constructed ...
NetworkServerControl: NetworkServerControl provides the ability to start a Network Server or connect to a running Network Server to shutdown, configure or retreive diagnostic information. With the exception of ping, these commands can only be performed from the machine on which the server is running. Commands can be performed from the command line with the following arguments: start [-h <host>] [-p <portnumber>]: This starts the network server on the port/host specified or on localhost, port 1527 if no host/port is specified and no properties are set to override the defaults. By default Network Server will only ...
LogicalUndo: A Logical undo is an undo operation that operates on a different page from the page that has the original change. The reason one would need logical undo is when an uncommitted row move from one page to another in a nested internal transaction which is committed. For example, an uncommitted insert on a btree may be moved by a later split operation to another page, the split operation will have committed. If the insert needs to be rolled back, it can only be found at the new page where the split puts it and not at the original page where it is inserted. The logging and recovery system does not know ...
ContainerHandle: A Container contains a contigious address space of pages, the pages start at page number Container.FIRST_PAGE_NUMBER and are numbered sequentially. The page size is set at addContainer() time. RESOLVE: this style of coding is not currently enforced If the caller calls getPage (or one of its variants) more than once on the same page, the caller must call unlatch a corresponding number of times in order to ensure that the page is latched. For example: Container c; Page p1 = c.getPage(Container.FIRST_PAGE_NUMBER); Page p2 = c.getPage(Container.FIRST_PAGE_NUMBER); p1.unlatch(); -- Page is still latched. ...
BCJava: Debugging problems with generated classes When the code has been generated incorrectly, all sorts of odd things can go wrong. This is one recommended approach to finding the problem. First, turn on ByteCodeGenInstr and DumpClassFile. Look for missing files (right now they are consecutively numbered by the activation class builder; later on they won't be, but BytCodeGenInstr dumps messages about the classes it has). Look at the log to make sure that all "GEN starting class/method" messages are paired with a "GEN ending class/method" message. If a file is missing or the pairing is missing, then something ...
SQLState: List of error message identifiers. This is the set of message identifiers. The message identifier also encodes the SQLState as the first five characters. StandardExceptions must be created using the static StandardException.newException() method calls, passing in a field from this class. The five character SQL State is obtained from a StandardException using the zero-argument StandardException.getSQLState() method. The message identifier (ie. the value that matches a field in this class) is obtained using the zero-argument StandardException.getMessageId() method. Thus if checking for a specific ...
StoredFieldHeader: A class to provide static methods to manipulate fields in the field header. A class StoredPage uses to read/write field status and field data length. No attributes exist in this class, this class provides a set of static methods for writing field status and field data length, and for reading field status and field data length. Stored Field Header Format The field header is broken into two sections. Only the Status byte is required to be there. Field header format: +--------+-------------------+ | status | | +--------+-------------------+ Overflow page and overflow id are stored as field data. If ...
DDMReader: The DDMReader is used to read DRDA protocol. DRDA Protocol is divided into three layers corresponding to the DDM three-tier architecture. For each layer, their is a DSS (Data Stream Structure) defined. Layer A Communications management services Layer B Agent services Layer C Data management services At layer A are request, reply and data correlation, structure chaining, continuation or termination of chains when errors are detected, interleaving and multi-leaving request, reply, and data DSSs for multitasking environments. For TCP/IP, the format of the DDM envelope is 2 bytes Length of the data ...
ProductVersionHolder: Class to hold a cloudscape Product version. This class includes the following product version features. Save the product version information this holds as a String. We call the string a 'product version string'. Construct a ProductVersionHolder from a valid 'product version string'. Determine if two product versions are feature compatible. This means products of these versions may interoperate with ***NO*** compatibility problems. Determine if two product versions are the same. This is a stronger test than the test for feature compatibility. Cloudscape 5.1 and older versions used the majorVersion, ...
TransactionResourceImpl: An instance of a TransactionResourceImpl is a bundle of things that connects a connection to the database - it is the transaction "context" in a generic sense. It is also the object of synchronization used by the connection object to make sure only one thread is accessing the underlying transaction and context. TransactionResourceImpl not only serves as a transaction "context", it also takes care of: context management: the pushing and popping of the context manager in and out of the global context service transaction demarcation: all calls to commit/abort/prepare/close a transaction must route ...
DeferModification: This interface is implemented by a read/write VTI class that wants to control when modifications to the VTI are deferred, or to be notified that a it is to be modified. Consider the following statement: UPDATE NEW myVTI(...) SET cost = cost + 10 WHERE cost Updating a column that is used in the WHERE clause might or might not give the VTI implementation trouble; the update might cause the same row to be selected more than once. This problem can be solved by building the complete list of rows to be updated and the new column values before updating any rows. The updates are applied after the list ...
ClientDataSource: ClientDataSource is a simple data source implementation that can be used for establishing connections in a non-pooling, non-distributed environment. The class ClientDataSource can be used in a connection pooling environment, and the class ClientXADataSource can be used in a distributed, and pooling environment. The example below registers a DNC data source object with a JNDI naming service. org.apache.derby.client.ClientDataSource dataSource = new org.apache.derby.client.ClientDataSource (); dataSource.setServerName ("my_derby_database_server"); dataSource.setDatabaseName ("my_derby_database_name"); ...
TableDescriptor: This class represents a table descriptor. The external interface to this class is: external interface public String getSchemaName(); public String getQualifiedName(); public int getTableType(); public long getHeapConglomerateId() throws StandardException; public int getNumberOfColumns(); public FormatableBitSet getReferencedColumnMap(); public void setReferencedColumnMap(FormatableBitSet referencedColumnMap); public int getMaxColumnID() throws StandardException; public void setUUID(UUID uuid); public char getLockGranularity(); public void setTableName(String newTableName); public void setLockGranularity(char ...
JavaFactory: JavaFactory provides generators for Java constructs. Once Java constructs have been connected into a complete class definition, the class can be generated from them. The generated class is created as a byte-code array that can then be loaded by a class loader or, in our case, the class utilities wrapper around our special class loader. Each method shows the equivalent Java in the line starting "Java:" in the header comment. Items in the java code that begin with # refer to parameters used in constructing the object. So, for example, newReturnStatement takes a parameter named value; its Java code ...
AllocPage: An allocation page of the file container. This class extends a normal Stored page, with the exception that a hunk of space may be 'borrowed' by the file container to store the file header. The borrowed space is not visible to the alloc page even though it is present in the page data array. It is accessed directly by the FileContainer. Any change made to the borrowed space is not managed or seen by the allocation page. Page Format An allocation page extends a stored page, the on disk format is different from a stored page in that N bytes are 'borrowed' by the container and the page header of an ...
SpaceTable: SpaceTable is a virtual table that shows the space usage of a particular table and its indexes. This virtual table can be invoked by calling it directly, and supplying the schema name and table name as arguments. select * from new org.apache.derby.diag.SpaceTable('MYSCHEMA','MYTABLE') t; If the schema name is not supplied, the default schema is used. select * from new org.apache.derby.diag.SpaceTable('MYTABLE') t; Alternatively, the table can be invoked through the system alias SpaceTable select * from new SPACETABLE('MYTABLE') t; NOTE: Both the schema name and the table name must be any expression ...
StorageFactory: This interface provides basic storage functions needed for read only databases. Most storage implementations will be read-write and implement the WritableStorageFactory extension of this interface. The database engine uses this interface to access storage. The normal database engine implements this interface using disk files and the standard java.io classes. The storage factory must implement writable temporary files, even if the database is read-only or if the storage factory is read-only (i.e. it does not implement the WritableStorageFactory extension of this interface). Temporary files are those ...
Lockable: Any object that needs to be locked must implement Lockable. This allows a generic lock manager that can have locking policies defined on a per-object basis. A request to lock the object takes a qualifier, this qualifier may be used the object to implement a complex locking policy, e.g. traditional database shared, update and exclusive locks. The lock manager uses this ordered protocol to determine if a lock request on a Lockable L with qualifier Q1 in compatiblity space CS1 can be granted: If no locks are held on L in any compatability space then the request is granted. If L.requestCompatible(Q1) ...
Clock: A cache manager that uses a Hashtable and a ArrayList. The ArrayList holds CachedItem objects, each with a holder object. The Hashtable is keyed by the identity of the holder object (Cacheable.getIdentity()) and the data portion is a pointer to the CachedItem. CachedItems that have holder objects with no identity do not have entries in the hashtable. CachedItems can in various state. isValid - the entry has a valid identity inCreate - the entry is being created or being faulted in from persistent store inClean - the entry is being written out to persistent store isKept - the entry is currently ...

Home | Contact Us | Privacy Policy | Terms of Service