Java 类ims.admin.vo.domain.SystemJobVoAssembler 实例源码

项目:AvoinApotti    文件:ScheduledJobsProvider.java   
@SuppressWarnings("unchecked")
public IScheduledJob[] getAvailableScheduledJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray();
}
项目:AvoinApotti    文件:SystemJobDetailsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:AvoinApotti    文件:SystemJobsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:AvoinApotti    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobVo(Integer id) 
{
    if(id == null)
    {
        throw new CodingRuntimeException("SystemJobVo id is null");
    }           

    DomainFactory factory = getDomainFactory();
    SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class, id);
    return (SystemJobVoAssembler.create(doSystemJob));
}
项目:AvoinApotti    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobByImsId(Integer imsId) 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID";
    List jobs = factory.find(hqlString, new String[] {"isActive", "imsID"}, new Object[] {true, new Integer(imsId)});
    if (jobs != null && jobs.size() > 0)
    {
            return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0);
    }

    return null; 
}
项目:openMAXIMS    文件:ScheduledJobsProvider.java   
@SuppressWarnings("unchecked")
public IScheduledJob[] getAvailableScheduledJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray();
}
项目:openMAXIMS    文件:SystemJobDetailsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobVo(Integer id) 
{
    if(id == null)
    {
        throw new CodingRuntimeException("SystemJobVo id is null");
    }           

    DomainFactory factory = getDomainFactory();
    SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class, id);
    return (SystemJobVoAssembler.create(doSystemJob));
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobByImsId(Integer imsId) 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID";
    List jobs = factory.find(hqlString, new String[] {"isActive", "imsID"}, new Object[] {true, new Integer(imsId)});
    if (jobs != null && jobs.size() > 0)
    {
            return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0);
    }

    return null; 
}
项目:openMAXIMS    文件:ScheduledJobsProvider.java   
@SuppressWarnings("unchecked")
public IScheduledJob[] getAvailableScheduledJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray();
}
项目:openMAXIMS    文件:SystemJobDetailsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobVo(Integer id) 
{
    if(id == null)
    {
        throw new CodingRuntimeException("SystemJobVo id is null");
    }           

    DomainFactory factory = getDomainFactory();
    SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class, id);
    return (SystemJobVoAssembler.create(doSystemJob));
}
项目:openMAXIMS    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobByImsId(Integer imsId) 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID";
    List jobs = factory.find(hqlString, new String[] {"isActive", "imsID"}, new Object[] {true, new Integer(imsId)});
    if (jobs != null && jobs.size() > 0)
    {
            return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0);
    }

    return null; 
}
项目:openmaxims-linux    文件:ScheduledJobsProvider.java   
@SuppressWarnings("unchecked")
public IScheduledJob[] getAvailableScheduledJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).toIScheduledJobArray();
}
项目:openmaxims-linux    文件:SystemJobDetailsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openmaxims-linux    文件:SystemJobsImpl.java   
public SystemJobVoCollection listAvailableSystemJobs() 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :ACTIVE";
    List jobs = factory.find(hqlString, new String[] {"ACTIVE"}, new Object[] {Boolean.TRUE});
    return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs);
}
项目:openmaxims-linux    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobVo(Integer id) 
{
    if(id == null)
    {
        throw new CodingRuntimeException("SystemJobVo id is null");
    }           

    DomainFactory factory = getDomainFactory();
    SystemJob doSystemJob = (SystemJob) factory.getDomainObject(SystemJob.class, id);
    return (SystemJobVoAssembler.create(doSystemJob));
}
项目:openmaxims-linux    文件:SystemJobsImpl.java   
public SystemJobVo getSystemJobByImsId(Integer imsId) 
{
    DomainFactory factory = getDomainFactory();
    String hqlString = "from SystemJob job where job.isActive = :isActive and job.imsId = :imsID";
    List jobs = factory.find(hqlString, new String[] {"isActive", "imsID"}, new Object[] {true, new Integer(imsId)});
    if (jobs != null && jobs.size() > 0)
    {
            return SystemJobVoAssembler.createSystemJobVoCollectionFromSystemJob(jobs).get(0);
    }

    return null; 
}