Package com.hp.hpl.jena.sdb.sql

Examples of com.hp.hpl.jena.sdb.sql.SDBExceptionSQL


    protected void exec(String sqlStmt)
    {
        try
        { connection().exec(sqlStmt) ; }
        catch (SQLException ex)
        { throw new SDBExceptionSQL(ex) ; }
    }
View Full Code Here


    private SqlConstant ensureNode(Node node)
    {
        try {
            return insertNode(node) ;
        } catch (SQLException ex){
            throw new SDBExceptionSQL("PatternTableLoader.prepareNode", ex) ;
        }
    }
View Full Code Here

    private SqlConstant refNode(Node node)
    {
        try {
            return getRefForNode(node) ;
        } catch (SQLException ex){
            throw new SDBExceptionSQL("PatternTableLoader.getRefForNode", ex) ;
        }
    }
View Full Code Here

                                 "    o BIGINT NOT NULL",
                                 ")"
                    )) ;
            connection().exec(sqlStr("ALTER TABLE "+tname+" ADD PRIMARY KEY (s, p, o)")) ;
        } catch (SQLException ex)
        { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; }
    }
View Full Code Here

                                 "    o BIGINT NOT NULL",
                                 ")"
                    )) ;
            connection().exec(sqlStr("ALTER TABLE "+tname+" ADD PRIMARY KEY (g, s, p, o)")) ;
        } catch (SQLException ex)
        { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; }
    }
View Full Code Here

                                       ")"
                    )) ;
            connection().exec(sqlStr ("ALTER TABLE "+tname+" ADD PRIMARY KEY (hash)")) ;
        } catch (SQLException ex)
        {
            throw new SDBExceptionSQL("SQLException formatting table '"+TableDescNodes.name()+"'",ex) ;
        }
    }
View Full Code Here

                                      ")"
                    )) ;
            connection().exec(sqlStr("ALTER TABLE "+tname+" ADD CONSTRAINT "+tname+"_PK PRIMARY KEY (prefix)")) ;
        } catch (SQLException ex)
        {
            throw new SDBExceptionSQL("SQLException resetting table '"+TablePrefixes.name()+"'",ex) ;
        }
    }
View Full Code Here

                {
                    hasNext = jdbcResultSet.get().next() ;
                } catch (SQLException ex)
                {
                    closeIterator() ;
                    throw new SDBExceptionSQL(ex) ;
                }
                ready = true ;
            }
            return hasNext ;
        }
View Full Code Here

                String v = rs.getString("uri") ;
                // Load in-memory copy.
                super.set(p, v) ;
            }
        } catch (SQLException ex)
        { throw new SDBExceptionSQL("Failed to get prefixes", ex) ; }
        finally
        {
            RS.close(rsx) ;
        }
    }
View Full Code Here

                    log.warn("Multiple prefix mappings for '"+prefix+"'") ;
                break ;
            }
            return uri ;
        } catch (SQLException ex)
        { throw new SDBExceptionSQL(format("Failed to read prefix (%s)", prefix), ex) ; }
        finally { RS.close(rsx) ; }
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.sql.SDBExceptionSQL

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.