Sooner or later you are likely to run into the need to make a copy of one or more enterprise objects. At first this seems trivial: just call clone on the objects. You will quickly discover that EOE nterprise0bject does not include the Cloneable interface. The closer you look at the problem, the more you might feel as if you have fallen down a rabbit hole into a strange world. Unlike most Java objects, enterprise objects seldom exist in isolation. Much of their meaning depends on the context of their relationships to other enterprise objects. Copying objects in such a situation is far from trivial. In this chapter we are going to look at three ways of copying enterprise objects, from the trivial to the fully featured. Along the way we will take a look at how to access object metadata through EOE We will wrap up with a look at how entire object stores can be copied.
KeywordsRelated Object Class Property Object Graph Copy Process Reference Copy
Unable to display preview. Download preview PDF.