diff --git a/Build/build/build.xml b/Build/build/build.xml index dd1b7bb26b7..ab3fd8b6d98 100644 --- a/Build/build/build.xml +++ b/Build/build/build.xml @@ -151,8 +151,8 @@ - - + + @@ -285,6 +285,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -821,6 +850,7 @@ + @@ -831,6 +861,7 @@ + @@ -844,6 +875,7 @@ + @@ -857,6 +889,7 @@ + @@ -883,6 +916,7 @@ + @@ -893,6 +927,7 @@ + @@ -1149,6 +1184,7 @@ + @@ -1156,6 +1192,7 @@ + @@ -1163,6 +1200,7 @@ + @@ -1170,6 +1208,7 @@ + @@ -1177,6 +1216,7 @@ + @@ -1184,6 +1224,7 @@ + @@ -1192,6 +1233,7 @@ + @@ -1205,6 +1247,7 @@ + @@ -1213,6 +1256,7 @@ + @@ -1226,6 +1270,7 @@ + @@ -1234,6 +1279,7 @@ + @@ -1243,7 +1289,7 @@ - + @@ -1329,11 +1375,11 @@ to add your own, add a target definition above and choose the correct group below --> - + - + diff --git a/Examples/ERXPartials/ERXPartialBaseModel/.classpath b/Examples/ERXPartials/ERXPartialBaseModel/.classpath index 16fd1aa6e38..7249d87099d 100644 --- a/Examples/ERXPartials/ERXPartialBaseModel/.classpath +++ b/Examples/ERXPartials/ERXPartialBaseModel/.classpath @@ -1,7 +1,6 @@ - diff --git a/Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_GenderType.java b/Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_GenderType.java similarity index 81% rename from Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_GenderType.java rename to Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_GenderType.java index 95d215f88f7..67fd985348d 100644 --- a/Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_GenderType.java +++ b/Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_GenderType.java @@ -1,4 +1,4 @@ -// $LastChangedRevision: 4733 $ DO NOT EDIT. Make changes to GenderType.java instead. +// DO NOT EDIT. Make changes to GenderType.java instead. package er.example.erxpartials.model; import com.webobjects.eoaccess.*; @@ -36,18 +36,18 @@ public GenderType localInstanceIn(EOEditingContext editingContext) { } public String name() { - return (String) storedValueForKey("name"); + return (String) storedValueForKey(_GenderType.NAME_KEY); } public void setName(String value) { if (_GenderType.LOG.isDebugEnabled()) { _GenderType.LOG.debug( "updating name from " + name() + " to " + value); } - takeStoredValueForKey(value, "name"); + takeStoredValueForKey(value, _GenderType.NAME_KEY); } public NSArray persons() { - return (NSArray)storedValueForKey("persons"); + return (NSArray)storedValueForKey(_GenderType.PERSONS_KEY); } public NSArray persons(EOQualifier qualifier) { @@ -68,7 +68,7 @@ public NSArray persons(EOQualifier qualifie fullQualifier = inverseQualifier; } else { - NSMutableArray qualifiers = new NSMutableArray(); + NSMutableArray qualifiers = new NSMutableArray(); qualifiers.addObject(qualifier); qualifiers.addObject(inverseQualifier); fullQualifier = new EOAndQualifier(qualifiers); @@ -89,11 +89,11 @@ public NSArray persons(EOQualifier qualifie } public void addToPersons(er.example.erxpartials.model.Person object) { - includeObjectIntoPropertyWithKey(object, "persons"); + includeObjectIntoPropertyWithKey(object, _GenderType.PERSONS_KEY); } public void removeFromPersons(er.example.erxpartials.model.Person object) { - excludeObjectFromPropertyWithKey(object, "persons"); + excludeObjectFromPropertyWithKey(object, _GenderType.PERSONS_KEY); } public void addToPersonsRelationship(er.example.erxpartials.model.Person object) { @@ -104,7 +104,7 @@ public void addToPersonsRelationship(er.example.erxpartials.model.Person object) addToPersons(object); } else { - addObjectToBothSidesOfRelationshipWithKey(object, "persons"); + addObjectToBothSidesOfRelationshipWithKey(object, _GenderType.PERSONS_KEY); } } @@ -116,27 +116,27 @@ public void removeFromPersonsRelationship(er.example.erxpartials.model.Person ob removeFromPersons(object); } else { - removeObjectFromBothSidesOfRelationshipWithKey(object, "persons"); + removeObjectFromBothSidesOfRelationshipWithKey(object, _GenderType.PERSONS_KEY); } } public er.example.erxpartials.model.Person createPersonsRelationship() { - EOClassDescription eoClassDesc = EOClassDescription.classDescriptionForEntityName("Person"); + EOClassDescription eoClassDesc = EOClassDescription.classDescriptionForEntityName( er.example.erxpartials.model.Person.ENTITY_NAME ); EOEnterpriseObject eo = eoClassDesc.createInstanceWithEditingContext(editingContext(), null); editingContext().insertObject(eo); - addObjectToBothSidesOfRelationshipWithKey(eo, "persons"); + addObjectToBothSidesOfRelationshipWithKey(eo, _GenderType.PERSONS_KEY); return (er.example.erxpartials.model.Person) eo; } public void deletePersonsRelationship(er.example.erxpartials.model.Person object) { - removeObjectFromBothSidesOfRelationshipWithKey(object, "persons"); + removeObjectFromBothSidesOfRelationshipWithKey(object, _GenderType.PERSONS_KEY); editingContext().deleteObject(object); } public void deleteAllPersonsRelationships() { - Enumeration objects = persons().immutableClone().objectEnumerator(); + Enumeration objects = persons().immutableClone().objectEnumerator(); while (objects.hasMoreElements()) { - deletePersonsRelationship((er.example.erxpartials.model.Person)objects.nextElement()); + deletePersonsRelationship(objects.nextElement()); } } @@ -148,6 +148,10 @@ public static GenderType createGenderType(EOEditingContext editingContext, Strin return eo; } + public static ERXFetchSpecification fetchSpec() { + return new ERXFetchSpecification(_GenderType.ENTITY_NAME, null, null, false, true, null); + } + public static NSArray fetchAllGenderTypes(EOEditingContext editingContext) { return _GenderType.fetchAllGenderTypes(editingContext, null); } @@ -157,9 +161,9 @@ public static NSArray fetchAllGenderTypes(EOEditingContext editingCo } public static NSArray fetchGenderTypes(EOEditingContext editingContext, EOQualifier qualifier, NSArray sortOrderings) { - EOFetchSpecification fetchSpec = new EOFetchSpecification(_GenderType.ENTITY_NAME, qualifier, sortOrderings); + ERXFetchSpecification fetchSpec = new ERXFetchSpecification(_GenderType.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); - NSArray eoObjects = (NSArray)editingContext.objectsWithFetchSpecification(fetchSpec); + NSArray eoObjects = fetchSpec.fetchObjects(editingContext); return eoObjects; } @@ -175,7 +179,7 @@ public static GenderType fetchGenderType(EOEditingContext editingContext, EOQual eoObject = null; } else if (count == 1) { - eoObject = (GenderType)eoObjects.objectAtIndex(0); + eoObject = eoObjects.objectAtIndex(0); } else { throw new IllegalStateException("There was more than one GenderType that matched the qualifier '" + qualifier + "'."); @@ -196,7 +200,7 @@ public static GenderType fetchRequiredGenderType(EOEditingContext editingContext } public static GenderType localInstanceIn(EOEditingContext editingContext, GenderType eo) { - GenderType localInstance = (eo == null) ? null : (GenderType)EOUtilities.localInstanceOfObject(editingContext, eo); + GenderType localInstance = (eo == null) ? null : ERXEOControlUtilities.localInstanceOfObject(editingContext, eo); if (localInstance == null && eo != null) { throw new IllegalStateException("You attempted to localInstance " + eo + ", which has not yet committed."); } diff --git a/Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_Person.java b/Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_Person.java similarity index 82% rename from Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_Person.java rename to Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_Person.java index 21d5c503c73..e1af5279f5a 100644 --- a/Examples/ERXPartials/ERXPartialBaseModel/GeneratedEOs/er/example/erxpartials/model/_Person.java +++ b/Examples/ERXPartials/ERXPartialBaseModel/Sources/er/example/erxpartials/model/_Person.java @@ -1,4 +1,4 @@ -// $LastChangedRevision: 4733 $ DO NOT EDIT. Make changes to Person.java instead. +// DO NOT EDIT. Make changes to Person.java instead. package er.example.erxpartials.model; import com.webobjects.eoaccess.*; @@ -38,33 +38,33 @@ public Person localInstanceIn(EOEditingContext editingContext) { } public String firstName() { - return (String) storedValueForKey("firstName"); + return (String) storedValueForKey(_Person.FIRST_NAME_KEY); } public void setFirstName(String value) { if (_Person.LOG.isDebugEnabled()) { _Person.LOG.debug( "updating firstName from " + firstName() + " to " + value); } - takeStoredValueForKey(value, "firstName"); + takeStoredValueForKey(value, _Person.FIRST_NAME_KEY); } public String lastName() { - return (String) storedValueForKey("lastName"); + return (String) storedValueForKey(_Person.LAST_NAME_KEY); } public void setLastName(String value) { if (_Person.LOG.isDebugEnabled()) { _Person.LOG.debug( "updating lastName from " + lastName() + " to " + value); } - takeStoredValueForKey(value, "lastName"); + takeStoredValueForKey(value, _Person.LAST_NAME_KEY); } public er.example.erxpartials.model.GenderType genderType() { - return (er.example.erxpartials.model.GenderType)storedValueForKey("genderType"); + return (er.example.erxpartials.model.GenderType)storedValueForKey(_Person.GENDER_TYPE_KEY); } public void setGenderType(er.example.erxpartials.model.GenderType value) { - takeStoredValueForKey(value, "genderType"); + takeStoredValueForKey(value, _Person.GENDER_TYPE_KEY); } public void setGenderTypeRelationship(er.example.erxpartials.model.GenderType value) { @@ -77,10 +77,10 @@ public void setGenderTypeRelationship(er.example.erxpartials.model.GenderType va else if (value == null) { er.example.erxpartials.model.GenderType oldValue = genderType(); if (oldValue != null) { - removeObjectFromBothSidesOfRelationshipWithKey(oldValue, "genderType"); + removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _Person.GENDER_TYPE_KEY); } } else { - addObjectToBothSidesOfRelationshipWithKey(value, "genderType"); + addObjectToBothSidesOfRelationshipWithKey(value, _Person.GENDER_TYPE_KEY); } } @@ -95,6 +95,10 @@ public static Person createPerson(EOEditingContext editingContext, String firstN return eo; } + public static ERXFetchSpecification fetchSpec() { + return new ERXFetchSpecification(_Person.ENTITY_NAME, null, null, false, true, null); + } + public static NSArray fetchAllPersons(EOEditingContext editingContext) { return _Person.fetchAllPersons(editingContext, null); } @@ -104,9 +108,9 @@ public static NSArray fetchAllPersons(EOEditingContext editingContext, N } public static NSArray fetchPersons(EOEditingContext editingContext, EOQualifier qualifier, NSArray sortOrderings) { - EOFetchSpecification fetchSpec = new EOFetchSpecification(_Person.ENTITY_NAME, qualifier, sortOrderings); + ERXFetchSpecification fetchSpec = new ERXFetchSpecification(_Person.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); - NSArray eoObjects = (NSArray)editingContext.objectsWithFetchSpecification(fetchSpec); + NSArray eoObjects = fetchSpec.fetchObjects(editingContext); return eoObjects; } @@ -122,7 +126,7 @@ public static Person fetchPerson(EOEditingContext editingContext, EOQualifier qu eoObject = null; } else if (count == 1) { - eoObject = (Person)eoObjects.objectAtIndex(0); + eoObject = eoObjects.objectAtIndex(0); } else { throw new IllegalStateException("There was more than one Person that matched the qualifier '" + qualifier + "'."); @@ -143,7 +147,7 @@ public static Person fetchRequiredPerson(EOEditingContext editingContext, EOQual } public static Person localInstanceIn(EOEditingContext editingContext, Person eo) { - Person localInstance = (eo == null) ? null : (Person)EOUtilities.localInstanceOfObject(editingContext, eo); + Person localInstance = (eo == null) ? null : ERXEOControlUtilities.localInstanceOfObject(editingContext, eo); if (localInstance == null && eo != null) { throw new IllegalStateException("You attempted to localInstance " + eo + ", which has not yet committed."); } diff --git a/Examples/ERXPartials/ERXPartialBaseModel/build.xml b/Examples/ERXPartials/ERXPartialBaseModel/build.xml deleted file mode 100644 index 8e832c49e6c..00000000000 --- a/Examples/ERXPartials/ERXPartialBaseModel/build.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/ERXPartials/ERXPartialBaseModel/build.xml b/Examples/ERXPartials/ERXPartialBaseModel/build.xml new file mode 120000 index 00000000000..0f8b528f5ed --- /dev/null +++ b/Examples/ERXPartials/ERXPartialBaseModel/build.xml @@ -0,0 +1 @@ +../../../Build/build/build-framework-template.xml \ No newline at end of file diff --git a/Examples/ERXPartials/ERXPartialsExampleApp/.classpath b/Examples/ERXPartials/ERXPartialsExampleApp/.classpath index aa288cb2893..15f2796c838 100644 --- a/Examples/ERXPartials/ERXPartialsExampleApp/.classpath +++ b/Examples/ERXPartials/ERXPartialsExampleApp/.classpath @@ -18,15 +18,14 @@ - - - + + diff --git a/Examples/ERXPartials/ERXPartialsExampleApp/build.xml b/Examples/ERXPartials/ERXPartialsExampleApp/build.xml deleted file mode 100644 index 9c6a21cd4ed..00000000000 --- a/Examples/ERXPartials/ERXPartialsExampleApp/build.xml +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/ERXPartials/ERXPartialsExampleApp/build.xml b/Examples/ERXPartials/ERXPartialsExampleApp/build.xml new file mode 120000 index 00000000000..99b811acf26 --- /dev/null +++ b/Examples/ERXPartials/ERXPartialsExampleApp/build.xml @@ -0,0 +1 @@ +../../../Build/build/build-examples-template.xml \ No newline at end of file diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/.classpath b/Examples/ERXPartials/ERXPartialsExampleModel/.classpath index 6d733851ded..85d7723fdf2 100644 --- a/Examples/ERXPartials/ERXPartialsExampleModel/.classpath +++ b/Examples/ERXPartials/ERXPartialsExampleModel/.classpath @@ -1,7 +1,6 @@ - diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Company.java b/Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Company.java similarity index 100% rename from Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Company.java rename to Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Company.java diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Department.java b/Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Department.java similarity index 100% rename from Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Department.java rename to Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Department.java diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_EmployeeType.java b/Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_EmployeeType.java similarity index 100% rename from Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_EmployeeType.java rename to Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_EmployeeType.java diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Partial_AuthenticatedPerson.java b/Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Partial_AuthenticatedPerson.java similarity index 100% rename from Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Partial_AuthenticatedPerson.java rename to Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Partial_AuthenticatedPerson.java diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Partial_EmployeePerson.java b/Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Partial_EmployeePerson.java similarity index 100% rename from Examples/ERXPartials/ERXPartialsExampleModel/GeneratedEOs/er/example/erxpartials/model/_Partial_EmployeePerson.java rename to Examples/ERXPartials/ERXPartialsExampleModel/Sources/er/example/erxpartials/model/_Partial_EmployeePerson.java diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/build.xml b/Examples/ERXPartials/ERXPartialsExampleModel/build.xml deleted file mode 100644 index 6b9f43fa1c8..00000000000 --- a/Examples/ERXPartials/ERXPartialsExampleModel/build.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/ERXPartials/ERXPartialsExampleModel/build.xml b/Examples/ERXPartials/ERXPartialsExampleModel/build.xml new file mode 120000 index 00000000000..0f8b528f5ed --- /dev/null +++ b/Examples/ERXPartials/ERXPartialsExampleModel/build.xml @@ -0,0 +1 @@ +../../../Build/build/build-framework-template.xml \ No newline at end of file