@Override public JdbcServices getJdbcServices() { return delegate.getJdbcServices(); }
@Override public JdbcServices getJdbcServices() { return getFactory().getJdbcServices(); }
@Override public boolean mapToMapFromEntity( SessionImplementor session, Map<String, Object> data, Object newObj, Object oldObj) { data.put( propertyData.getName(), newObj ); boolean dbLogicallyDifferent = true; if ( (session.getFactory().getJdbcServices() .getDialect() instanceof Oracle8iDialect) && (newObj instanceof String || oldObj instanceof String) ) { // Don't generate new revision when database replaces empty string with NULL during INSERT or UPDATE statements. dbLogicallyDifferent = !(StringTools.isEmpty( newObj ) && StringTools.isEmpty( oldObj )); } return dbLogicallyDifferent && !areEqual( newObj, oldObj ); }
sessionFactory.getJdbcServices().getDialect(), sessionFactory.getSqlFunctionRegistry() );
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not execute query",
try { session = openSession(); Dialect dialect = sessionFactory().getJdbcServices().getDialect();
/** * Called by subclasses that batch initialize collections */ protected final void loadCollectionSubselect( final SharedSessionContractImplementor session, final Serializable[] ids, final Object[] parameterValues, final Type[] parameterTypes, final Map<String, TypedValue> namedParameters, final Type type) throws HibernateException { final Type[] idTypes = new Type[ids.length]; Arrays.fill( idTypes, type ); try { doQueryAndInitializeNonLazyCollections( session, new QueryParameters( parameterTypes, parameterValues, namedParameters, ids ), true ); } catch (SQLException sqle) { throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not load collection by subselect: " + MessageHelper.collectionInfoString( getCollectionPersisters()[0], ids, getFactory() ), getSQLString() ); } }
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not perform sequential read of results (forward)",
ProcessedWhereClause whereClause) { final Dialect dialect = sessionFactory.getJdbcServices().getJdbcEnvironment().getDialect();
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not load collection element by index",
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not doAfterTransactionCompletion sequential read of results (forward)",
throw getFactory().getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not execute query using iterate",
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not read next row of results",
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not initialize a collection batch: " +
super( factory, walker ); final Dialect dialect = factory.getJdbcServices().getJdbcEnvironment().getDialect(); final UpdateStatement updateStatement = (UpdateStatement) walker.getAST(); final FromElement fromElement = updateStatement.getFromClause().getFromElement();
final Dialect dialect = factory.getJdbcServices().getJdbcEnvironment().getDialect();
/** * Generate the {@code INSERT}-{@code SELECT} statement for holding matching ids. This is the * {@code INSERT} used to populate the bulk-id table with ids matching the restrictions defined in the * original {@code WHERE} clause * * @param tableAlias The table alias to use for the entity * @param whereClause The processed representation for the user-defined {@code WHERE} clause. * * @return The {@code INSERT}-{@code SELECT} for populating the bulk-id table. */ protected String generateIdInsertSelect( String tableAlias, IdTableInfo idTableInfo, ProcessedWhereClause whereClause) { final Dialect dialect = sessionFactory.getJdbcServices().getJdbcEnvironment().getDialect(); final Select select = generateIdSelect( tableAlias, whereClause ); InsertSelect insert = new InsertSelect( dialect ); if ( sessionFactory.getSessionFactoryOptions().isCommentsEnabled() ) { insert.setComment( "insert-select for " + getTargetedQueryable().getEntityName() + " ids" ); } insert.setTableName( idTableInfo.getQualifiedIdTableName() ); insert.setSelect( select ); return insert.toStatementString(); }
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not load an entity batch: " +
throw factory.getJdbcServices().getSqlExceptionHelper().convert( sqle, "could not initialize a collection: " +
final String rootAlias = entityReferenceAliases.getTableAlias(); final OuterJoinLoadable outerJoinLoadable = (OuterJoinLoadable) getRootEntityReturn().getEntityPersister(); final Dialect dialect = getSessionFactory().getJdbcServices().getJdbcEnvironment().getDialect(); if ( getQueryBuildingParameters().getLockOptions() != null ) { fromTableFragment = dialect.appendLockHint(