Element collection persist - initial

This commit is contained in:
rob bygrave
2019-10-17 10:15:58 +13:00
parent 1db1f0312a
commit 1e7de83019
2 changed files with 10 additions and 0 deletions
@@ -33,4 +33,9 @@ public interface SpiSqlUpdate extends SqlUpdate {
* Reset bind position to be ready for another bind execute.
*/
void reset();
/**
* Return a copy of the SqlUpdate with empty bind parameters.
*/
SpiSqlUpdate copy();
}
@@ -117,6 +117,11 @@ public final class DefaultSqlUpdate implements Serializable, SpiSqlUpdate {
this(null, sql, new BindParams());
}
@Override
public SpiSqlUpdate copy() {
return new DefaultSqlUpdate(server, origSql, new BindParams());
}
@Override
public void reset() {
addPos = 0;