diff --git a/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java b/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java index dbb758a90d..b17a3caea2 100644 --- a/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java +++ b/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java @@ -38,7 +38,7 @@ public class FormMobileTemplateSettingsPane extends BasicBeanPane( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(ModifiedTable obj, OutputStream out) throws Exception { + DavXMLUtils.writeXMLModifiedTables(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public ModifiedTable desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLModifiedTables(in); + } + } + )); + + EnvProxy.addSerializer(com.fr.data.impl.Connection.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(Connection obj, OutputStream out) { + DavXMLUtils.writeXMLFileDatabaseConnection(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public Connection desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLDatabaseConnection(in); + } + } + )); + + EnvProxy.addSerializer(FileNode[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(FileNode[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileNodes(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public FileNode[] desializer(InputStream in) { + return DavXMLUtils.readXMLFileNodes(in); + } + } + )); + + EnvProxy.addSerializer(TableProcedure[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(TableProcedure[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileSQLTable(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public TableProcedure[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLSQLTables(in); + } + } + )); + + EnvProxy.addSerializer(TableData.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(TableData obj, OutputStream out) { + DavXMLUtils.writeXMLFileTableData(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public TableData desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLTableData(in); + } + } + )); + + EnvProxy.addSerializer(Parameter[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(Parameter[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileParameters(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public Parameter[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLParameters(in); + } + } + )); + + EnvProxy.addSerializer(StoreProcedure.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(StoreProcedure obj, OutputStream out) { + DavXMLUtils.writeXMLFileStoreProcedure(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public StoreProcedure desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLStoreProcedure(in); + } + } + )); + + EnvProxy.addSerializer(StoreProcedureParameter[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(StoreProcedureParameter[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileParameters(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public StoreProcedureParameter[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLStoreProcedureParameters(in); + } + } + )); + } + }