private String gidStringForObject(EOEnterpriseObject eo) { EOKeyGlobalID gid = ((ERXGenericRecord) eo).permanentGlobalID(); String pk = ERXKeyGlobalID.globalIDForGID(gid).asString(); return pk; }
public static NSArray<GenderType> fetchGenderTypes(EOEditingContext editingContext, EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings) { ERXFetchSpecification<GenderType> fetchSpec = new ERXFetchSpecification<GenderType>(_GenderType.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); NSArray<GenderType> eoObjects = fetchSpec.fetchObjects(editingContext); return eoObjects; }
/** * Gets the singleton clazz object for this Class. * @return sigleton clazz object */ public static ERCMailMessageClazz mailMessageClazz() { return (ERCMailMessageClazz)EOEnterpriseObjectClazz.clazzForEntityNamed("ERCMailMessage"); }
private static synchronized EOEditingContext privateEditingContext() { if (_privateEditingContext == null) { if (ERXProperties.booleanForKeyWithDefault("er.corebusinesslogic.ERCStatic.UseSeparateChannel", true)) { _privateEditingContext = ERXEC.newEditingContext(ERXObjectStoreCoordinator.create()); _privateEditingContext.setSharedEditingContext(null); } else { _privateEditingContext = ERXEC.newEditingContext(); } } return _privateEditingContext; }
public EOEditingContext newEditingContext() { return ERXEC.newEditingContext(); } }
public void setObject(EOEnterpriseObject eo) { EOGlobalID gid; if (gid() == null) { if (eo instanceof ERXGenericRecord) { gid = ((ERXGenericRecord) eo).permanentGlobalID(); } else { throw new IllegalArgumentException("Can't handle non ERXGenericRecord"); } ERXKeyGlobalID keyGID = ERXKeyGlobalID.globalIDForGID((EOKeyGlobalID) gid); setGid(keyGID); } }
/** * This method removes tags from the target object, by looking up the corresponding * Tag object instances and removing them from the tag collection of the object if they exist. * * @param tagName the tag to remove (String to tokenize, NSArray<String>, etc) */ public void removeTagNamed(String tagName) { NSArray<ERTag> erTags = tags(); NSArray<ERTag> matchingTags = ERXQ.filtered(erTags, ERTag.NAME.is(tagName)); for (ERTag tag : matchingTags) { removeTag(tag); } }
public static ERXFetchSpecification<Person> fetchSpec() { return new ERXFetchSpecification<Person>(_Person.ENTITY_NAME, null, null, false, true, null); }
protected static Object highlightedValue(Object obj) { Object highlightedValue = ERXEOControlUtilities.convertEOtoGID(obj); return highlightedValue; }
@Override public int hashCode() { return _item.hashCode(); }
public ERCHelpText helpTextForKey(EOEditingContext ec, String key) { return (ERCHelpText) cache.objectForKey(ec, key); } }
public NSDictionary<String, NSArray<String>> propertyDependencies(D2WContext context) { NSDictionary<String, NSArray<String>> propertyDependencies = PROPERTY_DEPENDENCIES .valueInObject(context); return propertyDependencies; }
protected EOQualifier ordQualifier(EOQualifier q1, EOQualifier q2) { return ERXEOControlUtilities.orQualifier(q1, q2); }
@Override public boolean equals(Object obj) { return (obj instanceof ERTaggable && ((ERTaggable<?>)obj)._item.equals(_item)); }
public static NSArray<ERTag> fetchERTags(EOEditingContext editingContext, EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings) { ERXFetchSpecification<ERTag> fetchSpec = new ERXFetchSpecification<ERTag>(_ERTag.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); NSArray<ERTag> eoObjects = fetchSpec.fetchObjects(editingContext); return eoObjects; }
/** * Checks to see if this object has been tagged with the given tag name. * * @param tagName the tag name to check * @return true if this eo is tagged with the given tag name, false otherwise */ public boolean isTaggedWith(String tagName) { return ERXQ.filtered(tags(), ERTag.NAME.is(tagName)).count() > 0; }
public static ERXFetchSpecification<GenderType> fetchSpec() { return new ERXFetchSpecification<GenderType>(_GenderType.ENTITY_NAME, null, null, false, true, null); }
public static ERCMessageAttachmentClazz messageAttachmentClazz() { return (ERCMessageAttachmentClazz)EOEnterpriseObjectClazz.clazzForEntityNamed("ERCMessageAttachment"); } }
public static NSArray<Person> fetchPersons(EOEditingContext editingContext, EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings) { ERXFetchSpecification<Person> fetchSpec = new ERXFetchSpecification<Person>(_Person.ENTITY_NAME, qualifier, sortOrderings); fetchSpec.setIsDeep(true); NSArray<Person> eoObjects = fetchSpec.fetchObjects(editingContext); return eoObjects; }
public static ERCPreferenceClazz preferenceClazz() { return (ERCPreferenceClazz)EOEnterpriseObjectClazz.clazzForEntityNamed("ERCPreference"); } }