Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Class Projections<br />
Projection Classes<br />
Class<br />
%Projection.Java<br />
%Projection.CPP<br />
%Projection.EJB<br />
%Projection.WebService<br />
Description<br />
Generates a Java client class to enable access to the class<br />
from Java.<br />
Generates a C++ client class to enable access to the class<br />
from C++.<br />
Generates a set of Enterprise Java Bean client classes to<br />
enable access to the class from an EJB server. In addition,<br />
any other files, such as deployment descriptors are created.<br />
Generates a set of auxiliary <strong>Caché</strong> class that implement the<br />
SOAP interface for a class.<br />
16.2.3 Creating a New Projection Class<br />
You can create a new projection class by deriving a new subclass of the<br />
%Projection.AbstractProjection class, implementing the projection interface methods, and<br />
defining any class parameters you require:<br />
Class MyApp.MyProjection Extends %Projection.AbstractProjection<br />
{<br />
Parameter MYPARM;<br />
/// This method is invoked when a class is compiled<br />
ClassMethod CreateProjection(cls As %String, ByRef params)<br />
{<br />
}<br />
/// This method is invoked when a class is 'uncompiled'<br />
ClassMethod RemoveProjection(cls As %String, ByRef params, deleted as %Boolean)<br />
{<br />
}<br />
}<br />
144 <strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong>