Examples of initSelf()


Examples of com.bleujin.framework.db.DBController.initSelf()

  }
 
  public void testSelect() throws Exception {
    H2EmbedDBManager hdbm = new H2EmbedDBManager(bean) ;
    DBController dc = new DBController(hdbm) ;
    dc.initSelf() ;
   
    dc.createUserCommand("create table if not exists test(a int, b varchar(20))").execUpdate() ;
    dc.createUserCommand("insert into test values(1, 'BlaBla')").execUpdate() ;
   
    Rows rows = dc.createUserCommand("select * from test" ).execQuery() ;
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

  public void testSimple() throws Exception {
   
    // prepare
    MSSQLDBManager mManager = new MSSQLDBManager("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test", "bleu", "redf");
    DBController mdc = new DBController(mManager) ;
    mdc.initSelf() ;

    OracleDBManager oManager = new OracleDBManager("jdbc:oracle:thin:@novision:1521:al", "al", "redf") ;
    DBController odc = new DBController(oManager) ;
    odc.initSelf() ;
   
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

    DBController mdc = new DBController(mManager) ;
    mdc.initSelf() ;

    OracleDBManager oManager = new OracleDBManager("jdbc:oracle:thin:@novision:1521:al", "al", "redf") ;
    DBController odc = new DBController(oManager) ;
    odc.initSelf() ;
   
   
    // tx1 : mssql
    TxTransaction tx1 = new MSSQL2000TxTransaction(mManager, "mquery") ;
    tx1.add((Queryable)mdc.createUserCommand("insert into copy_tblc values('111', 111)")) ;
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

 
  public void testMultiController() throws Exception {
    String query = "select * from dual";

    DBController first = new DBController("first", dc.getDBManager(), new StdOutServant()) ;
    first.initSelf() ;
    Rows frows = first.getRows(query) ;
    assertEquals(1, frows.getRowCount()) ;
    first.destroySelf() ;
   
    Rows drows = dc.getRows(query) ;
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

 
 
  public void testThread() throws Exception {
   
    DBController ndc = new DBController("test", dc.getDBManager(), new StdOutServant()) ;
    ndc.initSelf() ;
   
    Thread[] ts = new Thread[5] ;
    for(int i = 0 ; i < ts.length ; i++){
      ts[i] = new QueryThread(ndc) ;
    }
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

   *
   * DBController�� Init �޼ҵ�� DBManger�� Ǯ�� Ȱ��ȭ��Ű�� Servant �����带 ���۽�Ų��.
   */
  public void testDCInit() throws Exception {
    DBController newDc = new DBController("newDC", dc.getDBManager()) ;
    newDc.initSelf() ;
   
    Rows rows = newDc.getRows("select 1 from copy_sample") ;
    newDc.destroySelf() ;

    assertEquals(1, rows.firstRow().getInt(1)) ;
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

   */
 
  public void testServant() throws Exception {
    DBController newDc = new DBController("newDC", dc.getDBManager()) ;
    newDc.addServant(new StdOutServant(StdOutServant.All)) ; // ��� IQueryable�� ȭ�鿡 ����Ʈ�ϴ� Servant�� �߰��Ѵ�.
    newDc.initSelf() ;
   
    newDc.getRows("select 1 from copy_sample") ;
    newDc.destroySelf() ;
  }
 
View Full Code Here

Examples of com.bleujin.framework.db.DBController.initSelf()

  public void testServantChain() throws Exception {
    DBController newDc = new DBController("newDC", dc.getDBManager()) ;
    newDc.addServant(new StdOutServant(StdOutServant.All)) ; // ��� IQueryable�� ȭ�鿡 ����Ʈ�ϴ� Servant�� �߰��Ѵ�.
    newDc.addServant(new StdOutServant(StdOutServant.All)) ; // �Ѱ� �� �߰��Ѵ�.
    newDc.initSelf() ;
   
    newDc.getRows("select 1 from copy_sample") ;
    newDc.destroySelf() ;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.