Code example for AnsiTrimFunction

0
 
	public DerbyDialect() { 
		super(); 
		LOG.deprecatedDerbyDialect(); 
		registerFunction( "concat", new DerbyConcatFunction() ); 
		registerFunction( "trim", new AnsiTrimFunction() ); 
        registerColumnType( Types.BLOB, "blob" ); 
        determineDriverVersion(); 
 
        if ( driverVersionMajor > 10 || ( driverVersionMajor == 10 && driverVersionMinor >= 7 ) ) { 
            registerColumnType( Types.BOOLEAN, "boolean" ); 
        } 
	} 
 
	@SuppressWarnings({ "UnnecessaryUnboxing" }) 
	private void determineDriverVersion() { 
		try { 
			// locate the derby sysinfo class and query its version info 
			final Class sysinfoClass = ReflectHelper.classForName( "org.apache.derby.tools.sysinfo", this.getClass() ); 
			final Method majorVersionGetter = sysinfoClass.getMethod( "getMajorVersion", ReflectHelper.NO_PARAM_SIGNATURE ); 
Contextual code suggestions in your IDE  Get Codota for Java