diff --git a/src/main/java/com/avaje/ebeaninternal/api/LoadBeanBuffer.java b/src/main/java/com/avaje/ebeaninternal/api/LoadBeanBuffer.java
index 862c6f61d..82e26aa9b 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/LoadBeanBuffer.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/LoadBeanBuffer.java
@@ -11,16 +11,16 @@ import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
*/
public interface LoadBeanBuffer {
- public int getBatchSize();
+ int getBatchSize();
- public List getBatch();
+ List getBatch();
- public BeanDescriptor> getBeanDescriptor();
+ BeanDescriptor> getBeanDescriptor();
- public PersistenceContext getPersistenceContext();
+ PersistenceContext getPersistenceContext();
- public String getFullPath();
+ String getFullPath();
- public void configureQuery(SpiQuery> query, String lazyLoadProperty);
+ void configureQuery(SpiQuery> query, String lazyLoadProperty);
}
\ No newline at end of file
diff --git a/src/main/java/com/avaje/ebeaninternal/api/LoadContext.java b/src/main/java/com/avaje/ebeaninternal/api/LoadContext.java
index ac999599d..14670a014 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/LoadContext.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/LoadContext.java
@@ -14,13 +14,13 @@ public interface LoadContext {
/**
* Return the minimum batch size when using QueryIterator with query joins.
*/
- public int getSecondaryQueriesMinBatchSize(OrmQueryRequest> parentRequest, int defaultQueryBatch);
+ int getSecondaryQueriesMinBatchSize(OrmQueryRequest> parentRequest, int defaultQueryBatch);
/**
* Execute any secondary (+query) queries if there are any defined.
* @param parentRequest the originating query request
*/
- public void executeSecondaryQueries(OrmQueryRequest> parentRequest);
+ void executeSecondaryQueries(OrmQueryRequest> parentRequest);
/**
* Register any secondary queries (+query or +lazy) with their
@@ -30,17 +30,17 @@ public interface LoadContext {
* defined query for +query and +lazy execution.
*
*/
- public void registerSecondaryQueries(SpiQuery> query);
+ void registerSecondaryQueries(SpiQuery> query);
/**
* Return the node for a given path which is used by autofetch profiling.
*/
- public ObjectGraphNode getObjectGraphNode(String path);
+ ObjectGraphNode getObjectGraphNode(String path);
/**
* Return the persistence context used by this query and future lazy loading.
*/
- public PersistenceContext getPersistenceContext();
+ PersistenceContext getPersistenceContext();
/**
* Set the persistence context used by this query and future lazy loading.
@@ -48,16 +48,16 @@ public interface LoadContext {
* Used by query iterator when processing large result sets.
*
*/
- public void resetPersistenceContext(PersistenceContext persistenceContext);
+ void resetPersistenceContext(PersistenceContext persistenceContext);
/**
* Register a Bean for lazy loading.
*/
- public void register(String path, EntityBeanIntercept ebi);
+ void register(String path, EntityBeanIntercept ebi);
/**
* Register a collection for lazy loading.
*/
- public void register(String path, BeanCollection> bc);
+ void register(String path, BeanCollection> bc);
}
diff --git a/src/main/java/com/avaje/ebeaninternal/api/LoadManyBuffer.java b/src/main/java/com/avaje/ebeaninternal/api/LoadManyBuffer.java
index 761f1df58..cd8701768 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/LoadManyBuffer.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/LoadManyBuffer.java
@@ -13,20 +13,20 @@ import com.avaje.ebeaninternal.server.deploy.BeanPropertyAssocMany;
*/
public interface LoadManyBuffer {
- public int getBatchSize();
+ int getBatchSize();
- public List> getBatch();
+ List> getBatch();
- public BeanPropertyAssocMany> getBeanProperty();
+ BeanPropertyAssocMany> getBeanProperty();
- public ObjectGraphNode getObjectGraphNode();
+ ObjectGraphNode getObjectGraphNode();
- public BeanDescriptor> getBeanDescriptor();
+ BeanDescriptor> getBeanDescriptor();
- public PersistenceContext getPersistenceContext();
+ PersistenceContext getPersistenceContext();
- public String getFullPath();
+ String getFullPath();
- public void configureQuery(SpiQuery> query);
+ void configureQuery(SpiQuery> query);
}
\ No newline at end of file
diff --git a/src/main/java/com/avaje/ebeaninternal/api/LoadSecondaryQuery.java b/src/main/java/com/avaje/ebeaninternal/api/LoadSecondaryQuery.java
index 147ede69a..f109d20a9 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/LoadSecondaryQuery.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/LoadSecondaryQuery.java
@@ -14,5 +14,5 @@ public interface LoadSecondaryQuery {
/**
* Execute the secondary query with a given batch size.
*/
- public void loadSecondaryQuery(OrmQueryRequest> parentRequest);
+ void loadSecondaryQuery(OrmQueryRequest> parentRequest);
}
diff --git a/src/main/java/com/avaje/ebeaninternal/api/SpiBackgroundExecutor.java b/src/main/java/com/avaje/ebeaninternal/api/SpiBackgroundExecutor.java
index 6a1d7e069..c4bf5f744 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/SpiBackgroundExecutor.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/SpiBackgroundExecutor.java
@@ -10,5 +10,5 @@ public interface SpiBackgroundExecutor extends BackgroundExecutor {
/**
* Shutdown any associated thread pools.
*/
- public void shutdown();
+ void shutdown();
}
diff --git a/src/main/java/com/avaje/ebeaninternal/api/SpiCallableSql.java b/src/main/java/com/avaje/ebeaninternal/api/SpiCallableSql.java
index 933c0e173..152492c26 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/SpiCallableSql.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/SpiCallableSql.java
@@ -4,7 +4,7 @@ import com.avaje.ebean.CallableSql;
public interface SpiCallableSql extends CallableSql {
- public BindParams getBindParams();
+ BindParams getBindParams();
- public TransactionEventTable getTransactionEventTable();
+ TransactionEventTable getTransactionEventTable();
}
diff --git a/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanPlugin.java b/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanPlugin.java
index 4496b69d5..e4e2280ae 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanPlugin.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanPlugin.java
@@ -9,6 +9,7 @@ import com.avaje.ebean.config.dbplatform.DatabasePlatform;
* author: Richard Vowles - http://gplus.to/RichardVowles
*/
public interface SpiEbeanPlugin {
+
/**
* initializes the plugin.
*
@@ -16,7 +17,10 @@ public interface SpiEbeanPlugin {
* @param dbPlatform - the database we are using - this is available from the server, but it is provided for convenience
* @param serverConfig - the configured server information. It allows access to pre-collected information (but not the collector PropertySource, yet)
*/
- public void setup(SpiEbeanServer server, DatabasePlatform dbPlatform, ServerConfig serverConfig);
+ void setup(SpiEbeanServer server, DatabasePlatform dbPlatform, ServerConfig serverConfig);
- public void execute(boolean online);
+ /**
+ * Execute the plugin (generate DDL for example).
+ */
+ void execute(boolean online);
}
diff --git a/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanServer.java b/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanServer.java
index 1cdfd6cfe..39d51e7cb 100644
--- a/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanServer.java
+++ b/src/main/java/com/avaje/ebeaninternal/api/SpiEbeanServer.java
@@ -26,22 +26,22 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
/**
* For internal use, shutdown of the server invoked by JVM Shutdown.
*/
- public void shutdownManaged();
+ void shutdownManaged();
/**
* Return true if query origins should be collected.
*/
- public boolean isCollectQueryOrigins();
+ boolean isCollectQueryOrigins();
/**
* Return the server configuration.
*/
- public ServerConfig getServerConfig();
+ ServerConfig getServerConfig();
/**
* Return the DatabasePlatform for this server.
*/
- public DatabasePlatform getDatabasePlatform();
+ DatabasePlatform getDatabasePlatform();
/**
* Return a JDBC driver specific handler for batching.
@@ -49,7 +49,7 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
* Required for Oracle specific batch handling.
*
*/
- public PstmtBatch getPstmtBatch();
+ PstmtBatch getPstmtBatch();
/**
* Create an object to represent the current CallStack.
@@ -58,47 +58,47 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
* graph costing.
*
*/
- public CallStack createCallStack();
+ CallStack createCallStack();
/**
* Return the PersistenceContextScope to use defined at query or server level.
*/
- public PersistenceContextScope getPersistenceContextScope(SpiQuery> query);
+ PersistenceContextScope getPersistenceContextScope(SpiQuery> query);
/**
* Return the DDL generator.
*/
- public DdlGenerator getDdlGenerator();
+ DdlGenerator getDdlGenerator();
/**
* Return the AutoFetchListener.
*/
- public AutoFetchManager getAutoFetchManager();
+ AutoFetchManager getAutoFetchManager();
/**
* Clear the query execution statistics.
*/
- public void clearQueryStatistics();
+ void clearQueryStatistics();
/**
* Return all the descriptors.
*/
- public List> getBeanDescriptors();
+ List> getBeanDescriptors();
/**
* Return the BeanDescriptor for a given type of bean.
*/
- public BeanDescriptor getBeanDescriptor(Class type);
+ BeanDescriptor getBeanDescriptor(Class type);
/**
* Return BeanDescriptor using it's unique id.
*/
- public BeanDescriptor> getBeanDescriptorById(String descriptorId);
+ BeanDescriptor> getBeanDescriptorById(String descriptorId);
/**
* Return BeanDescriptors mapped to this table.
*/
- public List> getBeanDescriptors(String tableName);
+ List> getBeanDescriptors(String tableName);
/**
* Process committed changes from another framework.
@@ -108,7 +108,7 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
* this to maintain its cache and text indexes appropriately.
*
*/
- public void externalModification(TransactionEventTable event);
+ void externalModification(TransactionEventTable event);
/**
* Create a ServerTransaction.
@@ -116,44 +116,44 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
* To specify to use the default transaction isolation use a value of -1.
*
*/
- public SpiTransaction createServerTransaction(boolean isExplicit, int isolationLevel);
+ SpiTransaction createServerTransaction(boolean isExplicit, int isolationLevel);
/**
* Return the current transaction or null if there is no current transaction.
*/
- public SpiTransaction getCurrentServerTransaction();
+ SpiTransaction getCurrentServerTransaction();
/**
* Create a ScopeTrans for a method for the given scope definition.
*/
- public ScopeTrans createScopeTrans(TxScope txScope);
+ ScopeTrans createScopeTrans(TxScope txScope);
/**
* Create a ServerTransaction for query purposes.
*/
- public SpiTransaction createQueryTransaction();
+ SpiTransaction createQueryTransaction();
/**
* An event from another server in the cluster used to notify local
* BeanListeners of remote inserts updates and deletes.
*/
- public void remoteTransactionEvent(RemoteTransactionEvent event);
+ void remoteTransactionEvent(RemoteTransactionEvent event);
/**
* Create a query request object.
*/
- public SpiOrmQueryRequest createQueryRequest(BeanDescriptor desc, SpiQuery q,
+ SpiOrmQueryRequest createQueryRequest(BeanDescriptor desc, SpiQuery q,
Transaction t);
/**
* Compile a query.
*/
- public CQuery compileQuery(Query query, Transaction t);
+ CQuery compileQuery(Query query, Transaction t);
/**
* Return the queryEngine for this server.
*/
- public CQueryEngine getQueryEngine();
+ CQueryEngine getQueryEngine();
/**
* Execute the findId's query but without copying the query.
@@ -162,37 +162,37 @@ public interface SpiEbeanServer extends EbeanServer, BeanLoader, BeanCollectionL
* the query has finished (if executing in a background thread).
*
*/
- public List