The "xwikidoubles" Table

The xwikidoubles table stores data from XWiki object properties of type "Double" and it corresponds to the com.xpn.xwiki.objects.DoubleProperty class which is a sub-class of com.xpn.xwiki.objects.BaseProperty.

The mapping information is available in the xwiki.hbm.xml file:

<class name="com.xpn.xwiki.objects.BaseProperty" table="xwikiproperties">
 <composite-id unsaved-value="undefined">
   <key-property name="id" column="XWP_ID" type="long" />
   <key-property name="name" type="string">
     <column name="XWP_NAME" index="PROP_NAME" />
   </key-property>
 </composite-id>
 <property name="classType" type="string" column="XWP_CLASSTYPE" length="255" />
 <joined-subclass name="com.xpn.xwiki.objects.DoubleProperty" table="xwikidoubles">
   <key>
     <column name="XWD_ID" />
     <column name="XWD_NAME" index="XWDOUBLE_NAME" />
   </key>
   <property name="value" type="double" column="XWD_VALUE" index="XWDOUBLE_VALUE" />
 </joined-subclass>
</class>

The columns of the xwikidoubles table are:

ColumnData typeClass propertyDefault valuenot-nullIndex
XWD_ID (primary key)bigint(20)-0true-
XWD_NAME (primary key)varchar(255)--trueXWDOUBLE_NAME
XWD_VALUEdoublevaluenullfalseXWDOUBLE_VALUE

 

Related Pages

Search this space