final public function getWriteMode()
    {
        switch ($this->getDataMode()) {
            case Configuration::DATA_MODE_WIPE:
            case Configuration::DATA_MODE_PROGRESSIVE:
                $this->setWriteMode(static::WRITE_MODE_INSERT);
                break;
            default:
                $this->setWriteMode(static::WRITE_MODE_UPSERT);
        }
        return $this->writeMode;
    }