mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
no effective code change: Add missing @Override annotation and removed duplicate methods in interfaces
This commit is contained in:
@@ -36,11 +36,6 @@ public interface SpiDtoQuery<T> extends DtoQuery<T>, SpiSqlBinding {
|
||||
*/
|
||||
boolean isRelaxedMode();
|
||||
|
||||
/**
|
||||
* Return the label for the query.
|
||||
*/
|
||||
String getLabel();
|
||||
|
||||
/**
|
||||
* Return the label with fallback to profile location label.
|
||||
*/
|
||||
|
||||
@@ -44,8 +44,4 @@ public interface SpiExpressionList<T> extends ExpressionList<T>, SpiExpression {
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply property prefix when filterMany expressions included in main query.
|
||||
*/
|
||||
void prefixProperty(String path);
|
||||
}
|
||||
|
||||
@@ -114,6 +114,7 @@ public final class DtoQueryRequest<T> extends AbstractSqlQueryRequest {
|
||||
return queryEngine.findList(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean next() throws SQLException {
|
||||
query.checkCancelled();
|
||||
return dataReader.next();
|
||||
|
||||
@@ -145,6 +145,7 @@ public final class PersistRequestUpdateSql extends PersistRequest {
|
||||
this.bindLog = bindLog;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startBind(boolean batchThisRequest) {
|
||||
this.batchThisRequest = batchThisRequest;
|
||||
super.startBind(batchThisRequest);
|
||||
|
||||
@@ -154,6 +154,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
/**
|
||||
* Return the property value as an entity bean.
|
||||
*/
|
||||
@Override
|
||||
public EntityBean getValueAsEntityBean(EntityBean owner) {
|
||||
return (EntityBean) getValue(owner);
|
||||
}
|
||||
@@ -203,6 +204,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
Object naturalKeyVal(Map<String, Object> values) {
|
||||
EntityBean bean = (EntityBean) values.get(name);
|
||||
if (bean == null) {
|
||||
@@ -339,6 +341,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasForeignKey() {
|
||||
return foreignKey == null || primaryKeyJoin || !foreignKey.isNoConstraint();
|
||||
}
|
||||
@@ -402,6 +405,7 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> implements STr
|
||||
/**
|
||||
* Return the bean cache value for this property using original values.
|
||||
*/
|
||||
@Override
|
||||
public Object getCacheDataValueOrig(EntityBeanIntercept ebi) {
|
||||
return cacheDataConvert(ebi.getOrigValue(propertyIndex));
|
||||
}
|
||||
|
||||
@@ -150,6 +150,7 @@ public final class DefaultPersister implements Persister {
|
||||
/**
|
||||
* Add to the flush queue in position 0, 1 or 2.
|
||||
*/
|
||||
@Override
|
||||
public void addToFlushQueue(SpiSqlUpdate update, SpiTransaction t, int pos) {
|
||||
new PersistRequestUpdateSql(server, update, t, persistExecute).addToFlushQueue(pos);
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ final class DCountMetric implements CountMetric {
|
||||
count.add(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void increment() {
|
||||
count.increment();
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ class DProfileLocation implements ProfileLocation {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTraceCount(int traceCount) {
|
||||
this.traceCount = traceCount;
|
||||
}
|
||||
|
||||
@@ -1339,6 +1339,7 @@ public final class DefaultOrmQuery<T> extends AbstractQuery implements SpiQuery<
|
||||
return fetchInternal(path, null, FETCH_QUERY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Query<T> fetchCache(String path) {
|
||||
return fetchInternal(path, null, FETCH_CACHE);
|
||||
}
|
||||
|
||||
+1
@@ -65,6 +65,7 @@ public final class DefaultPersistenceContext implements SpiPersistenceContext {
|
||||
return new DefaultPersistenceContext(this, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean resetLimit() {
|
||||
lock.lock();
|
||||
try {
|
||||
|
||||
@@ -201,6 +201,7 @@ public class TransactionManager implements SpiTransactionManager {
|
||||
/**
|
||||
* Return the scope manager.
|
||||
*/
|
||||
@Override
|
||||
public final TransactionScopeManager scope() {
|
||||
return scopeManager;
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ interface ArrayElementConverter<T> {
|
||||
*/
|
||||
class StringConverter implements ArrayElementConverter<String> {
|
||||
|
||||
@Override
|
||||
public String fromDbArray(Object rawValue) {
|
||||
return (String) rawValue;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ final class ScalarTypeLocalDate extends ScalarTypeBaseDate<LocalDate> {
|
||||
super(mode, LocalDate.class, false, Types.DATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String toIsoFormat(LocalDate value) {
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ final class ScalarTypeUtilDate {
|
||||
super(mode, Date.class, false, Types.DATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String toIsoFormat(java.util.Date value) {
|
||||
return UtilDateParser.format(value);
|
||||
}
|
||||
|
||||
+1
@@ -90,6 +90,7 @@ public class TestElementCollectionBasicCache extends BaseTestCase {
|
||||
LoggedSqlCollector.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPersistBatchOnCascade() {
|
||||
return ((SpiEbeanServer) Ebean.getDefaultServer()).getDatabasePlatform().getPersistBatchOnCascade() != PersistBatch.NONE;
|
||||
}
|
||||
|
||||
+1
@@ -96,6 +96,7 @@ public class TestElementCollectionBasicMapCache extends BaseTestCase {
|
||||
LoggedSqlCollector.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPersistBatchOnCascade() {
|
||||
return ((SpiEbeanServer) Ebean.getDefaultServer()).getDatabasePlatform().getPersistBatchOnCascade() != PersistBatch.NONE;
|
||||
}
|
||||
|
||||
+1
@@ -24,6 +24,7 @@ public class PostgresDdl extends PlatformDdl {
|
||||
this.indexConcurrent = "concurrently ";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String setLockTimeout(int lockTimeoutSeconds) {
|
||||
return "set lock_timeout = " + (lockTimeoutSeconds * 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user