This chapter covers implementation-oriented topics on datasources. See Section 4, “Datasources” to learn how to configure your datasources.
Datasources provide an easy and abstracted way to query and manage data, independent of the specific backend system using a common query language (expressions). Currently 2 types of datasource implementation exist: Gentics .Node ContentRepository datasources are often called enhanced relational databases, are stored in SQL92 compliant database systems in a fixed database layout, and bring several advantages against common relational SQL layouts. LDAP datasources are stored in LDAPv3 compliant directories.
See the Gentics Infoportal for a detailed list of database products which were successfully tested for compatibility.
Please also consult the Gentics Infoportal for a list of limitations in functionality for different datasources and/or datastore products.
A generic database scheme, used for storing content published by Gentics Content.Node;, all standard modules provided by Gentics and the Gentics .Node PortalConnector. The scheme is independent of your data structure, and must not be adapted for new attributes. See “ContentRepository” (Section 4.3) for more information.
The following datatypes are supported:
Table 4.169. Attribute Types
Type Id | Type | Java Representation | Type Description |
---|---|---|---|
1 | Text Short | String | A short text (maximum length 255 characters) |
2 | Object Link | Resolvable | Link to another object (the 1:n relation, the id to the linkedobject is stored in this attribute) |
3 | Integer | String | A normal-sized Integer (signed 32 bit integer). Will be returned as String for backward compatibility reasons. |
5 | Text Long | String | For example used for Page content in Gentics Content.Node; (Replaced the deprecated type 4) |
6 | Binary Content | byte array | Binary data (e.g. files) |
7 | Foreign Link | Collection of Resolvables | Reverse attribute to type 2. the n:1 relation. this attribute contains no data , it just points to the linkattribute of the foreignobject. |
8 | Long Integer | Long | A large integer (signed 64 bit integer). |
9 | Double | Double | A normal-size (double-precision) floating-point number. |
10 | Date | Timestamp | An attributetype which can hold a date and time. |
![]() | Note |
---|---|
If you retrieve a Multivalue attribute the result will be a Collection containing all values as described above (Except Object Links which will be retruend as |