Class LoggingUser

java.lang.Object
io.odysz.semantic.LoggingUser
All Implemented Interfaces:
io.odysz.semantics.IUser

public class LoggingUser extends Object implements io.odysz.semantics.IUser
This robot handle logs of table a_log()
Author:
odys-z@github.com
  • Field Details

    • dumbUser

      public static io.odysz.semantics.IUser dumbUser
  • Constructor Details

    • LoggingUser

      public LoggingUser(String logConn, String userId, io.odysz.semantics.SemanticObject action)
      Parameters:
      logConn - connection of logger is not an independent data source.
      userId -
      action -
  • Method Details

    • meta

      public io.odysz.semantics.meta.TableMeta meta(String... connId)
      Specified by:
      meta in interface io.odysz.semantics.IUser
    • uid

      public String uid()
      Specified by:
      uid in interface io.odysz.semantics.IUser
    • dbLog

      public ArrayList<String> dbLog(ArrayList<String> sqls)
      Specified by:
      dbLog in interface io.odysz.semantics.IUser
    • genLog

      public static ArrayList<String> genLog(String connLog, DATranscxt logBuilder, String logTabl, ArrayList<String> sqls, io.odysz.semantics.IUser commitUser, String funcName, String funcId)
      Generate sqls for db logging. No exception can be thrown here, no error message for client if failed.
      Parameters:
      logBuilder -
      logTabl -
      sqls -
      commitUser -
      funcName -
      funcId -
      Returns:
      sqls
    • login

      public boolean login(Object req) throws io.odysz.transact.x.TransException
      Specified by:
      login in interface io.odysz.semantics.IUser
      Throws:
      io.odysz.transact.x.TransException
    • sessionId

      public String sessionId()
      Specified by:
      sessionId in interface io.odysz.semantics.IUser
    • logout

      public io.odysz.semantics.SemanticObject logout()
      Specified by:
      logout in interface io.odysz.semantics.IUser
    • writeJsonRespValue

      public void writeJsonRespValue(Object writer) throws IOException
      Specified by:
      writeJsonRespValue in interface io.odysz.semantics.IUser
      Throws:
      IOException
    • logAct

      public io.odysz.semantics.IUser logAct(String funcName, String funcId)
      Specified by:
      logAct in interface io.odysz.semantics.IUser
    • sessionKey

      public io.odysz.semantics.IUser sessionKey(String skey)
      Specified by:
      sessionKey in interface io.odysz.semantics.IUser
    • notify

      public io.odysz.semantics.IUser notify(Object note) throws io.odysz.transact.x.TransException
      Specified by:
      notify in interface io.odysz.semantics.IUser
      Throws:
      io.odysz.transact.x.TransException
    • notifies

      public List<Object> notifies()
      Specified by:
      notifies in interface io.odysz.semantics.IUser
    • touchedMs

      public long touchedMs()
      Specified by:
      touchedMs in interface io.odysz.semantics.IUser
    • sessionKey

      public String sessionKey()
      Specified by:
      sessionKey in interface io.odysz.semantics.IUser