Search in sources :

Example 21 with StringCriteriaField

use of org.jaffa.components.finder.StringCriteriaField in project jaffa-framework by jaffa-projects.

the class TaskMaintenanceTx method buildBusinessEventLogDto.

private BusinessEventLogFinderOutDto buildBusinessEventLogDto(ScheduledTask task) throws FrameworkException, ApplicationExceptions {
    // Create BusinessEventLogFinderInDto
    BusinessEventLogFinderInDto inputDto = new BusinessEventLogFinderInDto();
    inputDto.setScheduledTaskId(new StringCriteriaField(CriteriaField.RELATIONAL_EQUALS, task.getScheduledTaskId()));
    inputDto.setMaxRecords(new Integer(10));
    inputDto.setOrderByFields(new OrderByField[] { new OrderByField(BusinessEventLogMeta.LOGGED_ON, Boolean.FALSE) });
    // Retrive businessEventLogFinderOutDto
    return new BusinessEventLogFinderTx().find(inputDto);
}
Also used : BusinessEventLogFinderTx(org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx) OrderByField(org.jaffa.components.finder.OrderByField) BusinessEventLogFinderInDto(org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderInDto) StringCriteriaField(org.jaffa.components.finder.StringCriteriaField)

Example 22 with StringCriteriaField

use of org.jaffa.components.finder.StringCriteriaField in project jaffa-framework by jaffa-projects.

the class AttachmentFinderInDtoTapGenTest method testGetCreatedBy.

/**
 * Test method for {@link org.jaffa.components.attachment.components.attachmentfinder.dto.AttachmentFinderInDto#getCreatedBy()}.
 */
@Test
public void testGetCreatedBy() {
    AttachmentFinderInDto testObject = new AttachmentFinderInDto();
    StringCriteriaField setValue = new StringCriteriaField();
    testObject.setCreatedBy(setValue);
    StringCriteriaField getValue = testObject.getCreatedBy();
    assertEquals(setValue, getValue);
}
Also used : StringCriteriaField(org.jaffa.components.finder.StringCriteriaField) Test(org.junit.Test)

Example 23 with StringCriteriaField

use of org.jaffa.components.finder.StringCriteriaField in project jaffa-framework by jaffa-projects.

the class AttachmentFinderInDtoTapGenTest method testGetDescription.

/**
 * Test method for {@link org.jaffa.components.attachment.components.attachmentfinder.dto.AttachmentFinderInDto#getDescription()}.
 */
@Test
public void testGetDescription() {
    AttachmentFinderInDto testObject = new AttachmentFinderInDto();
    StringCriteriaField setValue = new StringCriteriaField();
    testObject.setDescription(setValue);
    StringCriteriaField getValue = testObject.getDescription();
    assertEquals(setValue, getValue);
}
Also used : StringCriteriaField(org.jaffa.components.finder.StringCriteriaField) Test(org.junit.Test)

Example 24 with StringCriteriaField

use of org.jaffa.components.finder.StringCriteriaField in project jaffa-framework by jaffa-projects.

the class AttachmentFinderInDtoTapGenTest method testGetAttachmentId.

/**
 * Test method for {@link org.jaffa.components.attachment.components.attachmentfinder.dto.AttachmentFinderInDto#getAttachmentId()}.
 */
@Test
public void testGetAttachmentId() {
    AttachmentFinderInDto testObject = new AttachmentFinderInDto();
    StringCriteriaField setValue = new StringCriteriaField();
    testObject.setAttachmentId(setValue);
    StringCriteriaField getValue = testObject.getAttachmentId();
    assertEquals(setValue, getValue);
}
Also used : StringCriteriaField(org.jaffa.components.finder.StringCriteriaField) Test(org.junit.Test)

Example 25 with StringCriteriaField

use of org.jaffa.components.finder.StringCriteriaField in project jaffa-framework by jaffa-projects.

the class AttachmentFinderInDtoTapGenTest method testGetSerializedKey.

/**
 * Test method for {@link org.jaffa.components.attachment.components.attachmentfinder.dto.AttachmentFinderInDto#getSerializedKey()}.
 */
@Test
public void testGetSerializedKey() {
    AttachmentFinderInDto testObject = new AttachmentFinderInDto();
    StringCriteriaField setValue = new StringCriteriaField();
    testObject.setSerializedKey(setValue);
    StringCriteriaField getValue = testObject.getSerializedKey();
    assertEquals(setValue, getValue);
}
Also used : StringCriteriaField(org.jaffa.components.finder.StringCriteriaField) Test(org.junit.Test)

Aggregations

StringCriteriaField (org.jaffa.components.finder.StringCriteriaField)27 Test (org.junit.Test)20 ArrayList (java.util.ArrayList)3 Criteria (org.jaffa.persistence.Criteria)3 Transaction (org.jaffa.transaction.domain.Transaction)3 HashMap (java.util.HashMap)2 LinkedHashMap (java.util.LinkedHashMap)2 Map (java.util.Map)2 OrderByField (org.jaffa.components.finder.OrderByField)2 BusinessEventLogFinderInDto (org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderInDto)2 BusinessEventLogFinderTx (org.jaffa.modules.messaging.components.businesseventlogfinder.tx.BusinessEventLogFinderTx)2 UOW (org.jaffa.persistence.UOW)2 TransactionCriteria (org.jaffa.transaction.apis.data.TransactionCriteria)2 TransactionFieldCriteria (org.jaffa.transaction.apis.data.TransactionFieldCriteria)2 LinkedList (java.util.LinkedList)1 List (java.util.List)1 BusinessEventLogFinderOutDto (org.jaffa.modules.messaging.components.businesseventlogfinder.dto.BusinessEventLogFinderOutDto)1 AtomicCriteria (org.jaffa.persistence.AtomicCriteria)1 UserCriteria (org.jaffa.rules.testmodels.UserCriteria)1 GraphCriteria (org.jaffa.soa.graph.GraphCriteria)1