[jOOQ/jOOQ#2026] Annotated additional types as Internal

This commit is contained in:
Lukas Eder 2019-07-11 12:08:32 +02:00
parent cacc3e5a7c
commit 4a166cbcd9
21 changed files with 30 additions and 7 deletions

View File

@ -53,6 +53,7 @@ import org.jooq.exception.DataAccessException;
* @author Lukas Eder
* @see RenderContext
*/
@Internal
public interface BindContext extends Context<BindContext> {
/**

View File

@ -596,6 +596,7 @@ public interface DSLContext extends Scope , AutoCloseable {
* completely internal with jOOQ 4.0
*/
@Deprecated
@Internal
RenderContext renderContext();
/**
@ -699,6 +700,7 @@ public interface DSLContext extends Scope , AutoCloseable {
* completely internal with jOOQ 4.0
*/
@Deprecated
@Internal
BindContext bindContext(PreparedStatement stmt);
/**

View File

@ -37,6 +37,7 @@
*/
package org.jooq;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
@ -47,13 +48,16 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Signifies that a API (public class, method or field) is internal and subject to incompatible
* changes, or even removal, in a future release. An API bearing this annotation is exempt from any
* compatibility guarantees made by its containing library.
* Signifies that a API (public class, method or field) is internal and subject
* to incompatible changes, or even removal, in a future release. An API bearing
* this annotation is exempt from any compatibility guarantees made by its
* containing library.
*
* @author Knut Wannheden
*/
@Documented
@Retention(RetentionPolicy.CLASS)
@Target(value={FIELD, METHOD, TYPE})
public @interface Internal {}
@Target(value = { FIELD, METHOD, TYPE, ANNOTATION_TYPE })
@Internal
public @interface Internal {
}

View File

@ -47,6 +47,7 @@ import org.jooq.exception.DataAccessException;
*
* @author Lukas Eder
*/
@Internal
public interface QueryPartInternal extends QueryPart {
/**

View File

@ -55,6 +55,7 @@ import org.jooq.UniqueKey;
* @deprecated - [#6875] [#7158] - 3.11.0 - Please re-generate your code
*/
@Deprecated
@org.jooq.Internal
public abstract class AbstractKeys {
/**

View File

@ -146,6 +146,7 @@ import org.jooq.tools.reflect.Reflect;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public abstract class AbstractRoutine<T> extends AbstractNamed implements Routine<T> {
/**

View File

@ -483,6 +483,7 @@ package org.jooq.impl;

View File

@ -58,6 +58,7 @@ import org.jooq.Schema;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class CatalogImpl extends AbstractNamed implements Catalog {
/**

View File

@ -99,6 +99,7 @@ import org.jooq.types.UShort;
* @author Lukas Eder
*/
@SuppressWarnings({"unchecked"})
@org.jooq.Internal
public class DefaultDataType<T> implements DataType<T> {
/**

View File

@ -49,6 +49,7 @@ import org.jooq.Row;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class EmbeddableRecordImpl<R extends EmbeddableRecord<R>> extends AbstractRecord implements EmbeddableRecord<R> {
/**

View File

@ -59,6 +59,7 @@ import org.jooq.UniqueKey;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public final class Internal {
/**

View File

@ -53,6 +53,7 @@ import org.jooq.Schema;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class PackageImpl extends AbstractNamed implements Package {
/**

View File

@ -62,6 +62,7 @@ import org.jooq.UDT;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class SchemaImpl extends AbstractNamed implements Schema {
private static final long serialVersionUID = -8101463810207566546L;

View File

@ -70,6 +70,7 @@ import org.jooq.exception.SQLDialectNotSupportedException;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class SequenceImpl<T extends Number> extends AbstractNamed implements Sequence<T> {
/**

View File

@ -71,6 +71,7 @@ import org.jooq.tools.StringUtils;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class TableImpl<R extends Record> extends AbstractTable<R> {
private static final long serialVersionUID = 261033315221985068L;

View File

@ -87,6 +87,7 @@ import org.jooq.tools.JooqLogger;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class TableRecordImpl<R extends TableRecord<R>> extends AbstractRecord implements TableRecord<R> {
/**

View File

@ -62,6 +62,7 @@ import org.jooq.UDTRecord;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class UDTImpl<R extends UDTRecord<R>> extends AbstractNamed implements UDT<R> {
private static final long serialVersionUID = -2208672099190913126L;

View File

@ -59,6 +59,7 @@ import org.jooq.UDTRecord;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class UDTRecordImpl<R extends UDTRecord<R>> extends AbstractRecord implements UDTRecord<R> {
/**

View File

@ -81,6 +81,7 @@ import org.jooq.tools.StringUtils;
*
* @author Lukas Eder
*/
@org.jooq.Internal
public class UpdatableRecordImpl<R extends UpdatableRecord<R>> extends TableRecordImpl<R> implements UpdatableRecord<R> {
/**

View File

@ -88,7 +88,7 @@ import org.xml.sax.InputSource;
* @author Lukas Eder
*/
@Internal
public class MiniJAXB {
public final class MiniJAXB {
public static String marshal(XMLAppendable object) {
StringWriter writer = new StringWriter();

View File

@ -55,7 +55,7 @@ import org.jooq.Internal;
* @author Knut Wannheden
*/
@Internal
public class XMLBuilder {
public final class XMLBuilder {
private final StringBuilder builder = new StringBuilder();