[#1544] Remove Attachable interface from QueryPart hierarchy - Removed

unused methods
This commit is contained in:
Lukas Eder 2012-07-27 19:16:57 +02:00
parent 0a7a7843ed
commit b5a3c2221e
2 changed files with 0 additions and 51 deletions

View File

@ -40,8 +40,6 @@ import static org.jooq.conf.SettingsTools.executePreparedStatements;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@ -54,7 +52,6 @@ import org.jooq.Query;
import org.jooq.QueryPart;
import org.jooq.QueryPartInternal;
import org.jooq.SQLDialect;
import org.jooq.Store;
import org.jooq.exception.DataAccessException;
import org.jooq.exception.SQLDialectNotSupportedException;
@ -227,37 +224,6 @@ abstract class AbstractQueryPart implements QueryPartInternal, AttachableInterna
// Internal convenience methods
// -------------------------------------------------------------------------
/**
* Internal convenience method
*/
protected final List<Attachable> getAttachables(Collection<? extends QueryPart> list) {
List<Attachable> result = new ArrayList<Attachable>();
for (QueryPart item : list) {
if (item != null) {
result.add(item);
}
}
return result;
}
/**
* Internal convenience method
*/
protected final List<Attachable> getAttachables(QueryPart... list) {
return getAttachables(Arrays.asList(list));
}
/**
* Internal convenience method
*/
protected final List<Attachable> getAttachables(Store<?> store) {
return store == null
? Collections.<Attachable> emptyList()
: store.internalAPI(AttachableInternal.class).getAttachables();
}
@Override
public List<Attachable> getAttachables() {
return Collections.emptyList();

View File

@ -61,8 +61,6 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import org.jooq.ArrayRecord;
import org.jooq.Attachable;
import org.jooq.AttachableInternal;
import org.jooq.Configuration;
import org.jooq.Cursor;
import org.jooq.DataType;
@ -73,7 +71,6 @@ import org.jooq.FieldProvider;
import org.jooq.NamedQueryPart;
import org.jooq.Param;
import org.jooq.QueryPart;
import org.jooq.QueryPartInternal;
import org.jooq.Record;
import org.jooq.RenderContext;
import org.jooq.Schema;
@ -977,20 +974,6 @@ final class Util {
}
}
/**
* Expose the internal API of an {@link Attachable}
*/
static final AttachableInternal internal(Attachable part) {
return part.internalAPI(AttachableInternal.class);
}
/**
* Expose the internal API of a {@link QueryPart}
*/
static final QueryPartInternal internal(QueryPart part) {
return part.internalAPI(QueryPartInternal.class);
}
/**
* Return a non-negative hash code for a {@link QueryPart}, taking into
* account FindBugs' <code>RV_ABSOLUTE_VALUE_OF_HASHCODE</code> pattern