neodatis.odb 第五篇 保存

来源:互联网 发布:linux的dd命令如何退出 编辑:程序博客网 时间:2024/06/05 17:26

  ODB odb = null;
  Sport soccer = new Sport("足球");  
  
  SimpleDateFormat format = new SimpleDateFormat("yyyy-mm-dd");
  Player 亨利 = new Player("蒂埃里·亨利", format.parse("1977-8-17"), soccer);
  try {
   odb = ODBFactory.open("test.odb");
   OID oid1 = odb.store(亨利);
……

123456789101112131415161718192021222324252627282930
1/42/43/44/4
database iddatabase iddatabase id 
313233343536373839404142434445464748495051525354555657585960
 21FALSEFALSEusername
database idnb classesfirst class info oidodb
last
close
status
databse
without
user,pw
no-user
616263646566676869707172737475767778798081828384858687888990
username
919293949596979899100101102103104105106107108109110111112113114115116117118119120
 password
121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
password155
151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
 18034201-1-11
current id bolck positionblock size  prev block posnext block posid block number
181182183184185186187188189190       198199200201202203204205206207208209210
52
(代表CLASS) 
11
ACTIVE
181892
(代表CLASS) 
1
id block max id updateid
type
oidid
status
class
position
of
id
id
type
oid
211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
 1183091
(代表OBJECT)
3118589
241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
 1
(代表OBJECT)
4118765   
 
Player类
18189   181931819418195       18203       18211       
120121-12
block sizeclass
header
block
type
Class
info
category
class
id
prev
class
oid
next
class
oid
18219        18227       18235       18243    
0 -1-1Playe
class nb objects class
first
obj
pos
class last obj pos值(2×字符数+8)
18248              18263           18275  
rmars.odb.pojo
 值(2×字符数+8)
18297   18301       18309 
318466 
Max attribute idclass att def pos 
 
Sport类
18309   183131831418315       18323       18331       
1181221-1
block sizeclass
header
block
type
Class
info
category
class
id
prev
class
oid
next
class
oid
18339        18347       18355       18363    
0 -1-1Sport
class nb objects class
first
obj
pos
class last obj pos值(2×字符数+8)
             18381             
 mars.odb.pojo
 值(2×字符数+8)
18415   18419       18427 
118427 
Max attribute idclass att def pos 
 
Sport属性
18427   1843118432       18440   18445   18449    
392`1210(java.lang.String)name
block sizeBLOCK_
TYPE_
CLASS_
BODY
class
nb
attributes
attribute
id
att
odb
type
id
 
 
Player属性
18466   1847018471       18479   18484   18488        
123231210(java.lang.String)name
block sizeBLOCK_
TYPE_
CLASS_
BODY
class
nb
attributes
attribute
id
att
odb
type
id
值(2×字符数+8)
        18505    18510   18514            
 2 170(java.util.Date)birthDate
 attribute
id
 att
odb
type
id
值(2×字符数+8)
              18541   18546       18554   
 32favoriteSport
 attribute
id
class
info
id
值(2×字符数+8)
 
Player对象
18589   18593 18594       18602       18610       
2884
BLOCK_
TYPE_
NON_
NATIVE_
OBJECT
 31-1
block
size
object
block
type
 oidclass
info
id
[对象id]
prev instance
18618       18626       18634       18642   18646 
-1[1211898399406][1211898399859]1 
next instancecreation dateupdate dateobject version number 
      1865418655   18659   18663       18671    
-1FALSE31186952
object reference pointeris
syncronized
with
external
db
nb
attr
[属性数量]
attr idatt posattr id
18675       18683   18687        18695   1869918700   
187473-493
BLOCK_
TYPE_
NATIVE_
OBJECT
210
att posattr idatt posnative
block
header
block
size
native
block
type
 native
block
odb
type
id
18705   ……18747   1875118752   18757        
蒂埃里·亨利93
BLOCK_
TYPE_
NATIVE_
OBJECT
170[222278880000]
值(2×字符数+8)native
block
header
block
size
native
block
type
native block odb type id
 
Sport对象
18765   18769 
1124
block sizeobject
block
type
18770       18778       18786       18794     
42-1-1
oidclass info idprev instancenext instance
  18802       18810       18818   18822       
 [1211898576968][1211898577203]1-1
 creation dateupdate dateobject
version
number
object
reference
pointer
1883018831   18835   18839       18847   1885118852   18857  18617
FALSE111884793
BLOCK_
TYPE_
NATIVE_
OBJECT
210足球
is
syncronized
external
db
nb attrattr idatt pos/att real posnative
block
header
block
size
native
block
type
 native block odb type id值(2×字符数+8)
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 网上申请信用卡没有座机号码怎么办 我叫上门服务被骗了怎么办 上门服务被骗了3000多怎么办 微信被骗9000元怎么办 奥迪a8气囊灯亮怎么办 驾考站岗迟到了怎么办 老板欠员工工资不给怎么办 如果有一天我没头发了怎么办 苏州公积金密码忘了怎么办 科二考试第二把怎么办 科一老是记不住怎么办 科目二考试没去怎么办 网约车驾龄不到怎么办 科四预约不上怎么办 教练不退钱怎么办找谁 驾考出入证丢了怎么办 科二成绩单丢了怎么办 考驾照的准考证丢了怎么办 驾考预约去不了怎么办 科目一预约没去怎么办 打狂犬疫苗期间感冒了怎么办 公司社保欠费不交怎么办 25号社保不交怎么办欠费 会计从业停考了怎么办 黑龙江龙育黄了档案怎么办 科目四档案丢了怎么办 从上海调档案到杭州怎么办 户口迁移身份证变更护照怎么办 有中国签证的孩子怎么办户口 大学生户口在学校怎么办签证 户口在南方人才市场怎么办签证 报警电话接到说方言的怎么办 学生去新加坡旅游签证怎么办 出入境的受理编号不见了怎么办 职工下岗档案单位丢失怎么办退休 大学毕业档案在自己手里怎么办 青岛李沧区房产证加名字怎么办手续 公积金迟交了1天怎么办 科一预约不上怎么办 科目一考试没去怎么办 科目一成绩单丢了怎么办