protected static void loadDbTableDataFromFile(DbPreparedStatement preparedStatement, 
			DbSchema schema, ConstanceIdentifier identifier, String tableName) 
					throws WaarpDatabaseSqlException, IOException, WaarpDatabaseNoConnectionException, WaarpDatabaseNoDataException {
		int read = 0;
		VitamReader reader = identifier.getReader();
		switch (identifier.type) {
			case CSVTYPE: {
				String[] values = null;
				int warning = 0;
				DbTable table = schema.getTable(tableName);
				while ((values = reader.readOneLine()) != null) {
					read++;
					if (values.length != identifier.simpleTypes.size()) {
						logger.warn("Attention: nombre de champs insuffisant en ligne: "+(read+1));
						warning++;
					}
					addOneTableRow(preparedStatement, table, values, read, 0);
				}
				if (warning > 0) {
					logger.warn("Enregistrements lus: " + read + " Mal formés (CSV): " + warning);
				}
			}
				break;
			case MULTIPLETYPE: {
				String[] values = null;
				DbTable table = schema.getTable(tableName);
				while ((values = reader.readOneLine(table.rank)) != null) {
					read++;
					addOneTableRow(preparedStatement, table, values, read, 1);
				}
			}
				break;
			case UNIQUETYPE: {
				String[] values = null;
				DbTable table = schema.getTable(tableName);
				while ((values = reader.readOneLine()) != null) {
					read++;
					addOneTableRow(preparedStatement, table, values, read, 0);
				}
			}
				break;
		}
		System.out.println("Enregistrements lus: " + read);
	}