类 JsonDataFormat
java.lang.Object
cn.featherfly.common.db.data.format.JsonDataFormat
- 所有已实现的接口:
DataFormat
public class JsonDataFormat extends java.lang.Object implements DataFormat
JsonDataFormat
.-
构造器概要
构造器 构造器 说明 JsonDataFormat(java.io.Writer writer)Instantiates a new json data format. -
方法概要
修饰符和类型 方法 说明 voidwriteDataEnd(DatabaseMetadata databaseMetadata)Write data end.voidwriteDataStart(DatabaseMetadata databaseMetadata)Write data start.voidwriteRow(Table tableMetadata, java.sql.ResultSet res)Write row.voidwriteTableEnd(Table tableMetadata)Write table end.voidwriteTableStart(Table tableMetadata)Write table start.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
JsonDataFormat
public JsonDataFormat(java.io.Writer writer)Instantiates a new json data format.- 参数:
writer- the writer
-
-
方法详细资料
-
writeDataStart
Write data start.- 指定者:
writeDataStart在接口中DataFormat- 参数:
databaseMetadata- the database metadata- 抛出:
java.io.IOException
-
writeDataEnd
Write data end.- 指定者:
writeDataEnd在接口中DataFormat- 参数:
databaseMetadata- the database metadata- 抛出:
java.io.IOException- IOException
-
writeTableStart
Write table start.- 指定者:
writeTableStart在接口中DataFormat- 参数:
tableMetadata- the table metadata- 抛出:
java.lang.Exception- the exception
-
writeTableEnd
Write table end.- 指定者:
writeTableEnd在接口中DataFormat- 参数:
tableMetadata- the table metadata- 抛出:
java.lang.Exception- the exception
-
writeRow
Write row.- 指定者:
writeRow在接口中DataFormat- 参数:
tableMetadata- the table metadatares- the res- 抛出:
java.lang.Exception- the exception
-