public static function getComparator(DataTablesMappingInterface $mapping) {

        if (null === $mapping->getParent()) {
            return "LIKE";
        }

        switch ($mapping->getParent()->getType()) {

            case DataTablesColumnInterface::DATATABLES_TYPE_DATE:
            case DataTablesColumnInterface::DATATABLES_TYPE_HTML_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM_FMT:
                return "=";
        }

        return "LIKE";
    }