Package com.valqueries
Class OrmStatement
java.lang.Object
com.valqueries.NamedSqlStatement
com.valqueries.OrmStatement
- All Implemented Interfaces:
- IStatement
- Direct Known Subclasses:
- SaveStatement
- 
Constructor SummaryConstructorsConstructorDescriptionUsed bySaveStatementOrmStatement(String sqlString) The old way of creating a statement, incurs overhead from using regex to parse the SQL string to replace and extract parameter names.OrmStatement(String sqlString, Supplier<List<String>> parameterNamesSupplier) The new way of creating a statement, improves performance by using aSetterto get parameter names instead of parsing them from the SQL string.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringcollectionToString(Collection<?> collection) static StringcollectionToString(Collection<?> collection, String debugInfo) protected StringgetJdbcPlaceHolder(String parameterName) voidMethods inherited from class com.valqueries.NamedSqlStatementgetParametersMatcher, setSqlString
- 
Constructor Details- 
OrmStatementThe old way of creating a statement, incurs overhead from using regex to parse the SQL string to replace and extract parameter names.- Parameters:
- sqlString- The SQL string with named parameters such as- :name
 
- 
OrmStatementThe new way of creating a statement, improves performance by using aSetterto get parameter names instead of parsing them from the SQL string.- Parameters:
- sqlString- The SQL string with placeholders, usually- ?
- parameterNamesSupplier- Provider for the parameter names which would usually be parsed from the SQL string
 
- 
OrmStatementpublic OrmStatement()Used bySaveStatement
 
- 
- 
Method Details- 
toJdbcQuery- Overrides:
- toJdbcQueryin class- NamedSqlStatement
 
- 
getParameterNames- Overrides:
- getParameterNamesin class- NamedSqlStatement
 
- 
getValue
- 
getValueNames
- 
set- Specified by:
- setin interface- IStatement
 
- 
collectionToString
- 
collectionToString
- 
getJdbcPlaceHolder- Overrides:
- getJdbcPlaceHolderin class- NamedSqlStatement
 
 
-