SnapshotDao(DataSource dataSource, RollingFile rollingFile) throws SQLException { this.dataSource = dataSource; this.rollingFile = rollingFile; upgradeSnapshotTable(dataSource); dataSource.syncTable("snapshot", columns); dataSource.syncIndexes("snapshot", indexes); }