Home » db-derby-10.5.3.0 » org.apache.derby.iapi.sql.dictionary » [javadoc | source]
org.apache.derby.iapi.sql.dictionary
public final class: ViewDescriptor [javadoc | source]
java.lang.Object
   org.apache.derby.iapi.sql.dictionary.TupleDescriptor
      org.apache.derby.iapi.sql.dictionary.ViewDescriptor

All Implemented Interfaces:
    Dependent, Provider, UniqueTupleDescriptor

This is the implementation of ViewDescriptor. Users of View descriptors should only use the following methods:
  1. getUUID
  2. setUUID
  3. getViewText
  4. setViewName
  5. getCheckOptionType
  6. getCompSchemaId
Field Summary
public static final  int NO_CHECK_OPTION     
Constructor:
 public ViewDescriptor(DataDictionary dataDictionary,
    UUID viewID,
    String viewName,
    String viewText,
    int checkOption,
    UUID compSchemaId) 
    Constructor for a ViewDescriptor.
    Parameters:
    dataDictionary - The data dictionary that this descriptor lives in
    viewID - The UUID for the view
    viewName - The name of the view
    viewText - The text of the query expression from the view definition.
    checkOption - int check option type
    compSchemaId - the schemaid to compile in
Method from org.apache.derby.iapi.sql.dictionary.ViewDescriptor Summary:
drop,   getCheckOptionType,   getClassType,   getCompSchemaId,   getDependableFinder,   getObjectID,   getObjectName,   getUUID,   getViewText,   isValid,   makeInvalid,   prepareToInvalidate,   setUUID,   setViewName,   toString
Methods from org.apache.derby.iapi.sql.dictionary.TupleDescriptor:
getColumnDependableFinder,   getDataDictionary,   getDependableFinder,   getDescriptorName,   getDescriptorType,   isPersistent,   setDataDictionary
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.derby.iapi.sql.dictionary.ViewDescriptor Detail:
 public  void drop(LanguageConnectionContext lcc,
    SchemaDescriptor sd,
    TableDescriptor td) throws StandardException 
 public int getCheckOptionType() 
    Gets an identifier telling what type of check option is on this view.
 public String getClassType() 
    Get the provider's type.
 public UUID getCompSchemaId() 
    Get the compilation type schema id when this view was first bound.
 public DependableFinder getDependableFinder() 
 public UUID getObjectID() 
    Get the provider's UUID
 public String getObjectName() 
    Return the name of this Provider. (Useful for errors.)
 public UUID getUUID() 
    Gets the UUID of the view.
 public String getViewText() 
    Gets the text of the view definition.
 public boolean isValid() 
    Check that all of the dependent's dependencies are valid.
 public  void makeInvalid(int action,
    LanguageConnectionContext lcc) throws StandardException 
    Mark the dependent as invalid (due to at least one of its dependencies being invalid).
 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).
 public  void setUUID(UUID uuid) 
    Sets the UUID of the view.
 public  void setViewName(String name) 
    Sets the name of the view.
 public String toString() 
    Prints the contents of the ViewDescriptor