All Superinterfaces:
IStatement
All Known Implementing Classes:
MetaCast, PgCast

public interface ICast extends IStatement
Interface for database type cast operations. Defines functionality for casting between different data types in various contexts.
  • Field Details

  • Method Details

    • getSource

      String getSource()
      Gets the source type of the cast.
      Returns:
      the source type name
    • getTarget

      String getTarget()
      Gets the target type of the cast.
      Returns:
      the target type name
    • getContext

      ICast.CastContext getContext()
      Gets the context in which this cast can be invoked.
      Returns:
      the cast context
    • getSimpleName

      static String getSimpleName(String source, String target)
      Creates a simple name for a cast from source to target type.
      Parameters:
      source - the source type
      target - the target type
      Returns:
      the formatted cast name
    • toObjectReference

      default ObjectReference toObjectReference()
      Specified by:
      toObjectReference in interface IStatement