// // .java // // Created by eogenerator // DO NOT EDIT. Make changes to .java instead. // copyright package .base; import com.webobjects.foundation.*; import com.webobjects.eocontrol.*; import com.webobjects.eoaccess.*; import java.math.BigDecimal; import java.util.*; @SuppressWarnings("all") public abstract class extends com.webobjects.eocontrol.EOGenericRecord { private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(.class); public static final String _KEY = ""; public static final String Key = ""; public static newInstance(com.webobjects.eocontrol.EOEditingContext context) { com.webobjects.eocontrol.EOClassDescription desc = com.webobjects.eocontrol.EOClassDescription.classDescriptionForEntityName(""); com.webobjects.eocontrol.EOEnterpriseObject object = desc.createInstanceWithEditingContext(context, null); context.insertObject(object); return ()object; } public static String entity() { return ""; } public () { super(); } public static NSArray objectsFor(com.webobjects.eocontrol.EOEditingContext context, Binding) { com.webobjects.eocontrol.EOFetchSpecification spec = com.webobjects.eocontrol.EOFetchSpecification.fetchSpecificationNamed("", ""); com.webobjects.foundation.NSMutableDictionary bindings = new com.webobjects.foundation.NSMutableDictionary(); bindings.setObjectForKey(Binding, ""); spec = spec.fetchSpecificationWithQualifierBindings(bindings); return context.objectsWithFetchSpecification(spec); } public () { return ()this.storedValueForKey(""); } public void set( value) { this.takeStoredValueForKey(value, ""); } public void initialize( value) { this.set(value); } public () { return ()this.storedValueForKey(""); } public void set( value) { this.takeStoredValueForKey(value, ""); } public Relationship() { return ()this.storedValueForKey(""); } public void setRelationship( value) { if (value == null) { object = this.(); if (object != null) this.removeObjectFromBothSidesOfRelationshipWithKey(object, ""); } else { this.addObjectToBothSidesOfRelationshipWithKey(value, ""); } } public void initialize( value) { this.setRelationship(value); } public com.webobjects.foundation.NSArray<> () { com.webobjects.foundation.NSArray aList = (com.webobjects.foundation.NSArray)this.storedValueForKey(""); if (aList != null ) { return aList; } else { return com.webobjects.foundation.NSArray.emptyArray(); } } public void set(NSArray<> value) { this.takeStoredValueForKey(value, ""); } public void addTo( object) { this.includeObjectIntoPropertyWithKey(object, ""); } public void removeFrom( object) { this.excludeObjectFromPropertyWithKey(object, ""); } public void addTo( object) { if (logger.isDebugEnabled()) { if ((this.editingContext() != null) &amp;&amp; (object != null) &amp;&amp; (!this.isReadOnly()) &amp;&amp; (!object.isReadOnly()) &amp;&amp; (!this.editingContext().equals(object.editingContext()))) { try { throw new Exception("WrongEdidtingContext"); } catch(Exception exception) { logger.warn("addTo exception " , exception); } } } this.includeObjectIntoPropertyWithKey(object, ""); } public void removeFromRelationship( object) { this.removeObjectFromBothSidesOfRelationshipWithKey(object, ""); } public createRelationship() { com.webobjects.eocontrol.EOClassDescription classDescription = com.webobjects.eocontrol.EOClassDescription.classDescriptionForEntityName(""); com.webobjects.eocontrol.EOEnterpriseObject object = classDescription.createInstanceWithEditingContext(this.editingContext(), null); this.editingContext().insertObject(object); this.addObjectToBothSidesOfRelationshipWithKey(object, ""); return ()object; } public void deleteRelationship( object) { switch () { case com.webobjects.eoaccess.EORelationship.DeleteRuleNullify: this.removeObjectFromBothSidesOfRelationshipWithKey(object, ""); this.editingContext().deleteObject(object); break; case com.webobjects.eoaccess.EORelationship.DeleteRuleCascade: this.removeObjectFromBothSidesOfRelationshipWithKey(object, ""); this.editingContext().deleteObject(object); break; case com.webobjects.eoaccess.EORelationship.DeleteRuleDeny: break; case com.webobjects.eoaccess.EORelationship.DeleteRuleNoAction: this.removeObjectFromBothSidesOfRelationshipWithKey(object, ""); this.editingContext().deleteObject(object); break; } } public void deleteAllRelationships() { for ( Instance : this.().vector()) this.deleteRelationship(Instance); } public void initialize(NSArray<> value) { this.set(value); } public void initialize( value) { this.addToRelationship(value); } }