Class TypesH2

    • Constructor Detail

      • TypesH2

        public TypesH2()
    • Method Detail

      • toTypeString

        public String toTypeString​(int type,
                                   int size,
                                   boolean compare)
        Get a string representation of this type for comparison or create purposes.
        Specified by:
        toTypeString in class AbstractTypes
        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
      • getAutoIncrementCreateType

        public String getAutoIncrementCreateType​(int type)
        Returns the type definition for auto increment types.
        Specified by:
        getAutoIncrementCreateType in class AbstractTypes
        Parameters:
        type - the preferred type
        Returns:
        the definition for creating the column
      • usesTimestampDefault

        public boolean usesTimestampDefault()
        Whether a default is used for timestamps.
        Specified by:
        usesTimestampDefault in class AbstractTypes
        Returns:
        true if a default is used
      • getTimestampDefault

        public String getTimestampDefault()
        Returns the default used for timestamps.
        Specified by:
        getTimestampDefault in class AbstractTypes
        Returns:
        the default, null if none used
      • handles

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