View Javadoc

1   package com.explosion.expfmodules.rdbmsconn.dbom.dialect;
2   
3   import java.sql.DatabaseMetaData;
4   import java.sql.SQLException;
5   import org.apache.log4j.LogManager;
6   import org.apache.log4j.Logger;
7   import com.explosion.expfmodules.rdbmsconn.dbom.DBEntity;
8   import com.explosion.expfmodules.rdbmsconn.dbom.utils.MetadataException;
9   
10  /*
11   * =============================================================================
12   * 
13   * Copyright 2004 Stephen Cowx
14   * 
15   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
16   * use this file except in compliance with the License. You may obtain a copy of
17   * the License at
18   * 
19   * http://www.apache.org/licenses/LICENSE-2.0
20   * 
21   * Unless required by applicable law or agreed to in writing, software
22   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
23   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
24   * License for the specific language governing permissions and limitations under
25   * the License.
26   * 
27   * =============================================================================
28   */
29  /***
30   * A dialect for SQL Server
31   * 
32   * @author Stephen
33   * Created on 24-May-2005
34   */
35  public class SQLServerDialect extends Dialect
36  {
37      private static Logger log = LogManager.getLogger(SQLServerDialect.class);
38      
39      private static String[] escapeMeCharacters = { " ", "\'"};
40      
41      /***
42       * Just returns an unqualified table name.  This is a stop gap until I can reliab;y find out the "owner" of
43       * SQL Server tanbles
44       * @throws MetadataException
45       * @throws SQLException
46       */
47      public String getFullEntityName(DBEntity dbed, DatabaseMetaData meta) throws SQLException, MetadataException
48      {
49          return dbed.getEntityName();
50      }
51  
52  }