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

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

package tbrugz.sqldiff.model;

public enum ChangeType {
	ADD, ALTER, DROP, RENAME, REPLACE, REMARKS;
	
	public ChangeType inverse() {
		switch (this) {
		case ADD:
			return DROP;
		case DROP:
			return ADD;
		case ALTER:
		case RENAME:
		case REPLACE:
		case REMARKS:
			return this;
		}
		throw new IllegalStateException("Unknown ChangeType: "+this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy