/** * Utility method that returns the name of the sequence associated * with the given <code>entity</code>. * * @param entity the entity * @return the name of the sequence */ protected static String _sequenceNameForEntity(EOEntity entity) { String sequenceName = entity.primaryKeyRootName() + "_seq"; synchronized (sequenceNameOverrides) { if (sequenceNameOverrides.containsKey(sequenceName)) { sequenceName = sequenceNameOverrides.get(sequenceName); } } return sequenceName; }
else if (!token.startsWith("</") && _stackDict.containsKey(tokenPart)) {
/** * @param key the name of the index * @param indexDef the dictionary containing the index definition (usually deserialized from the indexModel file) */ private void addIndex(String key, NSDictionary indexDef) { // Classname for the class that will create the lucene index String className = (String) indexDef.objectForKey("index"); NSMutableDictionary dict = indexDef.mutableClone(); // If index store not defined, default to index named the dsame as the indexModel file in the indexRoot directory if(!dict.containsKey("store")) { try { dict.setObjectForKey(new File(indexRoot(), key).toURI().toURL().toString(), "store"); } catch (MalformedURLException e) { throw NSForwardException._runtimeExceptionForThrowable(e); } } // Create the class that will create the index. Defaults to ERAutoIndex ERIndex index; if (className != null) { Class c = ERXPatcher.classForName(className); index = (ERIndex) _NSUtilities.instantiateObject(c, new Class[] { String.class, NSDictionary.class }, new Object[] { key, dict }, true, false); } else { index = new ERAutoIndex(key, dict); } // Add the index addIndex(key, index); }
if (AjaxUtils.isAjaxRequest(context.request())) { NSMutableDictionary userInfo = ERXWOContext.contextDictionary(); if (!userInfo.containsKey("er.ajax.AjaxModalContainer.init")) { AjaxUtils.appendScriptHeader(response); response.appendContentString("iBox.init()");