Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toSqlTimestamp (0.21 sec)

  1. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

         */
        @Test
        public void testToSqlTimestamp_Null() throws Exception {
            assertThat(toSqlTimestamp(null, Locale.JAPAN), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToTimestamp_EmptyString() throws Exception {
            assertThat(toSqlTimestamp("", Locale.JAPAN), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
    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)
  2. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

        /**
         * オブジェクトを{@link Timestamp}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @return 変換された{@link Timestamp}
         */
        public static Timestamp toSqlTimestamp(final Object src) {
            return toSqlTimestamp(src, null, LocaleUtil.getDefault());
        }
    
        /**
         * オブジェクトを{@link Timestamp}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @param pattern
    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)
  3. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (isEmpty(value)) {
                return null;
            }
            return TimestampConversionUtil.toSqlTimestamp(value, pattern);
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
    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)
  4. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                        return TimeConversionUtil.toDate(arg);
                    }
                }
            } else if (propertyType == Timestamp.class) {
                return TimestampConversionUtil.toSqlTimestamp(arg);
            } else if (propertyType == java.sql.Date.class) {
                return DateConversionUtil.toSqlDate(arg);
            } else if (propertyType == Time.class) {
                return TimeConversionUtil.toSqlTime(arg);
    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)
Back to top