Class SqlDateTimeType

java.lang.Object
org.sqlproc.engine.type.SqlDefaultType
org.sqlproc.engine.type.SqlDateTimeType
All Implemented Interfaces:
SqlMetaType, SqlTaggedMetaType
Direct Known Subclasses:
JdbcDateTimeType

public abstract class SqlDateTimeType extends SqlDefaultType
The META type DATETIME.
Author:
Vladimir Hudec
  • Constructor Details

    • SqlDateTimeType

      public SqlDateTimeType()
  • Method Details

    • getClassTypes

      public Class<?>[] getClassTypes()
      Returns the list of Java class types related to this META type.
      Returns:
      the list of Java class types related to this META type
    • getMetaTypes

      public String[] getMetaTypes()
      Returns the list of names of this META type. These names can be used in the META SQL statements.
      Returns:
      list of names of this META type. These names can be used in the META SQL statements
    • getClassTypesForDefault

      public Class<?>[] getClassTypesForDefault()
      Returns the list of Java class types related to this META type for SqlDefaultType processing.
      Overrides:
      getClassTypesForDefault in class SqlDefaultType
      Returns:
      the list of Java class types related to this META type for SqlDefaultType processing
    • setParameter

      public void setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes) throws SqlRuntimeException
      Binds an input value to a named query parameter.
      Specified by:
      setParameter in interface SqlMetaType
      Overrides:
      setParameter in class SqlDefaultType
      Parameters:
      runtimeCtx - the runtimeCtx context
      query - the SQL Engine query, an adapter or proxy to the internal JDBC or ORM staff
      paramName - the name of the parameter
      ingoreError - ignore improper input value handling
      inputTypes - the Java types of the attribute in the input POJO
      Throws:
      SqlRuntimeException - in the case of any problem with the input values handling