On Dec 23, 2010, at 10:59 AM, Ramsey Gurley wrote:
On Dec 17, 2010, at 4:26 PM, Jesse Tayler wrote:
Oh thanks - !
On Dec 17, 2010, at 3:53 PM, Ramsey Gurley wrote:
I didn't replicate the ERCore templates identically. I don't have
the static variables wrapped in the Key interface. You s
On Dec 17, 2010, at 4:26 PM, Jesse Tayler wrote:
Oh thanks - !
On Dec 17, 2010, at 3:53 PM, Ramsey Gurley wrote:
I didn't replicate the ERCore templates identically. I don't have
the static variables wrapped in the Key interface. You should not
need to regenerate anything under ERCore.
On Dec 17, 2010, at 4:56 PM, Ricardo J. Parada wrote:
> I like this stuff. I wished I known this before.
>
which is I why I wish I knew it now!
seriously, seems like there's some very nice template action going around here -
maybe a consolidation into...well, yet another standard template m
Oh thanks - !
On Dec 17, 2010, at 3:53 PM, Ramsey Gurley wrote:
> I didn't replicate the ERCore templates identically. I don't have the static
> variables wrapped in the Key interface. You should not need to regenerate
> anything under ERCore.
To init() an object nicely, I thought I might s
Right - so, I'm using the template from that link called:
"Consolidated WOnder Templates with "Clazz" pattern (Ramsey Gurley)"
I downloaded the two java template files and put them in a folder in my
project, and set that folder in the eogen -- the templates actually do have
some of the clazz st
I linked to the templates earlier in the thread.
On 2010-12-17, at 11:24 AM, Jesse Tayler wrote:
> What template are you generating your EOs from?
>
> I'm using _WonderEntity and I don't see clazz stuff in my _Classes
>
> I look at BugTracker's eogen and I see it using _Entity from CorBusiness
What template are you generating your EOs from?
I'm using _WonderEntity and I don't see clazz stuff in my _Classes
I look at BugTracker's eogen and I see it using _Entity from CorBusiness but
that template seems to be a regular old EO template.
On Dec 16, 2010, at 9:25 AM, Ricardo J. Parada
Oh... I just tried this with a Foo.java class:
public static class Util extends ERXGenericRecordClazz { }
public static final Util util = new Util();
Then I can do stuff like this:
Foo aFoo = Foo.util.objectWithPrimaryKeyValue(anEditingContext, 5);
EOEntity entity = Foo.util.en
I see that the root EOEnterpriseObjectClazz has a bunch of utility methods.
For example, createAndInsertObject(), allObjects(), objectFromRawRow(),
objectWithPrimaryKeyValue(), entityName(), entity(),
createFetchSpecification(), objectCountWithQualifier(), etc.
And they are only defined once
On 2010-12-15, at 1:43 PM, Ricardo J. Parada wrote:
> Thanks David.
>
> I noticed those __Clazz classes are then declared in the EOs as "public
> static class". I read the article below to figure what that meant. I'm
> still learning java I guess :-)
>
> http://www.javaworld.com/javaworld
Thanks David.
I noticed those __Clazz classes are then declared in the EOs as "public static
class". I read the article below to figure what that meant. I'm still
learning java I guess :-)
http://www.javaworld.com/javaworld/javaqa/2001-08/01-qa-0817-static.html?page=1
So I'm trying to put
oh - of course, you sent the link -
I guess my eogen is working since some APIs changed?
setAuthor would now be setAuthorRelationship eh?
but now there's no init() constructor?
maybe I just need to hack around with this a bit more, or maybe I'm
misunderstanding.
On Dec 14, 2010, at 6:19 PM,
The EOGenerator template I linked to earlier:
public static class ${entity.classNameWithoutPackage}Clazz extends
${entity.prefixClassNameWithOptionalPackage}.${entity.prefixClassNameWithoutPackage}Clazz
{
/* more clazz methods here */
}
On 2010-12-14, at 3:16 PM, Jesse Tayler w
well, this sounds great, but
how are you even getting this _DocumentClazz into your EO template?
On Dec 14, 2010, at 5:57 PM, David Holt wrote:
> public static class DocumentClazz extends _Document._DocumentClazz {
>
___
Do not post admin reque
On 2010-12-14, at 2:20 PM, Ricardo J. Parada wrote:
>
> I've always wondered what that clazz thingy is. I'm still not sure. I read
> the javadoc on EOEnterpriseObjectClazz but still I don't quite get it.
> What is it? Maybe a little example will go a long way in understanding. :-)
Hi Ricard
Clazz pattern is simply a way to limit static methods and make them
override-able. ERC can be mostly thought of as an example imp.
My case was that this stuff belongs in the logic and not in the session. The
session shouldn't care that the current user is in thread storage or whereever.
It's s
I've always wondered what that clazz thingy is. I'm still not sure. I read
the javadoc on EOEnterpriseObjectClazz but still I don't quite get it.
What is it? Maybe a little example will go a long way in understanding. :-)
On Dec 14, 2010, at 5:15 PM, David Holt wrote:
> Hi Anjo,
>
> On 201
Hi Anjo,
On 2010-12-14, at 1:34 PM, Anjo Krank wrote:
> There is a reason why stuff in BT is done as it is.
>
> I.e. there is a People.class.setCurrentUser(People user) and
> People.class.currentUser(EOEditingContext ec). Basically it puts all the
> thread storage code (including the key) in
I still don't completely understand the clazz
>
>> setOriginator(People.clazz.currentUser(editingContext()));
>>
Is there a reason I shouldn't say something like this inside init()
setAuthor((User)
((User)ERCoreBusinessLogic.actor()).localInstanceIn(editingContext()));
___
oooh! works great!
I had already wanted to try out the preference system - double plus good!
thanks!
On Dec 14, 2010, at 3:31 PM, David Holt wrote:
> setOriginator(People.clazz.currentUser(editingContext()));
>
___
Do not post admin requests
There is a reason why stuff in BT is done as it is.
I.e. there is a People.class.setCurrentUser(People user) and
People.class.currentUser(EOEditingContext ec). Basically it puts all the thread
storage code (including the key) in People, which is, like, good style?
Also, ERXThreadStorage alread
On 2010-12-14, at 12:25 PM, Jesse Tayler wrote:
> Makes sense, to use init() but how to safely handle the authenticated user?
>
> I see there's a clazz setup used in BugTracker which seems to set a
> currentUser() which I'm guessing is a safe way to access the authenticated
> user (if I set it
On Dec 14, 2010, at 3:25 PM, Jesse Tayler wrote:
Makes sense, to use init() but how to safely handle the
authenticated user?
I see there's a clazz setup used in BugTracker which seems to set a
currentUser() which I'm guessing is a safe way to access the
authenticated user (if I set it so
On 2010-12-14, at 11:28 AM, Ramsey Gurley wrote:
> Hi Jesse,
>
> On Dec 14, 2010, at 1:16 PM, Jesse Tayler wrote:
>
>>
>> I'm implementing a method to populate new EOs with default values before
>> save.
>>
>> I see lots of ERXEnterpriseObject methods beyond awakeFromInsertion,
>
> I would
Makes sense, to use init() but how to safely handle the authenticated user?
I see there's a clazz setup used in BugTracker which seems to set a
currentUser() which I'm guessing is a safe way to access the authenticated user
(if I set it somewhere) and locally set an author or assignee relationsh
Hi Jesse,
On Dec 14, 2010, at 1:16 PM, Jesse Tayler wrote:
I'm implementing a method to populate new EOs with default values
before save.
I see lots of ERXEnterpriseObject methods beyond awakeFromInsertion,
I would recommend init() instead of awakeFromInsertion. init() was
added to fix
I'm implementing a method to populate new EOs with default values before save.
I see lots of ERXEnterpriseObject methods beyond awakeFromInsertion, including
nice looking things like DidInsertProcessor and so forth.
I'd like to use the D2W rules to set values like "active" = "true" or "author"
27 matches
Mail list logo