class SqlView extends BaseIdentifiableObject implements Cacheable, MetadataObject {

    public static Map<String, String> getCriteria( Set<String> params )
    {
        Map<String, String> map = new HashMap<>();

        if ( params != null )
        {
            for ( String param : params )
            {
                if ( param != null && param.split( CRITERIA_SEP ).length == 2 )
                {
                    String[] criteria = param.split( CRITERIA_SEP );
                    String filter = criteria[0];
                    String value = criteria[1];

                    map.put( filter, value );
                }
            }
        }

        return map;
    }

    public  SqlView();
    public  SqlView( String name, String sqlQuery, SqlViewType type );

}