mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - Code cleanup,remove unnecessary public modifier on interfaces
This commit is contained in:
@@ -10,11 +10,11 @@ public interface ElComparator<T> extends Comparator<T> {
|
||||
/**
|
||||
* Compare given 2 beans.
|
||||
*/
|
||||
public int compare(T o1, T o2);
|
||||
int compare(T o1, T o2);
|
||||
|
||||
/**
|
||||
* Compare with a fixed value to a given bean.
|
||||
*/
|
||||
public int compareValue(Object value, T o2);
|
||||
int compareValue(Object value, T o2);
|
||||
|
||||
}
|
||||
@@ -8,5 +8,5 @@ public interface ElMatcher<T> {
|
||||
/**
|
||||
* Return true if the bean matches the expression.
|
||||
*/
|
||||
public boolean isMatch(T bean);
|
||||
boolean isMatch(T bean);
|
||||
}
|
||||
|
||||
@@ -5,69 +5,68 @@ import com.avaje.ebeaninternal.server.deploy.BeanProperty;
|
||||
/**
|
||||
* Used to parse expressions in queries (where, orderBy etc).
|
||||
* <p>
|
||||
* Maps an expression to deployment information such as
|
||||
* Maps an expression to deployment information such as
|
||||
* the DB column and elPrefix/elPlaceHolder is used determine
|
||||
* joins and set place holders for table alias'.
|
||||
* </p>
|
||||
*/
|
||||
public interface ElPropertyDeploy {
|
||||
|
||||
/**
|
||||
* This is the elPrefix for all root level properties.
|
||||
*/
|
||||
public static final String ROOT_ELPREFIX = "${}";
|
||||
/**
|
||||
* This is the elPrefix for all root level properties.
|
||||
*/
|
||||
String ROOT_ELPREFIX = "${}";
|
||||
|
||||
/**
|
||||
* Return true if the property is a formula with a join clause.
|
||||
*/
|
||||
public boolean containsFormulaWithJoin();
|
||||
/**
|
||||
* Return true if the property is a formula with a join clause.
|
||||
*/
|
||||
boolean containsFormulaWithJoin();
|
||||
|
||||
/**
|
||||
* Return true if there is a property on the path that is a many property.
|
||||
*/
|
||||
public boolean containsMany();
|
||||
/**
|
||||
* Return true if there is a property on the path that is a many property.
|
||||
*/
|
||||
boolean containsMany();
|
||||
|
||||
/**
|
||||
* Return true if there is a property is on the path after sinceProperty
|
||||
* that is a 'many' property.
|
||||
*/
|
||||
public boolean containsManySince(String sinceProperty);
|
||||
/**
|
||||
* Return true if there is a property is on the path after sinceProperty
|
||||
* that is a 'many' property.
|
||||
*/
|
||||
boolean containsManySince(String sinceProperty);
|
||||
|
||||
/**
|
||||
* Return the prefix path of the property.
|
||||
* <p>
|
||||
* This is use to determine joins required to support
|
||||
* this property.
|
||||
* </p>
|
||||
*/
|
||||
public String getElPrefix();
|
||||
/**
|
||||
* Return the prefix path of the property.
|
||||
* <p>
|
||||
* This is use to determine joins required to support
|
||||
* this property.
|
||||
* </p>
|
||||
*/
|
||||
String getElPrefix();
|
||||
|
||||
/**
|
||||
* Return the place holder in the form of ${elPrefix}dbColumn.
|
||||
* <p>
|
||||
* The ${elPrefix} is replaced by the appropriate table alias.
|
||||
* </p>
|
||||
*/
|
||||
public String getElPlaceholder(boolean encrypted);
|
||||
|
||||
/**
|
||||
* Return the name of the property.
|
||||
*/
|
||||
public String getName();
|
||||
/**
|
||||
* Return the place holder in the form of ${elPrefix}dbColumn.
|
||||
* <p>
|
||||
* The ${elPrefix} is replaced by the appropriate table alias.
|
||||
* </p>
|
||||
*/
|
||||
String getElPlaceholder(boolean encrypted);
|
||||
|
||||
/**
|
||||
* The ElPrefix plus name.
|
||||
*/
|
||||
public String getElName();
|
||||
/**
|
||||
* Return the name of the property.
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Return the deployment db column for this property.
|
||||
*/
|
||||
public String getDbColumn();
|
||||
|
||||
/**
|
||||
* The ElPrefix plus name.
|
||||
*/
|
||||
String getElName();
|
||||
|
||||
/**
|
||||
* Return the underlying bean property.
|
||||
*/
|
||||
public BeanProperty getBeanProperty();
|
||||
/**
|
||||
* Return the deployment db column for this property.
|
||||
*/
|
||||
String getDbColumn();
|
||||
|
||||
/**
|
||||
* Return the underlying bean property.
|
||||
*/
|
||||
BeanProperty getBeanProperty();
|
||||
}
|
||||
|
||||
@@ -13,15 +13,15 @@ public interface DataSourceAlert {
|
||||
/**
|
||||
* Send an alert to say the dataSource is back up.
|
||||
*/
|
||||
public void dataSourceUp(String dataSourceName);
|
||||
void dataSourceUp(String dataSourceName);
|
||||
|
||||
/**
|
||||
* Send an alert to say the dataSource is down.
|
||||
*/
|
||||
public void dataSourceDown(String dataSourceName);
|
||||
void dataSourceDown(String dataSourceName);
|
||||
|
||||
/**
|
||||
* Send an alert to say the dataSource is getting close to its max size.
|
||||
*/
|
||||
public void dataSourceWarning(String subject, String msg);
|
||||
void dataSourceWarning(String subject, String msg);
|
||||
}
|
||||
|
||||
@@ -24,11 +24,11 @@ public interface DataSourcePoolListener {
|
||||
/**
|
||||
* Called after a connection has been retrieved from the connection pool
|
||||
*/
|
||||
public void onAfterBorrowConnection(Connection c);
|
||||
void onAfterBorrowConnection(Connection c);
|
||||
|
||||
/**
|
||||
* Called before a connection will be put back to the connection pool
|
||||
*/
|
||||
public void onBeforeReturnConnection(Connection c);
|
||||
void onBeforeReturnConnection(Connection c);
|
||||
|
||||
}
|
||||
|
||||
@@ -4,18 +4,18 @@ import java.util.List;
|
||||
|
||||
public interface DLoadList<T> {
|
||||
|
||||
public int add(T e);
|
||||
int add(T e);
|
||||
|
||||
/**
|
||||
* Return the next batch of entries from the top.
|
||||
*/
|
||||
public abstract List<T> getNextBatch(int batchSize);
|
||||
List<T> getNextBatch(int batchSize);
|
||||
|
||||
public void removeEntry(int position);
|
||||
void removeEntry(int position);
|
||||
|
||||
/**
|
||||
* Return the batch of entries based on the position and batch size.
|
||||
*/
|
||||
public List<T> getLoadBatch(int position, int batchSize);
|
||||
List<T> getLoadBatch(int position, int batchSize);
|
||||
|
||||
}
|
||||
@@ -8,20 +8,20 @@ public interface Constant {
|
||||
/**
|
||||
* An INSERT clause.
|
||||
*/
|
||||
public static final int IN_INSERT = 1;
|
||||
static final int IN_INSERT = 1;
|
||||
|
||||
/**
|
||||
* An UPDATE SET clause.
|
||||
*/
|
||||
public static final int IN_UPDATE_SET = 2;
|
||||
static final int IN_UPDATE_SET = 2;
|
||||
|
||||
/**
|
||||
* An UPDATE WHERE clause.
|
||||
*/
|
||||
public static final int IN_UPDATE_WHERE = 3;
|
||||
static final int IN_UPDATE_WHERE = 3;
|
||||
|
||||
/**
|
||||
* A DELETE WHERE clause.
|
||||
*/
|
||||
public static final int IN_DELETE_WHERE = 4;
|
||||
static final int IN_DELETE_WHERE = 4;
|
||||
}
|
||||
|
||||
@@ -8,20 +8,20 @@ public interface Constants {
|
||||
/**
|
||||
* literal used for SQL LIMIT in MySql and Postgres.
|
||||
*/
|
||||
public static final String LIMIT = "limit";
|
||||
static final String LIMIT = "limit";
|
||||
|
||||
/**
|
||||
* Literal used for SQL LIMIT OFFSET clause in MySql and Postgres.
|
||||
*/
|
||||
public static final String OFFSET = "offset";
|
||||
static final String OFFSET = "offset";
|
||||
|
||||
/**
|
||||
* ROW_NUMBER() OVER (ORDER BY
|
||||
*/
|
||||
public static final String ROW_NUMBER_OVER = "row_number() over (order by ";
|
||||
static final String ROW_NUMBER_OVER = "row_number() over (order by ";
|
||||
|
||||
/**
|
||||
* ) as rn,
|
||||
*/
|
||||
public static final String ROW_NUMBER_AS = ") as rn, ";
|
||||
static final String ROW_NUMBER_AS = ") as rn, ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user