Class SemanticTableMeta

java.lang.Object
io.odysz.semantics.meta.TableMeta
io.odysz.semantic.meta.SemanticTableMeta
All Implemented Interfaces:
XMLTable.IMapValue
Direct Known Subclasses:
AutoSeqMeta, PeersMeta, SynchangeBuffMeta, SynChangeMeta, SynSessionMeta, SynSubsMeta, SyntityMeta

public abstract class SemanticTableMeta extends io.odysz.semantics.meta.TableMeta implements XMLTable.IMapValue
  • Constructor Details

    • SemanticTableMeta

      public SemanticTableMeta(String tbl, String... conn)
  • Method Details

    • loadSqlite

      protected static String loadSqlite(Class<?> clzz, String filename)
    • mapKey

      public String mapKey()
      Specified by:
      mapKey in interface XMLTable.IMapValue
    • replace

      public <T extends SemanticTableMeta> T replace() throws io.odysz.transact.x.TransException, SQLException
      Explicitly call this after this meta with semantics is created, to replace auto found meta from database, which is managed by Connects.
      Returns:
      this
      Throws:
      io.odysz.transact.x.TransException
      SQLException
    • setupSqliTables

      public static void setupSqliTables(String conn, boolean force_drop, SemanticTableMeta... ms) throws SQLException, io.odysz.transact.x.TransException
      Commit Sqlite3 table ddls defined by m[i].ddlSqlite.
      Parameters:
      conn -
      force_drop - force dropping table before commit TableMeta.ddlSqlite.
      ms -
      Throws:
      SQLException
      io.odysz.transact.x.TransException
    • setupSqlitables

      public static void setupSqlitables(String conn, boolean force_drop, Iterable<SyntityMeta> ms) throws SQLException, io.odysz.transact.x.TransException
      Throws:
      SQLException
      io.odysz.transact.x.TransException