A <property>
tag that is a child of a <table>
tag defines one of the persistent characteristics of a repository item. A <property>
tag that is a direct child of an <item-descriptor>
tag defines a transient characteristic of a repository item. Since such a transient property is not associated with any database table, it is not stored when the repository item is updated in the database.
property Child Tags
Child Tag | How many? |
---|---|
option | zero or more |
attribute | zero or more |
derivation | zero or one |
<property> Tag Attributes
A <property>
tag in a SQL repository definition may have XML attributes listed in the following table:
Property Tag Attributes | Valid Values | Purpose |
---|---|---|
name | String | Required. |
column-names | String | The column name or names in the SQL database; defaults to the value of |
display-name | String | An optional name to use to identify the property in the user interface; defaults to the value of |
display-name-resource | String | If you specify a resource bundle for this property using the |
description | String | An optional attribute to describe purpose of the property; defaults to the value of |
description-resource | String | If you specify a resource bundle for this property using the |
category | String | You can group repository item properties into categories, so that a user interface will display related properties together, rather than in alphabetical order according to their |
category-resource | String | If you specify a resource bundle for this property using the |
data-types |
| Required, unless |
item-type | The | If the value of this property is another repository item, specifies the item descriptor type of that repository item. Required if |
sql-type | SQL data type. | The SQL type of the corresponding column if it is different from the default type for the |
property-type | Java type | Specifies the Java class of a user-defined property. See the User-Defined Property Types: Using the property-type Attribute section in this chapter. |
component-item-type | The | If the |
component-data-type | Data-type name | If the |
default | A string | A default value for the property, if one is not specified when the repository item is created. Note that you cannot set a default value for multi-valued attributes (array, set, list, or collection type properties). |
group | A string | Use this attribute to group properties together for the purpose of loading them in the same “select” statement. By default, each property is in a group with the same name as its table. You can set the group for a property to add or remove properties from these default groups. This gives you a simple way to optimize the SQL generated by the repository. |
cascade | Zero or more of | |
repository | The Nucleus address of another Repository. | Specifies that the value of this property refers to one or more repository items that are part of another Repository. If you specify a relative path, it is relative to this Repository. See Linking between Repositories. |
cache-mode |
| The cache mode for this property. If you set the |
editor-class | Java class name | The class name of a |
queryable | Boolean | Defaults to |
readable | Boolean | Defaults to |
writable | Boolean | Defaults to |
required | Boolean | Defaults to |
hidden | Boolean | Hidden properties are not displayed in the ATG Control Center; defaults to |
expert | Boolean | Defaults to |
Note that the values of name
attributes are case-insensitive. Therefore, you cannot have, for instance, two different properties named gender
and GENDER
.