plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/model/GraphPropertyType.java
public Object convertFromHop(IValueMeta valueMeta, Object valueData) throws HopValueException {

    if (valueMeta.isNull(valueData)) {
      return null;
    }
    TimeZone timeZone = valueMeta.getDateFormatTimeZone();
    if (timeZone == null) {
      timeZone = TimeZone.getDefault();
    }
    switch (this) {
      case String:
        return valueMeta.getString(valueData);
      case Boolean:
        return valueMeta.getBoolean(valueData);
      case Float:
        return valueMeta.getNumber(valueData);
      case Integer:
        return valueMeta.getInteger(valueData);
      case Date:
        return valueMeta.getDate(valueData).toInstant().atZone(timeZone.toZoneId()).toLocalDate();
      case LocalDateTime:
        return valueMeta
            .getDate(valueData)
            .toInstant()
            .atZone(timeZone.toZoneId())
            .toLocalDateTime();
      case ByteArray:
        return valueMeta.getBinary(valueData);
      case DateTime:
        {
          ZonedDateTime zonedDateTime;
          if (valueMeta instanceof ValueMetaTimestamp) {
            ValueMetaTimestamp valueMetaTimestamp = (ValueMetaTimestamp) valueMeta;
            Timestamp timestamp = valueMetaTimestamp.getTimestamp(valueData);
            zonedDateTime = timestamp.toInstant().atZone(timeZone.toZoneId());
          } else {
            java.util.Date date = valueMeta.getDate(valueData);
            zonedDateTime = date.toInstant().atZone(timeZone.toZoneId());
          }
          return zonedDateTime;
        }
      case LocalTime:
      case Time:
      case Point:
      case Duration:
      default:
        throw new HopValueException(
            "Data conversion to Neo4j type '"
                + name()
                + "' from value '"
                + valueMeta.toStringMeta()
                + "' is not supported yet");
    }
  }
/**
   * Convert the given Hop value to a Neo4j data type
   *
   * @param valueMeta
   * @param valueData
   * @return
   */
Convert the given Hop value to a Neo4j data type
@param valueMeta
@param valueData
@return
Convert the given Hop value to a Neo4j data type @param valueMeta @param valueData @return
public Object convertFromHop(IValueMeta valueMeta, Object valueData) throws HopValueException {
    if (valueMeta.isNull(valueData)) {
      return null;
    }
    TimeZone timeZone = valueMeta.getDateFormatTimeZone();
    if (timeZone == null) {
      timeZone = TimeZone.getDefault();
    }
    switch (this) {
      case String:
        return valueMeta.getString(valueData);
      case Boolean:
        return valueMeta.getBoolean(valueData);
      case Float:
        return valueMeta.getNumber(valueData);
      case Integer:
        return valueMeta.getInteger(valueData);
      case Date:
        return valueMeta.getDate(valueData).toInstant().atZone(timeZone.toZoneId()).toLocalDate();
      case LocalDateTime:
        return valueMeta
            .getDate(valueData)
            .toInstant()
            .atZone(timeZone.toZoneId())
            .toLocalDateTime();
      case ByteArray:
        return valueMeta.getBinary(valueData);
      case DateTime:
        {
          ZonedDateTime zonedDateTime;
          if (valueMeta instanceof ValueMetaTimestamp) {
            ValueMetaTimestamp valueMetaTimestamp = (ValueMetaTimestamp) valueMeta;
            Timestamp timestamp = valueMetaTimestamp.getTimestamp(valueData);
            zonedDateTime = timestamp.toInstant().atZone(timeZone.toZoneId());
          } else {
            java.util.Date date = valueMeta.getDate(valueData);
            zonedDateTime = date.toInstant().atZone(timeZone.toZoneId());
          }
          return zonedDateTime;
        }
      case LocalTime:
      case Time:
      case Point:
      case Duration:
      default:
        throw new HopValueException(
            "Data conversion to Neo4j type '"
                + name()
                + "' from value '"
                + valueMeta.toStringMeta()
                + "' is not supported yet");
    }
  }
public Object convertFromHop ( IValueMeta valueMeta , Object valueData ) throws HopValueException { if ( valueMeta . isNull ( valueData ) ) { return null ; } TimeZone timeZone = valueMeta . getDateFormatTimeZone ( ) ; if ( timeZone == null ) { timeZone = TimeZone . getDefault ( ) ; } switch ( this ) { case String : return valueMeta . getString ( valueData ) ; case Boolean : return valueMeta . getBoolean ( valueData ) ; case Float : return valueMeta . getNumber ( valueData ) ; case Integer : return valueMeta . getInteger ( valueData ) ; case Date : return valueMeta . getDate ( valueData ) . toInstant ( ) . atZone ( timeZone . toZoneId ( ) ) . toLocalDate ( ) ; case LocalDateTime : return valueMeta . getDate ( valueData ) . toInstant ( ) . atZone ( timeZone . toZoneId ( ) ) . toLocalDateTime ( ) ; case ByteArray : return valueMeta . getBinary ( valueData ) ; case DateTime : { ZonedDateTime zonedDateTime ; if ( valueMeta instanceof ValueMetaTimestamp ) { ValueMetaTimestamp valueMetaTimestamp = ( ValueMetaTimestamp ) valueMeta ; Timestamp timestamp = valueMetaTimestamp . getTimestamp ( valueData ) ; zonedDateTime = timestamp . toInstant ( ) . atZone ( timeZone . toZoneId ( ) ) ; } else { java . util . Date date = valueMeta . getDate ( valueData ) ; zonedDateTime = date . toInstant ( ) . atZone ( timeZone . toZoneId ( ) ) ; } return zonedDateTime ; } case LocalTime : case Time : case Point : case Duration : default : throw new HopValueException ( "Data conversion to Neo4j type '" + name ( ) + "' from value '" + valueMeta . toStringMeta ( ) + "' is not supported yet" ) ; } }
Convert the given Hop value to a Neo4j data type
 @param valueMeta
 @param valueData
 @return
Convert the given Hop value to a Neo4j data type @param valueMeta @param valueData @return