Java Doc for Driver_Oracle.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » db » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.db.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.db.impl.DriverRDB
      com.hp.hpl.jena.db.impl.Driver_Oracle

Driver_Oracle
public class Driver_Oracle extends DriverRDB (Code)

author:
   hkuno based on code by Dave Reynolds.
author:
   Modified for later, more standard, Oracle drivers by Andy Seaborne (Dec 2006)
author:
   See alo Driver_Oracle_LOB for code that uses native
author:
   Oracle blobs more directly. That needs uncommenting
author:
   some code sections and recompiling against Oracle
author:
   Java libraries.



Constructor Summary
public  Driver_Oracle()
    

Method Summary
public  voidclearSequences()
     Drop all Jena-related sequences from database, if necessary.
public  StringgenSQLStringMatchEscape()
    
public  StringgenSQLStringMatchLHS_IC(String var)
    
public  StringgenSQLStringMatchRHS_IC(String strToMatch)
    
protected  ListgetAllTables()
     Oracle implementation of getConnection().getMetaData() can see all tables if run sufficiently priviledge.
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.
protected  String[]getDbInitTablesParams()
     Return the parameters for database initialization.
protected  voidgetTblParams(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.
public  intgraphIdAlloc(String graphName)
     Allocate an identifier for a new graph.
public  voidgraphIdDealloc(int graphId)
     Dellocate an identifier for a graph.
public  voidsetConnection(IDBConnection dbcon)
    
protected  voidsetLongObjectHashAndTail(PreparedStatement ps, int argi, RDBLongObject lobj)
    
public  StringstringMatchEscapeChar()
    


Constructor Detail
Driver_Oracle
public Driver_Oracle()(Code)




Method Detail
clearSequences
public void clearSequences()(Code)
Drop all Jena-related sequences from database, if necessary. Override in subclass if sequences must be explicitly deleted.



genSQLStringMatchEscape
public String genSQLStringMatchEscape()(Code)



genSQLStringMatchLHS_IC
public String genSQLStringMatchLHS_IC(String var)(Code)



genSQLStringMatchRHS_IC
public String genSQLStringMatchRHS_IC(String strToMatch)(Code)



getAllTables
protected List getAllTables()(Code)
Oracle implementation of getConnection().getMetaData() can see all tables if run sufficiently priviledge.



getCreateTableParams
protected String[] getCreateTableParams(int graphId, boolean isReif)(Code)
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.



getDbInitTablesParams
protected String[] getDbInitTablesParams()(Code)
Return the parameters for database initialization.



getTblParams
protected void getTblParams(String[] param)(Code)
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.



graphIdAlloc
public int graphIdAlloc(String graphName)(Code)
Allocate an identifier for a new graph.



graphIdDealloc
public void graphIdDealloc(int graphId)(Code)
Dellocate an identifier for a graph.



setConnection
public void setConnection(IDBConnection dbcon)(Code)
Set the database connection



setLongObjectHashAndTail
protected void setLongObjectHashAndTail(PreparedStatement ps, int argi, RDBLongObject lobj) throws SQLException(Code)



stringMatchEscapeChar
public String stringMatchEscapeChar()(Code)



Fields inherited from com.hp.hpl.jena.db.impl.DriverRDB
protected boolean CACHE_PREPARED_STATEMENTS(Code)(Java Doc)
protected String DATABASE_TYPE(Code)(Java Doc)
protected boolean DB_NAMES_TO_UPPER(Code)(Java Doc)
final protected int DEFAULT_ID(Code)(Java Doc)
final protected String DEFAULT_PROPS(Code)(Java Doc)
protected String DEFAULT_SQL_FILE(Code)(Java Doc)
protected String DRIVER_NAME(Code)(Java Doc)
protected String EOS(Code)(Java Doc)
protected char EOS_CHAR(Code)(Java Doc)
protected int EOS_LEN(Code)(Java Doc)
protected String GRAPH_TABLE(Code)(Java Doc)
protected String ID_SQL_TYPE(Code)(Java Doc)
protected int INDEX_KEY_LENGTH(Code)(Java Doc)
protected int INDEX_KEY_LENGTH_MAX(Code)(Java Doc)
protected boolean IS_XACT_DB(Code)(Java Doc)
protected String LAYOUT_TYPE(Code)(Java Doc)
protected String LAYOUT_VERSION(Code)(Java Doc)
protected String LONG_LIT_TABLE(Code)(Java Doc)
protected int LONG_OBJECT_LENGTH(Code)(Java Doc)
protected int LONG_OBJECT_LENGTH_MAX(Code)(Java Doc)
protected String LONG_URI_TABLE(Code)(Java Doc)
protected int MAXIMUM_INDEX_COLUMNS(Code)(Java Doc)
protected String MUTEX_TABLE(Code)(Java Doc)
final public static int PREFIX_CACHE_SIZE(Code)(Java Doc)
protected String PREFIX_TABLE(Code)(Java Doc)
protected boolean PRE_ALLOCATE_ID(Code)(Java Doc)
protected char QUOTE_CHAR(Code)(Java Doc)
protected static String RDBCodeANY(Code)(Java Doc)
protected static String RDBCodeBlank(Code)(Java Doc)
protected static String RDBCodeDelim(Code)(Java Doc)
protected static char RDBCodeDelimChar(Code)(Java Doc)
protected static String RDBCodeInvalid(Code)(Java Doc)
protected static String RDBCodeLiteral(Code)(Java Doc)
protected static String RDBCodePrefix(Code)(Java Doc)
protected static String RDBCodeRef(Code)(Java Doc)
protected static String RDBCodeURI(Code)(Java Doc)
protected static String RDBCodeValue(Code)(Java Doc)
protected static String RDBCodeVariable(Code)(Java Doc)
protected String REIF_TABLE_NAME_SUFFIX(Code)(Java Doc)
protected boolean SKIP_DUPLICATE_CHECK(Code)(Java Doc)
protected String SQL_FILE(Code)(Java Doc)
protected String STMT_TABLE_NAME_SUFFIX(Code)(Java Doc)
protected String STORE_WITH_MODEL(Code)(Java Doc)
protected boolean STRINGS_TRIMMED(Code)(Java Doc)
protected String SYSTEM_STMT_TABLE(Code)(Java Doc)
protected int SYSTEM_TABLE_CNT(Code)(Java Doc)
public String[] SYSTEM_TABLE_NAME(Code)(Java Doc)
protected int TABLE_NAME_LENGTH_MAX(Code)(Java Doc)
protected String TABLE_NAME_PREFIX(Code)(Java Doc)
protected boolean URI_COMPRESS(Code)(Java Doc)
protected int URI_COMPRESS_LENGTH(Code)(Java Doc)
final protected String VERSION(Code)(Java Doc)
protected static Log logger(Code)(Java Doc)
protected DBPropDatabase m_dbProps(Code)(Java Doc)
protected IDBConnection m_dbcon(Code)(Java Doc)
protected String m_lsetClassName(Code)(Java Doc)
protected String m_lsetReifierClassName(Code)(Java Doc)
protected String m_psetClassName(Code)(Java Doc)
protected String m_psetReifierClassName(Code)(Java Doc)
protected SQLCache m_sql(Code)(Java Doc)
protected SpecializedGraph m_sysProperties(Code)(Java Doc)
protected LRUCache prefixCache(Code)(Java Doc)
final protected static int xactAbort(Code)(Java Doc)
final protected static int xactAutoOff(Code)(Java Doc)
final protected static int xactAutoOn(Code)(Java Doc)
final protected static int xactBegin(Code)(Java Doc)
final protected static int xactBeginIfNone(Code)(Java Doc)
final protected static int xactCommit(Code)(Java Doc)
final protected static int xactIsActive(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.db.impl.DriverRDB
public boolean DBisLocked() throws RDFRDBException(Code)(Java Doc)
protected String IDtoBlank(String bnID)(Code)(Java Doc)
protected String IDtoLiteral(int litID)(Code)(Java Doc)
protected RDBLongObject IDtoLongObject(int dbid, String table)(Code)(Java Doc)
protected RDBLongObject IDtoLongObject(String idAsString, String table)(Code)(Java Doc)
protected String IDtoPrefix(int prefixID)(Code)(Java Doc)
protected String IDtoString(String dbidAsString, String table, String RDBcode)(Code)(Java Doc)
protected String IDtoString(int dbID, String table, String RDBcode)(Code)(Java Doc)
protected String IDtoURI(String uriID)(Code)(Java Doc)
protected RDBLongObject PrefixToLongObject(String prefix, int split)(Code)(Java Doc)
protected Node RDBLiteralStringToLiteralNode(String RDBString, int len, String valType, int pos)(Code)(Java Doc)
protected void RDBStringParseInt(String RDBString, ParseInt pi, boolean toEnd)(Code)(Java Doc)
public Node RDBStringToNode(String RDBString) throws RDFRDBException(Code)(Java Doc)
protected RDBLongObject URIToLongObject(String qname, String code)(Code)(Java Doc)
DBIDInt URItoPrefix(String uri, int pos, boolean add)(Code)(Java Doc)
public synchronized void abort() throws RDFRDBException(Code)(Java Doc)
public String addEscape(String strToMatch)(Code)(Java Doc)
public DBIDInt addRDBLongObject(RDBLongObject lobj, String table) throws RDFRDBException(Code)(Java Doc)
protected String aliasToString(int alias)(Code)(Java Doc)
public synchronized void begin() throws RDFRDBException(Code)(Java Doc)
protected void checkDbIsOpen()(Code)(Java Doc)
protected void checkDbUninitialized()(Code)(Java Doc)
public void cleanDB()(Code)(Java Doc)
public void clearSequences()(Code)(Java Doc)
public void close() throws RDFRDBException(Code)(Java Doc)
protected String colAliasToString(int alias, char colid)(Code)(Java Doc)
protected String colidToColname(char colid)(Code)(Java Doc)
public void commit() throws RDFRDBException(Code)(Java Doc)
protected Node createLiteral(String val, String lang, String dtype)(Code)(Java Doc)
public List createSpecializedGraphs(String graphName, Graph requestedProperties)(Code)(Java Doc)
public String createTable(int graphId, boolean isReif)(Code)(Java Doc)
protected boolean dbIsOpen()(Code)(Java Doc)
public static int dbSplitNamespace(String uri)(Code)(Java Doc)
public void deleteTable(String tableName)(Code)(Java Doc)
protected void doCleanDB(boolean dropMutex) throws RDFRDBException(Code)(Java Doc)
protected SpecializedGraph formatAndConstructSystemSpecializedGraph()(Code)(Java Doc)
public void formatDB() throws RDFRDBException(Code)(Java Doc)
public String genSQLEscapeKW()(Code)(Java Doc)
public String genSQLFromKW()(Code)(Java Doc)
public String genSQLFromList(int aliasCnt, String table)(Code)(Java Doc)
public String genSQLJoin(int lhsAlias, char lhsCol, int rhsAlias, char rhsCol)(Code)(Java Doc)
public String genSQLLikeKW()(Code)(Java Doc)
public String genSQLOrKW()(Code)(Java Doc)
public String genSQLQualConst(int alias, char pred, Node lit)(Code)(Java Doc)
public String genSQLQualGraphId(int alias, int graphId)(Code)(Java Doc)
public String genSQLQualParam(int alias, char pred)(Code)(Java Doc)
public String genSQLReifQualAnyObj(boolean objIsStmt)(Code)(Java Doc)
public String genSQLReifQualConst(int alias, char pred, Node lit)(Code)(Java Doc)
public String genSQLReifQualObj(char reifProp, boolean hasObj)(Code)(Java Doc)
public String genSQLReifQualStmt()(Code)(Java Doc)
public String genSQLResList(int resIndex, VarDesc[] binding)(Code)(Java Doc)
public String genSQLSelectKW()(Code)(Java Doc)
public String genSQLSelectStmt(String res, String from, String qual)(Code)(Java Doc)
public String genSQLStringMatch(int alias, char col, String fun, String stringToMatch)(Code)(Java Doc)
public String genSQLStringMatchEscape()(Code)(Java Doc)
public String genSQLStringMatchLHS(boolean ignCase, String var)(Code)(Java Doc)
public String genSQLStringMatchLHS_IC(String var)(Code)(Java Doc)
public String genSQLStringMatchLong()(Code)(Java Doc)
public String genSQLStringMatchOp(boolean ignCase, String fun)(Code)(Java Doc)
public String genSQLStringMatchOp(String fun)(Code)(Java Doc)
public String genSQLStringMatchOp_IC(String fun)(Code)(Java Doc)
public String genSQLStringMatchRHS(boolean ignCase, boolean pfxMatch, String strToMatch)(Code)(Java Doc)
public String genSQLStringMatchRHS_IC(String strToMatch)(Code)(Java Doc)
public String genSQLWhereKW()(Code)(Java Doc)
protected String genTableName(int graphId, int tblId, boolean isReif)(Code)(Java Doc)
protected List getAllTables()(Code)(Java Doc)
public DBIDInt getBlankID(String bstr, boolean add) throws RDFRDBException(Code)(Java Doc)
public int getCompressCacheSize()(Code)(Java Doc)
public int getCompressURILength()(Code)(Java Doc)
public IDBConnection getConnection()(Code)(Java Doc)
abstract String[] getCreateTableParams(int graphId, boolean isReif)(Code)(Java Doc)
public String getDatabaseType()(Code)(Java Doc)
abstract String[] getDbInitTablesParams()(Code)(Java Doc)
public DBPropGraph getDefaultModelProperties()(Code)(Java Doc)
public boolean getDoCompressURI()(Code)(Java Doc)
public boolean getDoDuplicateCheck()(Code)(Java Doc)
public int getIndexKeyLength()(Code)(Java Doc)
public int getIndexKeyLengthMax()(Code)(Java Doc)
public int getInsertID(String tableName)(Code)(Java Doc)
public boolean getIsTransactionDb()(Code)(Java Doc)
public DBIDInt getLiteralID(Node_Literal lnode, boolean add) throws RDFRDBException(Code)(Java Doc)
public DBIDInt getLongObjectID(RDBLongObject lobj, String table, boolean add) throws RDFRDBException(Code)(Java Doc)
public int getLongObjectLength()(Code)(Java Doc)
public int getLongObjectLengthMax()(Code)(Java Doc)
public List getSequences()(Code)(Java Doc)
public String getStoreWithModel()(Code)(Java Doc)
public SpecializedGraph getSystemSpecializedGraph(boolean doInit)(Code)(Java Doc)
public int getSystemTableCount()(Code)(Java Doc)
public String getSystemTableName(int i)(Code)(Java Doc)
protected int getTableCount(int graphId)(Code)(Java Doc)
public String getTableNamePrefix()(Code)(Java Doc)
public DBIDInt getURIID(String qname, boolean add) throws RDFRDBException(Code)(Java Doc)
abstract public int graphIdAlloc(String graphName)(Code)(Java Doc)
public boolean isDBFormatOK() throws RDFRDBException(Code)(Java Doc)
public String litLangTypeToRDBString(String lang, String dtype) throws RDFRDBException(Code)(Java Doc)
protected RDBLongObject literalToLongObject(Node_Literal node)(Code)(Java Doc)
public void lockDB() throws RDFRDBException(Code)(Java Doc)
public String nodeToRDBString(Node node, boolean addIfLong) throws RDFRDBException(Code)(Java Doc)
protected boolean objectIsLong(int encodingLen, String objAsString)(Code)(Java Doc)
public List recreateSpecializedGraphs(DBPropGraph graphProperties)(Code)(Java Doc)
public void removeSequence(String seqName)(Code)(Java Doc)
public void removeSpecializedGraphs(DBPropGraph graphProperties, List specializedGraphs)(Code)(Java Doc)
public boolean sequenceExists(String seqName)(Code)(Java Doc)
public void setCompressCacheSize(int count)(Code)(Java Doc)
public void setCompressURILength(int len)(Code)(Java Doc)
public void setDatabaseProperties(Graph databaseProperties)(Code)(Java Doc)
public void setDoCompressURI(boolean bool)(Code)(Java Doc)
public void setDoDuplicateCheck(boolean bool)(Code)(Java Doc)
public void setIndexKeyLength(int len)(Code)(Java Doc)
public void setIsTransactionDb(boolean bool)(Code)(Java Doc)
protected void setLongObjectHashAndTail(PreparedStatement ps, int argi, RDBLongObject lobj) throws SQLException(Code)(Java Doc)
protected void setLongObjectHashAndTail_Binary(PreparedStatement ps, int argi, RDBLongObject lobj) throws SQLException(Code)(Java Doc)
protected void setLongObjectHashAndTail_Text(PreparedStatement ps, int argi, RDBLongObject lobj) throws SQLException(Code)(Java Doc)
public void setLongObjectLength(int len)(Code)(Java Doc)
public void setStoreWithModel(String modelName)(Code)(Java Doc)
public void setTableNamePrefix(String prefix)(Code)(Java Doc)
protected void setTableNames(String prefix)(Code)(Java Doc)
public String stringMatchAllChar()(Code)(Java Doc)
public String stringMatchAnyChar()(Code)(Java Doc)
public String stringMatchEscapeChar()(Code)(Java Doc)
public String stringMatchLongObj()(Code)(Java Doc)
public boolean stringMatchNeedsEscape(String strToMatch)(Code)(Java Doc)
public String stringMatchShortObj()(Code)(Java Doc)
public String stringToDBname(String aName)(Code)(Java Doc)
protected long stringToHash(String str)(Code)(Java Doc)
public boolean supportsJenaReification()(Code)(Java Doc)
public boolean supportsMultipleModels()(Code)(Java Doc)
public boolean transactionsSupported()(Code)(Java Doc)
public boolean tryLockDB()(Code)(Java Doc)
public void unlockDB() throws RDFRDBException(Code)(Java Doc)
public DBIDInt wrapDBID(Object id) throws RDFRDBException(Code)(Java Doc)
protected synchronized boolean xactOp(int op) throws RDFRDBException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.