From 106869635aa322d70d40024e2b8a313968dfab6d Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 9 May 2008 04:11:09 +0000 Subject: Throw proper exception for test compliance. --- src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java | 6 ++++-- src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java index cb3b7ae..84b9ba6 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java @@ -25,7 +25,9 @@ import java.io.IOException; import java.sql.SQLException; import com.amazon.carbonado.FetchException; +import com.amazon.carbonado.FetchNoneException; import com.amazon.carbonado.PersistException; +import com.amazon.carbonado.PersistNoneException; import com.amazon.carbonado.lob.AbstractBlob; @@ -128,7 +130,7 @@ class JDBCBlob extends AbstractBlob implements JDBCLob { java.sql.Blob getInternalBlobForFetch() throws FetchException { if (mBlob == null) { if ((mBlob = mLoader.load(mRepo)) == null) { - throw new FetchException("Blob value is null"); + throw new FetchNoneException("Blob value is null"); } try { JDBCTransaction txn = mRepo.localTransactionScope().getTxn(); @@ -146,7 +148,7 @@ class JDBCBlob extends AbstractBlob implements JDBCLob { if (mBlob == null) { try { if ((mBlob = mLoader.load(mRepo)) == null) { - throw new PersistException("Blob value is null"); + throw new PersistNoneException("Blob value is null"); } JDBCTransaction txn = mRepo.localTransactionScope().getTxn(); if (txn != null) { diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java index efbbe61..aa280a7 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java @@ -25,7 +25,9 @@ import java.io.IOException; import java.sql.SQLException; import com.amazon.carbonado.FetchException; +import com.amazon.carbonado.FetchNoneException; import com.amazon.carbonado.PersistException; +import com.amazon.carbonado.PersistNoneException; import com.amazon.carbonado.lob.AbstractClob; @@ -128,7 +130,7 @@ class JDBCClob extends AbstractClob implements JDBCLob { java.sql.Clob getInternalClobForFetch() throws FetchException { if (mClob == null) { if ((mClob = mLoader.load(mRepo)) == null) { - throw new FetchException("Clob value is null"); + throw new FetchNoneException("Clob value is null"); } try { JDBCTransaction txn = mRepo.localTransactionScope().getTxn(); @@ -146,7 +148,7 @@ class JDBCClob extends AbstractClob implements JDBCLob { if (mClob == null) { try { if ((mClob = mLoader.load(mRepo)) == null) { - throw new PersistException("Clob value is null"); + throw new PersistNoneException("Clob value is null"); } JDBCTransaction txn = mRepo.localTransactionScope().getTxn(); if (txn != null) { -- cgit v1.2.3