In Sybase Data Federation, a metadata model expresses a schema. Each metadata model defines a set of tables; each table contains a set of named columns and each column is associated with a data type.
When you map a metadata model to a Data Federation object, you can access the object using the metadata model’s name, which may be the same as the name of the database table from which it was created. For example, suppose you have a Crystal Reports application that accesses a table called Human-Resources.Employee in a relational database. You are building a data service, emp.DS, that selects and transforms data from the Human-Resources.Employee table, and you would like to make it simple to point the CR application at either the real database or the Data Federation data service for its data.
Solution: Import the schema for Human-Resources.Employee into WorkSpace Data Federation as a metadata model. You now have a model called HumanResources, which contains a table called Employee. Next, map the Employee table in the HumanResources metadata model to your emp.DS data service. This mapping lets you access the emp.DS data service as Human-Resources.Employee—the same name you use to access the table in the database. You can point your application either at the database or at Data Federation; no further changes are required.
Suppose you've created a schema in a modeling tool, such as Sybase PowerDesigner or ERwin, and you want to create a data service that produces results matching your schema.
Solution: Import the schema into WorkSpace Data Federation as a metadata model and derive a new view model from the metadata model. As you add operators to the view model, WorkSpace Data Federation monitors the schema and alerts you if the view model’s schema diverges from that of the metadata model. Any data services you deploy from this view model will match the schema you imported from the modeling tool.
For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com