Page 1 of 1

Adding class and method on running program

Posted: Fri Aug 07, 2009 3:00 pm
by ConvertFromOldNGs
by Ruby >> Tue, 12 May 2009 5:43:02 GMT

Hallo Jaders

as a new jade user, I dont have any deep knowledge about syntax in Jade. Thats why, I ask to this forum.
My question is.
Is there any feature in Jade to add directly a new class with a set of attributes in Jade when the application program is running ?

if so, can you give me an example in code for this case ?

Thanks in advance
Ruby

Re: Adding class and method on running program

Posted: Fri Aug 07, 2009 3:00 pm
by ConvertFromOldNGs
by Jade Support >> Tue, 12 May 2009 23:18:32 GMT

Hi Ruby, thanks for posting.

I'm afraid it is not possible to add a new class to the JADE system and have it be picked up by the application without first restarting the system.

With the application running you can perform a schema load that contains object model changes into the latest schema version, then reorg these changes into the database. But you still need to take the system offline to instantiate the new model (merge the 'latest schema' version with the existing 'current schema' version). The white paper on Schema Evolution and Instantiation covers this in some detail and can be found here:

http://www.jadeworld.com/downloads/jade ... maEvol.pdf

Deployment scenarios are covered on page 38.

Kind regards,
Jade Support.

Re: Adding class and method on running program

Posted: Fri Aug 07, 2009 3:00 pm
by ConvertFromOldNGs
by cnwjhp1 >> Wed, 13 May 2009 1:15:23 GMT

Depending on what you are trying to accomplish, the JadeDynamicObject class may suffice. It doesn't allow a new class definition to be persistently saved, but it does allow dynamic definition of objects that can be passed around.