- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SqlDateConverter (0.22 sec)
-
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) -
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) -
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)