|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.tbl.dto.DataTransferObject
|
+--com.jdc.rdb.tbl.dto.ApplicationTableDTO
ApplicationTableDTO represents a data tranfer object for a database
application table. All data transfer object classes for application tables should
subclass this class.
ApplicationTableDAO| Field Summary | |
protected DataTransferHelper |
data
The data transfer helper object. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
protected |
ApplicationTableDTO(int countryCode,
int enterpriseCode,
int applicationCode)
Constructs a new ApplicationTableDTO object for the specified
country code, enterprise code, and application code. |
| Method Summary | |
void |
clearChanged()
Resets the application data transfer object has changed or "dirty" flag. |
int |
getApplicationCode()
Returns the application code for this database table row. |
int |
getCountryCode()
Returns the country code for this database table row. |
int |
getEnterpriseCode()
Returns the enterprise code for this database table row. |
boolean |
hasChanged()
Returns true if at least one database table row value has
changed. |
void |
setApplicationCode(int applicationCode)
Sets the application code for this database table row. |
void |
setChanged(boolean hasChanged)
Sets the application data transfer object has changed or "dirty" flag. |
void |
setChanged(int currentValue,
int newValue)
Sets the application data transfer object has changed or "dirty" flag based on the current and new int values. |
void |
setChanged(String currentValue,
String newValue)
Sets the application data transfer object has changed or "dirty" flag based on the current and new String values. |
void |
setCountryCode(int countryCode)
Sets the country code for this database table row. |
void |
setEnterpriseCode(int enterpriseCode)
Sets the enterprise code for this database table row. |
| Methods inherited from class com.jdc.rdb.tbl.dto.DataTransferObject |
isFound, setFound |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataTransferHelper data
| Constructor Detail |
protected ApplicationTableDTO(int countryCode,
int enterpriseCode,
int applicationCode)
ApplicationTableDTO object for the specified
country code, enterprise code, and application code.
| Method Detail |
public void clearChanged()
public int getApplicationCode()
public int getCountryCode()
public int getEnterpriseCode()
public boolean hasChanged()
true if at least one database table row value has
changed. Also known as the "dirty" flag.
True if a database table row value has changed. False if the database table row values have not changed.public void setApplicationCode(int applicationCode)
public void setChanged(boolean hasChanged)
true, the status
will remain true. To clear the has changed flag, invoke
the clearChanged method.
public void setChanged(int currentValue,
int newValue)
int values.
public void setChanged(String currentValue,
String newValue)
String values.
public void setCountryCode(int countryCode)
public void setEnterpriseCode(int enterpriseCode)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||