Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2.sqlobject.helpers;
 
 
public @interface MapResultAsBean
    public static class MapAsBeanFactory implements SqlStatementCustomizerFactory
    {
        @Override
        public SqlStatementCustomizer createForMethod(Annotation annotationClass sqlObjectTypeMethod method)
        {
            return new SqlStatementCustomizer()
            {
                @Override
                public void apply(SQLStatement sthrows SQLException
                {
                    Query q = (Querys;
                    q.registerMapper(new BeanMapperFactory());
                }
            };
        }
        @Override
        public SqlStatementCustomizer createForType(Annotation annotationClass sqlObjectType)
        {
            throw new UnsupportedOperationException("Not allowed on type");
        }
        @Override
        public SqlStatementCustomizer createForParameter(Annotation annotationClass sqlObjectTypeMethod methodObject arg)
        {
            throw new UnsupportedOperationException("Not allowed on parameter");
        }
    }
New to GrepCode? Check out our FAQ X