io.odysz.semantic.LoggingUser Maven / Gradle / Ivy
package io.odysz.semantic;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.xml.sax.SAXException;
import io.odysz.common.Utils;
import io.odysz.semantic.util.SQLString;
import io.odysz.semantics.IUser;
import io.odysz.semantics.SemanticObject;
import io.odysz.semantics.meta.TableMeta;
import io.odysz.semantics.x.SemanticException;
import io.odysz.transact.x.TransException;
/**
* This robot handle logs of table a_log()
*
* @author [email protected]
*/
public class LoggingUser implements IUser {
private DATranscxt logSemantic;
private String uid;
private SemanticObject action;
@SuppressWarnings("unused")
private String sessionKey;
private String logConn;
public static IUser dumbUser;
/**
* @param logConn connection of logger is not an independent data source.
* @param userId
* @param action
*/
public LoggingUser(String logConn, String userId, SemanticObject action) {
this.logConn = logConn;
this.uid = userId;
this.action = action;
dumbUser = new IUser() {
@Override public TableMeta meta(String ... connId) { return null; }
@Override public ArrayList dbLog(ArrayList sqls) { return null; }
@Override public String uid() { return "dummy"; }
@Override public IUser logAct(String funcName, String funcId) { return this; }
@Override public String sessionKey() { return null; }
@Override public IUser sessionKey(String skey) { return null; }
@Override public IUser notify(Object note) throws TransException { return this; }
@Override public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy