Examples of existsProperty()


Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

  public void testCountFunctionWithNotUniqueIndex() {
    long oldIndexUsage = profiler.getCounter("db.demo.query.indexUsed");
    long oldcompositeIndexUsed = profiler.getCounter("db.demo.query.compositeIndexUsed");

    OClass klazz = database.getMetadata().getSchema().getOrCreateClass("CountFunctionWithNotUniqueHashIndex");
    if (!klazz.existsProperty("a")) {
      klazz.createProperty("a", OType.STRING);
      klazz.createIndex("CountFunctionWithNotUniqueHashIndex_A", "NOTUNIQUE_HASH_INDEX", "a");
    }

    ODocument doc = database.newInstance("CountFunctionWithNotUniqueHashIndex").field("a", "a").field("b", "b").save();
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

  public void testCountFunctionWithUniqueIndex() {
    long oldIndexUsage = profiler.getCounter("db.demo.query.indexUsed");
    long oldcompositeIndexUsed = profiler.getCounter("db.demo.query.compositeIndexUsed");

    OClass klazz = database.getMetadata().getSchema().getOrCreateClass("CountFunctionWithUniqueHashIndex");
    if (!klazz.existsProperty("a")) {
      klazz.createProperty("a", OType.STRING);
      klazz.createIndex("CountFunctionWithUniqueHashIndex_A", "UNIQUE_HASH_INDEX", "a");
    }

    ODocument doc = database.newInstance("CountFunctionWithUniqueHashIndex").field("a", "a").field("b", "b").save();
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

      if (!warn && !edgeBaseClass.getName().equals(OrientEdgeType.CLASS_NAME)) {
        OLogManager.instance().warn(null, "Found Edge class %s" + MSG_SUFFIX, edgeBaseClass.getName());
        warn = true;
      }

      if (edgeBaseClass.existsProperty(CONNECTION_OUT) || edgeBaseClass.existsProperty(CONNECTION_IN)) {
        OLogManager.instance().warn(null, "Found property in/out against E");
        warn = true;
      }
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

      if (!warn && !edgeBaseClass.getName().equals(OrientEdgeType.CLASS_NAME)) {
        OLogManager.instance().warn(null, "Found Edge class %s" + MSG_SUFFIX, edgeBaseClass.getName());
        warn = true;
      }

      if (edgeBaseClass.existsProperty(CONNECTION_OUT) || edgeBaseClass.existsProperty(CONNECTION_IN)) {
        OLogManager.instance().warn(null, "Found property in/out against E");
        warn = true;
      }
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

            "Found Edge class %s" + MSG_SUFFIX,
            edgeBaseClass.getName());
        warn = true;
      }

      if (edgeBaseClass.existsProperty(CONNECTION_OUT)
          || edgeBaseClass.existsProperty(CONNECTION_IN)) {
        OLogManager.instance().warn(this,
            "Found property in/out against E");
        warn = true;
      }
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.existsProperty()

            edgeBaseClass.getName());
        warn = true;
      }

      if (edgeBaseClass.existsProperty(CONNECTION_OUT)
          || edgeBaseClass.existsProperty(CONNECTION_IN)) {
        OLogManager.instance().warn(this,
            "Found property in/out against E");
        warn = true;
      }
    }
View Full Code Here

Examples of com.sun.appserv.management.config.HTTPListenerConfig.existsProperty()

                AMXUtil.editProperties(handlerCtx, httpListConfig);
               
                //refer to issue #2920
                if (httpListenerName.equals(ADMIN_LISTENER)){
                    if (httpListConfig.getSecurityEnabled()){
                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
                            httpListConfig.setPropertyValue(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                         else
                             httpListConfig.createProperty(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                    }else{
                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
View Full Code Here

Examples of com.sun.appserv.management.config.HTTPListenerConfig.existsProperty()

                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
                            httpListConfig.setPropertyValue(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                         else
                             httpListConfig.createProperty(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                    }else{
                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
                            httpListConfig.removeProperty(PROXIED_PROTOCOLS);
                    }
                }
               
                //Also need to change the http-listeners attributes of Virtual Server.
View Full Code Here

Examples of com.sun.appserv.management.config.JMXConnectorConfig.existsProperty()

            handlerCtx.setOutputValue("security", connectorConfig.getSecurityEnabled());
            handlerCtx.setOutputValue("Port", connectorConfig.getPort());
            handlerCtx.setOutputValue("RealmName", connectorConfig.getAuthRealmName());
            if (AMXUtil.isEE()){
                String client = "";
                if (connectorConfig.existsProperty("client-hostname"))
                    client = connectorConfig.getPropertyValue("client-hostname");
                handlerCtx.setOutputValue("clientHostname", client);
            }
        }  
       
View Full Code Here

Examples of com.sun.appserv.management.config.JMXConnectorConfig.existsProperty()

            handlerCtx.setOutputValue("Port", connectorConfig.getPort());
            handlerCtx.setOutputValue("RealmName", connectorConfig.getAuthRealmName());
            handlerCtx.setOutputValue("Accept", connectorConfig.getAcceptAll());
            handlerCtx.setOutputValue("security", connectorConfig.getSecurityEnabled());
            String client="";
            if (connectorConfig.existsProperty("client-hostname"))
                client = connectorConfig.getPropertyValue("client-hostname");
            handlerCtx.setOutputValue("clientHostname", client);
        }
       
        /**
 
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.