Package tilda.enums

Enum ColumnType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ColumnType>

    public enum ColumnType
    extends java.lang.Enum<ColumnType>
    • Enum Constant Detail

      • DATETIME

        public static final ColumnType DATETIME
        All Datetimes are stored as 2 columns in the DB, so SETs are not allowed because they are unordered.
        Datetimes with timezones are stored as TIMESTAMPTZ in UTC and readjusted to ZonedDateTime in the app, and the TZ field is updated as appropriate during a set.
      • DATETIME_PLAIN

        public static final ColumnType DATETIME_PLAIN
        All Datetimes are stored as 2 columns in the DB, so SETs are not allowed because they are unordered.
        Datetimes without timezones (plain) are stored as DATETIME and readjusted to ZonedDateTime in the app based on the stored TZ field which is then managed explicitly in the app.
        DATETIME_PLAIN is an internal type and is not available in the markup so that datetimes are enforced as being handled uniformly and always with a timezone. The difference is whether the timezone is baked in the timestamptz or managed manually along with a datetime. The internal implementation differences are driven by tzMode.
      • BITFIELD

        public static final ColumnType BITFIELD
    • Field Detail

      • _ArrayCompatible

        public final boolean _ArrayCompatible
      • _SetCompatible

        public final boolean _SetCompatible
      • _Primitive

        public final boolean _Primitive
      • _InternalOnly

        public final boolean _InternalOnly
      • _SimpleName

        public final java.lang.String _SimpleName
      • _ShortName

        public final java.lang.String _ShortName
      • _CompatibleTypes

        public static final ColumnType[][] _CompatibleTypes
      • _CompatibleDBTypes

        public static final ColumnType[][] _CompatibleDBTypes
      • _ALIASES

        protected static java.lang.String[][] _ALIASES
    • Method Detail

      • values

        public static ColumnType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ColumnType c : ColumnType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ColumnType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • parse

        public static ColumnType parse​(java.lang.String str)
      • isCollectionCompatible

        public boolean isCollectionCompatible​(MultiType CollectionType)
      • isPrimitive

        public boolean isPrimitive()
      • isCompatible

        public boolean isCompatible​(ColumnType Type)
      • isDBCompatible

        public boolean isDBCompatible​(ColumnType Type)
      • getCompatibleTypesString

        public static java.lang.String getCompatibleTypesString​(ColumnType Type)
      • getCompatibleDBTypesString

        public static java.lang.String getCompatibleDBTypesString​(ColumnType Type)
      • validate

        public static <T> void validate​(T[] Enums,
                                        java.lang.String typeName)
      • getPad

        public java.lang.String getPad()
      • parse

        public java.util.Collection<?> parse​(boolean isSet,
                                             java.lang.String[] parts)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isNumber

        public boolean isNumber()
      • isNumber

        public static boolean isNumber​(ColumnType Type)
      • getBigQueryType

        public java.lang.String getBigQueryType()
      • getSQLType

        public int getSQLType()
      • getMappedName

        public java.lang.String getMappedName()