private TInstance javaDateTInstance(Object value) {
   int jdbcType;
   if (value instanceof java.sql.Date) {
     jdbcType = Types.DATE;
   } else if (value instanceof java.sql.Time) {
     jdbcType = Types.TIME;
   } else {
     jdbcType = Types.TIMESTAMP;
   }
   return typesTranslator.typeClassForJDBCType(jdbcType).instance(true);
 }