org.apache.derby.catalog
Interface Dependable

All Known Subinterfaces:
Dependent, ExecPreparedStatement, PreparedStatement, Provider, StorablePreparedStatement
All Known Implementing Classes:
AliasDescriptor, ConglomerateDescriptor, ConstraintDescriptor, DefaultDescriptor, FileInfoDescriptor, GenericPreparedStatement, GenericStorablePreparedStatement, SchemaDescriptor, SPSDescriptor, TableDescriptor, TriggerDescriptor, ViewDescriptor

public interface Dependable

A Dependable is an in-memory representation of an object managed by the Dependency System. There are two kinds of Dependables: Providers and Dependents. Dependents depend on Providers and are responsible for executing compensating logic when their Providers change.

The fields represent the known Dependables.

Persistent dependencies (those between database objects) are stored in SYS.SYSDEPENDS.

See Also:
DependableFinder

Field Summary
static java.lang.String ALIAS
           
static java.lang.String COLUMNS_IN_TABLE
           
static java.lang.String CONGLOMERATE
           
static java.lang.String CONSTRAINT
           
static java.lang.String DEFAULT
           
static java.lang.String FILE
           
static java.lang.String HEAP
           
static java.lang.String INDEX
           
static java.lang.String PREPARED_STATEMENT
           
static java.lang.String SCHEMA
           
static java.lang.String STORED_PREPARED_STATEMENT
           
static java.lang.String TABLE
           
static java.lang.String TRIGGER
           
static java.lang.String VIEW
           
 
Method Summary
 java.lang.String getClassType()
          Get the unique class id for the Dependable.
 DependableFinder getDependableFinder()
          Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.
 UUID getObjectID()
          Get the UUID of this Dependable OBJECT.
 java.lang.String getObjectName()
          Get the name of this Dependable OBJECT.
 boolean isPersistent()
          Return whether or not this Dependable is persistent.
 

Field Detail

ALIAS

public static final java.lang.String ALIAS
See Also:
Constant Field Values

CONGLOMERATE

public static final java.lang.String CONGLOMERATE
See Also:
Constant Field Values

CONSTRAINT

public static final java.lang.String CONSTRAINT
See Also:
Constant Field Values

DEFAULT

public static final java.lang.String DEFAULT
See Also:
Constant Field Values

HEAP

public static final java.lang.String HEAP
See Also:
Constant Field Values

INDEX

public static final java.lang.String INDEX
See Also:
Constant Field Values

PREPARED_STATEMENT

public static final java.lang.String PREPARED_STATEMENT
See Also:
Constant Field Values

FILE

public static final java.lang.String FILE
See Also:
Constant Field Values

STORED_PREPARED_STATEMENT

public static final java.lang.String STORED_PREPARED_STATEMENT
See Also:
Constant Field Values

TABLE

public static final java.lang.String TABLE
See Also:
Constant Field Values

COLUMNS_IN_TABLE

public static final java.lang.String COLUMNS_IN_TABLE
See Also:
Constant Field Values

TRIGGER

public static final java.lang.String TRIGGER
See Also:
Constant Field Values

VIEW

public static final java.lang.String VIEW
See Also:
Constant Field Values

SCHEMA

public static final java.lang.String SCHEMA
See Also:
Constant Field Values
Method Detail

getDependableFinder

public DependableFinder getDependableFinder()
Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.

Returns:
A Finder object that can be written to disk if this is a Persistent Dependable. Null if this is not a persistent dependable.

getObjectName

public java.lang.String getObjectName()
Get the name of this Dependable OBJECT. This is useful for diagnostic messages.

Returns:
Name of Dependable OBJECT.

getObjectID

public UUID getObjectID()
Get the UUID of this Dependable OBJECT.

Returns:
UUID of this OBJECT.

isPersistent

public boolean isPersistent()
Return whether or not this Dependable is persistent. Persistent dependencies are stored in SYS.SYSDEPENDS.

Returns:
true if this Dependable is persistent.

getClassType

public java.lang.String getClassType()
Get the unique class id for the Dependable. Every Dependable belongs to a class of Dependables.

Returns:
type of this Dependable.

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.