diff -r 613c41bada72 -r 718bb89ca52e src/net/lemnik/eodsql/spi/util/NonUpdateCapableDataObjectBinding.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/net/lemnik/eodsql/spi/util/NonUpdateCapableDataObjectBinding.java Sat Sep 18 23:25:53 2010 +0200 @@ -0,0 +1,22 @@ +package net.lemnik.eodsql.spi.util; + +import java.sql.ResultSet; + +/** + * A base class for {@link DataObjectBinding} implementations that are not capable of updates. + * + * @author Bernd Rinn + */ +public abstract class NonUpdateCapableDataObjectBinding extends DataObjectBinding +{ + @Override + public boolean isUpdateCapable() + { + return false; + } + + @Override + public void marshall(T from, ResultSet results) throws UnsupportedOperationException { + throw new UnsupportedOperationException(); + } +}