Package org.ujmp.core.export.exporter
Class DefaultMatrixWriterSQLExporter
- java.lang.Object
-
- org.ujmp.core.export.exporter.AbstractMatrixExporter
-
- org.ujmp.core.export.exporter.AbstractMatrixWriterExporter
-
- org.ujmp.core.export.exporter.DefaultMatrixWriterSQLExporter
-
- All Implemented Interfaces:
MatrixExporter
,MatrixWriterExporter
,MatrixExportFormat
,MatrixSQLExportFormat
public class DefaultMatrixWriterSQLExporter extends AbstractMatrixWriterExporter implements MatrixSQLExportFormat
-
-
Constructor Summary
Constructors Constructor Description DefaultMatrixWriterSQLExporter(Matrix matrix, java.io.Writer writer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
asSQL(DBType db, java.lang.String databaseName, java.lang.String tableName)
private static java.lang.String
encodeData(java.lang.Object o)
private static java.lang.String
getBigDecimalType(DBType db)
private static java.lang.String
getBigIntType(DBType db)
private static java.lang.String
getByteArrayType(DBType db)
private static java.lang.String
getColumnName(Matrix matrix, long column)
private static java.lang.String
getColumnType(DBType db, Matrix matrix, long column)
private static java.lang.String
getDoubleType(DBType db)
private static java.lang.String
getFloatType(DBType db)
private static java.lang.String
getIntType(DBType db)
private static java.lang.String
getLongType(DBType db)
private static java.lang.String
getStringType(DBType db)
-
Methods inherited from class org.ujmp.core.export.exporter.AbstractMatrixWriterExporter
getWriter
-
Methods inherited from class org.ujmp.core.export.exporter.AbstractMatrixExporter
getMatrix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.export.exporter.MatrixExporter
getMatrix
-
-
-
-
Constructor Detail
-
DefaultMatrixWriterSQLExporter
public DefaultMatrixWriterSQLExporter(Matrix matrix, java.io.Writer writer)
-
-
Method Detail
-
asSQL
public void asSQL(DBType db, java.lang.String databaseName, java.lang.String tableName) throws java.io.IOException
- Specified by:
asSQL
in interfaceMatrixSQLExportFormat
- Throws:
java.io.IOException
-
encodeData
private static java.lang.String encodeData(java.lang.Object o)
-
getColumnName
private static final java.lang.String getColumnName(Matrix matrix, long column)
-
getIntType
private static final java.lang.String getIntType(DBType db)
-
getLongType
private static final java.lang.String getLongType(DBType db)
-
getFloatType
private static final java.lang.String getFloatType(DBType db)
-
getDoubleType
private static final java.lang.String getDoubleType(DBType db)
-
getByteArrayType
private static final java.lang.String getByteArrayType(DBType db)
-
getBigIntType
private static final java.lang.String getBigIntType(DBType db)
-
getBigDecimalType
private static final java.lang.String getBigDecimalType(DBType db)
-
getStringType
private static final java.lang.String getStringType(DBType db)
-
-