@@ -0,0 +1,1801 @@
+/*%0A * Copyright (C) 2004-2005  exedio GmbH (www.exedio.com)%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0A%0Apackage com.exedio.cope;%0A%0Aimport java.sql.ResultSet;%0Aimport java.sql.SQLException;%0Aimport java.sql.Types;%0A%0Afinal class BlobColumn extends Column%0A%7B%0A%09static final int JDBC_TYPE = Types.BLOB;%0A%09%0A%09BlobColumn(final Table table, final String id, final boolean notNull)%0A%09%7B%0A%09%09super(table, id, false, notNull, JDBC_TYPE);%0A%09%09%0A%09%09if(table.database.getBlobType()==null)%0A%09%09%09throw new RuntimeException(%22database does not support BLOBs for %22+table.id+'.'+id+'.');%0A%09%7D%0A%09%0A%09final String getDatabaseType()%0A%09%7B%0A%09%09return table.database.getBlobType();%0A%09%7D%0A%0A%09final String getCheckConstraintIfNotNull()%0A%09%7B%0A%09%09return null;%0A%09%7D%0A%09%0A%09final void load(final ResultSet resultSet, final int columnIndex, final Row row)%0A%09%09%09throws SQLException%0A%09%7B%0A%09%09throw new RuntimeException(id);%0A%09%7D%0A%09%0A%09final String cacheToDatabase(final Object cache)%0A%09%7B%0A%09%09throw new RuntimeException(id);%0A%09%7D%0A%09%0A%09Object cacheToDatabasePrepared(final Object cache)%0A%09%7B%0A%09%09throw new RuntimeException(id);%0A%09%7D%0A%0A%09Object getCheckValue()%0A%09%7B%0A%09%09throw new RuntimeException(id);%0A%09%7D%0A%09%0A%7D%0A

fix for revision 4323