app/src/main/java/db/juhaku/juhakudb/filter/QueryProcessor.java
/**
         * Generate new unique alias for given table name of database table.
         * @param tableName String name of database table.
         * @return Newly generated alias.
         *
         * @since 1.2.0
         */
Generate new unique alias for given table name of database table.
@param tableName String name of database table.
@return Newly generated alias.


Generate new unique alias for given table name of database table . @param tableName String name of database table . @return Newly generated alias .
static String generateAlias(String tableName) {
            StringBuilder aliasBuilder = new StringBuilder(String.valueOf(tableName.charAt(0)));
            int index;
            while ((index = tableName.indexOf("_")) > -1) {
                aliasBuilder.append(tableName.charAt(index + 1));
                tableName = tableName.substring(index + 1);
            }
            return aliasBuilder.append(String.valueOf(count.incrementAndGet())).toString();
        }
static String generateAlias ( String tableName ) { StringBuilder aliasBuilder = new StringBuilder ( String . valueOf ( tableName . charAt ( 0 ) ) ) ; int index ; while ( ( index = tableName . indexOf ( "_" ) ) > - 1 ) { aliasBuilder . append ( tableName . charAt ( index + 1 ) ) ; tableName = tableName . substring ( index + 1 ) ; } return aliasBuilder . append ( String . valueOf ( count . incrementAndGet ( ) ) ) . toString ( ) ; }
Generate new unique alias for given table name of database table.
Generate new unique alias for given table name of database table .