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
FieldsModifier and TypeFieldDescriptionprotected SynChangeMetafinal SyntityMetaprotected Nyquenceprotected SynSubsMetaprotected StringNon-public: doc' device id is managed by session.protected Stringprotected static String[]Fields inherited from class io.odysz.anson.Anson
verbose -
Constructor Summary
ConstructorsConstructorDescriptionSynEntity(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.InsertinsertEntity(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, unescapeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-