| java.lang.Object org.apache.derby.iapi.sql.dictionary.TupleDescriptor org.apache.derby.iapi.sql.dictionary.ViewDescriptor
ViewDescriptor | final public class ViewDescriptor extends TupleDescriptor implements UniqueTupleDescriptor,Dependent,Provider(Code) | | This is the implementation of ViewDescriptor. Users of View descriptors
should only use the following methods:
- getUUID
- setUUID
- getViewText
- setViewName
- getCheckOptionType
- getCompSchemaId
version: 0.1 author: Jeff Lichtman |
NO_CHECK_OPTION | final public static int NO_CHECK_OPTION(Code) | | |
ViewDescriptor | public ViewDescriptor(DataDictionary dataDictionary, UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId)(Code) | | Constructor for a ViewDescriptor.
Parameters: dataDictionary - The data dictionary that this descriptor lives in Parameters: viewID - The UUID for the view Parameters: viewName - The name of the view Parameters: viewText - The text of the query expression from the view definition. Parameters: checkOption - int check option type Parameters: compSchemaId - the schemaid to compile in |
getCheckOptionType | public int getCheckOptionType()(Code) | | Gets an identifier telling what type of check option
is on this view.
An identifier telling what type of check optionis on the view. |
getClassType | public String getClassType()(Code) | | Get the provider's type.
String The provider's type. |
getCompSchemaId | public UUID getCompSchemaId()(Code) | | Get the compilation type schema id when this view
was first bound.
the schema UUID |
getObjectID | public UUID getObjectID()(Code) | | Get the provider's UUID
String The provider's UUID |
getObjectName | public String getObjectName()(Code) | | Return the name of this Provider. (Useful for errors.)
String The name of this provider. |
getUUID | public UUID getUUID()(Code) | | Gets the UUID of the view.
The UUID of the view. |
getViewText | public String getViewText()(Code) | | Gets the text of the view definition.
A String containing the text of the CREATE VIEWstatement that created the view |
isValid | public boolean isValid()(Code) | | Check that all of the dependent's dependencies are valid.
true if the dependent is currently valid |
makeValid | public void makeValid(LanguageConnectionContext lcc) throws StandardException(Code) | | Attempt to revalidate the dependent. For prepared statements,
this could go through its dependencies and check that they
are up to date; if not, it would recompile the statement.
Any failure during this attempt should throw
StandardException.unableToRevalidate().
exception: StandardException - thrown if unable to make it valid |
prepareToInvalidate | public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException(Code) | | Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid).
Parameters: action - The action causing the invalidation Parameters: p - the provider exception: StandardException - thrown if unable to make it invalid |
setUUID | public void setUUID(UUID uuid)(Code) | | Sets the UUID of the view.
Parameters: uuid - The UUID of the view. |
setViewName | public void setViewName(String name)(Code) | | Sets the name of the view.
Parameters: name - The name of the view. |
toString | public String toString()(Code) | | Prints the contents of the ViewDescriptor
The contents as a String |
|
|