com.googlecode.jdbw.server.h2
Class H2SQLDialect

java.lang.Object
  extended by com.googlecode.jdbw.server.DefaultSQLDialect
      extended by com.googlecode.jdbw.server.h2.H2SQLDialect
All Implemented Interfaces:
SQLDialect

public class H2SQLDialect
extends DefaultSQLDialect

Author:
Martin Berglund

Constructor Summary
H2SQLDialect()
           
 
Method Summary
 String escapeIdentifier(String identifier)
          Takes the name of a database object (table, column, etc) and returns the name wrapped in characters that marks it's an identifier.
 String[] getCreateTableStatement(String schemaName, String name, List<Column> columns, List<Index> indexes)
           
 
Methods inherited from class com.googlecode.jdbw.server.DefaultSQLDialect
createExampleObject, escapeString, formatBinary, formatBoolean, formatDate, formatDate, formatDateTime, formatDatetime, formatDecimal, formatFloatingPoint, formatInteger, formatString, formatTime, formatTime, formatValue, getDropTableStatement, getSingleLineCommentPrefix, isBigDecimal, isBinary, isBoolean, isCompatible, isDate, isDatetime, isFloatingPoint, isInteger, isString, isTime, safeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2SQLDialect

public H2SQLDialect()
Method Detail

escapeIdentifier

public String escapeIdentifier(String identifier)
Description copied from interface: SQLDialect
Takes the name of a database object (table, column, etc) and returns the name wrapped in characters that marks it's an identifier. Use this if, for example, your column names may be colliding with keywords on the server.

Specified by:
escapeIdentifier in interface SQLDialect
Overrides:
escapeIdentifier in class DefaultSQLDialect
Parameters:
identifier - string to wrapp
Returns:
The input string wrapped as an identifier

getCreateTableStatement

public String[] getCreateTableStatement(String schemaName,
                                        String name,
                                        List<Column> columns,
                                        List<Index> indexes)
Specified by:
getCreateTableStatement in interface SQLDialect
Overrides:
getCreateTableStatement in class DefaultSQLDialect


Copyright © 2012. All Rights Reserved.