
@rem --------------------------------------------------
@rem TestS04Row.java
@rem Values to check request and response of 
@rem RowCreate/RowUpdate/RowDelete requests
@rem --------------------------------------------------

@rem The client request of a RowCreate request
@rem - EntityName: table name 
@rem - LocalRevisionCode: revision code of the data that the client has.
@rem - EfectiveDate: the efective date associated to this change. If null use now.
@rem - Comment
@rem - Data: The row values codified in Json. The VCSGISCODE field is asigned in 
@rem         this operation, if exists it is always overwrite.
@begin RowCreateRequest
{
    "EntityName":"test",
    "LocalRevisionCode":"00000000000015abcdef0123456789",
    "EfectiveDate":"2020-02-18 10:11:12.123",
    "Comment":"test row create (4,ddd)",
    "Data":"\n{\n    \"id\":4,\n    \"text\":\"DDD\",\n    \"VCSGISCODE\":null\n}"
}
@end RowCreateRequest

@rem The server response of rowcreate request for this test 
@rem - StatusCode: 0 ok.
@rem - StatusMessage: Description of the error if StatusCode is not 0.
@rem - RelatedFeatureCode: Value asigned to the code of this 
@rem                       feature (VCSGISCODE) in the VCS
@rem - EntityName: Name of the table on which the operation has been performed.
@rem - EntityCode: Code associated with the table specified in EntityName.
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS.
@begin RowCreateResponse
{
    "Parameters":{
        "StatusCode":0,
        "StatusMessage":null,
        "RelatedFeatureCode":"00000000000020abcdef0123456789",
        "EntityName":"test",
        "EntityCode":"00000000000004abcdef0123456789",
        "RevisionCode":"00000000000022abcdef0123456789"
    }
}
@end RowCreateResponse


@rem The client request of a RowUpdate request
@rem - EntityName: table name 
@rem - LocalRevisionCode: revision code of the data that the client has.
@rem - EfectiveDate: the efective date associated to this change. If null use now.
@rem - Comment
@rem - Data: The row values codified in Json. VCSGISCODE cannot be null and 
@rem         must contain the del code in the VCS.
@begin RowUpdateRequest
{
    "EntityName":"test",
    "LocalRevisionCode":"00000000000022abcdef0123456789",
    "EfectiveDate":null,
    "Comment":"test row update (4,dd2)",
    "Data":"\n{\n    \"id\":4,\n    \"text\":\"DD2\",\n    \"VCSGISCODE\":\"00000000000020abcdef0123456789\"\n}"
}
@end RowUpdateRequest

@rem The server response of RowUpdate request for this test 
@rem - StatusCode: 0 ok.
@rem - StatusMessage: Description of the error if StatusCode is not 0.
@rem - EntityName: Name of the table on which the operation has been performed.
@rem - EntityCode: Code associated with the table specified in EntityName.
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS.
@begin RowUpdateResponse
{
    "Parameters":{
        "StatusCode":0,
        "StatusMessage":null,
        "EntityName":"test",
        "EntityCode":"00000000000004abcdef0123456789",
        "RevisionCode":"00000000000027abcdef0123456789"
    }
}
@end RowUpdateResponse


@rem The client request of a RowDelete request
@rem - EntityName: table name 
@rem - LocalRevisionCode: revision code of the data that the client has.
@rem - EfectiveDate: the efective date associated to this change. If null use now.
@rem - Comment
@rem - RelatedFeatureCode: code of the record to be deleted in the EntityName table.
@begin RowDeleteRequest
{
    "EntityName":"test",
    "LocalRevisionCode":"00000000000027abcdef0123456789",
    "RelatedFeatureCode":"00000000000020abcdef0123456789",
    "EfectiveDate":"2020-02-19 10:11:12.123",
    "Comment":"test row delete (4,dd2)"
}
@end RowDeleteRequest

@rem The server response of RowDelete request for this test 
@rem - StatusCode: 0 ok.
@rem - StatusMessage: Description of the error if StatusCode is not 0.
@rem - EntityName: Name of the table on which the operation has been performed.
@rem - EntityCode: Code associated with the table specified in EntityName.
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS.
@begin RowDeleteResponse
{
    "Parameters":{
        "StatusCode":0,
        "StatusMessage":null,
        "EntityName":"test",
        "EntityCode":"00000000000004abcdef0123456789",
        "RevisionCode":"00000000000033abcdef0123456789"
    }
}
@end RowDeleteResponse


@rem The client request of a RowIsOutOfDate request
@rem - EntityName: table name 
@rem - LocalRevisionCode: revision code of the data that the client has.
@rem - RecordCode: Code of the record to retrieve the last revision.
@begin RowIsOutOfDateRequest
{
    "EntityName":"test",
    "LocalRevisionCode":"00000000000027abcdef0123456789",
    "RecordCode":"00000000000020abcdef0123456789"
}
@end RowIsOutOfDateRequest

@rem The server response of RowIsOutofdate request for this test 
@rem - StatusCode: 0 ok.
@rem - StatusMessage: Description of the error if StatusCode is not 0.
@rem - EntityName: Name of the table on which the operation has been performed.
@rem - LocalRevisionCode: revision code of the data that the client has.
@rem - RecordCode: record code on which the query is made.
@rem - outdated: boolean.
@begin RowIsOutOfDateResponse
{
    "Parameters":{
        "StatusCode":0,
        "StatusMessage":null,
        "EntityName":"test",
        "LocalRevisionCode":"00000000000027abcdef0123456789",
        "RecordCode":"00000000000020abcdef0123456789",
        "outdated":false
    }
}
@end RowIsOutOfDateResponse


