Dashboard > Development > OBJDoc Repository Document > Information > Page Comparison
Development Log In   View a printable version of the current page.
OBJDoc Repository Document
Version 1 by K Lars Lohn
on Jan 20, 2006 14:26.


 
compared with
Current by K Lars Lohn
on Jan 20, 2006 15:13.

(show comment)
 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 6 changes. View first change.

  
  
 The data structure representing the repository file is a dictionary created by the class OJBDocumenter. The dictionary, generally called {{document}} in the program, is a dictionary of dictionaries and lists. It is first created by an XML parsing of the OJB repository file.
  
 Each entry in the XML file becomes a dictionary containing its named subelements. If a entry appears more than once, it is represented by a list of dictionaries.
  
 {code}<class-descriptor class="org.kuali.core.bo.ApplicationConstant" table="KULUNT.ER_APPL_CNST_T">
  <field-descriptor name="name" column="APPL_CNST_NM" jdbc-type="VARCHAR"/>
  <field-descriptor name="code" column="APPL_CNST_VAL" jdbc-type="VARCHAR" primarykey="true"/>
  <field-descriptor name="active" column="DOBJ_MAINT_CD_ACTV_IND" jdbc-type="VARCHAR" conversion="org.kuali.core.util.OjbCharBooleanConversion"/>
  <field-descriptor name="objectId" column="OBJ_ID" jdbc-type="VARCHAR"/>
  <field-descriptor name="versionNumber" column="VER_NBR" jdbc-type="BIGINT" locking="true"/>
 </class-descriptor>{code}
  
 becomes
  
 {code}
  { 'class-descriptor':
   { 'class_descriptor':
  { 'class' : 'org.kuali.core.bo.ApplicationConstant',
  'table' : 'KULUNT.ER_APPL_CNST_T',
'field-descriptor' :
   'field_descriptor' :
  [
  { 'name' : 'name',
  'column' : 'APPL_CNST_NM',
  'jdbc-type' : 'VARCHAR',
  'primarykey' : 'TRUE' },
  { 'name' : 'code',
  'column' : 'APPL_CNST_VAL',
'jdbc-type' : 'VARCHAR',
  'jdbc_type' : 'VARCHAR',
  'primarykey' : 'TRUE' },
  { 'name' : 'active',
  'column' : 'DOBJ_MAINT_CD_ACTV_IND',
'jdbc-type' : 'VARCHAR',
  'jdbc_type' : 'VARCHAR',
  'conversion' : 'org.kuali.core.util.OjbCharBooleanConversion' },
  { 'name' : 'objectId',
  'column' : 'OBJ_ID',
'jdbc-type' : 'VARCHAR' },
  'jdbc_type' : 'VARCHAR' },
  { 'name' : 'versionNumber',
  'column' : 'VER_NBR',
 'jdbc-type' : 'BIGINT',
  'jdbc_type' : 'BIGINT',
  'locking' : 'true' }
  ]
  }
  }
 {code}
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators