KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
25  * This class defines a TriggerSemantic that is the semantic rule for a trigger.
26  *
27  * @author <a HREF="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
28  * @version 1.0
29  */

30 public class TriggerSemantic extends AbstractSemantic
31 {
32   private String JavaDoc triggerName;
33   private String JavaDoc onTableOrView;
34
35   /**
36    * Creates a new <code>TriggerSemantic</code> object
37    *
38    * @param triggerName the name of the trigger
39    * @param onTableOrView table or view accessing the trigger
40    */

41   public TriggerSemantic(String JavaDoc triggerName, String JavaDoc onTableOrView)
42   {
43     this.triggerName = triggerName;
44     this.onTableOrView = onTableOrView;
45   }
46
47   /**
48    * Returns the onTableOrView value.
49    *
50    * @return Returns the onTableOrView.
51    */

52   public String JavaDoc getOnTableOrView()
53   {
54     return onTableOrView;
55   }
56
57   /**
58    * Returns the triggerName value.
59    *
60    * @return Returns the triggerName.
61    */

62   public String JavaDoc getTriggerName()
63   {
64     return triggerName;
65   }
66
67 }
68
Popular Tags