Created
July 1, 2014 16:18
-
-
Save sebersole/18abde1fc1ba222bdb77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object[] parameterValues = ...; | |
Type[] parameterTypes = ...; | |
JdbcSession jdbcSession = ...; | |
jdbcSession.accept( | |
new PreparedStatementQueryOperationSpec() { | |
... | |
@Override | |
public ParameterBindings getParameterBindings() { | |
return new ParameterBindings() { | |
@Override | |
public void bindParameters(PreparedStatement stmnt) { | |
for ( int i = 0; i < parameterValues.length; i++ ) { | |
parameterTypes[i].nullSafeSet( stmnt, parameterValues[i], ..., session ); | |
} | |
} | |
} | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment