Package org.apache.jackrabbit.oak.plugins.memory

Examples of org.apache.jackrabbit.oak.plugins.memory.StringValue


        } else {
            try {
                final String uuid = getIdentifier(tree);
                String reference = weak ? PropertyType.TYPENAME_WEAKREFERENCE : PropertyType.TYPENAME_REFERENCE;
                String pName = propertyName == null ? "*" : propertyName;   // TODO: sanitize against injection attacks!?
                Map<String, ? extends CoreValue> bindings = Collections.singletonMap("uuid", new StringValue(uuid));

                Result result = queryEngine.executeQuery(
                        "SELECT * FROM [nt:base] WHERE PROPERTY([" + pName + "], '" + reference + "') = $uuid",
                        Query.JCR_SQL2, Long.MAX_VALUE, 0, bindings, root, new NamePathMapper.Default());

View Full Code Here


        return tree.hasProperty(JcrConstants.JCR_UUID);
    }

    @CheckForNull
    private String resolveUUID(String uuid) {
        return resolveUUID(new StringValue(uuid));
    }
View Full Code Here

                    throw new CommitFailedException(
                            "Uniqueness constraint violation: "
                            + name + " = " + entry.getKey());
                }
            }
            builder.setProperty(value, new StringValue(path));
        }
    }
View Full Code Here

            for (PropertyState p : namespaces.getProperties()) {
                if (!p.isArray() && p.getValue().getString().equals(uri)) {
                    namespaces.removeProperty(p.getName());
                }
            }
            namespaces.setProperty(prefix, new StringValue(uri));
            root.commit(DefaultConflictHandler.OURS);
            refresh();
        } catch (NamespaceValidatorException e) {
            throw e.getNamespaceException();
        } catch (CommitFailedException e) {
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.memory.StringValue

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.