DataSource
DataSource
A datasource is a logical representation of physical storage that is used to create, read, update and delete object instances.
Description
A datasource is a logical representation of physical storage that is used to create, read, update and delete object instances. Each class’ persistence mapping specifies how its instances will be persisted in a given datasource.
Currently supported datasource types include:
* RelationalDatabase - persist instances in a relational database
* FileStorage - persist instances in a file system
* XML - persist instances in an XML file
* Service - persist instances using a collection of services. e.g. web services or stored procedures.
* Generic - for a custom developed persistence channel.
DataSources are configured and bound to physical storage addresses through connections, with which applications are deployed.
Datasources support a CRUD interface for interaction with external systems, whereas channels support a send/receive interface. The persistence interface for datasources is synchronous.
In NexJ Studio, datasources appear under the persistence tab of the repository navigator.
Properties
anyAttributeAny attribute
create : booleanTrue if instance creation is supported.
delete : booleanTrue if instance deletion is supported.
description : stringData source description.
execute : booleanTrue if instance execution is supported.
join : booleanNot supported.
Currently, joins are not supported across DataSources. When this feature is implemented, this value will be true if schema objects from this data source can be joined to objects from another data source.read : booleanTrue if instance retrieval is supported.
readLimit : nonNegativeIntThe maximum number of instances that can be returned by read() (0 for unlimited).
Valid values based on“int”. 0 (minInclusive) type : stringData source type.
update : booleanTrue if instance updating is supported.
Content
Sequence of:
any [1..1]
Sequence of:
t_DataSource_Properties [0..1]
Parent topic: references