Class TArrayType

java.lang.Object
com.mckoi.database.TType
com.mckoi.database.TArrayType
All Implemented Interfaces:
Serializable

public class TArrayType extends TType
An implementation of TType for an expression array.
Author:
Tobias Downer
See Also:
  • Constructor Details

    • TArrayType

      public TArrayType()
      Constructs the type.
  • Method Details

    • comparableTypes

      public boolean comparableTypes(TType type)
      Description copied from class: TType
      Returns true if the type of this object is logically comparable to the type of the given object. For example, VARCHAR and LONGVARCHAR are comparable types. DOUBLE and FLOAT are comparable types. DOUBLE and VARCHAR are not comparable types.
      Specified by:
      comparableTypes in class TType
    • compareObs

      public int compareObs(Object ob1, Object ob2)
      Description copied from class: TType
      Compares two objects that are logically comparable under this type. Returns 0 if the values are equal, >1 if ob1 is greater than ob2, and <1 if ob1 is less than ob2. It is illegal to pass NULL values for ob1 or ob2 into this method.
      Specified by:
      compareObs in class TType
    • calculateApproximateMemoryUse

      public int calculateApproximateMemoryUse(Object ob)
      Description copied from class: TType
      Calculates the approximate memory usage of an object of this type in bytes.
      Specified by:
      calculateApproximateMemoryUse in class TType
    • javaClass

      public Class javaClass()
      Description copied from class: TType
      Returns the Java Class that is used to represent this type of object. For example, string types would return String.class.
      Specified by:
      javaClass in class TType