Class MySQLDatabase.ANSIvarcharBin

  extended by javatools.database.SQLType
      extended by javatools.database.MySQLDatabase.ANSIvarcharBin
Enclosing class:

public static class MySQLDatabase.ANSIvarcharBin
extends SQLType

a VARCHAR BINARY type, making sure we are case-sensitive in varchar fields (currently we assume case-sensitive collation is used by default, however, the method 'enforceCaseSensitivity' can replace the normal VARCHAR representation by this one, so if the database collation is not case-sensitive case-sensitive applications can use this sqltype on demand)

Nested Class Summary
Nested classes/interfaces inherited from class javatools.database.SQLType
SQLType.ANSIBigint, SQLType.ANSIblob, SQLType.ANSIboolean, SQLType.ANSIchar, SQLType.ANSIfloat, SQLType.ANSIinteger, SQLType.ANSIsmallint, SQLType.ANSItext, SQLType.ANSItimestamp, SQLType.ANSIvarchar
Field Summary
Fields inherited from class javatools.database.SQLType
ansibigint, ansiblob, ansiboolean, ansichar, ansifloat, ansiinteger, ansismallint, ansitext, ansitimestamp, ansivarchar
Constructor Summary
MySQLDatabase.ANSIvarcharBin(int size)
Method Summary
 java.lang.String format(java.lang.Object o)
          Formats an object to a valid SQL literal of the given type
 java.lang.String toString()
Methods inherited from class javatools.database.SQLType
getScale, getTypeCode, main
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public MySQLDatabase.ANSIvarcharBin(int size)


public MySQLDatabase.ANSIvarcharBin()
Method Detail


public java.lang.String format(java.lang.Object o)
Description copied from class: SQLType
Formats an object to a valid SQL literal of the given type

Specified by:
format in class SQLType


public java.lang.String toString()
toString in class java.lang.Object