com.spun.util.persistence.DatabaseObjectSaver Maven / Gradle / Ivy
package com.spun.util.persistence;
import com.spun.util.database.DatabaseObject;
import java.sql.Statement;
public class DatabaseObjectSaver implements Saver
{
private Statement stmt;
public DatabaseObjectSaver(Statement stmt)
{
this.stmt = stmt;
}
public DatabaseObject save(DatabaseObject save)
{
save.save(stmt);
return save;
}
}