KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > requests > RequestRegExp


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
4  * Copyright (C) 2005 Continuent, Inc.
5  * Contact: sequoia@continuent.org
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  * Initial developer(s): Emmanuel Cecchet.
20  * Contributor(s): ______________________.
21  */

22
23 package org.continuent.sequoia.controller.requests;
24
25 import java.util.regex.Pattern JavaDoc;
26
27 /**
28  * This class defines the interface for request regular expressions.
29  *
30  * @author <a HREF="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
31  * @version 1.0
32  */

33 public interface RequestRegExp
34 {
35
36   /**
37    * Pattern used to determine if a SQL statement is an AlterRequest
38    *
39    * @return Returns the ALTER_REQUEST_PATTERN.
40    */

41   Pattern JavaDoc getAlterRequestPattern();
42
43   /**
44    * Pattern used to determine if a SQL statement is a CreateRequest
45    *
46    * @return Returns the CREATE_REQUEST_PATTERN.
47    */

48   Pattern JavaDoc getCreateRequestPattern();
49
50   /**
51    * Pattern used to determine if a SQL statement is a DeleteRequest
52    *
53    * @return Returns the DELETE_REQUEST_PATTERN.
54    */

55   Pattern JavaDoc getDeleteRequestPattern();
56
57   /**
58    * Pattern used to determine if a SQL statement is a DropRequest
59    *
60    * @return Returns the DROP_REQUEST_PATTERN.
61    */

62   Pattern JavaDoc getDropRequestPattern();
63
64   /**
65    * Pattern used to determine if a SQL statement is a InsertRequest
66    *
67    * @return Returns the INSERT_REQUEST_PATTERN.
68    */

69   Pattern JavaDoc getInsertQueryPattern();
70
71   /**
72    * Pattern used to determine if a SQL statement is a SELECT ... FOR UPDATE
73    * query.
74    *
75    * @return Returns the SELECT_FOR_UPDATE_PATTERN.
76    */

77   Pattern JavaDoc getSelectForUpdatePattern();
78
79   /**
80    * Pattern used to determine if a SQL statement is a SelectRequest
81    *
82    * @return Returns the SELECT_REQUEST_PATTERN.
83    */

84   Pattern JavaDoc getSelectRequestPattern();
85
86   /**
87    * Pattern used to determine if a SQL statement is a StoredProcedure
88    *
89    * @return Returns the STORED_PROCEDURE_PATTERN.
90    */

91   Pattern JavaDoc getStoredProcedurePattern();
92
93   /**
94    * Pattern used to determine if a SQL statement is a UnknownReadRequest
95    *
96    * @return Returns the UNKNOWN_READ_REQUEST_PATTERN.
97    */

98   Pattern JavaDoc getUnknownReadRequestPattern();
99
100   /**
101    * Pattern used to determine if a SQL statement is a UnknownReadRequest
102    *
103    * @return Returns the UNKNOWN_WRITE_REQUEST_PATTERN.
104    */

105   Pattern JavaDoc getUnknownWriteRequestPattern();
106
107   /**
108    * Pattern used to determine if a SQL statement is a UpdateRequest
109    *
110    * @return Returns the UPDATE_REQUEST_PATTERN.
111    */

112   Pattern JavaDoc getUpdateRequestPattern();
113
114   /**
115    * Pattern used to determine if a SQL statement is a request that needs to be
116    * executed with statementExecute
117    *
118    * @return Returns the STATEMENT_EXECUTE_REQUEST_PATTERN.
119    */

120   Pattern JavaDoc getStatementExecuteRequestPattern();
121
122   /**
123    * Pattern used to determine if a SQL statement is not authorized to execute
124    * on the cluster.
125    *
126    * @return Returns the STATEMENT_EXECUTE_REQUEST_PATTERN.
127    */

128   Pattern JavaDoc getUnauthorizedRequestsPattern();
129
130 }
Popular Tags