@Test public void rdbmsStringAvecEspaceTest() { final DataRdbms data = instance.getData("valeur espace"); Assert.assertEquals(data.getValue(), "valeur espace"); Assert.assertEquals(data.getParameter(), "'valeur espace'"); }
public DataRdbms getData(final Object object) { if (object instanceof java.sql.Time) { final DateFormat df = new SimpleDateFormat(TIME_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.sql.Date) { final DateFormat df = new SimpleDateFormat(SQL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.util.Date) { final DateFormat df = new SimpleDateFormat(UTIL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } return genericRdbms.getData(object); }
MySqlRdbmsSpecifics implements RdbmsSpecifics { public DataRdbms getData(final Object object) { if (object instanceof java.sql.Time) { final DateFormat df = new SimpleDateFormat(TIME_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.sql.Date) { final DateFormat df = new SimpleDateFormat(SQL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.util.Date) { final DateFormat df = new SimpleDateFormat(UTIL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } return genericRdbms.getData(object); } }
MySqlRdbmsSpecifics implements RdbmsSpecifics { public DataRdbms getData(final Object object) { if (object instanceof java.sql.Time) { final DateFormat df = new SimpleDateFormat(TIME_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.sql.Date) { final DateFormat df = new SimpleDateFormat(SQL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.util.Date) { final DateFormat df = new SimpleDateFormat(UTIL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } return genericRdbms.getData(object); }  }
MySqlRdbmsSpecifics implements RdbmsSpecifics { public DataRdbms getData(final Object object) { if (object instanceof java.sql.Time) { final DateFormat df = new SimpleDateFormat(TIME_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.sql.Date) { final DateFormat df = new SimpleDateFormat(SQL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.util.Date) { final DateFormat df = new SimpleDateFormat(UTIL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } return genericRdbms.getData(object); }  boolean isRdbms(final String classType); DataRdbms getData(final Object object); String getTypeQuery(final String sql); int beginQuery(String sql, int index); String removeComment(final String sql); boolean isCaseSensitive(); }
MySqlRdbmsSpecifics implements RdbmsSpecifics { public DataRdbms getData(final Object object) { if (object instanceof java.sql.Time) { final DateFormat df = new SimpleDateFormat(TIME_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.sql.Date) { final DateFormat df = new SimpleDateFormat(SQL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } if (object instanceof java.util.Date) { final DateFormat df = new SimpleDateFormat(UTIL_DATE_PATTERN); final String dateString = df.format(object); return new GenericDataRdbms(dateString, "'"); } return genericRdbms.getData(object); }  boolean isRdbms(final String classType); DataRdbms getData(final Object object); String getTypeQuery(final String sql); int beginQuery(String sql, int index); String removeComment(final String sql); boolean isCaseSensitive();  }