org.apache.derby.iapi.sql.dictionary
Class DefaultDescriptor

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

public class DefaultDescriptor
extends TupleDescriptor
implements UniqueTupleDescriptor, Provider, Dependent

This interface is used to get information from a DefaultDescriptor.

Author:
Jerry

Field Summary
(package private)  int columnNumber
          public interface to this class public void setDefaultUUID(UUID defaultUUID); public UUID getTableUUID();
(package private)  UUID defaultUUID
           
(package private)  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, UUID defaultUUID, 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.
 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 provider's UUID
 java.lang.String getObjectName()
          Return the name of this Provider.
 UUID getTableUUID()
          Get the UUID of the table.
 UUID getUUID()
          Get the UUID of the default.
 boolean isValid()
          Check that all of the dependent's dependencies are valid.
 void makeInvalid(int action, LanguageConnectionContext lcc)
          Mark the dependent as invalid (due to at least one of its dependencies being invalid).
 void makeValid(LanguageConnectionContext lcc)
          Attempt to revalidate the dependent.
 void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc)
          Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).
 void setDefaultUUID(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

UUID defaultUUID

tableUUID

UUID tableUUID
Constructor Detail

DefaultDescriptor

public DefaultDescriptor(DataDictionary dataDictionary,
                         UUID defaultUUID,
                         UUID tableUUID,
                         int columnNumber)
Constructor for a DefaultDescriptor

Parameters:
dataDictionary - the DD
defaultUUID - The UUID of the default
tableUUID - The UUID of the table
columnNumber - The column number of the column that the default is for
Method Detail

getUUID

public UUID getUUID()
Get the UUID of the default.

Specified by:
getUUID in interface UniqueTupleDescriptor
Returns:
The UUID of the default.

setDefaultUUID

public void setDefaultUUID(UUID defaultUUID)
Set the UUID of the default.

Parameters:
defaultUUID - The new UUID for the default.
Returns:
Nothing.

getTableUUID

public UUID getTableUUID()
Get the UUID of the table.

Returns:
The UUID of the table.

getColumnNumber

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

Returns:
The column number of the column.

toString

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

Returns:
A String representation of this DefaultDescriptor

getDependableFinder

public DependableFinder getDependableFinder()
Description copied from interface: 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 Dependable
Returns:
the stored form of this provider
See Also:
Dependable.getDependableFinder()

getObjectName

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

Specified by:
getObjectName in interface Dependable
Returns:
String The name of this provider.

getObjectID

public UUID getObjectID()
Get the provider's UUID

Specified by:
getObjectID in interface Dependable
Returns:
The provider's UUID

getClassType

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

Specified by:
getClassType in interface Dependable
Returns:
char The provider's type.

isValid

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

Specified by:
isValid in interface Dependent
Returns:
true if the dependent is currently valid

prepareToInvalidate

public void prepareToInvalidate(Provider p,
                                int action,
                                LanguageConnectionContext lcc)
                         throws StandardException
Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).

Specified by:
prepareToInvalidate in interface Dependent
Parameters:
action - The action causing the invalidation
p - the provider
lcc - The LanguageConnectionContext
Throws:
StandardException - thrown if unable to make it invalid

makeInvalid

public void makeInvalid(int action,
                        LanguageConnectionContext lcc)
                 throws 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 Dependent
Parameters:
action - The action causing the invalidation
lcc - The LanguageConnectionContext
Throws:
StandardException - thrown if called in sanity mode

makeValid

public void makeValid(LanguageConnectionContext lcc)
Attempt to revalidate the dependent. Meaningless for defaults.

Specified by:
makeValid in interface Dependent
Parameters:
lcc - The LanguageConnectionContext

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

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