18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

232 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

As an example, an employee system maintained by the HR department<br />

would track all aspects of an employee. There could be an Employee<br />

object which represents an actual employee. The Employee object could<br />

contain the following private data (attributes):<br />

• Name<br />

• Social Security No.<br />

• Start Date<br />

• End Date<br />

• Level<br />

• Salary<br />

These attributes would be persisted in a database. The Employee<br />

object would also have a set of private methods for manipulating or<br />

validating the private data. These methods usually contain logic internal<br />

<strong>to</strong> the object:<br />

• validateSSNO<br />

• checkSalaryRangeO<br />

Finally, the object has a set of public methods used for accessing the<br />

private data. These methods usually consist of a series of get and set<br />

functions:<br />

• getNameO<br />

• setName()<br />

• getS alary ()<br />

• setSalary()<br />

Distributed object technology is very well suited for heterogeneous<br />

systems and architectures which exist in most organizations. Distributed<br />

objects encapsulate the business logic and data within objects, allowing<br />

them <strong>to</strong> be located anywhere within a distributed system. Objects can be<br />

linked <strong>to</strong>gether in a plug-and-play manner <strong>to</strong> interoperate across networks.<br />

Distributed object technology allows valuable legacy systems <strong>to</strong> be<br />

'wrapped' and appear <strong>to</strong> the developer <strong>to</strong> be objects. Once wrapped, the<br />

legacy code can participate in a distributed object environment. Object<br />

wrapping allows businesses <strong>to</strong> leverage existing legacy code while<br />

migrating <strong>to</strong> a new enterprise architecture.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!