Source Code Cross Referenced for IPSet.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:          (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003:          [See end of file]
004:         */
005:
006:        package com.hp.hpl.jena.db.impl;
007:
008:        import java.util.List;
009:
010:        import com.hp.hpl.jena.db.RDFRDBException;
011:        import com.hp.hpl.jena.graph.Triple;
012:        import com.hp.hpl.jena.graph.TripleMatch;
013:        import com.hp.hpl.jena.util.iterator.ExtendedIterator;
014:
015:        /**
016:         * Generic database interface used for implementing PStore
017:         * Different database table layouts and different SQL dialects should all
018:         * be supportable via this generic interface. 
019:         * 
020:         * Based on the Jena1 version of IRDBDriver by Dave Reynolds
021:         * 
022:         * @author hkuno
023:         * @version $Revision: 1.15 $
024:         */
025:
026:        public interface IPSet {
027:
028:            /**
029:             * Link an existing instance of the IPSet to a specific driver
030:             */
031:            public void setDriver(IRDBDriver driver) throws RDFRDBException;
032:
033:            /**
034:             * Pass the SQL cache to the IPSet
035:             */
036:            public void setSQLCache(SQLCache cache);
037:
038:            public SQLCache getSQLCache();
039:
040:            public void setSQLType(String value);
041:
042:            public void setSkipDuplicateCheck(boolean value);
043:
044:            public void setCachePreparedStatements(boolean value);
045:
046:            /**
047:             * Close this PSet
048:             */
049:            public void close();
050:
051:            /**
052:             * Remove all RDF information associated with this PSet
053:             * from a database.
054:             */
055:            public void cleanDB();
056:
057:            /**
058:             * Return boolean indicating whether or not statement
059:             * table for specified statement table contains
060:             * the specified triple for the specified graph.
061:             */
062:            public boolean statementTableContains(IDBID graphID, Triple t);
063:
064:            /**
065:             * @param t the triple to be added
066:             * @param gid the id of the graph
067:             */
068:            public void storeTriple(Triple t, IDBID gid);
069:
070:            /** 
071:             * Attempt to add a list of triples to the specialized graph.
072:             * 
073:             * As each triple is successfully added it is removed from the List.
074:             * If complete is true then the entire List was added and the List will 
075:             * be empty upon return.  if complete is false, then at least one triple 
076:             * remains in the List.
077:             * 
078:             * If a triple can't be stored for any reason other than incompatability
079:             * (for example, a lack of disk space) then the implemenation should throw
080:             * a runtime exception.
081:             * 
082:             * @param triples List of triples to be added.  This is modified by the call.
083:             * @param my_GID  ID of the graph.
084:             */
085:            public void storeTripleList(List triples, IDBID my_GID);
086:
087:            /**
088:             * @param t the triple to be added
089:             * @param gid the id of the graph
090:             */
091:            public void deleteTriple(Triple t, IDBID gid);
092:
093:            /**
094:             * @param t the triple to be added
095:             * @param gid the id of the graph
096:             */
097:            public void deleteTripleList(List triples, IDBID gid);
098:
099:            /**
100:             * Method extractTripleFromRowData.
101:             * @param subjURI
102:             * @param predURI
103:             * @param objURI may be null
104:             * @param objVal may be null
105:             * @param objRef may be null
106:             * @return Triple
107:             */
108:            Triple extractTripleFromRowData(String subj, String pred, String obj);
109:
110:            /**
111:             * Method find matching entries
112:             * @param t tripleMatch pattern
113:             * @param graphID of the graph to search
114:             * @return ExtendedIterator holding results
115:             */
116:            public ExtendedIterator find(TripleMatch t, IDBID graphID);
117:
118:            /**
119:             * Return a count of the rows in a given table
120:             * 
121:             * @param tName
122:             * @return int
123:             */
124:            public int rowCount(int graphId);
125:
126:            /**
127:             * Remove the statements associated with this PStore
128:             * from the database tables.  Leave Literals.
129:             * @param pProp properties
130:             */
131:            public void removeStatementsFromDB(IDBID graphID);
132:
133:            /**
134:             * @param graphId TODO
135:             * @return number of triples in AssertedStatement table
136:             */
137:            public int tripleCount(IDBID graphId);
138:
139:            /**
140:             * @param tblName
141:             */
142:            public void setTblName(String tblName);
143:
144:            /**
145:             * @return String the name of the table that stores the PSet.
146:             */
147:            public String getTblName();
148:
149:            /**
150:             * @return the driver for the PSet
151:             */
152:            public IRDBDriver driver();
153:
154:        }
155:
156:        /*
157:         *  (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
158:         *  All rights reserved.
159:         *
160:         * Redistribution and use in source and binary forms, with or without
161:         * modification, are permitted provided that the following conditions
162:         * are met:
163:         * 1. Redistributions of source code must retain the above copyright
164:         *    notice, this list of conditions and the following disclaimer.
165:         * 2. Redistributions in binary form must reproduce the above copyright
166:         *    notice, this list of conditions and the following disclaimer in the
167:         *    documentation and/or other materials provided with the distribution.
168:         * 3. The name of the author may not be used to endorse or promote products
169:         *    derived from this software without specific prior written permission.
170:
171:         * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
172:         * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
173:         * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
174:         * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
175:         * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
176:         * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
177:         * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
178:         * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
179:         * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
180:         * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
181:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.