# Path: kokemomo/plugins/engine/model/km_storage/impl/km_rdb_adapter.py
# class BaseModel(object):
# class KMRDBAdapter(BaseAdapter):
# class Transaction(object):
#     def __tablename__(cls):
#     def __repr__(self):
#     def validate(self):
#     def save(self, validate=True):
#     def delete(self):
#     def all(cls, order=None, commit=True):
#     def get(cls, id, commit=True):
#     def delete_by_id(cls, id):
#     def delete_by_condition(cls, **kwargs):
#     def find(cls, order=None, commit=True, **kwargs):
#     def __init__(self, rdb_path, options):
#     def metadata(self):
#     def init(self, rdb_path=None, options={}):
#     def drop_all(self):
#     def add(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def commit(self):
#     def set(self, *args, **kwargs):
#     def rollback(self):
#     def get(self, *args, **kwargs):
# def rollback():
#     def begin(cls):
#     def add(cls, *args, **kwargs):
#     def delete(cls, *args, **kwargs):
#     def commit(cls):
#     def rollback(self):


from kokemomo.plugins.engine.utils.km_model_utils import *
from kokemomo.plugins.engine.model.km_storage.impl.km_rdb_adapter import adapter
#!/usr/bin/env python
# -*- coding:utf-8 -*-

__author__ = 'hiroki'

"""
It is the accessor to group table to be used in the KOKEMOMO.
[Table Layouts]
    id:Integer
    name:String
    parent:Integer
    create_at:DateTime(Automatic Updates)
    update_at:DateTime(Automatic Updates)

[Basic Usage]
You can use the each method from the acquisition of the session in getSession ().

-example-----------------------------------------------------------
from lib.kmgrouptable import get_session,add,find,find_all,delete

def search_parameter():
    session = get_session()
    result = find_all(session)
    session.close()
    return result

-------------------------------------------------------------------
"""



# Path: kokemomo/plugins/engine/model/km_storage/impl/km_rdb_adapter.py
# class BaseModel(object):
# class KMRDBAdapter(BaseAdapter):
# class Transaction(object):
#     def __tablename__(cls):
#     def __repr__(self):
#     def validate(self):
#     def save(self, validate=True):
#     def delete(self):
#     def all(cls, order=None, commit=True):
#     def get(cls, id, commit=True):
#     def delete_by_id(cls, id):
#     def delete_by_condition(cls, **kwargs):
#     def find(cls, order=None, commit=True, **kwargs):
#     def __init__(self, rdb_path, options):
#     def metadata(self):
#     def init(self, rdb_path=None, options={}):
#     def drop_all(self):
#     def add(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def commit(self):
#     def set(self, *args, **kwargs):
#     def rollback(self):
#     def get(self, *args, **kwargs):
# def rollback():
#     def begin(cls):
#     def add(cls, *args, **kwargs):
#     def delete(cls, *args, **kwargs):
#     def commit(cls):
#     def rollback(self):


# Path: kokemomo/plugins/engine/model/km_group_table.py
from kokemomo.plugins.engine.utils.km_model_utils import *
from kokemomo.plugins.engine.model.km_storage.impl.km_rdb_adapter import adapter

#!/usr/bin/env python
# -*- coding:utf-8 -*-

__author__ = 'hiroki'

"""
It is the accessor to group table to be used in the KOKEMOMO.
[Table Layouts]
    id:Integer
    name:String
    parent:Integer
    create_at:DateTime(Automatic Updates)
    update_at:DateTime(Automatic Updates)

[Basic Usage]
You can use the each method from the acquisition of the session in getSession ().

-example-----------------------------------------------------------
from lib.kmgrouptable import get_session,add,find,find_all,delete

def search_parameter():
    session = get_session()
    result = find_all(session)
    session.close()
    return result

-------------------------------------------------------------------
"""



class KMGroup(adapter.Model):