FileDocCategorySizeDatePackage
JDataStoreDialect.javaAPI DocHibernate 3.2.51926Wed Jun 08 02:06:50 BST 2005org.hibernate.dialect

JDataStoreDialect

public class JDataStoreDialect extends Dialect
A Dialect for JDataStore.
author
Vishy Kasar

Fields Summary
Constructors Summary
public JDataStoreDialect()
Creates new JDataStoreDialect

		super();

		registerColumnType( Types.BIT, "tinyint" );
		registerColumnType( Types.BIGINT, "bigint" );
		registerColumnType( Types.SMALLINT, "smallint" );
		registerColumnType( Types.TINYINT, "tinyint" );
		registerColumnType( Types.INTEGER, "integer" );
		registerColumnType( Types.CHAR, "char(1)" );
		registerColumnType( Types.VARCHAR, "varchar($l)" );
		registerColumnType( Types.FLOAT, "float" );
		registerColumnType( Types.DOUBLE, "double" );
		registerColumnType( Types.DATE, "date" );
		registerColumnType( Types.TIME, "time" );
		registerColumnType( Types.TIMESTAMP, "timestamp" );
		registerColumnType( Types.VARBINARY, "varbinary($l)" );
		registerColumnType( Types.NUMERIC, "numeric($p, $s)" );

		registerColumnType( Types.BLOB, "varbinary" );
		registerColumnType( Types.CLOB, "varchar" );

		getDefaultProperties().setProperty( Environment.STATEMENT_BATCH_SIZE, DEFAULT_BATCH_SIZE );
	
Methods Summary
public booleandropConstraints()

		return false;
	
public java.lang.StringgetAddColumnString()

		return "add";
	
public java.lang.StringgetCascadeConstraintsString()

		return " cascade";
	
public java.lang.StringgetIdentityColumnString()

		return "autoincrement";
	
public java.lang.StringgetIdentitySelectString()

		return null; // NOT_SUPPORTED_SHOULD_USE_JDBC3_PreparedStatement.getGeneratedKeys_method
	
public java.lang.StringgetNoColumnsInsertString()

		return "default values";
	
public booleansupportsColumnCheck()

		return false;
	
public booleansupportsIdentityColumns()

		return true;
	
public booleansupportsTableCheck()

		return false;