开发者

FilteredRowSet Predicate evaluate method

When I create a Predicate object I don't understand when the last two methods are called...

class My_Filter implements Predicate
{
    public boolean evaluate(RowSet rs)
    {
    }

    public 开发者_运维百科boolean evaluate(Object value, int column) throws SQLException
    {
    }

    public boolean evaluate(Object value, String columnName) throws SQLException
    {
    }
}

in my simple example they are never called.

Thanks.


Not sure if your example includes inserting rows. According to the java doc for both the column based evaluate methods ...

The FilteredRowSet object will use this method internally while inserting new rows to a FilteredRowSet instance.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜