Examples of SqlDate


Examples of com.facebook.presto.spi.type.SqlDate

    @Test
    public void testCastToDate()
            throws Exception
    {
        assertFunction("cast(TIMESTAMP '2001-1-22 03:04:05.321 +07:09' as date)",
                new SqlDate(new LocalDate(2001, 1, 22).toDateMidnight(getDateTimeZone(session.getTimeZoneKey())).getMillis(), session.getTimeZoneKey()));
    }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLDate

    case Types.FLOAT:
    case Types.DOUBLE:
      return new SQLApproximateNumeric(this, name);
   
    case Types.DATE:
      return new SQLDate(this, name);
     
    case Types.TIME:
      return new SQLTime(this, name);
     
    case Types.TIMESTAMP:
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLDate

  @Override
  public DataType getDataType(int jdbcType, String name, int size) {
    // MS SQLServer 2008 driver returns DATE as VARCHAR type
    if (name.equals("DATE")) {
      return new SQLDate(this, name);
    }
   
    // On SQL Server, BIT is a single-bit numeric type
    if (jdbcType == Types.BIT) {
      return new SQLServerCompatibilityBitDataType(this);
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

    public static Date getDate(java.util.Calendar cal, String str, LocaleFinder localeFinder) throws StandardException
    {
        if( str == null)
            return null;
        SQLDate internalDate = new SQLDate( str, false, localeFinder);
        return internalDate.getDate( cal);
    }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

        throws StandardException
    {
        if( str == null)
            return null;

        SQLDate internalDate = new SQLDate(str, false, localeFinder);

        return internalDate.getDate(cal);
    }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

        throws StandardException
    {
        if( str == null)
            return null;

        SQLDate internalDate = new SQLDate(str, false, localeFinder);

        return internalDate.getDate(cal);
    }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

    public static Date getDate(java.util.Calendar cal, String str, LocaleFinder localeFinder) throws StandardException
    {
        if( str == null)
            return null;
        SQLDate internalDate = new SQLDate( str, false, localeFinder);
        return internalDate.getDate( cal);
    }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

   */
  protected Date  nationalGetDate( Calendar cal) throws StandardException
  {
    if (isNull())
            return null;
        SQLDate internalDate = new SQLDate( getString(), false, getLocaleFinder(), cal);
        return internalDate.getDate( cal);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

    public static Date getDate(java.util.Calendar cal, String str, LocaleFinder localeFinder) throws StandardException
    {
        if( str == null)
            return null;
        SQLDate internalDate = new SQLDate( str, false, localeFinder);
        return internalDate.getDate( cal);
    }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLDate

   */
  protected Date  nationalGetDate( Calendar cal) throws StandardException
  {
    if (isNull())
            return null;
        SQLDate internalDate = new SQLDate( getString(), false, getLocaleFinder(), cal);
        return internalDate.getDate( cal);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.