- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for sql (0.01 sec)
-
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
* * @param src the source object * @param pattern the pattern string * @param locale the locale * @return the converted {@link java.sql.Date} */ protected static java.sql.Date toSqlDate(final Object src, final String pattern, final Locale locale) { if (src == null) { return null; } if (src instanceof java.sql.Date) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 19.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java
public void testToSqlDate_ShortStyle() throws Exception { final java.sql.Date date = toSqlDate("10/9/7"); assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07")); } /** * @throws Exception */ @Test public void testToSqlDate_MediumStyle() throws Exception { final java.sql.Date date = toSqlDate("2010/9/7");
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java
* @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")); } /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/DriverManagerUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.sql; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Enumeration; import org.codelibs.core.exception.SQLRuntimeException;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java
*/ @Test public void testGetAsObjectAndGetAsString() throws Exception { final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd HH:mm:ss"); final java.sql.Timestamp result = (java.sql.Timestamp) converter.getAsObject("2008/12/31 12:34:56"); System.out.println(result); assertThat(converter.getAsString(result), is("2008/12/31 12:34:56")); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
super("ECL0072", asArray(getSql(cause), getRealMessage(cause), Integer.toString(cause.getErrorCode()), cause.getSQLState()), cause); } /** * Returns the <code>SQL</code>. * * @param cause the underlying exception * @return the <code>SQL</code> */ protected static String getSql(final SQLException cause) { if (cause instanceof ClSQLException) { return ((ClSQLException) cause).getSql();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/StatementUtil.java
*/ package org.codelibs.core.sql; import static org.codelibs.core.log.Logger.format; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.codelibs.core.exception.SQLRuntimeException;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/TimeConverterTest.java
/** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final TimeConverter converter = new TimeConverter("HH:mm:ss"); final java.sql.Time result = (java.sql.Time) converter.getAsObject("12:34:56"); System.out.println(result); assertThat(converter.getAsString(result), is("12:34:56")); } /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.sql; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.codelibs.core.exception.SQLRuntimeException; /** * Utility class for {@link PreparedStatement}. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/converter/SqlDateConverter.java
import org.codelibs.core.beans.Converter; import org.codelibs.core.convert.DateConversionUtil; import org.codelibs.core.convert.StringConversionUtil; import org.codelibs.core.lang.StringUtil; /** * Converter for SQL dates. * * @author higa */ public class SqlDateConverter implements Converter { /** * The date pattern. */ protected String pattern; /** * Constructs an instance.
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2K bytes - Viewed (0)