Package com.dooapp.gaedo.blueprints.strategies

Examples of com.dooapp.gaedo.blueprints.strategies.PropertyMappingStrategy


   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here


   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   * contrary to most of gaedo code, this field can be null
   * @param objectId object id value
   * @return the value used by {@link Properties#vertexId} to identify the vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if(idProperty!=null && idProperty.getAnnotation(GraphProperty.class)!=null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   * contrary to most of gaedo code, this field can be null
   * @param objectId object id value
   * @return the value used by {@link Properties#vertexId} to identify the vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if(idProperty!=null && idProperty.getAnnotation(GraphProperty.class)!=null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

   *            object id value
   * @return the value used by {@link Properties#vertexId} to identify the
   *         vertex associated to that object
   */
  public static String getIdOfLiteral(Class<?> declaredClass, Property idProperty, Object objectId) {
    PropertyMappingStrategy strategy = PropertyMappingStrategy.prefixed;
    if (idProperty != null && idProperty.getAnnotation(GraphProperty.class) != null) {
      strategy = idProperty.getAnnotation(GraphProperty.class).mapping();
    }
    return strategy.literalToId(declaredClass, idProperty, objectId);
  }
View Full Code Here

TOP

Related Classes of com.dooapp.gaedo.blueprints.strategies.PropertyMappingStrategy

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.