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

Quick Search    Search Deep

org.apache.derby.iapi.sql.dictionary
Class DefaultDescriptor  view DefaultDescriptor download DefaultDescriptor.java

java.lang.Object
  extended byorg.apache.derby.iapi.sql.dictionary.TupleDescriptor
      extended byorg.apache.derby.iapi.sql.dictionary.DefaultDescriptor
All Implemented Interfaces:
org.apache.derby.catalog.Dependable, org.apache.derby.iapi.sql.depend.Dependent, org.apache.derby.iapi.sql.depend.Provider, UniqueTupleDescriptor

public class DefaultDescriptor
extends TupleDescriptor
implements UniqueTupleDescriptor, org.apache.derby.iapi.sql.depend.Provider, org.apache.derby.iapi.sql.depend.Dependent

This interface is used to get information from a DefaultDescriptor.


Field Summary
(package private)  int columnNumber
          public interface to this class public void setDefaultUUID(UUID defaultUUID); public UUID getTableUUID();
(package private)  org.apache.derby.catalog.UUID defaultUUID
           
(package private)  org.apache.derby.catalog.UUID tableUUID
           
 
Fields inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
COLUMN_LIST, CONGLOMERATE_LIST, CONSTRAINT_LIST, TRIGGER_LIST
 
Fields inherited from interface org.apache.derby.catalog.Dependable
ALIAS, COLUMNS_IN_TABLE, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PREPARED_STATEMENT, SCHEMA, STORED_PREPARED_STATEMENT, TABLE, TRIGGER, VIEW
 
Constructor Summary
DefaultDescriptor(DataDictionary dataDictionary, org.apache.derby.catalog.UUID defaultUUID, org.apache.derby.catalog.UUID tableUUID, int columnNumber)
          Constructor for a DefaultDescriptor
 
Method Summary
 java.lang.String getClassType()
          Get the provider's type.
 int getColumnNumber()
          Get the column number of the column.
 org.apache.derby.catalog.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.
 org.apache.derby.catalog.UUID getObjectID()
          Get the provider's UUID
 java.lang.String getObjectName()
          Return the name of this Provider.
 org.apache.derby.catalog.UUID getTableUUID()
          Get the UUID of the table.
 org.apache.derby.catalog.UUID getUUID()
          Get the UUID of the default.
 boolean isValid()
          Check that all of the dependent's dependencies are valid.
 void makeInvalid(int action, org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
          Mark the dependent as invalid (due to at least one of its dependencies being invalid).
 void makeValid(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
          Attempt to revalidate the dependent.
 void prepareToInvalidate(org.apache.derby.iapi.sql.depend.Provider p, int action, org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
          Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).
 void setDefaultUUID(org.apache.derby.catalog.UUID defaultUUID)
          Set the UUID of the default.
 java.lang.String toString()
          Convert the DefaultDescriptor to a String.
 
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.derby.catalog.Dependable
isPersistent
 

Field Detail

columnNumber

int columnNumber
public interface to this class
  1. public void setDefaultUUID(UUID defaultUUID);
  2. public UUID getTableUUID();


defaultUUID

org.apache.derby.catalog.UUID defaultUUID

tableUUID

org.apache.derby.catalog.UUID tableUUID
Constructor Detail

DefaultDescriptor

public DefaultDescriptor(DataDictionary dataDictionary,
                         org.apache.derby.catalog.UUID defaultUUID,
                         org.apache.derby.catalog.UUID tableUUID,
                         int columnNumber)
Constructor for a DefaultDescriptor

Method Detail

getUUID

public org.apache.derby.catalog.UUID getUUID()
Get the UUID of the default.

Specified by:
getUUID in interface UniqueTupleDescriptor

setDefaultUUID

public void setDefaultUUID(org.apache.derby.catalog.UUID defaultUUID)
Set the UUID of the default.


getTableUUID

public org.apache.derby.catalog.UUID getTableUUID()
Get the UUID of the table.


getColumnNumber

public int getColumnNumber()
Get the column number of the column.


toString

public java.lang.String toString()
Convert the DefaultDescriptor to a String.


getDependableFinder

public org.apache.derby.catalog.DependableFinder getDependableFinder()
Description copied from interface: org.apache.derby.catalog.Dependable
Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.

Specified by:
getDependableFinder in interface org.apache.derby.catalog.Dependable

getObjectName

public java.lang.String getObjectName()
Return the name of this Provider. (Useful for errors.)

Specified by:
getObjectName in interface org.apache.derby.catalog.Dependable

getObjectID

public org.apache.derby.catalog.UUID getObjectID()
Get the provider's UUID

Specified by:
getObjectID in interface org.apache.derby.catalog.Dependable

getClassType

public java.lang.String getClassType()
Get the provider's type.

Specified by:
getClassType in interface org.apache.derby.catalog.Dependable

isValid

public boolean isValid()
Check that all of the dependent's dependencies are valid.

Specified by:
isValid in interface org.apache.derby.iapi.sql.depend.Dependent

prepareToInvalidate

public void prepareToInvalidate(org.apache.derby.iapi.sql.depend.Provider p,
                                int action,
                                org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
                         throws org.apache.derby.iapi.error.StandardException
Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).

Specified by:
prepareToInvalidate in interface org.apache.derby.iapi.sql.depend.Dependent

makeInvalid

public void makeInvalid(int action,
                        org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
                 throws org.apache.derby.iapi.error.StandardException
Mark the dependent as invalid (due to at least one of its dependencies being invalid). Always an error for a constraint -- should never have gotten here.

Specified by:
makeInvalid in interface org.apache.derby.iapi.sql.depend.Dependent

makeValid

public void makeValid(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
Attempt to revalidate the dependent. Meaningless for defaults.

Specified by:
makeValid in interface org.apache.derby.iapi.sql.depend.Dependent