tbrugz.sqldiff.model.DBIdentifiableDiffAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqldump Show documentation
Show all versions of sqldump Show documentation
Utility to dump schema and data from a RDBMS
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;
}
}