Jiemamy inside 1

792 views
746 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
792
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Jiemamy inside 1

  1. 1. FileInputStream inputStream = new FileInputStream(inputFile); JiemamySerializer serializer = SerializerFactory.getSerializer(); RootModel rootModel = serializer.deserialize(inputStream); Porter porter = (Porter) Class.forName(exporter).newInstance(); porter.setParameter(parameter); porter.execute(rootModel);
  2. 2. FileOutputStream sqlFileOs = new FileOutputStream(sqlFile); OutputStreamWriter sqlWriter = new OutputStreamWriter(sqlFileOs, quot;UTF-8quot;); Dialect dialect = dbModel.getDialect(); String sql = dialect.createSQL( dbModel, drop, dml, schemaName); sqlWriter.write(sql);

×