protected static void addScope(String name, String criteria) {
        ModelDelegate.addScope(modelClass().getName(), name, criteria);
    }
protected static void addScope ( String name , String criteria ) { ModelDelegate . addScope ( modelClass ( ) . getName ( ) , name , criteria ) ; }
Use in a static block of a model definotion to add a scope.

@param name name of scope
@param criteria SQL criteria for the scope filter