org.apache.tuscany.das.rdb.test.company
Interface CompanyFactory

All Known Implementing Classes:
CompanyFactoryImpl

public interface CompanyFactory

The Factory for the model. It provides a create method for each non-abstract class of the model.


Field Summary
static CompanyFactory INSTANCE
          The singleton instance of the factory.
 
Method Summary
 CompanyType createCompanyType()
          Returns a new object of class 'Type'.
 DepartmentType createDepartmentType()
          Returns a new object of class 'Department Type'.
 EmployeeType createEmployeeType()
          Returns a new object of class 'Employee Type'.
 void register(commonj.sdo.helper.HelperContext scope)
          Registers the types supported by this Factory within the supplied scope.argument
 

Field Detail

INSTANCE

static final CompanyFactory INSTANCE
The singleton instance of the factory.

Method Detail

createCompanyType

CompanyType createCompanyType()
Returns a new object of class 'Type'.

Returns:
a new object of class 'Type'.

createDepartmentType

DepartmentType createDepartmentType()
Returns a new object of class 'Department Type'.

Returns:
a new object of class 'Department Type'.

createEmployeeType

EmployeeType createEmployeeType()
Returns a new object of class 'Employee Type'.

Returns:
a new object of class 'Employee Type'.

register

void register(commonj.sdo.helper.HelperContext scope)
Registers the types supported by this Factory within the supplied scope.argument

Parameters:
scope - an instance of HelperContext used to manage the scoping of types.


Copyright © 2007 Apache Software Foundation. All Rights Reserved.