test_class.declarator: valueFactory = new PartialValueFactory(NamePathMapper.DEFAULT)
test_class.modifier: private
test_class.original_string: private PartialValueFactory valueFactory = new PartialValueFactory(NamePathMapper.DEFAULT);
test_class.type: PartialValueFactory
test_class.var_name: valueFactory
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/QueryUtilTest.java
test_class.identifier: QueryUtilTest
test_case.body: @Test
      public void testFormatDate() throws Exception {
          Value dateV = valueFactory.createValue(Calendar.getInstance());
          String dateString = dateV.getString();
          assertEquals("xs:dateTime('" + dateString + "')", QueryUtil.format(dateV));
      }
test_case.class_method_signature: QueryUtilTest.testFormatDate()
test_case.full_signature: @Test public void testFormatDate()
test_case.identifier: testFormatDate
test_case.invocations: createValue getInstance getString assertEquals format
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFormatDate()
focal_class.declarator: log = LoggerFactory.getLogger(QueryUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(QueryUtil.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/query/QueryUtil.java
focal_class.identifier: QueryUtil
focal_class.class_method_signature: QueryUtil.QueryUtil()
focal_class.full_signature: private  QueryUtil()
focal_class.identifier: QueryUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  QueryUtil()
focal_class.class_method_signature: QueryUtil.getSearchRoot(AuthorizableType type, ConfigurationParameters config)
focal_class.full_signature: @NotNull public static String getSearchRoot(AuthorizableType type, ConfigurationParameters config)
focal_class.identifier: getSearchRoot
focal_class.modifiers: @NotNull public static
focal_class.parameters: (AuthorizableType type, ConfigurationParameters config)
focal_class.return: String
focal_class.signature: String getSearchRoot(AuthorizableType type, ConfigurationParameters config)
focal_class.class_method_signature: QueryUtil.getNodeTypeName(@NotNull AuthorizableType type)
focal_class.full_signature: @NotNull public static String getNodeTypeName(@NotNull AuthorizableType type)
focal_class.identifier: getNodeTypeName
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull AuthorizableType type)
focal_class.return: String
focal_class.signature: String getNodeTypeName(@NotNull AuthorizableType type)
focal_class.class_method_signature: QueryUtil.escapeNodeName(@NotNull String string)
focal_class.full_signature: @NotNull public static String escapeNodeName(@NotNull String string)
focal_class.identifier: escapeNodeName
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull String string)
focal_class.return: String
focal_class.signature: String escapeNodeName(@NotNull String string)
focal_class.class_method_signature: QueryUtil.format(@NotNull Value value)
focal_class.full_signature: @NotNull public static String format(@NotNull Value value)
focal_class.identifier: format
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull Value value)
focal_class.return: String
focal_class.signature: String format(@NotNull Value value)
focal_class.class_method_signature: QueryUtil.escapeForQuery(@NotNull String oakName, @NotNull NamePathMapper namePathMapper)
focal_class.full_signature: @NotNull public static String escapeForQuery(@NotNull String oakName, @NotNull NamePathMapper namePathMapper)
focal_class.identifier: escapeForQuery
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull String oakName, @NotNull NamePathMapper namePathMapper)
focal_class.return: String
focal_class.signature: String escapeForQuery(@NotNull String oakName, @NotNull NamePathMapper namePathMapper)
focal_class.class_method_signature: QueryUtil.escapeForQuery(@NotNull String value)
focal_class.full_signature: @NotNull public static String escapeForQuery(@NotNull String value)
focal_class.identifier: escapeForQuery
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull String value)
focal_class.return: String
focal_class.signature: String escapeForQuery(@NotNull String value)
focal_class.class_method_signature: QueryUtil.getCollation(@NotNull QueryBuilder.Direction direction)
focal_class.full_signature: @NotNull public static RelationOp getCollation(@NotNull QueryBuilder.Direction direction)
focal_class.identifier: getCollation
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull QueryBuilder.Direction direction)
focal_class.return: RelationOp
focal_class.signature: RelationOp getCollation(@NotNull QueryBuilder.Direction direction)
focal_class.class_method_signature: QueryUtil.getID(@Nullable Authorizable authorizable)
focal_class.full_signature: @Nullable public static String getID(@Nullable Authorizable authorizable)
focal_class.identifier: getID
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable Authorizable authorizable)
focal_class.return: String
focal_class.signature: String getID(@Nullable Authorizable authorizable)
focal_method.body: @NotNull
      public static String format(@NotNull Value value) throws RepositoryException {
          switch (value.getType()) {
              case PropertyType.STRING:
              case PropertyType.BOOLEAN:
                  return '\'' + QueryUtil.escapeForQuery(value.getString()) + '\'';
  
              case PropertyType.LONG:
              case PropertyType.DOUBLE:
                  return value.getString();
  
              case PropertyType.DATE:
                  return "xs:dateTime('" + value.getString() + "')";
  
              default:
                  throw new RepositoryException("Property of type " + PropertyType.nameFromValue(value.getType()) + " not supported");
          }
      }
focal_method.class_method_signature: QueryUtil.format(@NotNull Value value)
focal_method.full_signature: @NotNull public static String format(@NotNull Value value)
focal_method.identifier: format
focal_method.invocations: getType escapeForQuery getString getString getString nameFromValue getType
focal_method.modifiers: @NotNull public static
focal_method.parameters: (@NotNull Value value)
focal_method.return: String
focal_method.signature: String format(@NotNull Value value)