com.hp.hpl.jena.db.impl
Class Driver_HSQL
java.lang.Object
com.hp.hpl.jena.db.impl.DriverRDB
com.hp.hpl.jena.db.impl.Driver_HSQL
- All Implemented Interfaces:
- IRDBDriver
- public class Driver_HSQL
- extends DriverRDB
- Author:
- jand based on code by Dave Reynolds and hkuno
Extends DriverRDB with HSSQLDB-specific parameters.
This class requires a modified DriverRDB since it has 'package'-methods:
1. getCreateTableParams( int graphId, boolean isReif )
2. getDbInitTablesParams()
These must be set to 'protected'... or belong to that package :(
Fields inherited from class com.hp.hpl.jena.db.impl.DriverRDB |
BATCH_ENABLED, CACHE_PREPARED_STATEMENTS, DATABASE_TYPE, DB_NAMES_TO_UPPER, DEFAULT_ID, DEFAULT_PROPS, DEFAULT_SQL_FILE, DRIVER_NAME, EOS, EOS_CHAR, EOS_LEN, GRAPH_TABLE, ID_SQL_TYPE, INDEX_KEY_LENGTH, INDEX_KEY_LENGTH_MAX, inTransaction, IS_XACT_DB, JENA_LONGEST_TABLE_NAME_LENGTH, LAYOUT_TYPE, LAYOUT_VERSION, logger, LONG_LIT_TABLE, LONG_OBJECT_LENGTH, LONG_OBJECT_LENGTH_MAX, LONG_URI_TABLE, m_dbcon, m_dbProps, m_lsetClassName, m_lsetReifierClassName, m_psetClassName, m_psetReifierClassName, m_sql, m_sysProperties, PRE_ALLOCATE_ID, PREFIX_CACHE_SIZE, PREFIX_TABLE, prefixCache, QUOTE_CHAR, RDBCodeANY, RDBCodeBlank, RDBCodeDelim, RDBCodeDelimChar, RDBCodeInvalid, RDBCodeLiteral, RDBCodePrefix, RDBCodeRef, RDBCodeURI, RDBCodeValue, RDBCodeVariable, SKIP_DUPLICATE_CHECK, SQL_FILE, STORE_WITH_MODEL, STRINGS_TRIMMED, SYSTEM_STMT_TABLE, TABLE_NAME_LENGTH_MAX, TABLE_NAME_PREFIX, URI_COMPRESS, URI_COMPRESS_LENGTH, VERSION |
Methods inherited from class com.hp.hpl.jena.db.impl.DriverRDB |
abort, addRDBLongObject, aliasToString, begin, checkDbIsOpen, checkDbUninitialized, cleanDB, clearSequences, close, colAliasToString, colidToColname, commit, createSpecializedGraphs, createTable, dbIsOpen, dbSplitNamespace, deleteTable, formatAndConstructSystemSpecializedGraph, formatDB, genSQLFromKW, genSQLFromList, genSQLJoin, genSQLQualConst, genSQLQualGraphId, genSQLQualParam, genSQLReifQualAnyObj, genSQLReifQualObj, genSQLReifQualStmt, genSQLResList, genSQLSelectKW, genSQLSelectStmt, genSQLWhereKW, getBatchEnabled, getBlankID, getCompressCacheSize, getCompressURILength, getConnection, getDatabaseType, getDefaultModelProperties, getDoCompressURI, getDoDuplicateCheck, getIndexKeyLength, getIsTransactionDb, getLiteralID, getLongObjectID, getLongObjectLength, getSequences, getStoreWithModel, getSystemSpecializedGraph, getTableCount, getTableNamePrefix, getURIID, IDtoBlank, IDtoLiteral, IDtoLongObject, IDtoLongObject, IDtoPrefix, IDtoString, IDtoString, IDtoURI, isDBFormatOK, literalToLongObject, litLangTypeToRDBString, nodeToRDBString, objectIsLong, PrefixToLongObject, RDBStringParseInt, RDBStringToNode, recreateSpecializedGraphs, removeSequence, removeSpecializedGraphs, sequenceExists, setBatchEnabled, setCompressCacheSize, setCompressURILength, setDatabaseProperties, setDoCompressURI, setDoDuplicateCheck, setIndexKeyLength, setIsTransactionDb, setLongObjectLength, setStoreWithModel, setTableNamePrefix, stringToDBname, stringToHash, supportsJenaReification, supportsMultipleModels, transactionsSupported, URIToLongObject, wrapDBID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Driver_HSQL
public Driver_HSQL()
- Constructor
setConnection
public void setConnection(IDBConnection dbcon)
- Set the database connection
graphIdAlloc
public int graphIdAlloc(String graphName)
- Allocate an identifier for a new graph.
- Specified by:
graphIdAlloc
in interface IRDBDriver
- Specified by:
graphIdAlloc
in class DriverRDB
graphIdDealloc
public void graphIdDealloc(int graphId)
- Dellocate an identifier for a graph.
- Parameters:
graphId
- The graph identifier.
getInsertID
public int getInsertID(String tableName)
- Description copied from interface:
IRDBDriver
- Return an auto-generated identifier for a table row.
- Parameters:
tableName
- The name of the table for the insert.
- Returns:
- the auto-generated identifier..
getTblParams
protected void getTblParams(String[] param)
- Return the parameters for table creation.
1) column type for subj, prop, obj.
2) column type for head.
3) table and index name prefix.
- Parameters:
param
- array to hold table creation parameters.
getDbInitTablesParams
protected String[] getDbInitTablesParams()
- Return the parameters for database initialization.
- Specified by:
getDbInitTablesParams
in class DriverRDB
getCreateTableParams
protected String[] getCreateTableParams(int graphId,
boolean isReif)
- Return the parameters for table creation.
Generate the table name by counting the number of existing
tables for the graph. This is not reliable if another client
is concurrently trying to create a table so, if failure, we
make several attempts to create the table.
- Specified by:
getCreateTableParams
in class DriverRDB
Copyright © 2003 SCAM. All Rights Reserved.