Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toSqlTime (0.04 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: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. 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: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top