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

Quick Search    Search Deep

Source code: org/apache/derby/iapi/sql/depend/Dependency.java


1   /*
2   
3      Derby - Class org.apache.derby.iapi.sql.depend.Dependency
4   
5      Copyright 1997, 2004 The Apache Software Foundation or its licensors, as applicable.
6   
7      Licensed under the Apache License, Version 2.0 (the "License");
8      you may not use this file except in compliance with the License.
9      You may obtain a copy of the License at
10  
11        http://www.apache.org/licenses/LICENSE-2.0
12  
13     Unless required by applicable law or agreed to in writing, software
14     distributed under the License is distributed on an "AS IS" BASIS,
15     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16     See the License for the specific language governing permissions and
17     limitations under the License.
18  
19   */
20  
21  package org.apache.derby.iapi.sql.depend;
22  
23  import org.apache.derby.iapi.error.StandardException;
24  
25  import org.apache.derby.catalog.UUID;
26  
27  /**
28    A dependency represents a reliance of the dependent on
29    the provider for some information the dependent contains
30    or uses.  In Language, the usual case is a prepared statement
31    using information about a schema object in its executable form.
32    It needs to be notified if the schema object changes, so that
33    it can recompile against the new information.
34   */
35  public interface Dependency {
36  
37    /**
38      return the provider's key for this dependency.
39      @return the provider's key for this dependency
40     */
41    UUID getProviderKey();
42  
43    /**
44      return the provider for this dependency.
45      @return the provider for this dependency
46     */
47    Provider getProvider();
48  
49    /**
50      return the dependent for this dependency.
51      @return the dependent for this dependency
52     */
53    Dependent getDependent();
54  
55  }