def find(cls, conditions): column_family_map = db.get_column_family_map(cls) index_clause = db.create_index_clause(conditions); return column_family_map.get_indexed_slices(index_clause)
def store(cls, instance): column_family_map = db.get_column_family_map(cls) instance.key = cls.generateKey() column_family_map.insert(instance) return instance.key
def get(cls, key): column_family_map = db.get_column_family_map(cls) return column_family_map.get(key)
def all(cls): column_family_map = db.get_column_family_map(cls) return column_family_map.get_range()