|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jdbaccess.transfer.TransferObject
public abstract class TransferObject
Abstract super class of all transfer object classes such as Employee but also of the special class Row. Transfer objects are serializable so that they can be exchanged between clients and servers.
Constructor Summary | |
---|---|
TransferObject()
|
Method Summary | |
---|---|
java.lang.String |
getEntity()
Gets the entity name of this transfer object |
Field |
getField(java.lang.String fieldName)
Gets the field with that fieldName |
java.util.ArrayList |
getFields()
Gets all fields of this object |
static java.lang.String |
getIdentifierFieldName()
Gets the identifier field name of the transfer object |
java.util.ArrayList |
getModifiedFieldNames()
Returns all modified field names of this object |
java.lang.String |
getSequenceName()
Get the sequence name of this object. |
java.lang.Object |
getValue(java.lang.String fieldName)
Gets the value of this field with that field name |
com.jdbaccess.sql.LogicalCondition |
getWhereCondition()
Gets the whereCondition of this transfer object. |
boolean |
hasIdField()
Returns true if this object has an id field else false |
boolean |
hasModifiedFields()
Returns true if at least one field value is modified else false |
boolean |
isModified(java.lang.String fieldName)
Returns true if the field with this field name is modified |
void |
setAllFieldsModified()
Sets all field values to modified. |
void |
setAllFieldsUnmodified()
Sets all field values unmodified |
void |
setEntity(java.lang.String entity)
Sets the entity name (table name) of this transfer object. |
void |
setSequenceName(java.lang.String sequenceName)
Sets the sequence name of this transfer object. |
void |
setValue(java.lang.String fieldName,
java.lang.Object value)
Sets the value of the field with that field name. |
void |
setValueModified(java.lang.String fieldName,
java.lang.Object value)
Sets the value of the field with that field name. |
void |
setWhereCondition(com.jdbaccess.sql.LogicalCondition whereCondition)
Sets the where condition |
java.lang.String |
toString()
Returns a String representation of this transfer object |
com.jdbaccess.transfer.TransferObjectHelper |
xxxxxInternalGetTOHelper()
!!!! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransferObject()
Method Detail |
---|
public static java.lang.String getIdentifierFieldName()
public java.lang.String getEntity()
public java.lang.String getSequenceName()
public void setEntity(java.lang.String entity)
entity
- entity name (table name)public void setSequenceName(java.lang.String sequenceName)
sequenceName
- sequence namepublic com.jdbaccess.sql.LogicalCondition getWhereCondition()
public void setWhereCondition(com.jdbaccess.sql.LogicalCondition whereCondition)
whereCondition
- whereCondition as a LogicalCondition.public java.lang.Object getValue(java.lang.String fieldName) throws ApplicationException
fieldName
- name of the field which is case insensitive
ApplicationException
- if fieldName does not exist or an unsafe field access is donepublic void setValue(java.lang.String fieldName, java.lang.Object value) throws ApplicationException
fieldName
- is case insensitivevalue
- value to set
ApplicationException
- if fieldName does not exist or an unsafe field access is donesetValueModified(String, Object)
public void setValueModified(java.lang.String fieldName, java.lang.Object value) throws ApplicationException
fieldName
- is case insensitivevalue
- value to set
ApplicationException
- if fieldName does not exist or an unsafe field access is donesetValue(String, Object)
public java.util.ArrayList getFields() throws ApplicationException
ApplicationException
- if an unsafe field access is donepublic boolean hasModifiedFields()
public java.util.ArrayList getModifiedFieldNames()
public void setAllFieldsUnmodified()
public void setAllFieldsModified() throws ApplicationException
ApplicationException
public boolean hasIdField()
public java.lang.String toString()
toString
in class java.lang.Object
public Field getField(java.lang.String fieldName) throws ApplicationException
fieldName
- fieldName is case insensitive
ApplicationException
public boolean isModified(java.lang.String fieldName)
fieldName
- name of the field
public com.jdbaccess.transfer.TransferObjectHelper xxxxxInternalGetTOHelper()
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |