org.crazycake.ScaffoldUnit.dao
类 ScaffoldUnitDao

java.lang.Object
  继承者 org.crazycake.ScaffoldUnit.dao.ScaffoldUnitDao

public class ScaffoldUnitDao
extends Object

ScaffoldUnitDao

作者:
alexxiyang (https://github.com/alexxiyang)

构造方法摘要
ScaffoldUnitDao()
           
 
方法摘要
 void execute(String sql)
          Execute sql.
protected  boolean initStructure()
           
 Object queryOneValue(String sql)
          Query one value of first row of result of this sql.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ScaffoldUnitDao

public ScaffoldUnitDao()
方法详细信息

execute

public void execute(String sql)
             throws IOException,
                    SQLException
Execute sql. If database structure didn't been built, it will use ScaffoldUnit.sql to create it!

参数:
sql -
抛出:
IOException
SQLException

queryOneValue

public Object queryOneValue(String sql)
                     throws SQLException
Query one value of first row of result of this sql. If there is no result, it return null.

参数:
sql -
返回:
抛出:
SQLException

initStructure

protected boolean initStructure()
                         throws IOException,
                                SQLException
抛出:
IOException
SQLException


Copyright © 2014. All rights reserved.