KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > semantic > ViewSemantic


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2006 Continuent, Inc.
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Initial developer(s): Emmanuel Cecchet.
19  * Contributor(s): ______________________.
20  */

21
22 package org.continuent.sequoia.controller.semantic;
23
24 import java.util.SortedSet JavaDoc;
25
26 /**
27  * This class defines a ViewSemantic
28  *
29  * @author <a HREF="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
30  * @version 1.0
31  */

32 public class ViewSemantic
33 {
34   private String JavaDoc viewName;
35   private SortedSet JavaDoc readSet;
36   private SortedSet JavaDoc writeSet;
37
38   /**
39    * Creates a new <code>ViewSemantic</code> object
40    *
41    * @param viewName the name of the view
42    * @param readSet tables accessed in read
43    * @param writeSet tables accessed in write
44    */

45   public ViewSemantic(String JavaDoc viewName, SortedSet JavaDoc readSet, SortedSet JavaDoc writeSet)
46   {
47     this.viewName = viewName;
48     this.readSet = readSet;
49     this.writeSet = writeSet;
50   }
51
52   /**
53    * Returns the readSet value.
54    *
55    * @return Returns the readSet.
56    */

57   public SortedSet JavaDoc getReadSet()
58   {
59     return readSet;
60   }
61
62   /**
63    * Returns the viewName value.
64    *
65    * @return Returns the viewName.
66    */

67   public String JavaDoc getViewName()
68   {
69     return viewName;
70   }
71
72   /**
73    * Returns the writeSet value.
74    *
75    * @return Returns the writeSet.
76    */

77   public SortedSet JavaDoc getWriteSet()
78   {
79     return writeSet;
80   }
81
82 }
83
Popular Tags