Wiki source code of XWiki Database Schema

Version 101.1 by Caleb James DeLisle on 2011/04/14

Show last authors
1 This diagram shows the mappings of internal classes to database tables.
2 The tables are shown with the table name on the left top and the Java class name on the right top.
3 In the left column are the names of the columns in the table and in the right column are the get methods in the class for accessing those values.
4 In a hibernate query you can use the same name as the get method but without the get and with the first letter lowercase so the SQL query:
5 {{code language="sql"}}SELECT doc.XWD_TITLE FROM xwikidoc AS doc WHERE doc.XWD_FULLNAME = 'Main.WebHome'{{/code}}
6 is equivalent to the HQL query:
7 {{code language="sql"}}SELECT doc.title FROM XWikiDocument AS doc WHERE doc.fullName = 'Main.WebHome'{{/code}}
8 because ##XWD_TITLE## maps to ##getTitle()## which maps to ##title##.
9
10 [[image:xwikischema.png||width=80%]]
11
12 {{info}}
13 The schema below is updated to version 2.0.3.
14 {{/info}}
15
16 Following are all of the tables that make up the XWiki database schema. Just taking a brief look at the schema's tables can give you a clue to how the underlying system works.
17
18 Note that there may be minor variances for databases other than MySQL, but if so, they have not yet been documented.
19
20 = Tables =
21
22 In alphabetical order
23 (% style="width:100%" %)
24 | (((* [[xwikiattachment>>DevGuide.DsXWikiAttachment]]
25 * [[xwikiattachment_archive>>DevGuide.XWikiAttachmentArchive]]
26 * [[xwikiattachment_content>>DevGuide.DsXWikiAttachmentContent]]
27 * [[xwikiattrecyclebin>>DevGuide.DsXwikiRecycleBin]]
28 * [[xwikibooleanclasses>>DevGuide.DsXWikiBooleanClasses]]
29 * [[xwikiclasses>>DevGuide.DsXWikiClasses]]
30 * [[xwikiclassesprop>>DevGuide.DsXWikiClassesProp]]
31 * [[xwikicomments>>DevGuide.DsXwikiComments]]
32 * [[xwikidateclasses>>DevGuide.DsXWikiDateClasses]]
33 * [[xwikidates>>DevGuide.DsXWikiDates]]
34 * [[xwikidblistclasses>>DevGuide.DsXWikiDatabaseListClasses]]
35 * [[xwikidbversion>>DevGuide.DsXWikiDbVersion]]
36 * [[xwikidoc>>DevGuide.DsXWikiDoc]]
37 * [[xwikidoubles>>DevGuide.DsXWikiDoubles]]
38 * [[xwikifloats>>DevGuide.DsXWikiFloats]]
39 * [[xwikiintegers>>DevGuide.DsXWikiIntegers]]
40 * [[xwikilargestrings>>DevGuide.DsXWikiLargeStrings]]
41 * [[xwikilinks>>DevGuide.DsXWikiLinks]]))) | (((* [[xwikilistitems>>DevGuide.DsXWikiListItems]]
42 * [[xwikilists>>DevGuide.DsXWikiLists]]
43 * [[xwikilock>>DevGuide.DsXWikiLocks]]
44 * [[xwikilongs>>DevGuide.DsXWikiLongs]]
45 * [[xwikinumberclasses>>DevGuide.DsXWikiNumberClasses]]
46 * [[xwikiobjects>>DevGuide.DsXWikiObjects]]
47 * [[xwikipreferences>>DevGuide.DsXWikiPreferences]]
48 * [[xwikiproperties>>DevGuide.DsXWikiProperties]]
49 * [[xwikiircs>>DevGuide.DsXWikiIrcs]]
50 * [[xwikirecyclebin>>DevGuide.DsXwikiRecyleBin]]
51 * [[xwikislistclasses>>DevGuide.DsXWikiListClasses]]
52 * [[xwikistatsdoc>>DevGuide.DsXWikiDocumentStats]]
53 * [[xwikistatsreferer>>DevGuide.DsXWikiRefererStats]]
54 * [[xwikistatsvisit>>DevGuide.XWikiVisits]]
55 * [[xwikistringclasses>>DevGuide.DsXWikiStringClasses]]
56 * [[xwikistrings>>DevGuide.DsXWikiStrings]])))
57
58 {{velocity}}
59 $context.setCacheDuration(100000)
60 {{/velocity}}

Get Connected