Package io.odysz.semantic.syn
Class SynEntity
java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.syn.SynEntity
- All Implemented Interfaces:
io.odysz.anson.IJsonable
public abstract class SynEntity
extends io.odysz.anson.Anson
A synchronizable entity managed by the package, also a server side
and jprotocol oriented data record, used for record synchronizing
in docsync.jserv.
- Author:
- Ody
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.odysz.anson.IJsonable
io.odysz.anson.IJsonable.JsonableFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected SynChangeMeta
final SyntityMeta
protected Nyquence
protected SynSubsMeta
protected String
Non-public: doc' device id is managed by session.protected String
protected static String[]
Fields inherited from class io.odysz.anson.Anson
verbose
-
Constructor Summary
ConstructorDescriptionSynEntity
(AnResultset rs, SyntityMeta meta) SynEntity
(AnResultset rs, SyntityMeta entity, SynChangeMeta change) SynEntity
(SyntityMeta entm) -
Method Summary
Modifier and TypeMethodDescriptionformat
(AnResultset rs) Format entity synchronization taskabstract io.odysz.transact.sql.Insert
insertEntity
(SyntityMeta m, io.odysz.transact.sql.Insert ins) Setupins
's nvs, e.g.recId()
synode()
Methods inherited from class io.odysz.anson.Anson
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toBlock, toEnvelope, toJson, toJson, toMapBlock, toString, unescape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.odysz.anson.IJsonable
toBlock
-
Field Details
-
synpageCols
-
recId
-
uids
-
synode
Non-public: doc' device id is managed by session. -
entMeta
-
subMeta
-
chgm
-
subs
-
synoder
-
nyquence
-
-
Constructor Details
-
SynEntity
- Throws:
SQLException
-
SynEntity
-
SynEntity
- Throws:
SQLException
-
-
Method Details
-
recId
-
recId
-
synode
-
synode
-
format
Format entity synchronization task- Returns:
- this
- Throws:
SQLException
-
insertEntity
public abstract io.odysz.transact.sql.Insert insertEntity(SyntityMeta m, io.odysz.transact.sql.Insert ins) Setupins
's nvs, e.g. nv(domain, v0) .... Any entities to be inserted into table viaDBSyntableBuilder.insertEntity(SyndomContext, SyntityMeta, SynEntity, String...)
for testing should implement this method.- Parameters:
ins
-- Returns:
ins
-