Class AbstractTypes

    • Constructor Detail

      • AbstractTypes

        public AbstractTypes()
    • Method Detail

      • toTypeString

        public abstract String toTypeString​(int type,
                                            int size,
                                            boolean compare)
        Get a string representation of this type for comparison or create purposes.
        Parameters:
        type - the type
        size - the size
        compare - if true then a string for comparison is returned, otherwise for creation
        Returns:
        string representation of this type
      • actualSize

        public int actualSize​(int type,
                              int size)
        Get the actual size of type.
        Returns:
        size
      • regexpKeyword

        public abstract String regexpKeyword()
        Returns the keyword for regular expression matching in queries.
        Returns:
        the keyword
      • handles

        public abstract boolean handles​(String url)
        Checks whether this URL is handled.
        Parameters:
        url - the URL to check
        Returns:
        true if handled by this type class
      • getHandler

        public static AbstractTypes getHandler​(String url)
        Returns the handler for the JDBC url.
        Parameters:
        url - the URL
        Returns:
        the handler
        Throws:
        IllegalArgumentException - if JDBC connection type not supported