@Override
public void deleteByColumn(String schemaName, String tableName, String columnName, Object columnValue)
{
Table schemaTable = tableAPI.getTable(tableName);
List<String> primaryKeys = schemaTable.getPrimaryKey();
Object[] foundRecords = findIdsByColumn(schemaName, tableName, primaryKeys.get(0), columnName, columnValue,
null);
KunderaCoreUtils.printQuery("Delete columns by id from:" + tableName, showQuery);
if (foundRecords != null)
{
for (Object key : foundRecords)
{
PrimaryKey primaryKey = schemaTable.createPrimaryKey();
NoSqlDBUtils.add(schemaTable.getField(primaryKeys.get(0)), primaryKey, key, primaryKeys.get(0));
KunderaCoreUtils.printQuery(" Delete for id:" + key, showQuery);
tableAPI.delete(primaryKey, null, null);
}
}
}