* clean up columnimpl/tableimpl constructors
- add updateCurrentRow(Map), add updateRow(Row)
- sort out query types
+- clean up javadocs
+ - enhance public api classes
+ - add @usage tags to util classes
*/
public interface ExportFilter {
- /**
- * Called before any calls {@link #filterColumns} and {@link #filterRow} for
- * a single export operation. Allows the given instance to return a
- * per-call instance which can maintain state.
- *
- * @return the ExportFilter instance to use for the rest of the export
- * operation
- */
- public ExportFilter init();
-
/**
* The columns that should be used to create the exported file.
*
"(?:" + Pattern.quote(delimiter) + ")|(?:" +
Pattern.quote("" + quote) + ")|(?:[\n\r])");
- // allow filter to setup per-call state
- filter = filter.init();
-
List<? extends Column> origCols = cursor.getTable().getColumns();
List<Column> columns = new ArrayList<Column>(origCols);
columns = filter.filterColumns(columns);
*/
public interface ImportFilter {
- /**
- * Called before any calls {@link #filterColumns} and {@link #filterRow} for
- * a single import operation. Allows the given instance to return a
- * per-call instance which can maintain state.
- *
- * @return the ImportFilter instance to use for the rest of the import
- * operation
- */
- public ImportFilter init();
-
/**
* The columns that should be used to create the imported table.
* @param destColumns the columns as determined by the import code, may be
{
ResultSetMetaData md = source.getMetaData();
- // allow filter to setup per-call state
- filter = filter.init();
-
name = DatabaseImpl.escapeIdentifier(name);
Table table = null;
if(!useExistingTable || ((table = db.getTable(name)) == null)) {
Pattern delimPat = Pattern.compile(delim);
- // allow filter to setup per-call state
- filter = filter.init();
-
try {
name = DatabaseImpl.escapeIdentifier(name);
Table table = null;
public SimpleExportFilter() {
}
- public ExportFilter init() {
- return this;
- }
-
public List<Column> filterColumns(List<Column> columns) throws IOException {
return columns;
}
public SimpleImportFilter() {
}
- public ImportFilter init() {
- return this;
- }
-
public List<ColumnBuilder> filterColumns(List<ColumnBuilder> destColumns,
ResultSetMetaData srcColumns)
throws SQLException, IOException