Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2004 - 2011 Brian McCallister
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.skife.jdbi.v2;
Convenience class which allows definition of result set mappers which getAttribute the row as a map instead of a result set. This can be useful.
public abstract class BaseResultSetMapper<ResultType> implements ResultSetMapper<ResultType>
    private static final DefaultMapper mapper = new DefaultMapper();

Defers to mapInternal
    public final ResultType map(int indexResultSet rStatementContext ctx)
        return this.mapInternal(;

Subclasses should implement this method in order to map the result

index The row, starting at 0
row The result of a,java.sql.ResultSet,org.skife.jdbi.v2.StatementContext) call
the value to pt into the results from a query
    protected abstract ResultType mapInternal(int indexMap<StringObjectrow);
New to GrepCode? Check out our FAQ X