FileDocCategorySizeDatePackage
DerbyDialect.javaAPI DocHibernate 3.2.56654Wed Dec 13 11:37:12 GMT 2006org.hibernate.dialect

DerbyDialect

public class DerbyDialect extends DB2Dialect
author
Simon Johnston Hibernate Dialect for Cloudscape 10 - aka Derby. This implements both an override for the identity column generator as well as for the case statement issue documented at: http://www.jroller.com/comments/kenlars99/Weblog/cloudscape_soon_to_be_derby

Fields Summary
Constructors Summary
public DerbyDialect()

		super();
		registerFunction( "concat", new VarArgsSQLFunction( Hibernate.STRING, "(","||",")" ) );
		registerFunction( "trim", new DerbyTrimFunctionEmulation() );
	
Methods Summary
public org.hibernate.sql.CaseFragmentcreateCaseFragment()
Return the case statement modified for Cloudscape.

		return new DerbyCaseFragment();
	
public booleandropConstraints()

	      return true;
	
public java.lang.StringgetIdentityColumnString()
This is different in Cloudscape to DB2.

		return "not null generated always as identity"; //$NON-NLS-1
	
public java.lang.ClassgetNativeIdentifierGeneratorClass()

		return TableHiLoGenerator.class;
	
public java.lang.StringgetQuerySequencesString()

	   return null ;
	
public booleansupportsLimit()

		return false;
	
public booleansupportsLimitOffset()

		return false;
	
public booleansupportsLobValueChangePropogation()

		return false;
	
public booleansupportsSequences()

		return false;