Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2.sqlobject.customizers;
 
 
Used to set attributes on the StatementContext for the statement generated for this method. These values will be available to other customizers, such as the statement locator or rewriter.
public @interface Define
{
    
The key for the attribute to set. The value will be the value passed to the annotated argument
    String value();
    static class Factory implements SqlStatementCustomizerFactory
    {
        public SqlStatementCustomizer createForType(Annotation annotationClass sqlObjectType)
        {
            throw new UnsupportedOperationException("Not allowed on Type");
        }
        public SqlStatementCustomizer createForMethod(Annotation annotationClass sqlObjectTypeMethod method)
        {
            throw new UnsupportedOperationException("Not allowed on Method");
        }
        public SqlStatementCustomizer createForParameter(Annotation annotationClass sqlObjectTypeMethod methodfinal Object arg)
        {
            Define d = (Defineannotation;
            final String key = d.value();
            return new SqlStatementCustomizer()
            {
                public void apply(SQLStatement q)
                {
                    q.define(keyarg);
                }
            };
        }
    }
New to GrepCode? Check out our FAQ X