Examples of userInfo()


Examples of com.webobjects.eoaccess.EOEntity.userInfo()

      eosqlexpression = _expressionForEntity(entityGroup.objectAtIndex(0));

      for (int i = 0; i < j; i++) {
        eoentity = entityGroup.objectAtIndex(i);
        NSDictionary dictionary = eoentity.userInfo();

        if (dictionary != null && dictionary.valueForKey("Index") != null) {
          dictionary = (NSDictionary) dictionary.valueForKey("Index");
          java.util.Enumeration e = dictionary.keyEnumerator();
View Full Code Here

Examples of com.webobjects.eoaccess.EOEntity.userInfo()

    public NSArray<EOSQLExpression> dropTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup) {
      NSLog.debug.appendln("In dropTableStatementsForEntityGroup (no s)");
      EOEntity entity = entityGroup.objectAtIndex(0);
      String dropType = " CASCADE";

      if (entity.userInfo() != null) {
        NSDictionary dictionary = entity.userInfo();
        if (dictionary.valueForKey("Restrict") != null && ((String) dictionary.valueForKey("Restrict")).equals("true"))
          dropType = " RESTRICT";
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOGeneralAdaptorException.userInfo()

            s.append(" **** Caught: "+exception + "\n");
            s.append(extraInfoString(extraInfo, 3));
           
            if (exception instanceof EOGeneralAdaptorException) {
                EOGeneralAdaptorException  e= (EOGeneralAdaptorException)exception;
                if (e.userInfo()!=null) {
                    Object userInfo=e.userInfo();
                    if (userInfo instanceof NSDictionary) {
                        NSDictionary uid=(NSDictionary)userInfo;
                        for (Enumeration e2=uid.keyEnumerator(); e2.hasMoreElements();) {
                            String key=(String)e2.nextElement();
View Full Code Here

Examples of com.webobjects.eoaccess.EOGeneralAdaptorException.userInfo()

            s.append(extraInfoString(extraInfo, 3));
           
            if (exception instanceof EOGeneralAdaptorException) {
                EOGeneralAdaptorException  e= (EOGeneralAdaptorException)exception;
                if (e.userInfo()!=null) {
                    Object userInfo=e.userInfo();
                    if (userInfo instanceof NSDictionary) {
                        NSDictionary uid=(NSDictionary)userInfo;
                        for (Enumeration e2=uid.keyEnumerator(); e2.hasMoreElements();) {
                            String key=(String)e2.nextElement();
                            Object value=uid.objectForKey(key);
View Full Code Here

Examples of com.webobjects.eoaccess.EOGeneralAdaptorException.userInfo()

                            String key=(String)e2.nextElement();
                            Object value=uid.objectForKey(key);
                            s.append(key + " = " + value + ";\n");
                        }
                    } else {
                        s.append(e.userInfo().toString());
                    }
                }
            } else {
                s.append(ERXUtilities.stackTrace(exception));
            }
View Full Code Here

Examples of com.webobjects.eoaccess.EOGeneralAdaptorException.userInfo()

   
    @Override
    public boolean handleDatabaseException(EODatabaseContext databaseContext, Throwable throwable) {
      if (throwable instanceof EOGeneralAdaptorException) {
        EOGeneralAdaptorException gae = (EOGeneralAdaptorException) throwable;
        if (gae.userInfo() != null) {
          EOAdaptorOperation failedOperation = (EOAdaptorOperation) gae.userInfo().objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
          if (failedOperation != null) {
            Throwable t = failedOperation.exception();
            if (t instanceof JDBCAdaptorException) {
              JDBCAdaptorException jdbcEx = (JDBCAdaptorException) t;
View Full Code Here

Examples of com.webobjects.eoaccess.EOGeneralAdaptorException.userInfo()

    @Override
    public boolean handleDatabaseException(EODatabaseContext databaseContext, Throwable throwable) {
      if (throwable instanceof EOGeneralAdaptorException) {
        EOGeneralAdaptorException gae = (EOGeneralAdaptorException) throwable;
        if (gae.userInfo() != null) {
          EOAdaptorOperation failedOperation = (EOAdaptorOperation) gae.userInfo().objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
          if (failedOperation != null) {
            Throwable t = failedOperation.exception();
            if (t instanceof JDBCAdaptorException) {
              JDBCAdaptorException jdbcEx = (JDBCAdaptorException) t;
              SQLException sqlEx = jdbcEx.sqlException();
View Full Code Here

Examples of com.webobjects.eoaccess.EOModel.userInfo()

      EOModel model = (EOModel) modelsEnum.nextElement();
      if(_prototypeModelNames.containsObject(model.name())) {
        log.debug("Skipping prototype model " + model.name());
        continue;
      }
      NSDictionary userInfo = model.userInfo();
      Boolean prototypesFixedBoolean = (Boolean) userInfo.objectForKey(prototypesFixedKey);
      if (prototypesFixedBoolean == null || !prototypesFixedBoolean.booleanValue()) {
        boolean prototypesFixed = false;
        String prototypeEntityName = prototypeEntityNameForModel(model);
        if (prototypeEntityName == null) {
View Full Code Here

Examples of com.webobjects.eoaccess.EORelationship.userInfo()

            EOAttribute a=entity.attributeNamed(lastKey);
            NSDictionary userInfo=null;
            if (a!=null) userInfo=a.userInfo();
            else {
                EORelationship r=entity.relationshipNamed(lastKey);
                if (r!=null) userInfo=r.userInfo();
            }
            //
           // NSDictionary userInfo=(NSDictionary)(property!=null ? property.valueForKey("userInfo") : null);
            result= (String)(userInfo!=null ? userInfo.valueForKey("unit") : null);
        }
View Full Code Here

Examples of com.webobjects.eoaccess.EORelationship.userInfo()

            for( Enumeration e = entity.relationships().objectEnumerator(); e.hasMoreElements();) {
                EORelationship rel = (EORelationship)e.nextElement();
                String defaultValue = null;

                if(rel.userInfo() != null)
                    defaultValue = (String)rel.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(rel.name());
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.