private Object[] findIdsByColumn(String tableName, String columnName, Object columnValue)
    {
        Object connection = null;

        try
        {
            connection = getConnection();
            String valueAsStr = PropertyAccessorHelper.getString(columnValue);

            Set<String> results = null;

            if (resource != null && resource.isActive())
            {
                Response response = ((Transaction) connection).zrangeByScore(getHashKey(tableName, columnName),
                        getDouble(valueAsStr), getDouble(valueAsStr));
                // ((Transaction) connection).exec();
                ((RedisTransaction) resource).onExecute(((Transaction) connection));

                results = (Set<String>) response.get();
            }
            else
            {
                results = ((Jedis) connection).zrangeByScore(getHashKey(tableName, columnName), getDouble(valueAsStr),
                        getDouble(valueAsStr));

            }
            if (results != null)
            {
                return results.toArray(new Object[0]);
            }

        }
        finally
        {
            onCleanup(connection);
        }

        return null;
    }
private Object [ ] findIdsByColumn ( String tableName , String columnName , Object columnValue ) { Object connection = null ; try { connection = getConnection ( ) ; String valueAsStr = PropertyAccessorHelper . getString ( columnValue ) ; Set < String > results = null ; if ( resource != null && resource . isActive ( ) ) { Response response = ( ( Transaction ) connection ) . zrangeByScore ( getHashKey ( tableName , columnName ) , getDouble ( valueAsStr ) , getDouble ( valueAsStr ) ) ; ( ( RedisTransaction ) resource ) . onExecute ( ( ( Transaction ) connection ) ) ; results = ( Set < String > ) response . get ( ) ; } else { results = ( ( Jedis ) connection ) . zrangeByScore ( getHashKey ( tableName , columnName ) , getDouble ( valueAsStr ) , getDouble ( valueAsStr ) ) ; } if ( results != null ) { return results . toArray ( new Object [ 0 ] ) ; } } finally { onCleanup ( connection ) ; } return null ; }
Find ids by column.

@param tableName
the table name
@param columnName
the column name
@param columnValue
the column value
@return the object[]