'Saves an object to the database.
.. code-block:: python
#create a person instance
person = Person(first_name=\'Kimberly\', last_name=\'Eggleston\')
#saves it to Cassandra
person.save()'

def save(self):

    if self._is_polymorphic:
        if self._is_polymorphic_base:
            raise PolymorphicModelException('cannot    save    polymorphic    base    model')
        else:
            setattr(self, self._discriminator_column_name, self.__discriminator_value__)
    self.validate()
    self.__dmlquery__(self.__class__, self, batch=self._batch, ttl=self._ttl, timestamp=self._timestamp, consistency=self.__consistency__, if_not_exists=self._if_not_exists, conditional=self._conditional, timeout=self._timeout, if_exists=self._if_exists).save()
    self._set_persisted()
    self._timestamp = None
    return self
