rsx = connection().execQuery(sqlStmtTest) ;
ResultSet rs = rsx.get();
boolean b = rs.next();
if ( b )
// Exists
return new SqlConstant(hash) ;
} finally { RS.close(rsx) ; }
String sqlStmt = strjoinNL(
"INSERT INTO "+TableDescNodes.name()+"(hash,lex,lang,datatype,type) VALUES",
" ("+hash+", ",
" "+SQLUtils.quoteStr(lex)+", ",
" "+SQLUtils.quoteStr(lang)+", ",
" "+SQLUtils.quoteStr(datatype)+", ",
" "+typeId,
")" ) ;
connection().execUpdate(sqlStmt) ;
return new SqlConstant(hash) ;
}