Class ExpDocTableMeta

java.lang.Object
io.odysz.semantics.meta.TableMeta
All Implemented Interfaces:
XMLTable.IMapValue

public abstract class ExpDocTableMeta extends SyntityMeta
Experimental: document entity table meta. TODO rename together with ExpDoctier, ExpSynodetier.
Author:
odys-z@github.com
  • Field Details

    • fullpath

      public final String fullpath
    • resname

      public final String resname
      aslo named as pname, clientname or filename previously
    • uri

      public final String uri
      See Also:
    • org

      public final String org
    • createDate

      public final String createDate
    • shareDate

      public final String shareDate
    • shareby

      public final String shareby
    • folder

      public final String folder
    • mime

      public final String mime
    • size

      public final String size
    • shareflag

      public final String shareflag
  • Constructor Details

    • ExpDocTableMeta

      public ExpDocTableMeta(String conn) throws io.odysz.transact.x.TransException
      Throws:
      io.odysz.transact.x.TransException
    • ExpDocTableMeta

      public ExpDocTableMeta(String tbl, String pk, String device, String conn) throws io.odysz.transact.x.TransException
      Throws:
      io.odysz.transact.x.TransException
  • Method Details

    • selectSynPaths

      public io.odysz.transact.sql.Query selectSynPaths(DATranscxt st, String devid) throws io.odysz.transact.x.TransException
      Create select with cols can be understand by getPathInfo(AnResultset).
      Parameters:
      st -
      devid -
      Returns:
      Query
      Throws:
      io.odysz.transact.x.TransException
    • getPathInfo

      public Object[] getPathInfo(AnResultset rs) throws SQLException
      Get fields from rs where cols is selcted with stamement generated by selectSynPaths(DATranscxt, String).
      Parameters:
      rs -
      Returns:
      strings
      Throws:
      SQLException
    • onselectSyntities

      public io.odysz.transact.sql.Query onselectSyntities(io.odysz.transact.sql.Query select) throws io.odysz.transact.x.TransException
      Description copied from class: SyntityMeta

      Entity meta's query event handler, while synchronizing.

      ExessionPersist (or DBSyntableBuilder) use this for loading entities in a syn-exchang page.

      Note: call select.cols(...) first.

      A typical task finished here is to add an extFile() function object to the parameter select.
        T_DA_PhotoMet entm = new T_DA_PhotoMet(conn);  // extends SyntityMeta
        AnResultset entities = ((AnResultset) entm
          .onselectSyntities(trb.select(tbl, "e").col("e.*"))
       
      Overrides:
      onselectSyntities in class SyntityMeta
      Parameters:
      select - typically should already called Query.cols(String...), etc. alrady.
      Returns:
      select
      Throws:
      io.odysz.transact.x.TransException
      See Also:
      • ExessionPersist.chpage()