public SqlStatementCustomizer createForParameter(Annotation annotation, Class sqlObjectType, Method method, final Object arg) {
DefineTranslatableClass d = (DefineTranslatableClass) annotation;
final String key = d.value();
final Class<?> clazz = (Class<?>) arg;
return new SqlStatementCustomizer() {
public void apply(SQLStatement q) {
TranslatingStrategy translatable = getTranslatable(q.getContext());
q.define(key, translatable.translate(clazz.getSimpleName()));
}
};