/** * Some dialects support an alternative means to <tt>SELECT FOR UPDATE</tt>, * whereby a "lock hint" is appends to the table name in the from clause. * <p/> * contributed by <a href="http://sourceforge.net/users/heschulz">Helge Schulz</a> * * @param mode The lock mode to apply * @param tableName The name of the table to which to apply the lock hint. * @return The table with any required lock hints. * @deprecated use {@code appendLockHint(LockOptions,String)} instead */ @Deprecated public String appendLockHint(LockMode mode, String tableName) { return appendLockHint( new LockOptions( mode ), tableName ); } /**
.append( dialect.appendLockHint( lockOptions, tableName ) );
final Dialect dialect = getSessionFactory().getJdbcServices().getJdbcEnvironment().getDialect(); if ( getQueryBuildingParameters().getLockOptions() != null ) { fromTableFragment = dialect.appendLockHint( getQueryBuildingParameters().getLockOptions(), outerJoinLoadable.fromTableFragment( rootAlias ) fromTableFragment = dialect.appendLockHint( getQueryBuildingParameters().getLockMode(), outerJoinLoadable.fromTableFragment( rootAlias )
" from " + dialect.appendLockHint( LockMode.PESSIMISTIC_WRITE, tableNameText ) + dialect.getForUpdateString();
getDialect().appendLockHint( lockOptions, persister.fromTableFragment( alias ) ) + persister.fromJoinFragment( alias, true, true )
valueColumnName + " from " + jdbcEnvironment.getDialect().appendLockHint( LockMode.PESSIMISTIC_WRITE, tableName ) + " where " + segmentColumnName + " = '" + segmentName + "'" + jdbcEnvironment.getDialect().getForUpdateString();
@Override public String appendLockHint(LockOptions lockOptions, String tableName) { return delegate.appendLockHint(lockOptions, tableName); }
@Override public String appendLockHint(LockOptions lockOptions, String tableName) { return delegate.appendLockHint(lockOptions, tableName); }
@Override public String appendLockHint(LockOptions lockOptions, String tableName) { return delegate.appendLockHint(lockOptions, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }
@Override @Deprecated public String appendLockHint(LockMode mode, String tableName) { return delegate.appendLockHint(mode, tableName); }