loadGLO

설명

주어진 stream 안에 CUBRIDOID에 해당하는 GLO를 로드한다.

구문

void loadGLO(OutputStream stream)

예제

CUBRIDConnection con = (CUBRIDConnection)
                    DriverManager.getConnection(url,user,passwd);
 
// filename : testin1, classname : filetest
FileInputStream inputfile = new FileInputStream("testin1");
CUBRIDOID oid = con.getNewGLO("filetest", inputfile);
inputfile.close();
 
// filename : testout1, classname : filetest
FileOutputStream outputfile = new FileOutputStream("testout1");
System.out.println("loadGLO..");
oid.loadGLO(outputfile);
outputfile.close();
 
con.commit(); 
// 이 트랜잭션을 커밋해야 한다.
// CUBRIDOID를 사용시에는 자동 커밋 기능을 사용할 수 없다.