JOAFIPJava對(duì)象持久化框架
JOAFIP (java data object persistence in file ) 使得你可以使用文件系統(tǒng)來(lái)保存數(shù)據(jù)對(duì)象,而不是數(shù)據(jù)庫(kù)。
主要特點(diǎn):
- easy to use
- guarantees all ACID properties
- object oriented, write your model, store it. Do not need query language, juste navigate in your model.
- multi data access session ( multi-Thread, transactional data store )
- save all objects of object graph starting from a root object to file system, one heap file record by object instance
- lazy loading of object:
- make able to not waste memory with large object graph when only need to access to some of them.
- manage more object than memory can contains
- manage enum state persistence
- crash safe, may accept JVM stop at any time even if write in file ( only the last commit is lost)
- file corruption detection
- garbage collector for file data record that will never be accessed
- The object that can be persited are POJO that not needs to implement Serializable, but there is some conditions
- Possibility to store serialization of instance of class in one data record. can be comprerssed or not
評(píng)論
圖片
表情
