Package com.hp.hpl.jena.sdb

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


            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


            context = ARQ.getContext().copy() ;
        // See "DynamicDatasets" -- this could be enabled.
        if ( query != null )
        {
            if ( query.hasDatasetDescription() )
                throw new SDBException("Queries with dataset descriptions (FROM/FROM NAMED) not supported" ) ;  
        }
        if ( context.isDefined(ARQConstants.sysDatasetDescription) )
            throw new SDBException("Queries with dataset descriptions set in the context not supported" ) ;
       
        this.store = dsg.getStore() ;
        this.request = new SDBRequest(store, query, context) ;
        this.originalOp = getOp() ;
        // Enable transformations
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

            return DriverManager.getConnection(jdbcURL,
                                               Access.getUser(),
                                               Access.getPassword()) ;
        } catch (SQLException ex)
        {
            throw new SDBException("SQL Exception while connecting to database: "+jdbcURL+" : "+ex.getMessage()) ;
        }
    }
View Full Code Here

            context = ARQ.getContext().copy() ;
        // See "DynamicDatasets" -- this could be enabled.
        if ( query != null )
        {
            if ( query.hasDatasetDescription() )
                throw new SDBException("Queries with dataset descriptions (FROM/FROM NAMED) not supported" ) ;  
        }
        if ( context.isDefined(ARQConstants.sysDatasetDescription) )
            throw new SDBException("Queries with dataset descriptions set in the context not supported" ) ;
       
        this.store = dsg.getStore() ;
        this.request = new SDBRequest(store, query, context) ;
        this.originalOp = getOp() ;
        // Enable transformations
View Full Code Here

        super(connection) ;
        engineType = tableType ;
        if ( engineType == null )
        {
            log.error("Engine type is null") ;
            throw new SDBException("Engine type is null") ;
        }
    }
View Full Code Here

            context = ARQ.getContext().copy() ;
        // See "DynamicDatasets" -- this could be enabled.
        if ( query != null )
        {
            if ( query.hasDatasetDescription() )
                throw new SDBException("Queries with dataset descriptions (FROM/FROM NAMED) not supported" ) ;  
        }
        if ( context.isDefined(ARQConstants.sysDatasetDescription) )
            throw new SDBException("Queries with dataset descriptions set in the context not supported" ) ;
       
        this.store = dsg.getStore() ;
        this.request = new SDBRequest(store, query, context) ;
        this.originalOp = getOp() ;
        // Enable transformations
View Full Code Here

            log.warn("Node_Varable but not a Var; bodged") ;
            vars.add(Var.alloc(node)) ;
            return ;
        }
        log.error("Unknown Node type: "+node) ;
        throw new SDBException("Unknown Node type: "+node) ;
    }
View Full Code Here

    public SqlExpr compile(Scope scope)
    {
        MapResult rMap = exprPattern.match(getExpr()) ;
       
        if ( rMap == null )
            throw new SDBException("Couldn't compile after all: "+getExpr()) ;
          //log.info("equalsString - Matched: ?a1 = "+rMap.get("a1")+" : ?a2 = "+rMap.get("a2")) ;
        Var var = rMap.get("a1").getExprVar().asVar() ;
        String str = rMap.get("a2").getConstant().getString() ;
       
        if ( ! scope.hasColumnForVar(var) )
View Full Code Here

    public synchronized void begin()
    {
        if ( inTransaction )
        {
            log.warn("beginTransaction: Already in a transaction") ;
            throw new SDBException("Already in transaction") ;
        }
        try {
            sqlConnection.setAutoCommit(false) ;
            inTransaction = true ;
        } catch (SQLException ex) { new SDBExceptionSQL("begin", ex) ; }
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.