Hibernate ORM StandardSQLFunction - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM StandardSQLFunction class.

This code example shows how to use the following methods:
 
	public String getAddForeignKeyConstraintString(String constraintName,
			String[] foreignKey, String referencedTable, String[] primaryKey,
			boolean referencesPrimaryKey) {
		throw new UnsupportedOperationException(
				"No add foreign key syntax supported by SQLiteDialect"); 
	} 
 
	public String getAddPrimaryKeyConstraintString(String constraintName) {
		throw new UnsupportedOperationException(
				"No add primary key syntax supported by SQLiteDialect"); 
	} 
 
	public boolean supportsIfExistsBeforeTableName() { 
		return true; 
	} 
 
	public boolean supportsCascadeDelete() { 
		return false; 
	} 
4
CodeRank
This code example shows how to use the following methods:
		registerFunction( "atan2", new StandardSQLFunction( "atan2", StandardBasicTypes.FLOAT ) );
		registerFunction( "mod", new StandardSQLFunction( "mod", StandardBasicTypes.INTEGER ) );
		registerFunction( "nvl", new StandardSQLFunction( "nvl" ) );
		registerFunction( "nvl2", new StandardSQLFunction( "nvl2" ) );
		registerFunction( "power", new StandardSQLFunction( "power", StandardBasicTypes.FLOAT ) );
		registerFunction( "add_months", new StandardSQLFunction( "add_months", StandardBasicTypes.DATE ) );
		registerFunction( "months_between", new StandardSQLFunction( "months_between", StandardBasicTypes.FLOAT ) );
		registerFunction( "next_day", new StandardSQLFunction( "next_day", StandardBasicTypes.DATE ) );
	} 
 
	public String getCurrentTimestampSelectString() {
		return "select sysdate"; 
	} 
 
	public String getCurrentTimestampSQLFunctionName() {
		return "sysdate"; 
	} 
 
	public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException {
		statement.registerOutParameter( col, Types.REF );
4
CodeRank
This code example shows how to use the following methods:
		return false; 
	}*/ 
	 
	public String getForUpdateString() {
		return ""; 
	} 
	 
	public boolean supportsColumnCheck() { 
		return false; 
	} 
 
	public boolean supportsTableCheck() { 
		return false; 
	} 
	 
	public boolean supportsLimitOffset() { 
		return false; 
	} 
 
	public boolean supportsVariableLimit() { 
4
CodeRank