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

tbrugz.sqldiff.model.ColumnDiffAdapter 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.TCDiff;

public class ColumnDiffAdapter extends XmlAdapter {
	
	@Override
	public ColumnDiff unmarshal(TCDiff v) throws Exception {
		return new ColumnDiff(v.changeType, v.schemaName, v.tableName, v.previousColumn, v.column);
	}

	@Override
	public TCDiff marshal(ColumnDiff v) throws Exception {
		TCDiff adapted = new TCDiff();
		adapted.changeType = v.getChangeType();
		adapted.schemaName = v.schemaName;
		adapted.tableName = v.tableName;
		adapted.column = v.column;
		adapted.previousColumn = v.previousColumn;
		return adapted;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy