#2345 - Rename Database.getExpressionFactory() to expressionFactory with deprecation

This commit is contained in:
Rob Bygrave
2021-09-02 22:55:47 +12:00
parent 7a7dbae313
commit 4557bdfa6f
8 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ public final class DB {
* </p>
*/
public static ExpressionFactory getExpressionFactory() {
return getDefault().getExpressionFactory();
return getDefault().expressionFactory();
}
/**
@@ -173,7 +173,15 @@ public interface Database {
/**
* Return the ExpressionFactory for this database.
*/
ExpressionFactory getExpressionFactory();
ExpressionFactory expressionFactory();
/**
* Deprecated migrate to expressionFactory().
*/
@Deprecated
default ExpressionFactory getExpressionFactory() {
return expressionFactory();
}
/**
* Return the MetaInfoManager which is used to get meta data from the Database
+1 -1
View File
@@ -103,7 +103,7 @@ public final class Ebean {
* </p>
*/
public static ExpressionFactory getExpressionFactory() {
return getDefault().getExpressionFactory();
return getDefault().expressionFactory();
}
/**