diff --git a/ebean-api/src/main/java/io/ebean/meta/MetaCountMetric.java b/ebean-api/src/main/java/io/ebean/meta/MetaCountMetric.java
index cdaa2d7fa..da6a5dacc 100644
--- a/ebean-api/src/main/java/io/ebean/meta/MetaCountMetric.java
+++ b/ebean-api/src/main/java/io/ebean/meta/MetaCountMetric.java
@@ -10,11 +10,4 @@ public interface MetaCountMetric extends MetaMetric {
*/
long count();
- /**
- * Migrate to count()
- */
- @Deprecated
- default long getCount() {
- return count();
- }
}
diff --git a/ebean-api/src/main/java/io/ebean/meta/MetaMetric.java b/ebean-api/src/main/java/io/ebean/meta/MetaMetric.java
index 671dc05c1..14a6566bb 100644
--- a/ebean-api/src/main/java/io/ebean/meta/MetaMetric.java
+++ b/ebean-api/src/main/java/io/ebean/meta/MetaMetric.java
@@ -10,11 +10,4 @@ public interface MetaMetric {
*/
String name();
- /**
- * Migrate to name().
- */
- @Deprecated
- default String getName() {
- return name();
- }
}
diff --git a/ebean-api/src/main/java/io/ebean/meta/MetaQueryMetric.java b/ebean-api/src/main/java/io/ebean/meta/MetaQueryMetric.java
index 1c9b5fe12..6d8cd8a07 100644
--- a/ebean-api/src/main/java/io/ebean/meta/MetaQueryMetric.java
+++ b/ebean-api/src/main/java/io/ebean/meta/MetaQueryMetric.java
@@ -10,40 +10,16 @@ public interface MetaQueryMetric extends MetaTimedMetric {
*/
Class> type();
- /**
- * Migrate to type().
- */
- @Deprecated
- default Class> getType() {
- return type();
- }
-
/**
* The label for the query (can be null).
*/
String label();
- /**
- * Migrate to label().
- */
- @Deprecated
- default String getLabel() {
- return label();
- }
-
/**
* The actual SQL of the query.
*/
String sql();
- /**
- * Migrate to sql().
- */
- @Deprecated
- default String getSql() {
- return sql();
- }
-
/**
* Return the hash of the plan.
*/
diff --git a/ebean-api/src/main/java/io/ebean/meta/MetaTimedMetric.java b/ebean-api/src/main/java/io/ebean/meta/MetaTimedMetric.java
index f95f3248d..4d5d91ec6 100644
--- a/ebean-api/src/main/java/io/ebean/meta/MetaTimedMetric.java
+++ b/ebean-api/src/main/java/io/ebean/meta/MetaTimedMetric.java
@@ -11,67 +11,26 @@ public interface MetaTimedMetric extends MetaMetric {
*/
String location();
- /**
- * Migrate to location()
- */
- @Deprecated
- default String getLocation() {
- return location();
- }
-
/**
* Return the total count.
*/
long count();
- /**
- * Migrate to count()
- */
- @Deprecated
- default long getCount() {
- return count();
- }
-
/**
* Return the total execution time in micros.
*/
long total();
- /**
- * Migrate to total()
- */
- @Deprecated
- default long getTotal() {
- return total();
- }
-
/**
* Return the max execution time in micros.
*/
long max();
- /**
- * Migrate to max()
- */
- @Deprecated
- default long getMax() {
- return max();
- }
-
/**
* Return the mean execution time in micros.
*/
long mean();
-
- /**
- * Migrate to mean()
- */
- @Deprecated
- default long getMean() {
- return mean();
- }
-
/**
* Return true if this is the first metrics collection for this query.
*
diff --git a/ebean-api/src/main/java/io/ebean/meta/ServerMetrics.java b/ebean-api/src/main/java/io/ebean/meta/ServerMetrics.java
index b8a50d85d..f9ca58c33 100644
--- a/ebean-api/src/main/java/io/ebean/meta/ServerMetrics.java
+++ b/ebean-api/src/main/java/io/ebean/meta/ServerMetrics.java
@@ -12,37 +12,14 @@ public interface ServerMetrics {
*/
List timedMetrics();
- /**
- * Migrate to timedMetrics().
- */
- @Deprecated
- default List getTimedMetrics() {
- return timedMetrics();
- }
-
/**
* Return the query metrics.
*/
List queryMetrics();
- /**
- * Migrate to queryMetrics().
- */
- @Deprecated
- default List getQueryMetrics() {
- return queryMetrics();
- }
-
/**
* Return the Counter metrics.
*/
List countMetrics();
- /**
- * Migrate to countMetrics().
- */
- @Deprecated
- default List getCountMetrics() {
- return countMetrics();
- }
}
diff --git a/ebean-api/src/main/java/io/ebean/metric/QueryPlanMetric.java b/ebean-api/src/main/java/io/ebean/metric/QueryPlanMetric.java
index 07a9ca6d2..24999ce0e 100644
--- a/ebean-api/src/main/java/io/ebean/metric/QueryPlanMetric.java
+++ b/ebean-api/src/main/java/io/ebean/metric/QueryPlanMetric.java
@@ -12,14 +12,6 @@ public interface QueryPlanMetric {
*/
TimedMetric metric();
- /**
- * Deprecated migrate to metric().
- */
- @Deprecated
- default TimedMetric getMetric() {
- return metric();
- }
-
/**
* Visit the underlying metric.
*/
diff --git a/ebean-api/src/main/java/io/ebean/plugin/BeanDocType.java b/ebean-api/src/main/java/io/ebean/plugin/BeanDocType.java
index 77a8f72d9..331b70cad 100644
--- a/ebean-api/src/main/java/io/ebean/plugin/BeanDocType.java
+++ b/ebean-api/src/main/java/io/ebean/plugin/BeanDocType.java
@@ -16,28 +16,12 @@ public interface BeanDocType {
/**
* Return the doc store index type for this bean type.
*/
- default String indexType() {
- return getIndexType();
- }
-
- /**
- * Deprecated migrate to indexType().
- */
- @Deprecated
- String getIndexType();
+ String indexType();
/**
* Return the doc store index name for this bean type.
*/
- default String indexName() {
- return getIndexName();
- }
-
- /**
- * Deprecated migrate to indexName().
- */
- @Deprecated
- String getIndexName();
+ String indexName();
/**
* Apply the appropriate fetch path to the query such that the query returns beans matching
@@ -62,15 +46,7 @@ public interface BeanDocType {
* For embedded 'many' properties we need a FetchPath relative to the root which is used to
* build and replace the embedded list.
*/
- default FetchPath embeddedManyRoot(String path) {
- return getEmbeddedManyRoot(path);
- }
-
- /**
- * Deprecated migrate to embeddedManyRoot().
- */
- @Deprecated
- FetchPath getEmbeddedManyRoot(String path);
+ FetchPath embeddedManyRoot(String path);
/**
* Return a 'raw' property mapped for the given property.
diff --git a/ebean-api/src/main/java/io/ebean/plugin/ExpressionPath.java b/ebean-api/src/main/java/io/ebean/plugin/ExpressionPath.java
index b7675f87b..29a5abdab 100644
--- a/ebean-api/src/main/java/io/ebean/plugin/ExpressionPath.java
+++ b/ebean-api/src/main/java/io/ebean/plugin/ExpressionPath.java
@@ -39,14 +39,6 @@ public interface ExpressionPath {
*/
StringParser stringParser();
- /**
- * Deprecated migrate to stringParser().
- */
- @Deprecated
- default StringParser getStringParser() {
- return stringParser();
- }
-
/**
* For DateTime capable scalar types convert the long systemTimeMillis into
* an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).
@@ -64,14 +56,6 @@ public interface ExpressionPath {
*/
int jdbcType();
- /**
- * Deprecated migrate to jdbcType().
- */
- @Deprecated
- default int getJdbcType() {
- return jdbcType();
- }
-
/**
* Return true if this is an ManyToOne or OneToOne associated bean property.
*/
@@ -85,50 +69,19 @@ public interface ExpressionPath {
*/
String assocIdExpression(String propName, String bindOperator);
- /**
- * Deprecated migrate to assocIdExpression().
- */
- @Deprecated
- default String getAssocIdExpression(String propName, String bindOperator) {
- return assocIdExpression(propName, bindOperator);
- }
-
/**
* Return the Id values for the given bean value.
*/
Object[] assocIdValues(EntityBean bean);
- /**
- * Deprecated migrate to assocIdValues().
- */
- @Deprecated
- default Object[] getAssocIdValues(EntityBean bean) {
- return assocIdValues(bean);
- }
-
/**
* Return the underlying bean property.
*/
Property property();
- /**
- * Deprecated migrate to property().
- */
- @Deprecated
- default Property getProperty() {
- return property();
- }
-
/**
* The ElPrefix plus name.
*/
String elName();
- /**
- * Deprecated migrate to elName().
- */
- @Deprecated
- default String getElName() {
- return elName();
- }
}
diff --git a/ebean-api/src/main/java/io/ebean/plugin/Property.java b/ebean-api/src/main/java/io/ebean/plugin/Property.java
index d37fa2959..81a1fc115 100644
--- a/ebean-api/src/main/java/io/ebean/plugin/Property.java
+++ b/ebean-api/src/main/java/io/ebean/plugin/Property.java
@@ -10,40 +10,16 @@ public interface Property {
*/
String name();
- /**
- * Deprecated migrate to name().
- */
- @Deprecated
- default String getName() {
- return name();
- }
-
/**
* Return the type of the property.
*/
Class> type();
- /**
- * Deprecated migrate to type().
- */
- @Deprecated
- default Class> getPropertyType() {
- return type();
- }
-
/**
* Return the value of the property on the given bean.
*/
Object value(Object bean);
- /**
- * Deprecated migrate to value().
- */
- @Deprecated
- default Object getVal(Object bean) {
- return value(bean);
- }
-
/**
* Return true if this is a OneToMany or ManyToMany property.
*/
diff --git a/ebean-core/src/main/java/io/ebeanservice/docstore/api/DocStoreBeanAdapter.java b/ebean-core/src/main/java/io/ebeanservice/docstore/api/DocStoreBeanAdapter.java
index 5c0dd02be..c3a8cd6e7 100644
--- a/ebean-core/src/main/java/io/ebeanservice/docstore/api/DocStoreBeanAdapter.java
+++ b/ebean-core/src/main/java/io/ebeanservice/docstore/api/DocStoreBeanAdapter.java
@@ -54,14 +54,13 @@ public interface DocStoreBeanAdapter extends BeanDocType {
/**
* Return the index type for this bean type.
*/
- @Override
- String getIndexType();
+ String indexType();
/**
* Return the index name for this bean type.
*/
@Override
- String getIndexName();
+ String indexName();
/**
* Process a delete by id of a given document.
diff --git a/ebean-core/src/main/java/io/ebeanservice/docstore/api/support/DocStoreBeanBaseAdapter.java b/ebean-core/src/main/java/io/ebeanservice/docstore/api/support/DocStoreBeanBaseAdapter.java
index 4cd2b692f..dead8c43c 100644
--- a/ebean-core/src/main/java/io/ebeanservice/docstore/api/support/DocStoreBeanBaseAdapter.java
+++ b/ebean-core/src/main/java/io/ebeanservice/docstore/api/support/DocStoreBeanBaseAdapter.java
@@ -102,7 +102,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
private boolean registerPaths;
public DocStoreBeanBaseAdapter(BeanDescriptor desc, DeployBeanDescriptor deploy) {
-
this.desc = desc;
this.server = desc.ebeanServer();
this.mapped = deploy.isDocStoreMapped();
@@ -123,7 +122,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
@Override
public DocumentMapping createDocMapping() {
-
if (documentMapping != null) {
return documentMapping;
}
@@ -143,12 +141,12 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
}
@Override
- public String getIndexType() {
+ public String indexType() {
return indexType;
}
@Override
- public String getIndexName() {
+ public String indexName() {
return indexName;
}
@@ -159,7 +157,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
@Override
public String rawProperty(String property) {
-
String rawProperty = sortableMap.get(property);
return rawProperty == null ? property : rawProperty;
}
@@ -192,7 +189,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
*/
@Override
public void registerInvalidationPath(String queueId, String path, Set properties) {
-
if (!mapped) {
if (update == DocStoreMode.IGNORE) {
// bean type not mapped but is included as nested document
@@ -207,7 +203,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
* Return the DsInvalidationListener based on the properties, path.
*/
protected DocStoreEmbeddedInvalidation getEmbeddedInvalidation(String queueId, String path, Set properties) {
-
if (properties.contains("*")) {
return new DocStoreEmbeddedInvalidation(queueId, path);
} else {
@@ -245,19 +240,15 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
* This can add derived/embedded/nested parts to the document.
*/
protected DocStructure derivePathProperties(PathProperties pathProps) {
-
boolean includeByDefault = (pathProps == null);
if (pathProps == null) {
pathProps = new PathProperties();
}
-
return getDocStructure(pathProps, includeByDefault);
}
protected DocStructure getDocStructure(PathProperties pathProps, final boolean includeByDefault) {
-
final DocStructure docStructure = new DocStructure(pathProps);
-
BeanProperty[] properties = desc.propertiesNonTransient();
for (BeanProperty property : properties) {
property.docStoreInclude(includeByDefault, docStructure);
@@ -271,7 +262,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
}
});
}
-
return docStructure;
}
@@ -281,7 +271,7 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
}
@Override
- public FetchPath getEmbeddedManyRoot(String path) {
+ public FetchPath embeddedManyRoot(String path) {
return docStructure.getEmbeddedManyRoot(path);
}
@@ -297,7 +287,6 @@ public abstract class DocStoreBeanBaseAdapter implements DocStoreBeanAdapter<
@Override
public DocStoreMode getMode(PersistRequest.Type persistType, DocStoreMode txnMode) {
-
if (txnMode == null) {
return getMode(persistType);
} else if (txnMode == DocStoreMode.IGNORE) {