Package easyJ.database.dao.command

Examples of easyJ.database.dao.command.InsertCommand


            BeanUtil.setFieldValue(o, "updateTime", new java.sql.Date(System
                    .currentTimeMillis()));
            BeanUtil.setFieldValue(o, "buildTime", new java.sql.Date(System
                    .currentTimeMillis()));
        } catch (Exception e) {}
        InsertCommand icmd = DAOFactory.getInsertCommand(o);
        Long no = (Long) icmd.execute(conn);
        BeanUtil.setFieldValue(o, BeanUtil.getPrimaryKeyName(o.getClass()), no);
        return o;
    }
View Full Code Here

TOP

Related Classes of easyJ.database.dao.command.InsertCommand

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.