Removed duplicate public keywords.
This commit is contained in:
parent
e14b484ca5
commit
30418cad13
90 changed files with 694 additions and 720 deletions
|
|
@ -36,5 +36,5 @@ public interface MetaModelDataContextProvider {
|
|||
* Returns a DB connection.
|
||||
* @return An DB connection to mongodb
|
||||
*/
|
||||
public DataContext getDataContext();
|
||||
DataContext getDataContext();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,20 +16,20 @@ public interface CrudDataContext extends UpdateableDataContext {
|
|||
/**
|
||||
* Creates empty row to fill and persist.
|
||||
*/
|
||||
public UpdateableRow createRow(Table table);
|
||||
UpdateableRow createRow(Table table);
|
||||
|
||||
/**
|
||||
* Inserts row into table.
|
||||
*/
|
||||
public void persist(UpdateableRow row);
|
||||
void persist(UpdateableRow row);
|
||||
|
||||
/**
|
||||
* Merges row with table.
|
||||
*/
|
||||
public UpdateableRow merge(UpdateableRow row);
|
||||
UpdateableRow merge(UpdateableRow row);
|
||||
|
||||
/**
|
||||
* Deletes row from table.
|
||||
*/
|
||||
public void delete(UpdateableRow row);
|
||||
void delete(UpdateableRow row);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,5 @@ import org.eobjects.metamodel.data.Style;
|
|||
*/
|
||||
public interface RowLocal extends Row {
|
||||
|
||||
public void setStyle(int index,Style style);
|
||||
|
||||
void setStyle(int index,Style style);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,24 +16,24 @@ import org.eobjects.metamodel.schema.Table;
|
|||
public interface UpdateableRow extends Row {
|
||||
|
||||
// TODO: move these 3 to Row interface
|
||||
public SelectItem getSelectItem(int index);
|
||||
public Object getValue(String columnName);
|
||||
public static final int INDEX_NOT_FOUND = -1;
|
||||
SelectItem getSelectItem(int index);
|
||||
Object getValue(String columnName);
|
||||
static final int INDEX_NOT_FOUND = -1;
|
||||
|
||||
/**
|
||||
* Returns the table
|
||||
*/
|
||||
public Table getTable();
|
||||
|
||||
/**
|
||||
* Returns primary keys of table.
|
||||
*/
|
||||
public List<String> getPrimaryKeysList();
|
||||
Table getTable();
|
||||
|
||||
/**
|
||||
* Returns primary keys of table.
|
||||
*/
|
||||
public String[] getPrimaryKeys();
|
||||
List<String> getPrimaryKeysList();
|
||||
|
||||
/**
|
||||
* Returns primary keys of table.
|
||||
*/
|
||||
String[] getPrimaryKeys();
|
||||
|
||||
/**
|
||||
* Sets the value by the column name.
|
||||
|
|
@ -41,7 +41,7 @@ public interface UpdateableRow extends Row {
|
|||
* @param columnName
|
||||
* @param object
|
||||
*/
|
||||
public void setValue(String columnName,Object object);
|
||||
void setValue(String columnName,Object object);
|
||||
|
||||
/**
|
||||
* Sets the value of the provided SelectItem.
|
||||
|
|
@ -51,8 +51,8 @@ public interface UpdateableRow extends Row {
|
|||
* null if either the value <i>is</i> null or if no value exists
|
||||
* that matches the SelectItem.
|
||||
*/
|
||||
public void setValue(SelectItem item,Object object);
|
||||
|
||||
void setValue(SelectItem item,Object object);
|
||||
|
||||
/**
|
||||
* Shorthand method for setting the value of a SelectItem based on the
|
||||
* provided column. Invoking this method is equivalent to invoking
|
||||
|
|
@ -61,8 +61,8 @@ public interface UpdateableRow extends Row {
|
|||
* @param column
|
||||
* @return the value of the specified column
|
||||
*/
|
||||
public void setValue(Column column,Object object);
|
||||
|
||||
void setValue(Column column,Object object);
|
||||
|
||||
/**
|
||||
* Sets the value of the row at a given index
|
||||
*
|
||||
|
|
@ -71,5 +71,5 @@ public interface UpdateableRow extends Row {
|
|||
* @throws IndexOutOfBoundsException
|
||||
* if the provided index is out of range
|
||||
*/
|
||||
public void setValue(int index,Object object) throws IndexOutOfBoundsException;
|
||||
void setValue(int index,Object object) throws IndexOutOfBoundsException;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ public interface UpdateableRowDataContext {
|
|||
/**
|
||||
* Gets called by executeQuery from crud to this impl which knows how to return UpdateableRow DataSet.
|
||||
*/
|
||||
public DataSet crudExecuteQuery(CrudDataContext crudDataContext,Query query);
|
||||
DataSet crudExecuteQuery(CrudDataContext crudDataContext,Query query);
|
||||
|
||||
/**
|
||||
* Start the query builder with correct data context for execute call back.
|
||||
*/
|
||||
public InitFromBuilder crudCreateQuery(CrudDataContext crudDataContext);
|
||||
InitFromBuilder crudCreateQuery(CrudDataContext crudDataContext);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@ import org.eobjects.metamodel.DataContext;
|
|||
*/
|
||||
public interface DataContextProvider {
|
||||
|
||||
public DataContext getDataContext();
|
||||
DataContext getDataContext();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,5 +13,5 @@ import org.eobjects.metamodel.DataContext;
|
|||
*/
|
||||
public interface JndiDataContextLoader {
|
||||
|
||||
public DataContext loadDataContext(JndiDataContextLoaderConfig config);
|
||||
DataContext loadDataContext(JndiDataContextLoaderConfig config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue