Skip to content

Commit

Permalink
Return couple deprecated constructors back
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lavrukov committed Dec 6, 2024
1 parent 149233e commit 80ca8ed
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
public abstract class MultipleVarsYqlStatement<PARAMS, ENTITY extends Entity<ENTITY>, RESULT> extends YqlStatement<PARAMS, ENTITY, RESULT> {
public static final String listName = "$Input";

/**
* @deprecated Use constructor with {@link TableDescriptor} for selecting correct entity table
*/
@Deprecated(forRemoval = true)
public MultipleVarsYqlStatement(EntitySchema<ENTITY> schema, Schema<RESULT> resultSchema) {
this(TableDescriptor.from(schema), schema, resultSchema);
}

public MultipleVarsYqlStatement(
TableDescriptor<ENTITY> tableDescriptor, EntitySchema<ENTITY> schema, Schema<RESULT> resultSchema
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ public abstract class PredicateStatement<PARAMS, ENTITY extends Entity<ENTITY>,

private final Map<String, PredParam> predParams;

/**
* @deprecated Use constructor with {@link TableDescriptor} for selecting correct entity table
*/
@Deprecated(forRemoval = true)
public PredicateStatement(
@NonNull EntitySchema<ENTITY> schema,
@NonNull Schema<RESULT> outSchema,
@NonNull PARAMS params,
@NonNull Function<PARAMS, YqlPredicate> getPredicate
) {
this(TableDescriptor.from(schema), schema, outSchema, params, getPredicate);
}

public PredicateStatement(
@NonNull TableDescriptor<ENTITY> tableDescriptor,
@NonNull EntitySchema<ENTITY> schema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ public abstract class YqlStatement<PARAMS, ENTITY extends Entity<ENTITY>, RESULT
@Getter
protected final TableDescriptor<ENTITY> tableDescriptor;

/**
* @deprecated Use constructor with {@link TableDescriptor} for selecting correct entity table
*/
@Deprecated(forRemoval = true)
public YqlStatement(EntitySchema<ENTITY> schema, Schema<RESULT> resultSchema) {
this(TableDescriptor.from(schema), schema, resultSchema);
}

public YqlStatement(
TableDescriptor<ENTITY> tableDescriptor, EntitySchema<ENTITY> schema, Schema<RESULT> resultSchema
) {
Expand Down

0 comments on commit 80ca8ed

Please sign in to comment.