Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for timestamp (0.24 sec)

  1. src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java

     */
    package org.codelibs.core.beans.converter;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.sql.Timestamp;
    import java.util.Date;
    
    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class DateConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

     */
    package org.codelibs.core.beans.converter;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.sql.Timestamp;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class NumberConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsObject() throws Exception {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.lang.reflect.Type;
    import java.lang.reflect.TypeVariable;
    import java.sql.Time;
    import java.sql.Timestamp;
    import java.util.Collection;
    import java.util.Map;
    
    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.ParameterizedClassDesc;
    import org.codelibs.core.beans.PropertyDesc;
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

        }
    
        @Override
        public boolean isTarget(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
            return clazz == java.sql.Timestamp.class;
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd HH:mm:ss");
            final java.sql.Timestamp result = (java.sql.Timestamp) converter.getAsObject("2008/12/31 12:34:56");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/12/31 12:34:56"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

         */
        protected static final Converter DEFAULT_TIME_CONVERTER = new DateConverter(TimeConversionUtil.getMediumPattern());
    
        /**
         * 日時用のデフォルトコンバータです。
         */
        protected static final Converter DEFAULT_TIMESTAMP_CONVERTER = new DateConverter(TimestampConversionUtil.getMediumPattern());
    
        /**
         * 操作の対象に含めるプロパティ名の配列です。
         */
        protected final List<String> includePropertyNames = newArrayList();
    
        /**
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

            final Timestamp timestamp = toSqlTimestamp("10/9/7 11:49", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(timestamp), is("2010/09/07 11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToTimestamp_MediumStyle() throws Exception {
            final Timestamp timestamp = toSqlTimestamp("2010/9/7 11:49:10", Locale.JAPAN);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

            }
            final Timestamp timestamp = toSqlTimestampJdbcEscape(str);
            if (timestamp != null) {
                return toCalendar(timestamp, locale);
            }
            throw new ParseRuntimeException(str);
        }
    
        /**
         * オブジェクトを{@link Timestamp}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @return 変換された{@link Timestamp}
         */
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

            assertThat(new CopyOptions().findDefaultConverter(Timestamp.class), is(CopyOptions.DEFAULT_TIMESTAMP_CONVERTER));
            assertThat(new CopyOptions().findDefaultConverter(java.util.Date.class), is(CopyOptions.DEFAULT_TIMESTAMP_CONVERTER));
            assertThat(new CopyOptions().findDefaultConverter(java.sql.Date.class), is(CopyOptions.DEFAULT_DATE_CONVERTER));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

                ggg_ = ggg;
            }
    
            /**
             * @return Timestamp
             */
            public Timestamp getHhh() {
                return hhh_;
            }
    
            /**
             * @param hhh
             */
            public void setHhh(final Timestamp hhh) {
                hhh_ = hhh;
            }
    
            /**
             * @param iii
             */
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
Back to top