|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.tab.impl.EntityTab
public class EntityTab
Provides a TableModel for reading tabular data of an entity.
This tab is valid for all components, you only need to indicate
the model name on create.
| Constructor Summary | |
|---|---|
EntityTab()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityTab()
| Method Detail |
|---|
public boolean usesConverters()
public void search(java.lang.String condition,
java.lang.Object key)
throws FinderException,
java.rmi.RemoteException
ISearch
If there are no object then generate a empty result, but does not
throw a exception.
search in interface ISearchcondition - Condition to use in search.key - Key to send to search
FinderException - Any logic problem on search
java.rmi.RemoteException - Any system problem on search
public java.lang.Object findEntity(java.lang.Object[] key)
throws FinderException,
java.rmi.RemoteException
findEntity in interface IEntityTabImplFinderException
java.rmi.RemoteException
public IXTableModel getTable()
throws java.rmi.RemoteException
getTable in interface IWithXTableModeljava.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 IDataReaderjava.rmi.RemoteExceptionpublic 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 IDataReaderjava.rmi.RemoteException
public java.lang.Number getSum(java.lang.String property)
throws java.rmi.RemoteException
getSum in interface IEntityTabImpljava.rmi.RemoteException
public void reset()
throws java.rmi.RemoteException
IDataReaderIDataReader.nextChunk() you will obtain the first chunk and
fresh data from db.
reset in interface IDataReaderjava.rmi.RemoteExceptionpublic MetaTab getMetaTab()
public void setMetaTab(MetaTab tab)
public int getChunkSize()
public void setChunkSize(int chunkSize)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||