com.googlecode.jdbw.server.sybase
Class SybaseASESQLDialect

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

public class SybaseASESQLDialect
extends DefaultSQLDialect

Sybase SQL dialect specific traits

Author:
Martin Berglund

Constructor Summary
SybaseASESQLDialect()
           
 
Method Summary
 String escapeString(String string)
          Returns a string with all special characters replaced with their proper escape sequences.
protected  String formatBinary(Object value)
           
 String[] getCreateTableStatement(String schemaName, String name, List<Column> columns, List<Index> indexes)
           
 String getSingleLineCommentPrefix()
           
 
Methods inherited from class com.googlecode.jdbw.server.DefaultSQLDialect
createExampleObject, escapeIdentifier, formatBoolean, formatDate, formatDate, formatDateTime, formatDatetime, formatDecimal, formatFloatingPoint, formatInteger, formatString, formatTime, formatTime, formatValue, getDropTableStatement, 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

SybaseASESQLDialect

public SybaseASESQLDialect()
Method Detail

escapeString

public String escapeString(String string)
Description copied from interface: SQLDialect
Returns a string with all special characters replaced with their proper escape sequences. You don't need to do this for strings passed in as parameters, since the JDBC driver will do it for you.

Specified by:
escapeString in interface SQLDialect
Overrides:
escapeString in class DefaultSQLDialect
Parameters:
string - String to convert
Returns:
The original string with special characters escaped

getSingleLineCommentPrefix

public String getSingleLineCommentPrefix()
Specified by:
getSingleLineCommentPrefix in interface SQLDialect
Overrides:
getSingleLineCommentPrefix in class DefaultSQLDialect
Returns:
What to put in front of a line to comment it out

formatBinary

protected String formatBinary(Object value)
Overrides:
formatBinary in class DefaultSQLDialect

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.