summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-09 04:11:09 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-09 04:11:09 +0000
commit106869635aa322d70d40024e2b8a313968dfab6d (patch)
tree7ed122fe23bc96b57958cd157a9a49aea4f31d08 /src
parent2377a67bbbc441c50e0d6c53a278b42ef92c8c2e (diff)
Throw proper exception for test compliance.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCBlob.java6
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCClob.java6
2 files changed, 8 insertions, 4 deletions
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) {