Class CqlDataUtil


  • public class CqlDataUtil
    extends java.lang.Object
    Utility functions for dealing with data read from and written to Cassandra
    • Constructor Summary

      Constructors 
      Constructor Description
      CqlDataUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isBase64Chars​(java.lang.String name)
      Check that the name contains only characters used in a Base64 encoded string.
      static boolean isValidName​(java.lang.String name)
      Check that the name is a valid object name for Cassandra.
      static void safeBase64​(java.lang.String value)  
      static void safeId​(java.lang.String id)
      Asserts that the given id is safe and will not escape a Cql statement In this case, we can simply assert that it's a valid FHIR identifier string
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CqlDataUtil

        public CqlDataUtil()
    • Method Detail

      • safeId

        public static void safeId​(java.lang.String id)
        Asserts that the given id is safe and will not escape a Cql statement In this case, we can simply assert that it's a valid FHIR identifier string
        Parameters:
        id -
      • safeBase64

        public static void safeBase64​(java.lang.String value)
      • isValidName

        public static boolean isValidName​(java.lang.String name)
        Check that the name is a valid object name for Cassandra.
        Parameters:
        name -
        Returns:
      • isBase64Chars

        public static boolean isBase64Chars​(java.lang.String name)
        Check that the name contains only characters used in a Base64 encoded string. Note that this does not assert that the string is valid Base64.
        Parameters:
        name -
        Returns: