|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.PublicSimpleDataAccessObject
pt.despodata.java.ddata.DDataControl
pt.despodata.java.ddata.DHtmlDataControl
pt.despodata.java.webappl.tables.ApplDataControl
ApplDataControl.java Created: Mon Jun 04 03:19:49 2000
| Field Summary | |
static int |
ALTER_STATE
Usado quando se esta a alterar o ApplDataControl. |
static int |
INSERT_STATE
Usado quando se esta a inserir no ApplDataControl. |
static int |
NONE_STATE
Usado quando nenhum dos outros estados se aplica. |
static int |
QUERY_STATE
Usado quando se esta a pesquisar no ApplDataControl. |
| Fields inherited from class pt.despodata.java.ddata.DHtmlDataControl |
session |
| Fields inherited from interface pt.despodata.java.ddata.IDHtmlDataControl |
SEPARATOR |
| Constructor Summary | |
ApplDataControl()
|
|
ApplDataControl(javax.servlet.http.HttpSession session,
DDataSource source)
Constroi um objecto para representar a tabela contacto. |
|
| Method Summary | |
void |
addRelatedTable(java.lang.String table,
boolean readAndWrite)
Adiciona uma tabela como detalhe deste DDataControl. |
void |
clear()
Limpa o DataAccessObject. |
void |
decRowNumber()
Incrementa a linha actual em uma unidade. |
void |
dump()
|
void |
dump(java.lang.String _prefix)
|
int |
getAllChecked()
Get the value of allChecked. |
java.lang.String |
getAuthorizationWhereString()
Este metodo devolve uma clausula de where para restringir as pesquisas. |
protected java.lang.String |
getFileDeleteUrl(int rowNumber,
java.lang.String columnName)
Constroi e devolve uma URL de uma servlet para apagar um ficheiro. |
protected java.lang.String |
getFileUploadUrl(int rowNumber,
java.lang.String columnName)
Constroi e devolve uma URL de uma servlet para fazer download de um ficheiro. |
int |
getFirst()
Get the value of first. |
protected java.lang.String |
getImageUrl(int rowNumber,
java.lang.String columnName)
Constroi e devolve uma URL de uma servlet para fazer download de uma imagem. |
int |
getLast()
Get the value of last. |
int |
getListaNFrames()
Get the value of listaNFrames. |
int |
getNFrames()
Get the value of nFrames. |
java.util.Hashtable |
getRelatedTables()
Devolve a lista de tabelas que sao detalhe deste DDataControl. |
int |
getRowNumber()
Get the value of rowNumber. |
int |
getState()
Get the value of state. |
void |
incRowNumber()
Incrementa a linha actual em uma unidade. |
protected void |
init()
|
void |
init(DDataSource source)
Inicializa a classe. |
boolean |
isCleanBeforeInsert()
Getter for property cleanBeforeInsert. |
protected java.lang.String |
isDetail(java.lang.String columnName)
Verifica se este ApplDataControl e um detalhe ou nao |
boolean |
isRefresh()
Get the value of refresh. |
void |
query()
Efectua um query dos dados do local onde estes se encontram Actualiza as listas de descricoes. |
void |
setAllChecked(int v)
Set the value of allChecked. |
void |
setCleanBeforeInsert(boolean cleanBeforeInsert)
Setter for property cleanBeforeInsert. |
void |
setFirst(int v)
Set the value of first. |
void |
setListaNFrames(int v)
Set the value of listaNFrames. |
void |
setNFrames(int v)
Set the value of nFrames. |
void |
setRefresh(boolean v)
Set the value of refresh. |
void |
setRowNumber(int v)
Set the value of rowNumber. |
void |
setState(int v)
Set the value of state. |
| Methods inherited from class pt.despodata.java.ddata.DDataControl |
addDDataControlListener, clearAllFields, columns, getDataSource, getMetaField, getMetaField, getPrimaryKey, initRecordSet, removeDDataControlListener, rows, setDeleted, setDescColumn, setPkColumn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int NONE_STATE
public static int ALTER_STATE
public static int INSERT_STATE
public static int QUERY_STATE
| Constructor Detail |
public ApplDataControl()
public ApplDataControl(javax.servlet.http.HttpSession session,
DDataSource source)
session - Sessao associada a aplicacao.source - Origem de dados para o DDataControl.| Method Detail |
protected void init()
public java.lang.String getAuthorizationWhereString()
public void init(DDataSource source)
public void incRowNumber()
public boolean isRefresh()
public void decRowNumber()
protected java.lang.String getFileUploadUrl(int rowNumber,
java.lang.String columnName)
getFileUploadUrl in class DHtmlDataControlcolumnName - O nome da coluna que contem a imagem a mostrar.
protected java.lang.String getFileDeleteUrl(int rowNumber,
java.lang.String columnName)
getFileDeleteUrl in class DHtmlDataControlcolumnName - O nome da coluna que contem a imagem a mostrar.
protected java.lang.String getImageUrl(int rowNumber,
java.lang.String columnName)
getImageUrl in class DHtmlDataControlcolumnName - O nome da coluna que contem a imagem a mostrar.
protected java.lang.String isDetail(java.lang.String columnName)
public void setRefresh(boolean v)
v - Value to assign to refresh.public int getFirst()
public void setFirst(int v)
v - Value to assign to first.public int getLast()
public int getRowNumber()
public void setRowNumber(int v)
v - Value to assign to rowNumber.public int getNFrames()
public void setNFrames(int v)
v - Value to assign to nFrames.public int getListaNFrames()
public void setListaNFrames(int v)
v - Value to assign to listaNFrames.public int getAllChecked()
public void setAllChecked(int v)
v - Value to assign to allChecked.public java.util.Hashtable getRelatedTables()
public void addRelatedTable(java.lang.String table,
boolean readAndWrite)
table - O nome de uma tabela.readAndWrite - true para o caso de o detalhe poder ser apagado.public int getState()
public void setState(int v)
v - Value to assign to state.public void clear()
public void query()
DHtmlDataControl
query in class DHtmlDataControlpublic void dump()
dump in class DHtmlDataControlpublic void dump(java.lang.String _prefix)
dump in class DHtmlDataControlpublic boolean isCleanBeforeInsert()
public void setCleanBeforeInsert(boolean cleanBeforeInsert)
cleanBeforeInsert - New value of property cleanBeforeInsert.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||