Dashboard > Development > OBJDoc Repository Document
Development Log In   View a printable version of the current page.
OBJDoc Repository Document
Added by K Lars Lohn, last edited by K Lars Lohn on Jan 20, 2006  (view change)
Labels: 
(None)

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.

<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>

becomes

{ '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',
                  'primarykey' : 'TRUE' },
                { 'name' : 'code',
                  'column' : 'APPL_CNST_VAL',
                  'jdbc_type' : 'VARCHAR',
                  'primarykey' : 'TRUE' },
                { 'name' : 'active',
                  'column' : 'DOBJ_MAINT_CD_ACTV_IND',
                  'jdbc_type' : 'VARCHAR',
                  'conversion' : 'org.kuali.core.util.OjbCharBooleanConversion' },
                { 'name' : 'objectId',
                  'column' : 'OBJ_ID',
                  'jdbc_type' : 'VARCHAR' },
                { 'name' : 'versionNumber',
                  'column' : 'VER_NBR',
                  'jdbc_type' : 'BIGINT',
                  'locking' : 'true' }
            ]
      }
  }

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