Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sqlDateConverter (0.17 sec)

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

     * @author higa
     */
    public class SqlDateConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd");
            final java.sql.Date result = (java.sql.Date) converter.getAsObject("2008/01/16");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

         *            このコンバータを適用するプロパティ名の並び。各要素は{@literal null}や空文字列であってはいけません
         * @return このインスタンス自身
         * @see SqlDateConverter
         */
        public CopyOptions sqlDateConverter(final String pattern, final CharSequence... propertyNames) {
            assertArgumentNotEmpty("pattern", pattern);
    
            return converter(new SqlDateConverter(pattern), propertyNames);
        }
    
        /**
         * 時間のコンバータを設定します。
         *
         * @param pattern
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

                    is((Object) "19700101"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSqlDateConverter() throws Exception {
            assertThat(new CopyOptions().sqlDateConverter("yyyyMMdd").convertValue(new java.sql.Date(0), "aaa", String.class),
                    is((Object) "19700101"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top