[jOOQ/jOOQ#681] Changed Domain.checks() to Domain.getChecks()
This commit is contained in:
parent
850c54fd46
commit
8d6ae219dc
@ -59,5 +59,5 @@ public interface Domain<T> extends Named, Typed<T> {
|
||||
/**
|
||||
* The <code>DOMAIN</code>'s condition.
|
||||
*/
|
||||
List<Check<?>> checks();
|
||||
List<Check<?>> getChecks();
|
||||
}
|
||||
|
||||
@ -187,11 +187,11 @@ final class DDL {
|
||||
? s2.default_(domain.getDataType().default_())
|
||||
: s2;
|
||||
|
||||
if (domain.checks().isEmpty())
|
||||
if (domain.getChecks().isEmpty())
|
||||
return s3;
|
||||
|
||||
List<Constraint> constraints = new ArrayList<>();
|
||||
for (Check check : domain.checks())
|
||||
for (Check check : domain.getChecks())
|
||||
constraints.add(check.constraint());
|
||||
|
||||
return s3.constraints(constraints);
|
||||
|
||||
@ -195,7 +195,7 @@ final class DetachedMeta extends AbstractMeta {
|
||||
}
|
||||
|
||||
static DetachedDomain<?> copyOf(Domain<?> domain, Schema owner) {
|
||||
return new DetachedDomain<>(owner, domain.getQualifiedName(), domain.getDataType(), domain.checks().toArray(EMPTY_CHECK));
|
||||
return new DetachedDomain<>(owner, domain.getQualifiedName(), domain.getDataType(), domain.getChecks().toArray(EMPTY_CHECK));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -265,7 +265,7 @@ final class Diff {
|
||||
else if (d2.getDataType().defaulted() && !d2.getDataType().defaultValue().equals(d1.getDataType().defaultValue()))
|
||||
r.queries.add(ctx.alterDomain(d1).setDefault((Field) d2.getDataType().defaultValue()));
|
||||
|
||||
appendChecks(r, d1, d1.checks(), d2.checks());
|
||||
appendChecks(r, d1, d1.getChecks(), d2.getChecks());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -85,7 +85,7 @@ class DomainImpl<T> extends AbstractNamed implements Domain<T> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Check<?>> checks() {
|
||||
public final List<Check<?>> getChecks() {
|
||||
return unmodifiableList(asList(checks));
|
||||
}
|
||||
|
||||
|
||||
@ -194,7 +194,7 @@ final class InformationSchemaExport {
|
||||
|
||||
result.getDomains().add(id);
|
||||
|
||||
for (Check<?> c : d.checks()) {
|
||||
for (Check<?> c : d.getChecks()) {
|
||||
org.jooq.util.xml.jaxb.DomainConstraint idc = new org.jooq.util.xml.jaxb.DomainConstraint();
|
||||
org.jooq.util.xml.jaxb.CheckConstraint icc = new org.jooq.util.xml.jaxb.CheckConstraint();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user