[jOOQ/jOOQ#10284] Add UDT.getPackage() in the OSS edition API

This commit is contained in:
Lukas Eder 2020-06-16 11:53:23 +02:00
parent 159b451f20
commit 5f0de09cbc
3 changed files with 11 additions and 23 deletions

View File

@ -180,13 +180,10 @@ public interface UDT<R extends UDTRecord<R>> extends Named {
*/
Schema getSchema();
/**
* Get the UDT package.
*/
Package getPackage();
/**
* @return The record type produced by this table.

View File

@ -316,7 +316,7 @@ final class DetachedMeta extends AbstractMeta {
private static final long serialVersionUID = -5732449514562314202L;
DetachedUDT(DetachedSchema schema, UDT<R> udt) {
super(udt.getName(), schema, udt.isSynthetic());
super(udt.getName(), schema, udt.getPackage(), udt.isSynthetic());
}
}
}

View File

@ -47,7 +47,6 @@ import org.jooq.DataType;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.Package;
// ...
import org.jooq.Record;
import org.jooq.Row;
import org.jooq.Schema;
@ -69,10 +68,7 @@ public class UDTImpl<R extends UDTRecord<R>> extends AbstractNamed implements UD
private final Schema schema;
private final Fields<R> fields;
private final Package pkg;
private final boolean synthetic;
private transient DataType<R> type;
@ -89,9 +85,7 @@ public class UDTImpl<R extends UDTRecord<R>> extends AbstractNamed implements UD
this.fields = new Fields<>();
this.schema = schema;
this.pkg = pkg;
this.synthetic = synthetic;
}
@ -111,13 +105,10 @@ public class UDTImpl<R extends UDTRecord<R>> extends AbstractNamed implements UD
return s == null ? super.getQualifiedName() : s.getQualifiedName().append(getUnqualifiedName());
}
@Override
public final Package getPackage() {
return pkg;
}
@Override
public final Row fieldsRow() {