In addition to the standard data types of properties of repository items, described in the Data Type Correspondences section of SQL Repository Definition Tag Reference, the SQL repository allows you to add your own types of properties. These new property types will be able to implement both getX and setX functionality in one of two ways. You can either implement your property from scratch, extending atg.repository.RepositoryPropertyDescriptor, or you can modify the SQL repository’s default property implementation by extending atg.adapter.gsa.GSAPropertyDescriptor (which itself extends RepositoryPropertyDescriptor). If your property is to be stored in the database and needs to appear inside a <table> tag, it must extend GSAPropertyDescriptor. If your property is transient and does not correspond to a database table, it should extend RepositoryPropertyDescriptor.

In either case, you can add additional configuration information to the XML file unique to your type. Also, the get and set methods of your PropertyDescriptor can set and get other property values in this same item.

 
loading table of contents...