this(CollectionHelper.EMPTY_MAP, persister, suffix);
Calculate and cache select-clause suffixes.parammap this.suffix = suffix; this.userProvidedAliases = userProvidedAliases; String[] keyColumnsCandidates = getUserProvidedAliases( persister.getIdentifierPropertyName(), (String[]) null ); if (keyColumnsCandidates==null) { suffixedKeyColumns = getUserProvidedAliases( "id", getIdentifierAliases(persister, suffix) ); } else { suffixedKeyColumns = keyColumnsCandidates; } intern(suffixedKeyColumns); suffixedPropertyColumns = getSuffixedPropertyAliases(persister); suffixedDiscriminatorColumn = getUserProvidedAlias( "class", getDiscriminatorAlias(persister, suffix) ); if ( persister.isVersioned() ) { suffixedVersionColumn = suffixedPropertyColumns[ persister.getVersionProperty() ]; } else { suffixedVersionColumn = null; } rowIdAlias = Loadable.ROWID_ALIAS + suffix; // TODO: not visible to the user!
this.suffix = suffix; this.userProvidedAliases = userProvidedAliases; String[] keyColumnsCandidates = getUserProvidedAliases( persister.getIdentifierPropertyName(), (String[]) null ); if (keyColumnsCandidates==null) { suffixedKeyColumns = getUserProvidedAliases( "id", getIdentifierAliases(persister, suffix) ); } else { suffixedKeyColumns = keyColumnsCandidates; } intern(suffixedKeyColumns); suffixedPropertyColumns = getSuffixedPropertyAliases(persister); suffixedDiscriminatorColumn = getUserProvidedAlias( "class", getDiscriminatorAlias(persister, suffix) ); if ( persister.isVersioned() ) { suffixedVersionColumn = suffixedPropertyColumns[ persister.getVersionProperty() ]; } else { suffixedVersionColumn = null; } rowIdAlias = Loadable.ROWID_ALIAS + suffix; // TODO: not visible to the user!
return persister.getDiscriminatorAlias(suffix);
return persister.getIdentifierAliases(suffix);
return persister.getPropertyAliases(suffix, j);
return rowIdAlias;
return suffixedDiscriminatorColumn;
return suffixedKeyColumns;
return suffixedPropertyColumns;
int size = persister.getPropertyNames().length; String[][] suffixedPropertyAliases = new String[size][]; for ( int j = 0; j < size; j++ ) { suffixedPropertyAliases[j] = getUserProvidedAliases( persister.getPropertyNames()[j], getPropertyAliases(persister, j) ); intern( suffixedPropertyAliases[j] ); } return suffixedPropertyAliases;
return suffixedVersionColumn;
String[] columns = (String[]) userProvidedAliases.get(propertyPath); if (columns==null) { return defaultAlias; } else { return columns[0]; }
String[] result = (String[]) userProvidedAliases.get(propertyPath); if (result==null) { return defaultAliases; } else { return result; }
for (int i=0; i<strings.length; i++ ) { strings[i] = strings[i].intern(); }