Adding class and method on running program

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Adding class and method on running program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 3:00 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Adding class and method on running program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 3:00 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Adding class and method on running program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 3:00 pm

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.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 10 guests