Java Code Examples for org.hibernate.internal.util.StringHelper#generateAlias()
The following examples show how to use
org.hibernate.internal.util.StringHelper#generateAlias() .
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: ReactiveDynamicBatchingCollectionInitializer.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 6 votes |
public ReactiveDynamicBatchingCollectionInitializer( QueryableCollection collectionPersister, SessionFactoryImplementor factory, LoadQueryInfluencers influencers) { super( collectionPersister, factory, influencers ); JoinWalker walker = buildJoinWalker( collectionPersister, factory, influencers ); initFromWalker( walker ); this.sqlTemplate = walker.getSQLString(); this.alias = StringHelper.generateAlias( collectionPersister.getRole(), 0 ); postInstantiate(); if ( LOG.isDebugEnabled() ) { LOG.debugf( "SQL-template for dynamic collection [%s] batch-fetching : %s", collectionPersister.getRole(), sqlTemplate ); } }
Example 2
Source File: DynamicBatchingCollectionInitializerBuilder.java From lams with GNU General Public License v2.0 | 6 votes |
public DynamicBatchingCollectionLoader( QueryableCollection collectionPersister, SessionFactoryImplementor factory, LoadQueryInfluencers influencers) { super( collectionPersister, factory, influencers ); JoinWalker walker = buildJoinWalker( collectionPersister, factory, influencers ); initFromWalker( walker ); this.sqlTemplate = walker.getSQLString(); this.alias = StringHelper.generateAlias( collectionPersister.getRole(), 0 ); postInstantiate(); if ( LOG.isDebugEnabled() ) { LOG.debugf( "SQL-template for dynamic collection [%s] batch-fetching : %s", collectionPersister.getRole(), sqlTemplate ); } }
Example 3
Source File: JoinWalker.java From lams with GNU General Public License v2.0 | 4 votes |
protected String generateTableAlias(final int n, final PropertyPath path, final Joinable joinable) { return StringHelper.generateAlias( joinable.getName(), n ); }
Example 4
Source File: JoinWalker.java From lams with GNU General Public License v2.0 | 4 votes |
protected String generateRootAlias(final String description) { return StringHelper.generateAlias( description, 0 ); }
Example 5
Source File: CriteriaQueryTranslator.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public String generateSQLAlias() { int aliasCount = 0; return StringHelper.generateAlias( Criteria.ROOT_ALIAS, aliasCount ) + '_'; }
Example 6
Source File: AliasResolutionContextImpl.java From lams with GNU General Public License v2.0 | 4 votes |
private String createTableAlias(String name) { return StringHelper.generateAlias( name, currentTableAliasSuffix++ ); }
Example 7
Source File: AbstractEntityPersister.java From lams with GNU General Public License v2.0 | 4 votes |
private String getRootAlias() { return StringHelper.generateAlias( getEntityName() ); }
Example 8
Source File: AliasGenerator.java From lams with GNU General Public License v2.0 | 4 votes |
public String createName(String name) { return StringHelper.generateAlias( name, nextCount() ); }
Example 9
Source File: QueryTranslatorImpl.java From lams with GNU General Public License v2.0 | 4 votes |
String createNameFor(String type) { return StringHelper.generateAlias( type, nextCount() ); }
Example 10
Source File: QueryTranslatorImpl.java From lams with GNU General Public License v2.0 | 4 votes |
String createNameForCollection(String role) { return StringHelper.generateAlias( role, nextCount() ); }