2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

Apache Onami Converters - SQL

The SQL module contains java.sql converters implementations.

Users that want to use the SQL module, have to add the following dependency in the pom.xml:

<dependency>
  <groupId>org.apache.onami.converters</groupId>
  <artifactId>org.apache.onami.converters.sql</artifactId>
  <version>1.0.1-SNAPSHOT</version>
  <scope>compile</scope>
</dependency>

The Converters

ClobConverter

Is the converter that converts a java.lang.String representation to a java.sql.Clob.

SQLDateConverter

Is the converter that converts a java.lang.String representation to a java.sql.Date, input has to match with yyyy-MM-dd pattern.

SQLTimeConverter.java

Is the converter that converts a java.lang.String representation to a java.sql.Time, input has to match with HH:mm:ss pattern.

SQLTimestampConverter

Is the converter that converts a java.lang.String representation to a java.sql.Timestamp, input has to match with yyyy-MM-dd HH:mm:ss.fffffffff pattern.