public class EntityTab extends java.lang.Object implements IEntityTabImpl, java.io.Serializable
This tab is valid for all components, you only need to indicate
the model name on create.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CHUNK_SIZE |
Constructor and Description |
---|
EntityTab() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
findEntity(java.lang.Object[] key)
Return a map with key values.
|
int |
getChunkSize() |
java.lang.String |
getComponentName() |
MetaTab |
getMetaTab() |
int |
getResultSize()
Record (or object, or row) count of last consult.
|
java.lang.Number |
getSum(java.lang.String property) |
IXTableModel |
getTable() |
java.lang.String |
getTabName() |
void |
init() |
DataChunk |
nextChunk()
Obtain the next data chunk.
|
void |
reset()
If you call this method the next time that you call
IDataReader.nextChunk() you will obtain the first chunk and
fresh data from db. |
void |
search(java.lang.String condition,
java.lang.Object key)
Execute search.
|
void |
setChunkSize(int chunkSize) |
void |
setComponentName(java.lang.String string) |
void |
setMetaTab(MetaTab tab) |
void |
setTabName(java.lang.String string) |
boolean |
usesConverters() |
public static final int DEFAULT_CHUNK_SIZE
public boolean usesConverters()
public void search(java.lang.String condition, java.lang.Object key) throws javax.ejb.FinderException, java.rmi.RemoteException
ISearch
If there are no object then generate a empty result, but does not
throw a exception.
public java.lang.Object findEntity(java.lang.Object[] key) throws javax.ejb.FinderException, java.rmi.RemoteException
findEntity
in interface IEntityTabImpl
javax.ejb.FinderException
java.rmi.RemoteException
public IXTableModel getTable() throws java.rmi.RemoteException
getTable
in interface IWithXTableModel
java.rmi.RemoteException
public void init() throws InitException
InitException
public DataChunk nextChunk() throws java.rmi.RemoteException
IDataReader
This method can be call from a TableModel
to
obtain data on demand.
nextChunk
in interface IDataReader
java.rmi.RemoteException
public java.lang.String getComponentName()
public java.lang.String getTabName()
public void setComponentName(java.lang.String string)
public void setTabName(java.lang.String string)
public int getResultSize() throws java.rmi.RemoteException
IDataReader
getResultSize
in interface IDataReader
java.rmi.RemoteException
public java.lang.Number getSum(java.lang.String property) throws java.rmi.RemoteException
getSum
in interface IEntityTabImpl
java.rmi.RemoteException
public void reset() throws java.rmi.RemoteException
IDataReader
IDataReader.nextChunk()
you will obtain the first chunk and
fresh data from db.reset
in interface IDataReader
java.rmi.RemoteException
public MetaTab getMetaTab()
public void setMetaTab(MetaTab tab)
public int getChunkSize()
getChunkSize
in interface IEntityTabImpl
public void setChunkSize(int chunkSize)