Skip to content

Commit

Permalink
Update Api annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
minborg committed Oct 20, 2015
1 parent 275b335 commit 3c66f2c
Show file tree
Hide file tree
Showing 57 changed files with 230 additions and 65 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/Entity.java
Expand Up @@ -29,7 +29,7 @@
* @author pemi, Emil Forslund * @author pemi, Emil Forslund
* @param <ENTITY> type * @param <ENTITY> type
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Entity<ENTITY> { public interface Entity<ENTITY> {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/HasSpeedment.java
Expand Up @@ -22,7 +22,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface HasSpeedment { public interface HasSpeedment {
Speedment getSpeedment(); Speedment getSpeedment();
} }
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/annotation/Api.java
Expand Up @@ -40,7 +40,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.0", snapshot = false) @Api(version = "2.2", snapshot = false)
@Retention(value = RetentionPolicy.RUNTIME) @Retention(value = RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR}) @Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR})
public @interface Api { public @interface Api {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/component/Component.java
Expand Up @@ -28,7 +28,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Component extends Lifecyclable<Component> { public interface Component extends Lifecyclable<Component> {


/** /**
Expand Down
Expand Up @@ -28,7 +28,7 @@
* @author pemi * @author pemi
* @since 2.1 * @since 2.1
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ConnectionPoolComponent extends Component { public interface ConnectionPoolComponent extends Component {


@Override @Override
Expand Down
Expand Up @@ -33,7 +33,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface DbmsHandlerComponent extends Component { public interface DbmsHandlerComponent extends Component {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/component/EntityManager.java
Expand Up @@ -34,7 +34,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface EntityManager extends Component { public interface EntityManager extends Component {


@Override @Override
Expand Down
Expand Up @@ -28,7 +28,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface JavaTypeMapperComponent extends Component { public interface JavaTypeMapperComponent extends Component {


@Override @Override
Expand Down
Expand Up @@ -25,7 +25,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface LoggerFactoryComponent extends Component { public interface LoggerFactoryComponent extends Component {


@Override @Override
Expand Down
Expand Up @@ -30,7 +30,7 @@
* @author Emil Forslund * @author Emil Forslund
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ManagerComponent extends Component { public interface ManagerComponent extends Component {


@Override @Override
Expand Down
Expand Up @@ -27,7 +27,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface PrimaryKeyFactoryComponent extends Component { public interface PrimaryKeyFactoryComponent extends Component {


/** /**
Expand Down
Expand Up @@ -26,7 +26,7 @@
* @author Emil Forslund * @author Emil Forslund
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ProjectComponent extends Component { public interface ProjectComponent extends Component {


@Override @Override
Expand Down
Expand Up @@ -28,7 +28,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface SqlTypeMapperComponent extends Component, BiFunction<Dbms, SqlTypeInfo, Class<?>> { public interface SqlTypeMapperComponent extends Component, BiFunction<Dbms, SqlTypeInfo, Class<?>> {


@Override @Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Column.java
Expand Up @@ -34,7 +34,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Column extends Node, Enableable, Ordinable, Child<Table>, public interface Column extends Node, Enableable, Ordinable, Child<Table>,
FieldStorageTypeable, ColumnCompressionTypeable { FieldStorageTypeable, ColumnCompressionTypeable {


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Dbms.java
Expand Up @@ -33,7 +33,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Dbms extends Node, Enableable, DbmsTypeable, Child<Project>, Parent<Schema> { public interface Dbms extends Node, Enableable, DbmsTypeable, Child<Project>, Parent<Schema> {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/ForeignKey.java
Expand Up @@ -29,7 +29,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ForeignKey extends Node, Enableable, Child<Table>, Parent<ForeignKeyColumn> { public interface ForeignKey extends Node, Enableable, Child<Table>, Parent<ForeignKeyColumn> {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/ForeignKeyColumn.java
Expand Up @@ -31,7 +31,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ForeignKeyColumn extends Node, Enableable, Ordinable, public interface ForeignKeyColumn extends Node, Enableable, Ordinable,
Columnable, Child<ForeignKey> { Columnable, Child<ForeignKey> {


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/IndexColumn.java
Expand Up @@ -30,7 +30,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface IndexColumn extends Node, Enableable, Ordinable, OrderTypeable, public interface IndexColumn extends Node, Enableable, Ordinable, OrderTypeable,
Columnable, Child<Index> { Columnable, Child<Index> {


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Node.java
Expand Up @@ -38,7 +38,7 @@
* @see Parent * @see Parent
* @see Child * @see Child
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Node extends Nameable, Enableable { public interface Node extends Nameable, Enableable {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/PrimaryKeyColumn.java
Expand Up @@ -29,7 +29,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface PrimaryKeyColumn extends Node, Enableable, Ordinable, public interface PrimaryKeyColumn extends Node, Enableable, Ordinable,
Columnable, Child<Table> { Columnable, Child<Table> {


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Project.java
Expand Up @@ -34,7 +34,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Project extends Node, Enableable, HasSpeedment, Parent<Dbms>, Child<ProjectManager> { public interface Project extends Node, Enableable, HasSpeedment, Parent<Dbms>, Child<ProjectManager> {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/ProjectManager.java
Expand Up @@ -24,7 +24,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ProjectManager extends Node, Enableable, Parent<Project> { public interface ProjectManager extends Node, Enableable, Parent<Project> {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Schema.java
Expand Up @@ -34,7 +34,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Schema extends Node, Enableable, Child<Dbms>, Parent<Table>, public interface Schema extends Node, Enableable, Child<Dbms>, Parent<Table>,
FieldStorageTypeable, FieldStorageTypeable,
ColumnCompressionTypeable, ColumnCompressionTypeable,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/Table.java
Expand Up @@ -34,7 +34,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Table extends Node, Enableable, Child<Schema>, Parent<Child<Table>>, public interface Table extends Node, Enableable, Child<Schema>, Parent<Child<Table>>,
FieldStorageTypeable, FieldStorageTypeable,
ColumnCompressionTypeable, ColumnCompressionTypeable,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Child.java
Expand Up @@ -30,7 +30,7 @@
* @param <P> the type of the parent * @param <P> the type of the parent
* @see Parent * @see Parent
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Child<P extends Parent<?>> extends Node { public interface Child<P extends Parent<?>> extends Node {


/** /**
Expand Down
Expand Up @@ -24,7 +24,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface ColumnCompressionTypeable { public interface ColumnCompressionTypeable {


@External(type = ColumnCompressionType.class, isVisibleInGui = false) @External(type = ColumnCompressionType.class, isVisibleInGui = false)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Columnable.java
Expand Up @@ -24,7 +24,7 @@
* *
* @author Emil Forslund * @author Emil Forslund
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Columnable extends Node { public interface Columnable extends Node {
Column getColumn(); Column getColumn();
} }
Expand Up @@ -25,7 +25,7 @@
* *
* @author Emil Forslund * @author Emil Forslund
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface DbmsTypeable extends HasSpeedment { public interface DbmsTypeable extends HasSpeedment {


DbmsType getType(); DbmsType getType();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Enableable.java
Expand Up @@ -24,7 +24,7 @@
* *
* @author Emil Forslund * @author Emil Forslund
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Enableable { public interface Enableable {


/** /**
Expand Down
Expand Up @@ -24,7 +24,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface FieldStorageTypeable { public interface FieldStorageTypeable {


@External(type = FieldStorageType.class, isVisibleInGui = false) @External(type = FieldStorageType.class, isVisibleInGui = false)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Nameable.java
Expand Up @@ -23,7 +23,7 @@
* *
* @author Emil Forslund * @author Emil Forslund
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Nameable { public interface Nameable {


final int NAMEABLE_FIRST = 1; final int NAMEABLE_FIRST = 1;
Expand Down
Expand Up @@ -24,7 +24,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface OrderTypeable { public interface OrderTypeable {


@External(type = OrderType.class) @External(type = OrderType.class)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Ordinable.java
Expand Up @@ -25,7 +25,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Ordinable extends Node { public interface Ordinable extends Node {


final int ORDINAL_FIRST = 1, UNSET = -1; final int ORDINAL_FIRST = 1, UNSET = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/config/aspects/Parent.java
Expand Up @@ -32,7 +32,7 @@
* @param <C> the type of the children * @param <C> the type of the children
* @see Child * @see Child
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface Parent<C extends Child<?>> extends Node { public interface Parent<C extends Child<?>> extends Node {


/** /**
Expand Down
Expand Up @@ -24,7 +24,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface StorageEngineTypeable { public interface StorageEngineTypeable {


@External(type = StorageEngineType.class, isVisibleInGui = false) @External(type = StorageEngineType.class, isVisibleInGui = false)
Expand Down
Expand Up @@ -22,7 +22,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public enum ColumnCompressionType { public enum ColumnCompressionType {
INHERIT, NONE, DEDUPLICATION; INHERIT, NONE, DEDUPLICATION;
} }
Expand Up @@ -32,7 +32,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface DbmsType { public interface DbmsType {


/** /**
Expand Down
Expand Up @@ -22,7 +22,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public enum FieldStorageType { public enum FieldStorageType {
INHERIT, WRAPPER, PRIMITIVE; INHERIT, WRAPPER, PRIMITIVE;
} }
Expand Up @@ -22,7 +22,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public enum OrderType { public enum OrderType {
ASC, DESC, NONE; ASC, DESC, NONE;
} }
Expand Up @@ -22,7 +22,7 @@
* *
* @author pemi * @author pemi
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public enum StorageEngineType { public enum StorageEngineType {
INHERIT, ON_HEAP; INHERIT, ON_HEAP;
} }
Expand Up @@ -27,7 +27,7 @@
* @author pemi * @author pemi
* @param <T> The type that the ResultSet shall be mapped to * @param <T> The type that the ResultSet shall be mapped to
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface AsynchronousQueryResult<T> extends AutoCloseable { public interface AsynchronousQueryResult<T> extends AutoCloseable {


Stream<T> stream(); Stream<T> stream();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/db/DbmsHandler.java
Expand Up @@ -34,7 +34,7 @@
* @author pemi * @author pemi
* @since 2.0 * @since 2.0
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface DbmsHandler { public interface DbmsHandler {


/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/speedment/db/MetaResult.java
Expand Up @@ -24,7 +24,7 @@
* @author pemi * @author pemi
* @param <ENTITY> the entity type * @param <ENTITY> the entity type
*/ */
@Api(version = "2.1") @Api(version = "2.2")
public interface MetaResult<ENTITY> { public interface MetaResult<ENTITY> {


default Optional<? extends SqlMetaResult<ENTITY, ?>> getSqlMetaResult() { default Optional<? extends SqlMetaResult<ENTITY, ?>> getSqlMetaResult() {
Expand Down

0 comments on commit 3c66f2c

Please sign in to comment.