mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Remove zombie code
This commit is contained in:
@ -78,51 +78,13 @@ public class QProcessPayload
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
List<QRecordEntityField> fieldList = getFieldList(this.getClass());
|
List<QRecordEntityField> fieldList = getFieldList(this.getClass());
|
||||||
// originalRecordValues = new HashMap<>();
|
|
||||||
|
|
||||||
for(QRecordEntityField qRecordEntityField : fieldList)
|
for(QRecordEntityField qRecordEntityField : fieldList)
|
||||||
{
|
{
|
||||||
Serializable value = processState.getValues().get(qRecordEntityField.getFieldName());
|
Serializable value = processState.getValues().get(qRecordEntityField.getFieldName());
|
||||||
Object typedValue = qRecordEntityField.convertValueType(value);
|
Object typedValue = qRecordEntityField.convertValueType(value);
|
||||||
qRecordEntityField.getSetter().invoke(this, typedValue);
|
qRecordEntityField.getSetter().invoke(this, typedValue);
|
||||||
// originalRecordValues.put(qRecordEntityField.getFieldName(), value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for(QRecordEntityAssociation qRecordEntityAssociation : getAssociationList(this.getClass()))
|
|
||||||
// {
|
|
||||||
// List<QRecord> associatedRecords = qRecord.getAssociatedRecords().get(qRecordEntityAssociation.getAssociationAnnotation().name());
|
|
||||||
// if(associatedRecords == null)
|
|
||||||
// {
|
|
||||||
// qRecordEntityAssociation.getSetter().invoke(this, (Object) null);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// List<QRecordEntity> associatedEntityList = new ArrayList<>();
|
|
||||||
// for(QRecord associatedRecord : CollectionUtils.nonNullList(associatedRecords))
|
|
||||||
// {
|
|
||||||
// associatedEntityList.add(QRecordEntity.fromQRecord(qRecordEntityAssociation.getAssociatedType(), associatedRecord));
|
|
||||||
// }
|
|
||||||
// qRecordEntityAssociation.getSetter().invoke(this, associatedEntityList);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// for(QRecordEntityAssociation qRecordEntityAssociation : getAssociationList(this.getClass()))
|
|
||||||
// {
|
|
||||||
// List<QRecord> associatedRecords = qRecord.getAssociatedRecords().get(qRecordEntityAssociation.getAssociationAnnotation().name());
|
|
||||||
// if(associatedRecords == null)
|
|
||||||
// {
|
|
||||||
// qRecordEntityAssociation.getSetter().invoke(this, (Object) null);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// List<QRecordEntity> associatedEntityList = new ArrayList<>();
|
|
||||||
// for(QRecord associatedRecord : CollectionUtils.nonNullList(associatedRecords))
|
|
||||||
// {
|
|
||||||
// associatedEntityList.add(QRecordEntity.fromQRecord(qRecordEntityAssociation.getAssociatedType(), associatedRecord));
|
|
||||||
// }
|
|
||||||
// qRecordEntityAssociation.getSetter().invoke(this, associatedEntityList);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user