org.hibernate.sql.CaseFragment Java Examples
The following examples show how to use
org.hibernate.sql.CaseFragment.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JoinedSubclassEntityPersister.java From lams with GNU General Public License v2.0 | 5 votes |
private CaseFragment discriminatorFragment(String alias) { CaseFragment cases = getFactory().getDialect().createCaseFragment(); for ( int i = 0; i < discriminatorValues.length; i++ ) { cases.addWhenColumnNotNull( generateTableAlias( alias, notNullColumnTableNumbers[i] ), notNullColumnNames[i], discriminatorValues[i] ); } return cases; }
Example #2
Source File: JoinedSubclassEntityPersister.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
private CaseFragment discriminatorFragment(String alias) { CaseFragment cases = getFactory().getDialect().createCaseFragment(); for ( int i=0; i<discriminatorValues.length; i++ ) { cases.addWhenColumnNotNull( generateTableAlias( alias, notNullColumnTableNumbers[i] ), notNullColumnNames[i], discriminatorValues[i] ); } return cases; }
Example #3
Source File: DelegatingDialect.java From keycloak with Apache License 2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return getInstance().createCaseFragment(); }
Example #4
Source File: GemFireXDDialectBase.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DerbyCaseFragment(); }
Example #5
Source File: Oracle9iDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public CaseFragment createCaseFragment() { // Oracle did add support for ANSI CASE statements in 9i return new ANSICaseFragment(); }
Example #6
Source File: MckoiDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public CaseFragment createCaseFragment() { return new MckoiCaseFragment(); }
Example #7
Source File: RDMSOS2200Dialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #8
Source File: OracleDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #9
Source File: SAPDBDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #10
Source File: DerbyDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
/** * Return the case statement modified for Cloudscape. */ public CaseFragment createCaseFragment() { return new DerbyCaseFragment(); }
Example #11
Source File: GemFireXDDialectBase.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DerbyCaseFragment(); }
Example #12
Source File: Oracle9iDialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { // Oracle did add support for ANSI CASE statements in 9i return new ANSICaseFragment(); }
Example #13
Source File: MckoiDialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new MckoiCaseFragment(); }
Example #14
Source File: RDMSOS2200Dialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #15
Source File: OracleDialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #16
Source File: SAPDBDialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #17
Source File: DerbyDialect.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public CaseFragment createCaseFragment() { return new DerbyCaseFragment(); }
Example #18
Source File: Dialect.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Create a {@link org.hibernate.sql.CaseFragment} strategy responsible * for handling this dialect's variations in how CASE statements are * handled. * * @return This dialect's {@link org.hibernate.sql.CaseFragment} strategy. */ public CaseFragment createCaseFragment() { return new ANSICaseFragment(); }
Example #19
Source File: Oracle8iDialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 2 votes |
/** * Map case support to the Oracle DECODE function. Oracle did not * add support for CASE until 9i. * * @return The oracle CASE -> DECODE fragment */ public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }
Example #20
Source File: Dialect.java From cacheonix-core with GNU Lesser General Public License v2.1 | 2 votes |
/** * Create a {@link org.hibernate.sql.CaseFragment} strategy responsible * for handling this dialect's variations in how CASE statements are * handled. * * @return This dialect's {@link org.hibernate.sql.CaseFragment} strategy. */ public CaseFragment createCaseFragment() { return new ANSICaseFragment(); }
Example #21
Source File: Oracle8iDialect.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Map case support to the Oracle DECODE function. Oracle did not * add support for CASE until 9i. * <p/> * {@inheritDoc} */ @Override public CaseFragment createCaseFragment() { return new DecodeCaseFragment(); }