Package simpledao

Examples of simpledao.SimpleDBConnection


     * @throws Exception Any exception generated by the database call
     */
    public SimpleBean simpleSelect( SimpleBean bean ) throws Exception
    {
        Map<String,String> properties = bean.describe();
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            return simpleSelect( con, bean, properties);
        }
        finally
        {
            dbc.closeDBConnection( con );
        }
    }
View Full Code Here


        }
    }

    public SimpleBean simpleSelect( SimpleBean bean, Map<String,String> properties) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            return simpleSelect( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection( con );
        }
    }
View Full Code Here

    }

    public ArrayList<? extends SimpleBean> simpleSelectList( SimpleBean bean ) throws Exception
    {
        Map<String,String> columns = bean.describe();
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            return simpleSelectList( con, bean, columns);
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

        return beanList;
    }

    public ArrayList<? extends SimpleBean> simpleSelectList( SimpleBean bean, Map<String,String> properties ) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            return simpleSelectList( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

    }

    public void simpleInsert( SimpleBean bean ) throws Exception
    {
        Map<String,String> properties = bean.describe();
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleInsert( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

        }
    }

    public void simpleInsert( SimpleBean bean, Map<String,String> properties ) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleInsert( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

    }

    public void simpleUpdate( SimpleBean bean ) throws Exception
    {
        Map<String,String> properties = bean.describe();
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleUpdate( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

        }
    }

    public void simpleUpdate(SimpleBean bean, Map<String,String> properties ) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleUpdate( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

        simpleDelete( con, bean , properties );
    }

    public void simpleDelete( SimpleBean bean ) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Map<String,String> properties = bean.describe();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleDelete( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

        }
    }

    public void simpleDelete( SimpleBean bean, Map<String,String> properties ) throws Exception
    {
        SimpleDBConnection dbc = new SimpleDBConnection();
        Connection con = null;
        try
        {
            con = dbc.getDBConnection();
            simpleDelete( con, bean, properties );
        }
        finally
        {
            dbc.closeDBConnection(con);
        }
    }
View Full Code Here

TOP

Related Classes of simpledao.SimpleDBConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.