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

tbrugz.sqldiff.model.DBIdentifiableDiffAdapter 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.DBIdDiff;

public class DBIdentifiableDiffAdapter extends XmlAdapter {
	
	@Override
	public DBIdentifiableDiff unmarshal(DBIdDiff v) throws Exception {
		return new DBIdentifiableDiff(v.changeType, v.previousIdent, v.ident, v.ownerTableName);
	}

	@Override
	public DBIdDiff marshal(DBIdentifiableDiff v) throws Exception {
		DBIdDiff adapted = new DBIdDiff();
		adapted.changeType = v.getChangeType();
		adapted.ident = v.ident;
		adapted.ownerTableName = v.ownerTableName;
		adapted.previousIdent = v.previousIdent;
		return adapted;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy