[#1408] Relax bounds of <R> in Factory.truncate() to Record, instead of

TableRecord
This commit is contained in:
Lukas Eder 2012-05-11 11:09:15 +02:00
parent 767574f4c2
commit 1fac2d30ec
5 changed files with 6 additions and 6 deletions

View File

@ -688,7 +688,7 @@ public interface FactoryOperations extends Configuration {
* is omitted for future extensibility of this command.
*/
@Support
<R extends TableRecord<R>> Truncate<R> truncate(Table<R> table);
<R extends Record> Truncate<R> truncate(Table<R> table);
// -------------------------------------------------------------------------
// XXX Other queries for identities and sequences

View File

@ -40,6 +40,6 @@ package org.jooq;
*
* @author Lukas Eder
*/
public interface Truncate<R extends TableRecord<R>> extends Query {
public interface Truncate<R extends Record> extends Query {
}

View File

@ -1489,7 +1489,7 @@ public class Factory implements FactoryOperations {
* {@inheritDoc}
*/
@Override
public final <R extends TableRecord<R>> Truncate<R> truncate(Table<R> table) {
public final <R extends Record> Truncate<R> truncate(Table<R> table) {
return new TruncateImpl<R>(this, table);
}

View File

@ -344,7 +344,7 @@ public final class FactoryProxy implements FactoryOperations {
}
@Override
public final <R extends TableRecord<R>> Truncate<R> truncate(Table<R> table) {
public final <R extends Record> Truncate<R> truncate(Table<R> table) {
return getDelegate().truncate(table);
}

View File

@ -40,16 +40,16 @@ import java.util.List;
import org.jooq.Attachable;
import org.jooq.BindContext;
import org.jooq.Configuration;
import org.jooq.Record;
import org.jooq.RenderContext;
import org.jooq.SQLDialect;
import org.jooq.Table;
import org.jooq.TableRecord;
import org.jooq.Truncate;
/**
* @author Lukas Eder
*/
class TruncateImpl<R extends TableRecord<R>> extends AbstractQuery implements Truncate<R> {
class TruncateImpl<R extends Record> extends AbstractQuery implements Truncate<R> {
/**
* Generated UID