Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toSqlTime (0.03 sec)

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

         * @throws Exception
         */
        @Test
        public void testToSqlTime_Null() throws Exception {
            assertThat(toSqlTime(null), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToTime_EmptyString() throws Exception {
            assertThat(toSqlTime(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

         *
         * @param src
         *            The source object to convert.
         * @return The converted {@link Time}.
         */
        public static Time toSqlTime(final Object src) {
            return toSqlTime(src, null, LocaleUtil.getDefault());
        }
    
        /**
         * Converts the given object to a {@link Time}.
         *
         * @param src
         *            The source object to convert.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/converter/TimeConverter.java

            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (isEmpty(value)) {
                return null;
            }
            return TimeConversionUtil.toSqlTime(value, pattern);
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            } else if (propertyType == java.sql.Date.class) {
                return DateConversionUtil.toSqlDate(arg);
            } else if (propertyType == Time.class) {
                return TimeConversionUtil.toSqlTime(arg);
            }
            return arg;
        }
    
        private Object convertWithString(final Object arg) {
            if (stringConstructor != null) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top