@classmethod
def get_by_id(cls, context, db_id):
    """Find a volume connector based on its integer ID.

        :param cls: the :class:`VolumeConnector`
        :param context: Security context.
        :param db_id: The integer (database primary key) ID of a
                      volume connector.
        :returns: A :class:`VolumeConnector` object.
        :raises: VolumeConnectorNotFound if no volume connector exists with
                 the specified ID.
        """
    db_connector = cls.dbapi.get_volume_connector_by_id(db_id)
    connector = cls._from_db_object(context, cls(), db_connector)
    return connector
