Package org.structr.core.property

Examples of org.structr.core.property.PropertyKey


      } break;

      case 3 : {

        final String userNickName = (String) parameters[0];
        final PropertyKey key = (PropertyKey) parameters[1];
        final NodeIndex idx = (NodeIndex) parameters[2];
        final Index<Node> index = getIndexFromArguments(idx, arguments);
        IndexHits<Node> indexHits = null;

        synchronized (index) {

          // see: http://docs.neo4j.org/chunked/milestone/indexing-create-advanced.html
          indexHits = index.query( key.dbName(), "\"" + userNickName + "\"" );
         
        }
       
        try {
          for (final Node n : indexHits) {
View Full Code Here


        }

        for (Entry<PropertyKey, Object> attr : properties.entrySet()) {

          Object value = attr.getValue();
          PropertyKey key = attr.getKey();
          if (key.isReadOnly()) {
            node.unlockReadOnlyPropertiesOnce();
          }
          node.setProperty(key, value);

        }
View Full Code Here

              } else {
                val = entry.getValue();
              }

              PropertyKey propertyKey = StructrApp.getConfiguration().getPropertyKeyForDatabaseName(node.getClass(), key);
              if (propertyKey != null) {

                try {
                  node.unlockReadOnlyPropertiesOnce();
                  node.setProperty(propertyKey, val);
View Full Code Here

      String part = parts[i];

      if (_data != null && _data instanceof GraphObject) {

        PropertyKey referenceKeyProperty = StructrApp.getConfiguration().getPropertyKeyForJSONName(_data.getClass(), part);
        _data                            = ((GraphObject)_data).getProperty(referenceKeyProperty);

        if (_data == null) {

          // check for default value
View Full Code Here

      final Set<PropertyKey> keySet      = Services.getInstance().getConfigurationProvider().getPropertySet(type, PropertyView.Public);
      final PropertyMap notionProperties = notionPropertyMap.get(entityKey);

      for (final Iterator<PropertyKey> it = notionProperties.keySet().iterator(); it.hasNext();) {

        final PropertyKey key = it.next();
        if (!keySet.contains(key)) {

          it.remove();
        }
      }
View Full Code Here

      if (properties != null) {

        for (Entry<PropertyKey, Object> entry : properties.entrySet()) {

          PropertyKey key = entry.getKey();

          // on creation, writing of read-only properties should be possible
          if (key.isReadOnly() || key.isWriteOnce()) {
            newRel.unlockReadOnlyPropertiesOnce();
          }

          newRel.setProperty(entry.getKey(), entry.getValue());
        }
View Full Code Here

  @Override
  public <P> org.structr.core.app.Query<T> and(final PropertyMap attributes) {

    for (final Map.Entry<PropertyKey, Object> entry : attributes.entrySet()) {

      final PropertyKey key = entry.getKey();
      final Object value = entry.getValue();

      and(key, value);
    }
View Full Code Here

  @Override
  public <P> org.structr.core.app.Query<T> or(final PropertyMap attributes) {

    for (Map.Entry<PropertyKey, Object> entry : attributes.entrySet()) {

      final PropertyKey key = entry.getKey();
      final Object value = entry.getValue();

      or(key, value);
    }
View Full Code Here

    final Set<PropertyKey> propertyKeys = new LinkedHashSet<>(Iterables.toList(super.getPropertyKeys(propertyView)));

    // add "custom" property keys as String properties
    for (final String key : SchemaHelper.getProperties(getRelationship())) {

      final PropertyKey newKey = new StringProperty(key);
      newKey.setDeclaringClass(getClass());

      propertyKeys.add(newKey);
    }

    return propertyKeys;
View Full Code Here

          for (Entry entry : properties.entrySet()) {

            String key = (String) entry.getKey();

            PropertyKey propertyKey = StructrApp.getConfiguration().getPropertyKeyForDatabaseName(node.getClass(), key);
            if (propertyKey != null) {

              Node dbNode = node.getNode();

              if (dbNode.hasProperty(newKey)) {
View Full Code Here

TOP

Related Classes of org.structr.core.property.PropertyKey

Copyright © 2018 www.massapicom. 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.