io.odysz.semantic.syn.ChangeLogs Maven / Gradle / Ivy
package io.odysz.semantic.syn;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import io.odysz.anson.Anson;
import io.odysz.anson.AnsonField;
import io.odysz.module.rs.AnResultset;
import io.odysz.semantic.CRUD;
import io.odysz.semantic.meta.SynChangeMeta;
import io.odysz.semantics.x.SemanticException;
public class ChangeLogs extends Anson {
public static final String ChangeFlag = "change";
@AnsonField(ignoreTo=true)
SynChangeMeta chm;
HashMap nyquvect;
// HashMap exchangenv;
/**
* clone {@code nyquvect} into my nyq-vector.
* @param nyquvect
* @return
*/
public ChangeLogs nyquvect(final HashMap nyquvect) {
this.nyquvect = Nyquence.clone(nyquvect);
return this;
}
/**
* 0: change statement, CRUD.C: insert, CRUD.U: remove-subs, CRUD.D: remove-log),
* 1: change-crud,
2: synoder,
3: uids,
4: nyquence
*/
AnResultset answers;
public AnResultset challenge;
public ChangeLogs challenge(AnResultset challenge) {
this.challenge = challenge;
return this;
}
// private boolean dirty;
public ChangeLogs(SynChangeMeta changemeta) {
this.chm = changemeta;
// dirty = false;
}
/**
* Add remove command to change log, chgs.
* @param challenge
* @param synode
* @throws SQLException
*/
@SuppressWarnings("serial")
public void remove_sub(AnResultset challenge, String synode) throws SQLException {
if (answers == null)
answers = new AnResultset(checkChangeCol(challenge.getColnames()))
.results(new ArrayList>() {});
ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy