Torque Objects Implementing a Defined Interface

Neil Sherman <[email protected]> Mon, 4 Jul 2011 12:01:12 +0100
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <OF42B33B47.D58C00CD-ON802578C3.003C021A-802578C3.003C8883@trapezegroup.com>
--=_alternative 003C8883802578C3_=
Content-Type: text/plain; charset="US-ASCII"

Hi,

Is it possible to get generated Torque objects to implement a specific 
interface ?

For example I have a Torque configuration that produces me a class called 
TestOne that has a number of methods on it. 

What I'd like to do is define an interface that only exposes one of those 
methods.  That way I can pass this object around by interface, and only 
expose a certain proportion of its capability.

So the generated class definition is something like:

public  class TestOne
    extends my.class.package.BaseTestOne
    implements Persistent

And I'd like it to become:

public  class TestOne
    extends my.class.package.BaseTestOne
    implements Persistent, MyDefinedInterface

I'm not expecting the generated class to implement any additional methods, 
just group some of its existing methods into a define interface.

Thanks for your time

Neil

--=_alternative 003C8883802578C3_=--