Class SqlWriter
- java.lang.Object
-
- org.openforis.collect.relational.sql.SqlWriter
-
- Direct Known Subclasses:
SqlSchemaWriter
public abstract class SqlWriter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DATE_TIME_FORMATprotected RDBPrintJob.RdbDialectdialectprotected RelationalSchemaschemaprotected Writerwriter
-
Constructor Summary
Constructors Constructor Description SqlWriter(Writer writer, RelationalSchema schema)SqlWriter(Writer writer, RelationalSchema schema, RDBPrintJob.RdbDialect dialect, String dateTimeFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisSchemaless()protected voidwriteBatchInsert(Table<?> table, DataExtractor extractor)
-
-
-
Field Detail
-
DEFAULT_DATE_TIME_FORMAT
public static final String DEFAULT_DATE_TIME_FORMAT
- See Also:
- Constant Field Values
-
writer
protected Writer writer
-
schema
protected RelationalSchema schema
-
dialect
protected RDBPrintJob.RdbDialect dialect
-
-
Constructor Detail
-
SqlWriter
public SqlWriter(Writer writer, RelationalSchema schema)
-
SqlWriter
public SqlWriter(Writer writer, RelationalSchema schema, RDBPrintJob.RdbDialect dialect, String dateTimeFormat)
-
-
Method Detail
-
writeBatchInsert
protected void writeBatchInsert(Table<?> table, DataExtractor extractor) throws IOException
- Throws:
IOException
-
isSchemaless
protected boolean isSchemaless()
-
-