Class PropertyConverters

java.lang.Object
dev.getelements.elements.dao.mongo.mapper.PropertyConverters

public class PropertyConverters extends Object
  • Constructor Details

    • PropertyConverters

      public PropertyConverters()
  • Method Details

    • toHexString

      public String toHexString(org.bson.types.ObjectId objectId)
    • toObjectId

      public org.bson.types.ObjectId toObjectId(String objectIdString)
    • toHexString

      public String toHexString(byte[] bytes)
    • toByteArray

      public byte[] toByteArray(String string)
    • toHexString

      public String toHexString(HexableId hexableId)
    • toLong

      public Long toLong(Class<? extends Long> longType, Timestamp timestamp)
    • toTimestamp

      public Timestamp toTimestamp(Long timestamp)
    • toHexableId

      public <HexableIdT extends HexableId> HexableIdT toHexableId(String string, Class<HexableIdT> hexableIdTClass)