/* 1034 */ this.selectAlias = this.aliasManager.getAlias(path.getPath(path.size() - 2));
/* 1035 */ SQLUtil.getColumnNamesClause(selectField, this.selectAlias, buf);
/* */ }
/* */ else
/* */ {
/* 1040 */ JDBCEntityBridge selectEntity = (JDBCEntityBridge)path.getEntity();
/* 1041 */ this.selectManager = ((JDBCStoreManager)selectEntity.getManager());
/* 1042 */ this.selectObject = selectEntity;
/* 1043 */ setTypeFactory(this.selectManager.getJDBCTypeFactory());
/* 1044 */ selectEntity(path, node.distinct, buf);
/* */ }
/* */
/* */ }
/* */ else
/* */ {
/* 1050 */ ASTPath path = getPathFromChildren(child0);
/* */
/* 1052 */ if (path == null)
/* */ {
/* 1054 */ throw new IllegalStateException("The function in SELECT clause does not contain a path expression.");
/* */ }
/* */
/* 1057 */ if (path.isCMPField())
/* */ {
/* 1059 */ JDBCCMPFieldBridge selectField = (JDBCCMPFieldBridge)path.getCMPField();
/* 1060 */ this.selectManager = ((JDBCStoreManager)selectField.getManager());
/* */ }
/* 1062 */ else if (path.isCMRField())
/* */ {
/* 1064 */ JDBCCMRFieldBridge cmrField = (JDBCCMRFieldBridge)path.getCMRField();
/* 1065 */ this.selectManager = ((JDBCStoreManager)cmrField.getEntity().getManager());
/* 1066 */ addJoinPath(path);
/* */ }
/* */ else
/* */ {
/* 1070 */ JDBCEntityBridge entity = (JDBCEntityBridge)path.getEntity();
/* 1071 */ this.selectManager = ((JDBCStoreManager)entity.getManager());
/* 1072 */ addJoinPath(path);
/* */ }
/* */
/* 1075 */ setTypeFactory(this.selectManager.getJDBCTypeFactory());
/* 1076 */ this.selectObject = child0;