1 6 7 package com.hp.hpl.jena.db.impl; 8 9 import java.sql.Blob ; 10 11 import com.hp.hpl.jena.db.RDFRDBException; 12 13 19 public abstract class DBBlob implements IDBBlob { 20 21 22 protected Object m_blob; 23 24 25 26 protected String m_dbtype; 27 28 29 public DBBlob(Object ablob, String dbType) { 30 m_dbtype = dbType; 31 m_blob = ablob; 32 33 } 34 35 public DBBlob() { 36 } 37 38 45 public static IDBBlob getDBBlob(Object ablob, String dbType) { 46 IDBBlob result = null; 47 if (dbType.equalsIgnoreCase("oracle")) { 48 } else { 50 throw new RDFRDBException("No appropriate blob type found for " + dbType); 51 } 52 return (result); 53 54 55 } 56 57 58 61 public Blob getBlob() { 62 return ((java.sql.Blob ) m_blob); 64 } 65 66 } 67 96 | Popular Tags |