Package com.hp.hpl.jena.sdb

Examples of com.hp.hpl.jena.sdb.SDBException


            commit();
            return result;
        }
        catch (SDBExceptionSQL e) { abortFinally() ; throw e ; }
        catch (JenaException e)   { abortFinally() ; throw e ; }
        catch (Throwable e) { abortFinally() ; throw new SDBException(e) ; } // Pass Graph tests.
    }
View Full Code Here


    public SqlExpr compile(Scope scope)
    {
        // TODO Convert regex to using a string value table?
        MapResult rMap = exprPattern.match(getExpr()) ;
        if ( rMap == null )
            throw new SDBException("Couldn't compile after all: "+getExpr()) ;
       
        Var var = rMap.get(Var.alloc("a1")).getExprVar().asVar() ;
        String pattern = rMap.get(Var.alloc("a2")).getConstant().getString() ;
       
        if ( ! scope.hasColumnForVar(var) )
View Full Code Here

        {
            SQLException e2 = e.getNextException() ;
            String more = "" ;
            if ( e2 != null )
                more = " : "+e2.getMessage() ;
            throw new SDBException("SQL Exception while connecting to database: "+jdbcURL+" : "+e.getMessage()+more) ;
        }
    }
View Full Code Here

        }

        if ( type.equals("none") )
            return jdbcNone ;
       
        throw new SDBException("Don't know how to construct a JDBC URL for "+type) ;
    }
View Full Code Here

            dbType = dbTypeConn ;
        else
        {
            // Both null.
            log.warn("Failed to determine the database type (not in store description, no connection description)") ;
            throw new SDBException("No database type found") ;
        }
        return dbType ;
    }
View Full Code Here

    public static final int jdbcFetchSizeOff            = -1 ;

    public static Symbol allocSymbol(String shortName)
    {
        if ( shortName.matches("^[a-zA-Z]*:") )
            throw new SDBException("Symbol short name begins URI scheme") ;
        return Symbol.create(SDB.symbolSpace+shortName) ;
    }
View Full Code Here

        try {
            connection().exec("DELETE FROM Triples") ;
        } catch (SQLException ex)
        {
            log.warn("Exception truncating tables") ;
            throw new SDBException("SQLException truncating tables",ex) ;
        }
    }
View Full Code Here

            }
           
        } catch (SQLException ex)
        {
            log.warn("Exception resetting table 'Prefixes'") ;
            throw new SDBException("SQLException resetting table 'Prefixes'",ex) ;
        }
    }
View Full Code Here

                    "  PRIMARY KEY (s,p,o)",
                    ")"
                )) ;
        } catch (SQLException ex)
        {
            throw new SDBException("SQLException resetting table 'Triples'",ex) ;
        }
    }
View Full Code Here

   
    private static ScriptDesc worker(Model m)
    {
        Resource r = GraphUtils.getResourceByType(m, ScriptVocab.ScriptType) ;
        if ( r == null )
            throw new SDBException("Can't find command line description") ;
        return (ScriptDesc)AssemblerBase.general.open(r) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.SDBException

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.