Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toSqlTimestamp (0.06 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
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         *
         * @param src
         *            The source object to convert.
         * @return The converted {@link Timestamp}.
         */
        public static Timestamp toSqlTimestamp(final Object src) {
            return toSqlTimestamp(src, null, LocaleUtil.getDefault());
        }
    
        /**
         * Converts the given object to a {@link Timestamp}.
         *
         * @param src
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K 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;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 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);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top