package demo.server;

import com.isomorphic.datasource.DSRequest;
import com.isomorphic.datasource.DSResponse;
import com.isomorphic.sql.SQLDataSource;

public class MySQLDataSource
    extends SQLDataSource
{
    @Override
    public DSResponse executeFetch(DSRequest req)
        throws Exception
    {
        System.out.println("********* Custom fetch invoked.");
        return super.executeFetch(req);
    }

    @Override
    public DSResponse executeRemove(DSRequest req)
        throws Exception
    {
        System.out.println("********* Custom remove invoked.");
        return super.executeRemove(req);
    }

    @Override
    public DSResponse executeAdd(DSRequest req)
        throws Exception
    {
        System.out.println("********* Custom add invoked.");
        return super.executeAdd(req);
    }

    @Override
    public DSResponse executeUpdate(DSRequest req)
        throws Exception
    {
        System.out.println("********* Custom update invoked.");
        return super.executeUpdate(req);
    }

    @Override
    public DSResponse executeCustom(DSRequest req)
        throws Exception
    {
        System.out.println("********* Custom custom invoked.");
        return super.executeCustom(req);
    }
}
