Class JsonJournal.Entry
java.lang.Object
com.ultikits.ultitools.interfaces.impl.data.json.JsonJournal.Entry
- Enclosing class:
JsonJournal
One change of a record: an entity file to write with its after-image, or to delete. The
table name and the key are single path segments, so the entity file is always
<identity root>/<table>/<key>.json and nothing is written outside that directory.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringThe entity's JSON for a put;nullfor a delete.private static Stringprivate static StringcheckSegment(String what, String value) private static StringcheckTable(String table) (package private) static JsonJournal.EntrybooleaninthashCode()(package private) booleanisDelete()(package private) Stringkey()(package private) static JsonJournal.Entry(package private) Stringtable()toString()
-
Field Details
-
table
-
key
-
afterImage
-
-
Constructor Details
-
Entry
-
-
Method Details
-
put
- Parameters:
table- the table directory's namekey- the entity's key; a non-string key is written in its string formafterImage- the entity's JSON, written to the file as is
-
delete
-
checkTable
-
checkKey
-
checkSegment
-
table
String table() -
key
String key() -
afterImage
String afterImage()The entity's JSON for a put;nullfor a delete. -
isDelete
boolean isDelete() -
equals
-
hashCode
public int hashCode() -
toString
-