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:
@@ -16,7 +16,7 @@ public interface IdGenerator {
|
||||
/**
|
||||
* The name of the default UUID generator.
|
||||
*/
|
||||
static final String AUTO_UUID = "auto.uuid";
|
||||
String AUTO_UUID = "auto.uuid";
|
||||
|
||||
/**
|
||||
* Return the name of the IdGenerator. For sequences this is the sequence
|
||||
|
||||
@@ -11,12 +11,12 @@ public interface SqlLimiter {
|
||||
* Note that this is removed for logging sql to the transaction log.
|
||||
* </p>
|
||||
*/
|
||||
static final char NEW_LINE = '\n';
|
||||
char NEW_LINE = '\n';
|
||||
|
||||
/**
|
||||
* The carriage return character.
|
||||
*/
|
||||
static final char CARRIAGE_RETURN = '\r';
|
||||
char CARRIAGE_RETURN = '\r';
|
||||
|
||||
/**
|
||||
* Add the SQL limiting statements around the query.
|
||||
|
||||
@@ -94,7 +94,7 @@ public class PacketWriter {
|
||||
|
||||
interface PacketFactory {
|
||||
|
||||
public Packet createPacket(long packetId, long timestamp, String serverName) throws IOException;
|
||||
Packet createPacket(long packetId, long timestamp, String serverName) throws IOException;
|
||||
}
|
||||
|
||||
private static class TransPacketFactory implements PacketFactory {
|
||||
|
||||
@@ -6,9 +6,9 @@ import com.avaje.ebeaninternal.server.cluster.BinaryMessageList;
|
||||
|
||||
public interface Message {
|
||||
|
||||
public void writeBinaryMessage(BinaryMessageList msgList) throws IOException;
|
||||
void writeBinaryMessage(BinaryMessageList msgList) throws IOException;
|
||||
|
||||
public boolean isControlMessage();
|
||||
boolean isControlMessage();
|
||||
|
||||
public String getToHostPort();
|
||||
String getToHostPort();
|
||||
}
|
||||
|
||||
@@ -17,28 +17,28 @@ public interface Persister {
|
||||
/**
|
||||
* Update the bean.
|
||||
*/
|
||||
public void update(EntityBean entityBean, Transaction t);
|
||||
void update(EntityBean entityBean, Transaction t);
|
||||
|
||||
/**
|
||||
* Update the bean specifying deleteMissingChildren.
|
||||
*/
|
||||
public void update(EntityBean entityBean, Transaction t, boolean deleteMissingChildren);
|
||||
void update(EntityBean entityBean, Transaction t, boolean deleteMissingChildren);
|
||||
|
||||
/**
|
||||
* Force an Insert using the given bean.
|
||||
*/
|
||||
public void insert(EntityBean entityBean, Transaction t);
|
||||
void insert(EntityBean entityBean, Transaction t);
|
||||
|
||||
/**
|
||||
* Insert or update the bean depending on its state.
|
||||
*/
|
||||
public void save(EntityBean entityBean, Transaction t);
|
||||
void save(EntityBean entityBean, Transaction t);
|
||||
|
||||
/**
|
||||
* Save the associations of a ManyToMany given the owner bean and the
|
||||
* propertyName of the ManyToMany collection.
|
||||
*/
|
||||
public void saveManyToManyAssociations(EntityBean ownerBean, String propertyName, Transaction t);
|
||||
void saveManyToManyAssociations(EntityBean ownerBean, String propertyName, Transaction t);
|
||||
|
||||
/**
|
||||
* Save an association (OneToMany, ManyToOne, OneToOne or ManyToMany).
|
||||
@@ -50,12 +50,12 @@ public interface Persister {
|
||||
* @param t
|
||||
* the transaction to use.
|
||||
*/
|
||||
public void saveAssociation(EntityBean parentBean, String propertyName, Transaction t);
|
||||
void saveAssociation(EntityBean parentBean, String propertyName, Transaction t);
|
||||
|
||||
/**
|
||||
* Delete the associations of a ManyToMany given the owner bean and the property name of the ManyToMany.
|
||||
*/
|
||||
public int deleteManyToManyAssociations(EntityBean ownerBean, String propertyName, Transaction t);
|
||||
int deleteManyToManyAssociations(EntityBean ownerBean, String propertyName, Transaction t);
|
||||
|
||||
/**
|
||||
* Delete a bean given it's type and id value.
|
||||
@@ -63,31 +63,31 @@ public interface Persister {
|
||||
* This will also cascade delete one level of children.
|
||||
* </p>
|
||||
*/
|
||||
public int delete(Class<?> beanType, Object id, Transaction transaction);
|
||||
int delete(Class<?> beanType, Object id, Transaction transaction);
|
||||
|
||||
/**
|
||||
* Delete the bean.
|
||||
*/
|
||||
public void delete(EntityBean entityBean, Transaction t);
|
||||
void delete(EntityBean entityBean, Transaction t);
|
||||
|
||||
/**
|
||||
* Delete multiple beans given a collection of Id values.
|
||||
*/
|
||||
public void deleteMany(Class<?> beanType, Collection<?> ids, Transaction transaction);
|
||||
void deleteMany(Class<?> beanType, Collection<?> ids, Transaction transaction);
|
||||
|
||||
/**
|
||||
* Execute the Update.
|
||||
*/
|
||||
public int executeOrmUpdate(Update<?> update, Transaction t);
|
||||
int executeOrmUpdate(Update<?> update, Transaction t);
|
||||
|
||||
/**
|
||||
* Execute the UpdateSql.
|
||||
*/
|
||||
public int executeSqlUpdate(SqlUpdate update, Transaction t);
|
||||
int executeSqlUpdate(SqlUpdate update, Transaction t);
|
||||
|
||||
/**
|
||||
* Execute the CallableSql.
|
||||
*/
|
||||
public int executeCallable(CallableSql callable, Transaction t);
|
||||
int executeCallable(CallableSql callable, Transaction t);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ import java.sql.SQLException;
|
||||
*/
|
||||
public interface PstmtBatch {
|
||||
|
||||
public void setBatchSize(PreparedStatement pstmt, int batchSize);
|
||||
void setBatchSize(PreparedStatement pstmt, int batchSize);
|
||||
|
||||
public void addBatch(PreparedStatement pstmt) throws SQLException;
|
||||
void addBatch(PreparedStatement pstmt) throws SQLException;
|
||||
|
||||
public int executeBatch(PreparedStatement pstmt, int expectedRows, String sql, boolean occCheck) throws SQLException;
|
||||
int executeBatch(PreparedStatement pstmt, int expectedRows, String sql, boolean occCheck) throws SQLException;
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ public interface RelationalQueryEngine {
|
||||
/**
|
||||
* Find a list of beans using relational query.
|
||||
*/
|
||||
public abstract Object findMany(RelationalQueryRequest request);
|
||||
Object findMany(RelationalQueryRequest request);
|
||||
|
||||
}
|
||||
@@ -13,41 +13,41 @@ public interface PropertyVisitor {
|
||||
/**
|
||||
* Visit a OneToMany or ManyToMany property.
|
||||
*/
|
||||
public void visitMany(BeanPropertyAssocMany<?> p);
|
||||
void visitMany(BeanPropertyAssocMany<?> p);
|
||||
|
||||
/**
|
||||
* Visit the imported side of a OneToOne property.
|
||||
*/
|
||||
public void visitOneImported(BeanPropertyAssocOne<?> p);
|
||||
void visitOneImported(BeanPropertyAssocOne<?> p);
|
||||
|
||||
/**
|
||||
* Visit the exported side of a OneToOne property.
|
||||
*/
|
||||
public void visitOneExported(BeanPropertyAssocOne<?> p);
|
||||
void visitOneExported(BeanPropertyAssocOne<?> p);
|
||||
|
||||
/**
|
||||
* Visit an embedded property.
|
||||
*/
|
||||
public void visitEmbedded(BeanPropertyAssocOne<?> p);
|
||||
void visitEmbedded(BeanPropertyAssocOne<?> p);
|
||||
|
||||
/**
|
||||
* Visit the scalar property of an embedded bean.
|
||||
*/
|
||||
public void visitEmbeddedScalar(BeanProperty p, BeanPropertyAssocOne<?> embedded);
|
||||
void visitEmbeddedScalar(BeanProperty p, BeanPropertyAssocOne<?> embedded);
|
||||
|
||||
/**
|
||||
* Visit a scalar property.
|
||||
*/
|
||||
public void visitScalar(BeanProperty p);
|
||||
void visitScalar(BeanProperty p);
|
||||
|
||||
/**
|
||||
* Visit a compound value object.
|
||||
*/
|
||||
public void visitCompound(BeanPropertyCompound p);
|
||||
void visitCompound(BeanPropertyCompound p);
|
||||
|
||||
/**
|
||||
* Visit the scalar value inside a compound value object.
|
||||
*/
|
||||
public void visitCompoundScalar(BeanPropertyCompound compound, BeanProperty p);
|
||||
void visitCompoundScalar(BeanPropertyCompound compound, BeanProperty p);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ public interface InheritInfoVisitor {
|
||||
/**
|
||||
* visit the InheritInfo for this node.
|
||||
*/
|
||||
public void visit(InheritInfo inheritInfo);
|
||||
void visit(InheritInfo inheritInfo);
|
||||
|
||||
}
|
||||
|
||||
+6
-6
@@ -12,12 +12,12 @@ public interface GeneratedProperty {
|
||||
/**
|
||||
* Get the generated insert value for a specific property of a bean.
|
||||
*/
|
||||
public Object getInsertValue(BeanProperty prop, EntityBean bean);
|
||||
Object getInsertValue(BeanProperty prop, EntityBean bean);
|
||||
|
||||
/**
|
||||
* Get the generated update value for a specific property of a bean.
|
||||
*/
|
||||
public Object getUpdateValue(BeanProperty prop, EntityBean bean);
|
||||
Object getUpdateValue(BeanProperty prop, EntityBean bean);
|
||||
|
||||
/**
|
||||
* Return true if this should always be includes in an update statement.
|
||||
@@ -25,23 +25,23 @@ public interface GeneratedProperty {
|
||||
* Used to include GeneratedUpdateTimestamp in dynamic table updates.
|
||||
* </p>
|
||||
*/
|
||||
public boolean includeInUpdate();
|
||||
boolean includeInUpdate();
|
||||
|
||||
/**
|
||||
* Return true if the property should be included in an update even if
|
||||
* it is not loaded (ie. Last Updated Timestamp).
|
||||
*/
|
||||
public boolean includeInAllUpdates();
|
||||
boolean includeInAllUpdates();
|
||||
|
||||
/**
|
||||
* Return true if this should be included in insert statements.
|
||||
*/
|
||||
public boolean includeInInsert();
|
||||
boolean includeInInsert();
|
||||
|
||||
/**
|
||||
* Return true if the GeneratedProperty implies the DDL to create the DB
|
||||
* column should have a not null constraint.
|
||||
*/
|
||||
public boolean isDDLNotNullable();
|
||||
boolean isDDLNotNullable();
|
||||
|
||||
}
|
||||
|
||||
@@ -14,18 +14,18 @@ import com.avaje.ebeaninternal.server.persist.dmlbind.BindableRequest;
|
||||
*/
|
||||
public interface ImportedId {
|
||||
|
||||
public void addFkeys(String name);
|
||||
void addFkeys(String name);
|
||||
|
||||
/**
|
||||
* Return true if this id is a simple single scalar value. False if it is a
|
||||
* compound id (embedded or multiple).
|
||||
*/
|
||||
public boolean isScalar();
|
||||
boolean isScalar();
|
||||
|
||||
/**
|
||||
* Return the logical property name.
|
||||
*/
|
||||
public String getLogicalName();
|
||||
String getLogicalName();
|
||||
|
||||
/**
|
||||
* For scalar id return the related single db column.
|
||||
@@ -34,35 +34,35 @@ public interface ImportedId {
|
||||
* one).
|
||||
* </p>
|
||||
*/
|
||||
public String getDbColumn();
|
||||
String getDbColumn();
|
||||
|
||||
/**
|
||||
* Append the the SQL query statement.
|
||||
*/
|
||||
public void sqlAppend(DbSqlContext ctx);
|
||||
void sqlAppend(DbSqlContext ctx);
|
||||
|
||||
/**
|
||||
* Append to the DML statement.
|
||||
*/
|
||||
public void dmlAppend(GenerateDmlRequest request);
|
||||
void dmlAppend(GenerateDmlRequest request);
|
||||
|
||||
/**
|
||||
* Append to the DML statement to the where clause.
|
||||
*/
|
||||
public void dmlWhere(GenerateDmlRequest request, EntityBean bean);
|
||||
void dmlWhere(GenerateDmlRequest request, EntityBean bean);
|
||||
|
||||
/**
|
||||
* Bind the value from the bean.
|
||||
*/
|
||||
public Object bind(BindableRequest request, EntityBean bean) throws SQLException;
|
||||
Object bind(BindableRequest request, EntityBean bean) throws SQLException;
|
||||
|
||||
/**
|
||||
* For inserting into ManyToMany intersection.
|
||||
*/
|
||||
public void buildImport(IntersectionRow row, EntityBean other);
|
||||
void buildImport(IntersectionRow row, EntityBean other);
|
||||
|
||||
/**
|
||||
* Used to derive a missing concatenated key from multiple imported keys.
|
||||
*/
|
||||
public BeanProperty findMatchImport(String matchDbColumn);
|
||||
BeanProperty findMatchImport(String matchDbColumn);
|
||||
}
|
||||
@@ -15,7 +15,7 @@ public interface ElPropertyValue extends ElPropertyDeploy {
|
||||
/**
|
||||
* Return the Id values for the given bean value.
|
||||
*/
|
||||
public Object[] getAssocOneIdValues(EntityBean bean);
|
||||
Object[] getAssocOneIdValues(EntityBean bean);
|
||||
|
||||
/**
|
||||
* Return the Id expression string.
|
||||
@@ -23,80 +23,80 @@ public interface ElPropertyValue extends ElPropertyDeploy {
|
||||
* Typically used to produce id = ? expression strings.
|
||||
* </p>
|
||||
*/
|
||||
public String getAssocOneIdExpr(String prefix, String operator);
|
||||
String getAssocOneIdExpr(String prefix, String operator);
|
||||
|
||||
/**
|
||||
* Return the logical id value expression taking into account embedded id's.
|
||||
*/
|
||||
public String getAssocIdInValueExpr(int size);
|
||||
String getAssocIdInValueExpr(int size);
|
||||
|
||||
/**
|
||||
* Return the logical id in expression taking into account embedded id's.
|
||||
*/
|
||||
public String getAssocIdInExpr(String prefix);
|
||||
String getAssocIdInExpr(String prefix);
|
||||
|
||||
/**
|
||||
* Return true if this is an ManyToOne or OneToOne associated bean property.
|
||||
*/
|
||||
public boolean isAssocId();
|
||||
boolean isAssocId();
|
||||
|
||||
/**
|
||||
* Return true if any path of this path contains a Associated One or Many.
|
||||
*/
|
||||
public boolean isAssocProperty();
|
||||
boolean isAssocProperty();
|
||||
|
||||
/**
|
||||
* Return true if the property is encrypted via Java.
|
||||
*/
|
||||
public boolean isLocalEncrypted();
|
||||
boolean isLocalEncrypted();
|
||||
|
||||
/**
|
||||
* Return true if the property is encrypted in the DB.
|
||||
*/
|
||||
public boolean isDbEncrypted();
|
||||
boolean isDbEncrypted();
|
||||
|
||||
/**
|
||||
* Return the deploy order for the property.
|
||||
*/
|
||||
public int getDeployOrder();
|
||||
int getDeployOrder();
|
||||
|
||||
/**
|
||||
* Return the default StringParser for the scalar property.
|
||||
*/
|
||||
public StringParser getStringParser();
|
||||
StringParser getStringParser();
|
||||
|
||||
/**
|
||||
* Return the default StringFormatter for the scalar property.
|
||||
*/
|
||||
public StringFormatter getStringFormatter();
|
||||
StringFormatter getStringFormatter();
|
||||
|
||||
/**
|
||||
* Return true if the last type is "DateTime capable" - can support
|
||||
* {@link #parseDateTime(long)}.
|
||||
*/
|
||||
public boolean isDateTimeCapable();
|
||||
boolean isDateTimeCapable();
|
||||
|
||||
/**
|
||||
* Return the underlying JDBC type or 0 if this is not a scalar type.
|
||||
*/
|
||||
public int getJdbcType();
|
||||
int getJdbcType();
|
||||
|
||||
/**
|
||||
* For DateTime capable scalar types convert the long systemTimeMillis into
|
||||
* an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).
|
||||
*/
|
||||
public Object parseDateTime(long systemTimeMillis);
|
||||
Object parseDateTime(long systemTimeMillis);
|
||||
|
||||
/**
|
||||
* Return the value from a given entity bean.
|
||||
*/
|
||||
public Object elGetValue(EntityBean bean);
|
||||
Object elGetValue(EntityBean bean);
|
||||
|
||||
/**
|
||||
* Return the value ensuring objects prior to the top scalar property are
|
||||
* automatically populated.
|
||||
*/
|
||||
public Object elGetReference(EntityBean bean);
|
||||
Object elGetReference(EntityBean bean);
|
||||
|
||||
/**
|
||||
* Set a value given a root level bean.
|
||||
@@ -104,7 +104,7 @@ public interface ElPropertyValue extends ElPropertyDeploy {
|
||||
* If populate then
|
||||
* </p>
|
||||
*/
|
||||
public void elSetValue(EntityBean bean, Object value, boolean populate);
|
||||
void elSetValue(EntityBean bean, Object value, boolean populate);
|
||||
|
||||
/**
|
||||
* Convert the value to the expected type.
|
||||
@@ -113,5 +113,5 @@ public interface ElPropertyValue extends ElPropertyDeploy {
|
||||
* etc.
|
||||
* </p>
|
||||
*/
|
||||
public Object elConvertType(Object value);
|
||||
Object elConvertType(Object value);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@ public interface ElSetValue {
|
||||
/**
|
||||
* Set the value to the bean.
|
||||
*/
|
||||
public void elSetValue(Object bean, Object value);
|
||||
void elSetValue(Object bean, Object value);
|
||||
|
||||
}
|
||||
|
||||
@@ -7,38 +7,38 @@ public interface MAdminAutofetchMBean {
|
||||
/**
|
||||
* Return true if profiling is enabled.
|
||||
*/
|
||||
public boolean isProfiling();
|
||||
boolean isProfiling();
|
||||
|
||||
/**
|
||||
* Set to true to enable profiling.
|
||||
*/
|
||||
public void setProfiling(boolean enable);
|
||||
void setProfiling(boolean enable);
|
||||
|
||||
/**
|
||||
* Return true if autoFetch is enabled.
|
||||
*/
|
||||
public boolean isQueryTuning();
|
||||
boolean isQueryTuning();
|
||||
|
||||
/**
|
||||
* Set to true to enable autoFetch.
|
||||
*/
|
||||
public void setQueryTuning(boolean enable);
|
||||
void setQueryTuning(boolean enable);
|
||||
|
||||
/**
|
||||
* This controls whether autoFetch is used when it has not
|
||||
* been explicitly set on a query via {@link Query#setAutofetch(boolean)}.
|
||||
*/
|
||||
public String getMode();
|
||||
String getMode();
|
||||
|
||||
/**
|
||||
* List of the valid implicit modes that can be used.
|
||||
*/
|
||||
public String getModeOptions();
|
||||
String getModeOptions();
|
||||
|
||||
/**
|
||||
* Set the auto fetch mode used when a query has not had {@link Query#setAutofetch(boolean)}.
|
||||
*/
|
||||
public void setMode(String mode);
|
||||
void setMode(String mode);
|
||||
|
||||
/**
|
||||
* Return the max number of queries profiled (per query point).
|
||||
@@ -47,7 +47,7 @@ public interface MAdminAutofetchMBean {
|
||||
* point has profiled this number of queries it does not profile any more.
|
||||
* </p>
|
||||
*/
|
||||
public int getProfilingBase();
|
||||
int getProfilingBase();
|
||||
|
||||
/**
|
||||
* Set a max number of queries to profile per query point.
|
||||
@@ -56,20 +56,20 @@ public interface MAdminAutofetchMBean {
|
||||
* is required for this query point.
|
||||
* </p>
|
||||
*/
|
||||
public void setProfilingBase(int profilingMaxThreshold);
|
||||
void setProfilingBase(int profilingMaxThreshold);
|
||||
|
||||
/**
|
||||
* Returns the rate which profiling is collected.
|
||||
* This is an int between 0 and 100.
|
||||
*/
|
||||
public double getProfilingRate();
|
||||
double getProfilingRate();
|
||||
|
||||
/**
|
||||
* Set the rate at which profiling is collected after the base.
|
||||
*
|
||||
* @param rate a int between 0 and 100.
|
||||
*/
|
||||
public void setProfilingRate(double rate);
|
||||
void setProfilingRate(double rate);
|
||||
|
||||
/**
|
||||
* Return the minimum number of queries profiled before autoFetch will start
|
||||
@@ -79,7 +79,7 @@ public interface MAdminAutofetchMBean {
|
||||
* profiling information is collected.
|
||||
* </p>
|
||||
*/
|
||||
public int getProfilingMin();
|
||||
int getProfilingMin();
|
||||
|
||||
/**
|
||||
* Set the minimum number of queries profiled per query point before
|
||||
@@ -89,13 +89,13 @@ public interface MAdminAutofetchMBean {
|
||||
* autoFetch starts tuning the query.
|
||||
* </p>
|
||||
*/
|
||||
public void setProfilingMin(int autoFetchMinThreshold);
|
||||
void setProfilingMin(int autoFetchMinThreshold);
|
||||
|
||||
/**
|
||||
* Fire a garbage collection (hint to the JVM). Assuming garbage collection
|
||||
* fires this will gather the usage profiling information.
|
||||
*/
|
||||
public String collectUsageViaGC();
|
||||
String collectUsageViaGC();
|
||||
|
||||
/**
|
||||
* This will take the current profiling information and update the "tuned query
|
||||
@@ -104,7 +104,7 @@ public interface MAdminAutofetchMBean {
|
||||
* This is done periodically and can also be manually invoked.
|
||||
* </p>
|
||||
*/
|
||||
public String updateTunedQueryInfo();
|
||||
String updateTunedQueryInfo();
|
||||
|
||||
/**
|
||||
* Clear all the tuned query info.
|
||||
@@ -113,7 +113,7 @@ public interface MAdminAutofetchMBean {
|
||||
* </p>
|
||||
* @return the amount of tuned query information cleared.
|
||||
*/
|
||||
public int clearTunedQueryInfo();
|
||||
int clearTunedQueryInfo();
|
||||
|
||||
/**
|
||||
* Clear all the profiling information.
|
||||
@@ -125,21 +125,21 @@ public interface MAdminAutofetchMBean {
|
||||
* </p>
|
||||
* @return the amount of profiled information cleared.
|
||||
*/
|
||||
public int clearProfilingInfo();
|
||||
int clearProfilingInfo();
|
||||
|
||||
/**
|
||||
* Return the number of queries tuned by AutoFetch.
|
||||
*/
|
||||
public int getTotalTunedQueryCount();
|
||||
int getTotalTunedQueryCount();
|
||||
|
||||
/**
|
||||
* Return the size of the TuneQuery map.
|
||||
*/
|
||||
public int getTotalTunedQuerySize();
|
||||
int getTotalTunedQuerySize();
|
||||
|
||||
/**
|
||||
* Return the size of the profile map.
|
||||
*/
|
||||
public int getTotalProfileSize();
|
||||
int getTotalProfileSize();
|
||||
|
||||
}
|
||||
|
||||
@@ -14,21 +14,21 @@ public interface ResourceContent {
|
||||
/**
|
||||
* The name of the content.
|
||||
*/
|
||||
public String getName();
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* The size of the content in bytes.
|
||||
*/
|
||||
public long size();
|
||||
long size();
|
||||
|
||||
/**
|
||||
* The last modified timestamp of the content.
|
||||
*/
|
||||
public long lastModified();
|
||||
long lastModified();
|
||||
|
||||
/**
|
||||
* The content itself.
|
||||
*/
|
||||
public InputStream getInputStream() throws IOException;
|
||||
InputStream getInputStream() throws IOException;
|
||||
|
||||
}
|
||||
|
||||
@@ -17,21 +17,21 @@ public interface ResourceSource {
|
||||
* This will return null IF the ResourceSource is an unpacked WAR file.
|
||||
* </p>
|
||||
*/
|
||||
public String getRealPath();
|
||||
String getRealPath();
|
||||
|
||||
/**
|
||||
* Find the content with a given entry name. This will return null if no
|
||||
* matching content was found.
|
||||
*/
|
||||
public ResourceContent getContent(String entry);
|
||||
ResourceContent getContent(String entry);
|
||||
|
||||
/**
|
||||
* Return the content as a String.
|
||||
*/
|
||||
public String readString(ResourceContent content, int bufSize) throws IOException;
|
||||
String readString(ResourceContent content, int bufSize) throws IOException;
|
||||
|
||||
/**
|
||||
* Return the content as a byte[].
|
||||
*/
|
||||
public byte[] readBytes(ResourceContent content, int bufSize) throws IOException;
|
||||
byte[] readBytes(ResourceContent content, int bufSize) throws IOException;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ public interface MailListener {
|
||||
/**
|
||||
* Handle the message event.
|
||||
*/
|
||||
public void handleEvent(MailEvent event);
|
||||
void handleEvent(MailEvent event);
|
||||
|
||||
}
|
||||
|
||||
@@ -19,36 +19,36 @@ public interface PersistExecute {
|
||||
/**
|
||||
* Create a BatchControl for the current transaction.
|
||||
*/
|
||||
public BatchControl createBatchControl(SpiTransaction t);
|
||||
BatchControl createBatchControl(SpiTransaction t);
|
||||
|
||||
/**
|
||||
* Execute a Bean (or MapBean) insert.
|
||||
*/
|
||||
public <T> void executeInsertBean(PersistRequestBean<T> request);
|
||||
<T> void executeInsertBean(PersistRequestBean<T> request);
|
||||
|
||||
/**
|
||||
* Execute a Bean (or MapBean) update.
|
||||
*/
|
||||
public <T> void executeUpdateBean(PersistRequestBean<T> request);
|
||||
<T> void executeUpdateBean(PersistRequestBean<T> request);
|
||||
|
||||
/**
|
||||
* Execute a Bean (or MapBean) delete.
|
||||
*/
|
||||
public <T> void executeDeleteBean(PersistRequestBean<T> request);
|
||||
<T> void executeDeleteBean(PersistRequestBean<T> request);
|
||||
|
||||
/**
|
||||
* Execute a Update.
|
||||
*/
|
||||
public int executeOrmUpdate(PersistRequestOrmUpdate request);
|
||||
int executeOrmUpdate(PersistRequestOrmUpdate request);
|
||||
|
||||
/**
|
||||
* Execute a CallableSql.
|
||||
*/
|
||||
public int executeSqlCallable(PersistRequestCallableSql request);
|
||||
int executeSqlCallable(PersistRequestCallableSql request);
|
||||
|
||||
/**
|
||||
* Execute a UpdateSql.
|
||||
*/
|
||||
public int executeSqlUpdate(PersistRequestUpdateSql request);
|
||||
int executeSqlUpdate(PersistRequestUpdateSql request);
|
||||
|
||||
}
|
||||
|
||||
@@ -10,25 +10,25 @@ public interface PersistHandler {
|
||||
/**
|
||||
* Return the bind log.
|
||||
*/
|
||||
public String getBindLog();
|
||||
String getBindLog();
|
||||
|
||||
/**
|
||||
* Get the sql and bind the statement.
|
||||
*/
|
||||
public void bind() throws SQLException;
|
||||
void bind() throws SQLException;
|
||||
|
||||
/**
|
||||
* Add this for batch execution.
|
||||
*/
|
||||
public void addBatch() throws SQLException;
|
||||
void addBatch() throws SQLException;
|
||||
|
||||
/**
|
||||
* Execute now for non-batch execution.
|
||||
*/
|
||||
public void execute() throws SQLException;
|
||||
void execute() throws SQLException;
|
||||
|
||||
/**
|
||||
* Close resources including underlying preparedStatement.
|
||||
*/
|
||||
public void close() throws SQLException;
|
||||
void close() throws SQLException;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ package com.avaje.ebeaninternal.server.type.reflect;
|
||||
|
||||
public interface KnownImmutable {
|
||||
|
||||
public boolean isKnownImmutable(Class<?> cls);
|
||||
boolean isKnownImmutable(Class<?> cls);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user