Removed duplicate public keywords.
This commit is contained in:
parent
e14b484ca5
commit
30418cad13
90 changed files with 694 additions and 720 deletions
|
|
@ -23,8 +23,6 @@
|
|||
package net.forwardfire.vasc.backend;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* VascBackend provides stateless data access to a data source.
|
||||
|
|
@ -34,66 +32,66 @@ import java.util.Map;
|
|||
*/
|
||||
public interface VascBackend<DATA_OBJECT extends Serializable> {
|
||||
|
||||
public String getId();
|
||||
public void setId(String id);
|
||||
String getId();
|
||||
void setId(String id);
|
||||
|
||||
public void startBackend();
|
||||
public void stopBackend();
|
||||
void startBackend();
|
||||
void stopBackend();
|
||||
|
||||
public VascBackendResult<DATA_OBJECT> execute(VascBackendState state) throws VascBackendException;
|
||||
VascBackendResult<DATA_OBJECT> execute(VascBackendState state) throws VascBackendException;
|
||||
|
||||
public boolean isReadOnly();
|
||||
boolean isReadOnly();
|
||||
|
||||
//public DATA_OBJECT fetch(Map<String,Serializable> pks) throws VascBackendException;
|
||||
|
||||
public void persist(DATA_OBJECT record) throws VascBackendException;
|
||||
void persist(DATA_OBJECT record) throws VascBackendException;
|
||||
|
||||
public DATA_OBJECT merge(DATA_OBJECT record) throws VascBackendException;
|
||||
DATA_OBJECT merge(DATA_OBJECT record) throws VascBackendException;
|
||||
|
||||
public void delete(DATA_OBJECT record) throws VascBackendException;
|
||||
void delete(DATA_OBJECT record) throws VascBackendException;
|
||||
|
||||
/**
|
||||
* Creates a new Field acces obj the the given field entry.
|
||||
* note: Do not use inline class here because it needs to be seriabable and the backend is not seriabbzle.
|
||||
* @return
|
||||
*/
|
||||
public VascEntryFieldValue<DATA_OBJECT> provideVascEntryFieldValue();
|
||||
VascEntryFieldValue<DATA_OBJECT> provideVascEntryFieldValue();
|
||||
|
||||
/**
|
||||
* Creates a new RecordCreater obj the the given entry.
|
||||
* note: Do not use inline class here because it needs to be seriabable and the backend is not seriabbzle.
|
||||
* @return
|
||||
*/
|
||||
public VascEntryRecordCreator<DATA_OBJECT> provideVascEntryRecordCreator();
|
||||
VascEntryRecordCreator<DATA_OBJECT> provideVascEntryRecordCreator();
|
||||
|
||||
/**
|
||||
* Defines if the backend supports sorting
|
||||
* @return
|
||||
*/
|
||||
public boolean isSortable();
|
||||
boolean isSortable();
|
||||
|
||||
/**
|
||||
* Defines if the backend supports pageing
|
||||
* @return
|
||||
*/
|
||||
public boolean isPageable();
|
||||
boolean isPageable();
|
||||
|
||||
/**
|
||||
* Defines if the backend supports pageing
|
||||
* @return
|
||||
*/
|
||||
public boolean isSearchable();
|
||||
boolean isSearchable();
|
||||
|
||||
/**
|
||||
* Defines if the backend supports moveing an record up or down.
|
||||
* @return
|
||||
*/
|
||||
public boolean isRecordMoveable();
|
||||
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascBackendException;
|
||||
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascBackendException;
|
||||
boolean isRecordMoveable();
|
||||
long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascBackendException;
|
||||
long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascBackendException;
|
||||
|
||||
|
||||
public boolean hasPageSummary();
|
||||
boolean hasPageSummary();
|
||||
|
||||
public boolean hasTotalSummary();
|
||||
boolean hasTotalSummary();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import java.util.List;
|
|||
*/
|
||||
public interface VascBackendController {
|
||||
|
||||
public VascBackend<Serializable> getVascBackendById(String id);
|
||||
VascBackend<Serializable> getVascBackendById(String id);
|
||||
|
||||
public List<String> getVascBackendIds();
|
||||
List<String> getVascBackendIds();
|
||||
}
|
||||
|
|
@ -32,9 +32,9 @@ import java.io.Serializable;
|
|||
*/
|
||||
public interface VascBackendControllerLocal extends VascBackendController {
|
||||
|
||||
public void addVascBackend(VascBackend<? extends Serializable> backend);
|
||||
void addVascBackend(VascBackend<? extends Serializable> backend);
|
||||
|
||||
public void removeVascBackendById(String backendId);
|
||||
void removeVascBackendById(String backendId);
|
||||
|
||||
public void clearAndStopBackends();
|
||||
void clearAndStopBackends();
|
||||
}
|
||||
|
|
@ -33,26 +33,26 @@ import java.util.Set;
|
|||
*/
|
||||
public interface VascBackendState extends Serializable {
|
||||
|
||||
public void setDataParameter(String key,Object data);
|
||||
public void removeDataParameter(String key);
|
||||
public void removeDataParameterAll();
|
||||
public Object getDataParameter(String key);
|
||||
public Set<String> getDataParameterKeys();
|
||||
void setDataParameter(String key,Object data);
|
||||
void removeDataParameter(String key);
|
||||
void removeDataParameterAll();
|
||||
Object getDataParameter(String key);
|
||||
Set<String> getDataParameterKeys();
|
||||
|
||||
public String getSortField();
|
||||
public void setSortField(String name);
|
||||
public boolean isSortAscending();
|
||||
public void setSortAscending(boolean ascending);
|
||||
String getSortField();
|
||||
void setSortField(String name);
|
||||
boolean isSortAscending();
|
||||
void setSortAscending(boolean ascending);
|
||||
|
||||
public void setPageSize(int size);
|
||||
public int getPageSize();
|
||||
void setPageSize(int size);
|
||||
int getPageSize();
|
||||
|
||||
public void setPageSizeMax(int size);
|
||||
public int getPageSizeMax();
|
||||
void setPageSizeMax(int size);
|
||||
int getPageSizeMax();
|
||||
|
||||
public void setPageIndex(int index);
|
||||
public int getPageIndex();
|
||||
void setPageIndex(int index);
|
||||
int getPageIndex();
|
||||
|
||||
public void setSearchString(String searchString);
|
||||
public String getSearchString();
|
||||
}
|
||||
void setSearchString(String searchString);
|
||||
String getSearchString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ import java.io.Serializable;
|
|||
*/
|
||||
public interface VascEntryFieldValue<DATA_OBJECT extends Serializable> extends Serializable {
|
||||
|
||||
public Serializable getValue(String backendName,DATA_OBJECT record) throws VascBackendException;
|
||||
Serializable getValue(String backendName,DATA_OBJECT record) throws VascBackendException;
|
||||
|
||||
public String getDisplayValue(String backendName,DATA_OBJECT record) throws VascBackendException;
|
||||
String getDisplayValue(String backendName,DATA_OBJECT record) throws VascBackendException;
|
||||
|
||||
public void setValue(String backendName,DATA_OBJECT record,Serializable value) throws VascBackendException;
|
||||
void setValue(String backendName,DATA_OBJECT record,Serializable value) throws VascBackendException;
|
||||
}
|
||||
|
|
@ -32,5 +32,5 @@ import java.io.Serializable;
|
|||
*/
|
||||
public interface VascEntryRecordCreator<DATA_OBJECT extends Serializable> extends Serializable {
|
||||
|
||||
public DATA_OBJECT newRecord() throws VascBackendException;
|
||||
DATA_OBJECT newRecord() throws VascBackendException;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue