01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.databinding.datagrid.runtime.sql;
20:
21: /**
22: * <p>
23: * Configuration JavaBean used in conjunction with the {@link SQLSupport} class to configure
24: * the way in which SQL statements are created. This abstract class can be implemented by
25: * subclasses to provide varying ways of configuring these properties.
26: * </p>
27: */
28: public abstract class SQLSupportConfig {
29:
30: /**
31: * Set the quote character used to quote strings types when embedded inside of SQL statements.
32: * @param quoteChar the quote character
33: */
34: public abstract void setQuoteChar(String quoteChar);
35:
36: /**
37: * Get the quote character used to wrap string types inside of SQL statements.
38: * @return the quote character
39: */
40: public abstract String getQuoteChar();
41:
42: /**
43: * Set a boolean that enables or disables generating an ESCAPE clause when generating a
44: * LIKE clause into a SQL WHERE filter.
45: * @param supportsLikeEscapeClause boolean to support escaping a LIKE clause
46: */
47: public abstract void setSupportsLikeEscapeClause(
48: boolean supportsLikeEscapeClause);
49:
50: /**
51: * Get a boolean that enables or disables an ESCAPE clause when generating a
52: * LIKE clause in a SQL statement.
53: * @return <code>true</code> if escaping is enabled; <code>false</code> otherwise.
54: */
55: public abstract boolean getSupportsLikeEscapeClause();
56: }
|