All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tbrugz.sqldiff.model.TableDiffAdapter Maven / Gradle / Ivy

There is a newer version: 0.9.17
Show newest version
package tbrugz.sqldiff.model;

import javax.xml.bind.annotation.adapters.XmlAdapter;

import tbrugz.sqldiff.model.adapted.TDiff;

public class TableDiffAdapter extends XmlAdapter {
	
	@Override
	public TableDiff unmarshal(TDiff v) throws Exception {
		return new TableDiff(v.changeType, v.table, v.renameFromSchema, v.renameFromName, v.previousRemarks);
	}

	@Override
	public TDiff marshal(TableDiff v) throws Exception {
		TDiff adapted = new TDiff();
		adapted.changeType = v.getChangeType();
		adapted.table = v.table;
		adapted.renameFromSchema = v.renameFromSchema;
		adapted.renameFromName = v.renameFromName;
		adapted.previousRemarks = v.previousRemarks;
		return adapted;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy