Package io.odysz.semantic.meta
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
-
Field Summary
Fields inherited from class io.odysz.semantics.meta.TableMeta
conn, ddlSqlite, debug, ftypes, pk, tbl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringloadSqlite(Class<?> clzz, String filename) mapKey()<T extends SemanticTableMeta>
Treplace()Explicitly call this after this meta with semantics is created, to replace auto found meta from database, which is managed byConnects.static voidsetupSqlitables(String conn, boolean force_drop, Iterable<SyntityMeta> ms) static voidsetupSqliTables(String conn, boolean force_drop, SemanticTableMeta... ms) Commit Sqlite3 table ddls defined by m[i].ddlSqlite.Methods inherited from class io.odysz.semantics.meta.TableMeta
clone, col, col, col, coltype, conn, conn, constrain, constrain, ftypes, isQuoted, typesInited
-
Constructor Details
-
SemanticTableMeta
-
-
Method Details
-
loadSqlite
-
mapKey
- Specified by:
mapKeyin interfaceXMLTable.IMapValue
-
replace
public <T extends SemanticTableMeta> T replace() throws io.odysz.transact.x.TransException, SQLExceptionExplicitly call this after this meta with semantics is created, to replace auto found meta from database, which is managed byConnects.- Returns:
- this
- Throws:
io.odysz.transact.x.TransExceptionSQLException
-
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 commitTableMeta.ddlSqlite.ms-- Throws:
SQLExceptionio.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:
SQLExceptionio.odysz.transact.x.TransException
-