Java 类org.apache.commons.collections.map.IdentityMap 实例源码

项目:Genji    文件:BaseTGeneralParam.java   
/**
 * Creates a TGeneralParamBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TGeneralParamBean with the contents of this object
 */
public TGeneralParamBean getBean(IdentityMap createdBeans)
{
    TGeneralParamBean result = (TGeneralParamBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TGeneralParamBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setParamName(getParamName());
    result.setParamValue(getParamValue());
    result.setUuid(getUuid());


    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTLocked.java   
/**
 * Creates a TLockedBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TLockedBean with the contents of this object
 */
public TLockedBean getBean(IdentityMap createdBeans)
{
    TLockedBean result = (TLockedBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TLockedBean();
    createdBeans.put(this, result);

      result.setObjectID(getObjectID());
      result.setWorkItem(getWorkItem());
      result.setPerson(getPerson());
      result.setHttpSession(getHttpSession());


              result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTLocalizedResources.java   
/**
 * Creates a TLocalizedResourcesBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TLocalizedResourcesBean with the contents of this object
 */
public TLocalizedResourcesBean getBean(IdentityMap createdBeans)
{
    TLocalizedResourcesBean result = (TLocalizedResourcesBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TLocalizedResourcesBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setTableName(getTableName());
    result.setPrimaryKeyValue(getPrimaryKeyValue());
    result.setFieldName(getFieldName());
    result.setLocalizedText(getLocalizedText());
    result.setLocale(getLocale());
    result.setTextChanged(getTextChanged());
    result.setUuid(getUuid());


    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTMotd.java   
/**
 * Creates a TMotdBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TMotdBean with the contents of this object
 */
public TMotdBean getBean(IdentityMap createdBeans)
{
    TMotdBean result = (TMotdBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TMotdBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setTheLocale(getTheLocale());
    result.setTheMessage(getTheMessage());
    result.setTeaserText(getTeaserText());
    result.setUuid(getUuid());


    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTNotifyField.java   
/**
 * Creates a TNotifyFieldBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TNotifyFieldBean with the contents of this object
 */
public TNotifyFieldBean getBean(IdentityMap createdBeans)
{
    TNotifyFieldBean result = (TNotifyFieldBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TNotifyFieldBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setField(getField());
    result.setActionType(getActionType());
    result.setFieldType(getFieldType());
    result.setNotifyTrigger(getNotifyTrigger());
    result.setOriginator(getOriginator());
    result.setManager(getManager());
    result.setResponsible(getResponsible());
    result.setConsultant(getConsultant());
    result.setInformant(getInformant());
    result.setObserver(getObserver());
    result.setUuid(getUuid());





    if (aTNotifyTrigger != null)
    {
        TNotifyTriggerBean relatedBean = aTNotifyTrigger.getBean(createdBeans);
        result.setTNotifyTriggerBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTAttributeClass.java   
/**
 * Creates a TAttributeClassBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TAttributeClassBean with the contents of this object
 */
public TAttributeClassBean getBean(IdentityMap createdBeans)
{
    TAttributeClassBean result = (TAttributeClassBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TAttributeClassBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setAttributeClassName(getAttributeClassName());
    result.setAttributeClassDescription(getAttributeClassDescription());
    result.setJavaClassName(getJavaClassName());
    result.setUuid(getUuid());



    if (collTAttributeTypes != null)
    {
        List<TAttributeTypeBean> relatedBeans = new ArrayList<TAttributeTypeBean>(collTAttributeTypes.size());
        for (Iterator<TAttributeType> collTAttributeTypesIt = collTAttributeTypes.iterator(); collTAttributeTypesIt.hasNext(); )
        {
            TAttributeType related = (TAttributeType) collTAttributeTypesIt.next();
            TAttributeTypeBean relatedBean = related.getBean(createdBeans);
            relatedBeans.add(relatedBean);
        }
        result.setTAttributeTypeBeans(relatedBeans);
    }

    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTAttributeClass.java   
/**
 * Creates an instance of TAttributeClass with the contents
 * of a TAttributeClassBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TAttributeClassBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TAttributeClass with the contents of bean
 */

public static TAttributeClass createTAttributeClass(TAttributeClassBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TAttributeClass result = (TAttributeClass) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TAttributeClass();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setAttributeClassName(bean.getAttributeClassName());
    result.setAttributeClassDescription(bean.getAttributeClassDescription());
    result.setJavaClassName(bean.getJavaClassName());
    result.setUuid(bean.getUuid());



    {
        List<TAttributeTypeBean> relatedBeans = bean.getTAttributeTypeBeans();
        if (relatedBeans != null)
        {
            for (Iterator<TAttributeTypeBean> relatedBeansIt = relatedBeans.iterator(); relatedBeansIt.hasNext(); )
            {
                TAttributeTypeBean relatedBean =  relatedBeansIt.next();
                TAttributeType related = TAttributeType.createTAttributeType(relatedBean, createdObjects);
                result.addTAttributeTypeFromBean(related);
            }
        }
    }

result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTCardFieldOption.java   
/**
 * Creates a TCardFieldOptionBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TCardFieldOptionBean with the contents of this object
 */
public TCardFieldOptionBean getBean(IdentityMap createdBeans)
{
    TCardFieldOptionBean result = (TCardFieldOptionBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TCardFieldOptionBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setGroupingField(getGroupingField());
    result.setOptionID(getOptionID());
    result.setOptionPosition(getOptionPosition());
    result.setOptionWidth(getOptionWidth());
    result.setMaxNumber(getMaxNumber());
    result.setUuid(getUuid());





    if (aTCardGroupingField != null)
    {
        TCardGroupingFieldBean relatedBean = aTCardGroupingField.getBean(createdBeans);
        result.setTCardGroupingFieldBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTUserLevelSetting.java   
/**
 * Creates a TUserLevelSettingBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TUserLevelSettingBean with the contents of this object
 */
public TUserLevelSettingBean getBean(IdentityMap createdBeans)
{
    TUserLevelSettingBean result = (TUserLevelSettingBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TUserLevelSettingBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setUserLevel(getUserLevel());
    result.setACTIONKEY(getACTIONKEY());
    result.setIsActive(getIsActive());
    result.setUuid(getUuid());





    if (aTUserLevel != null)
    {
        TUserLevelBean relatedBean = aTUserLevel.getBean(createdBeans);
        result.setTUserLevelBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTVersionControlParameter.java   
/**
 * Creates a TVersionControlParameterBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TVersionControlParameterBean with the contents of this object
 */
public TVersionControlParameterBean getBean(IdentityMap createdBeans)
{
    TVersionControlParameterBean result = (TVersionControlParameterBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TVersionControlParameterBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setName(getName());
    result.setParamValue(getParamValue());
    result.setProject(getProject());
    result.setUuid(getUuid());





    if (aTProject != null)
    {
        TProjectBean relatedBean = aTProject.getBean(createdBeans);
        result.setTProjectBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTEffortUnit.java   
/**
 * Creates an instance of TEffortUnit with the contents
 * of a TEffortUnitBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TEffortUnitBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TEffortUnit with the contents of bean
 */

public static TEffortUnit createTEffortUnit(TEffortUnitBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TEffortUnit result = (TEffortUnit) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TEffortUnit();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setLabel(bean.getLabel());
    result.setDescription(bean.getDescription());
    result.setUuid(bean.getUuid());



    {
        List<TEffortTypeBean> relatedBeans = bean.getTEffortTypeBeans();
        if (relatedBeans != null)
        {
            for (Iterator<TEffortTypeBean> relatedBeansIt = relatedBeans.iterator(); relatedBeansIt.hasNext(); )
            {
                TEffortTypeBean relatedBean =  relatedBeansIt.next();
                TEffortType related = TEffortType.createTEffortType(relatedBean, createdObjects);
                result.addTEffortTypeFromBean(related);
            }
        }
    }

result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTScheduler.java   
/**
 * Creates a TSchedulerBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TSchedulerBean with the contents of this object
 */
public TSchedulerBean getBean(IdentityMap createdBeans)
{
    TSchedulerBean result = (TSchedulerBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TSchedulerBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setCronWhen(getCronWhen());
    result.setJavaClassName(getJavaClassName());
    result.setExternalExe(getExternalExe());
    result.setPerson(getPerson());
    result.setUuid(getUuid());





    if (aTPerson != null)
    {
        TPersonBean relatedBean = aTPerson.getBean(createdBeans);
        result.setTPersonBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTCardFieldOption.java   
/**
 * Creates an instance of TCardFieldOption with the contents
 * of a TCardFieldOptionBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TCardFieldOptionBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TCardFieldOption with the contents of bean
 */

public static TCardFieldOption createTCardFieldOption(TCardFieldOptionBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TCardFieldOption result = (TCardFieldOption) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TCardFieldOption();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setGroupingField(bean.getGroupingField());
    result.setOptionID(bean.getOptionID());
    result.setOptionPosition(bean.getOptionPosition());
    result.setOptionWidth(bean.getOptionWidth());
    result.setMaxNumber(bean.getMaxNumber());
    result.setUuid(bean.getUuid());





    {
        TCardGroupingFieldBean relatedBean = bean.getTCardGroupingFieldBean();
        if (relatedBean != null)
        {
            TCardGroupingField relatedObject = TCardGroupingField.createTCardGroupingField(relatedBean, createdObjects);
            result.setTCardGroupingField(relatedObject);
        }
    }
result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTPublicReportRepository.java   
/**
 * Creates a TPublicReportRepositoryBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TPublicReportRepositoryBean with the contents of this object
 */
public TPublicReportRepositoryBean getBean(IdentityMap createdBeans)
{
    TPublicReportRepositoryBean result = (TPublicReportRepositoryBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TPublicReportRepositoryBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setOwnerID(getOwnerID());
    result.setName(getName());
    result.setQuery(getQuery());
    result.setUuid(getUuid());





    if (aTPerson != null)
    {
        TPersonBean relatedBean = aTPerson.getBean(createdBeans);
        result.setTPersonBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTRoleField.java   
/**
 * Creates a TRoleFieldBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TRoleFieldBean with the contents of this object
 */
public TRoleFieldBean getBean(IdentityMap createdBeans)
{
    TRoleFieldBean result = (TRoleFieldBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TRoleFieldBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setRoleKey(getRoleKey());
    result.setFieldKey(getFieldKey());
    result.setAccessRight(getAccessRight());
    result.setUuid(getUuid());





    if (aTRole != null)
    {
        TRoleBean relatedBean = aTRole.getBean(createdBeans);
        result.setTRoleBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTLocalizedResources.java   
/**
 * Creates an instance of TLocalizedResources with the contents
 * of a TLocalizedResourcesBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TLocalizedResourcesBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TLocalizedResources with the contents of bean
 */

public static TLocalizedResources createTLocalizedResources(TLocalizedResourcesBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TLocalizedResources result = (TLocalizedResources) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TLocalizedResources();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setTableName(bean.getTableName());
    result.setPrimaryKeyValue(bean.getPrimaryKeyValue());
    result.setFieldName(bean.getFieldName());
    result.setLocalizedText(bean.getLocalizedText());
    result.setLocale(bean.getLocale());
    result.setTextChanged(bean.getTextChanged());
    result.setUuid(bean.getUuid());


result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTNavigatorColumn.java   
/**
 * Creates a TNavigatorColumnBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TNavigatorColumnBean with the contents of this object
 */
public TNavigatorColumnBean getBean(IdentityMap createdBeans)
{
    TNavigatorColumnBean result = (TNavigatorColumnBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TNavigatorColumnBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setNavigatorLayout(getNavigatorLayout());
    result.setField(getField());
    result.setFieldPosition(getFieldPosition());
    result.setFieldWidth(getFieldWidth());
    result.setUuid(getUuid());





    if (aTNavigatorLayout != null)
    {
        TNavigatorLayoutBean relatedBean = aTNavigatorLayout.getBean(createdBeans);
        result.setTNavigatorLayoutBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTWorkflowComment.java   
/**
 * Creates a TWorkflowCommentBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TWorkflowCommentBean with the contents of this object
 */
public TWorkflowCommentBean getBean(IdentityMap createdBeans)
{
    TWorkflowCommentBean result = (TWorkflowCommentBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TWorkflowCommentBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setDescription(getDescription());
    result.setWorkflow(getWorkflow());
    result.setNodeX(getNodeX());
    result.setNodeY(getNodeY());
    result.setUuid(getUuid());





    if (aTWorkflowDef != null)
    {
        TWorkflowDefBean relatedBean = aTWorkflowDef.getBean(createdBeans);
        result.setTWorkflowDefBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTMailTemplateDef.java   
/**
 * Creates a TMailTemplateDefBean with the contents of this object
 * intended for internal use only
 * @param createdBeans a IdentityMap which maps objects
 *        to already created beans
 * @return a TMailTemplateDefBean with the contents of this object
 */
public TMailTemplateDefBean getBean(IdentityMap createdBeans)
{
    TMailTemplateDefBean result = (TMailTemplateDefBean) createdBeans.get(this);
    if (result != null ) {
        // we have already created a bean for this object, return it
        return result;
    }
    // no bean exists for this object; create a new one
    result = new TMailTemplateDefBean();
    createdBeans.put(this, result);

    result.setObjectID(getObjectID());
    result.setMailTemplate(getMailTemplate());
    result.setMailSubject(getMailSubject());
    result.setMailBody(getMailBody());
    result.setTheLocale(getTheLocale());
    result.setPlainEmail(getPlainEmail());
    result.setTemplateChanged(getTemplateChanged());
    result.setUuid(getUuid());





    if (aTMailTemplate != null)
    {
        TMailTemplateBean relatedBean = aTMailTemplate.getBean(createdBeans);
        result.setTMailTemplateBean(relatedBean);
    }
    result.setModified(isModified());
    result.setNew(isNew());
    return result;
}
项目:Genji    文件:BaseTWorkflowComment.java   
/**
 * Creates an instance of TWorkflowComment with the contents
 * of a TWorkflowCommentBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TWorkflowCommentBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TWorkflowComment with the contents of bean
 */

public static TWorkflowComment createTWorkflowComment(TWorkflowCommentBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TWorkflowComment result = (TWorkflowComment) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TWorkflowComment();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setDescription(bean.getDescription());
    result.setWorkflow(bean.getWorkflow());
    result.setNodeX(bean.getNodeX());
    result.setNodeY(bean.getNodeY());
    result.setUuid(bean.getUuid());





    {
        TWorkflowDefBean relatedBean = bean.getTWorkflowDefBean();
        if (relatedBean != null)
        {
            TWorkflowDef relatedObject = TWorkflowDef.createTWorkflowDef(relatedBean, createdObjects);
            result.setTWorkflowDef(relatedObject);
        }
    }
result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTShortcut.java   
/**
 * Creates an instance of TShortcut with the contents
 * of a TShortcutBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TShortcutBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TShortcut with the contents of bean
 */

public static TShortcut createTShortcut(TShortcutBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TShortcut result = (TShortcut) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TShortcut();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setShortcutKey(bean.getShortcutKey());
    result.setCtrlKey(bean.getCtrlKey());
    result.setShiftKey(bean.getShiftKey());
    result.setAltKey(bean.getAltKey());
    result.setMenuItemKey(bean.getMenuItemKey());
    result.setMenuContext(bean.getMenuContext());
    result.setUuid(bean.getUuid());


result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTCardField.java   
/**
 * Creates an instance of TCardField with the contents
 * of a TCardFieldBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TCardFieldBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TCardField with the contents of bean
 */

public static TCardField createTCardField(TCardFieldBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TCardField result = (TCardField) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TCardField();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setName(bean.getName());
    result.setColIndex(bean.getColIndex());
    result.setRowIndex(bean.getRowIndex());
    result.setColSpan(bean.getColSpan());
    result.setRowSpan(bean.getRowSpan());
    result.setLabelHAlign(bean.getLabelHAlign());
    result.setLabelVAlign(bean.getLabelVAlign());
    result.setValueHAlign(bean.getValueHAlign());
    result.setValueVAlign(bean.getValueVAlign());
    result.setCardPanel(bean.getCardPanel());
    result.setField(bean.getField());
    result.setHideLabel(bean.getHideLabel());
    result.setIconRendering(bean.getIconRendering());
    result.setUuid(bean.getUuid());





    {
        TCardPanelBean relatedBean = bean.getTCardPanelBean();
        if (relatedBean != null)
        {
            TCardPanel relatedObject = TCardPanel.createTCardPanel(relatedBean, createdObjects);
            result.setTCardPanel(relatedObject);
        }
    }
result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTMSProjectTask.java   
/**
 * Creates an instance of TMSProjectTask with the contents
 * of a TMSProjectTaskBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TMSProjectTaskBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TMSProjectTask with the contents of bean
 */

public static TMSProjectTask createTMSProjectTask(TMSProjectTaskBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TMSProjectTask result = (TMSProjectTask) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TMSProjectTask();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setWorkitem(bean.getWorkitem());
    result.setUniqueID(bean.getUniqueID());
    result.setTaskType(bean.getTaskType());
    result.setContact(bean.getContact());
    result.setWBS(bean.getWBS());
    result.setOutlineNumber(bean.getOutlineNumber());
    result.setDuration(bean.getDuration());
    result.setDurationFormat(bean.getDurationFormat());
    result.setEstimated(bean.getEstimated());
    result.setMilestone(bean.getMilestone());
    result.setSummary(bean.getSummary());
    result.setActualDuration(bean.getActualDuration());
    result.setRemainingDuration(bean.getRemainingDuration());
    result.setConstraintType(bean.getConstraintType());
    result.setConstraintDate(bean.getConstraintDate());
    result.setDeadline(bean.getDeadline());
    result.setUuid(bean.getUuid());





    {
        TWorkItemBean relatedBean = bean.getTWorkItemBean();
        if (relatedBean != null)
        {
            TWorkItem relatedObject = TWorkItem.createTWorkItem(relatedBean, createdObjects);
            result.setTWorkItem(relatedObject);
        }
    }
result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTSite.java   
/**
 * Creates an instance of TSite with the contents
 * of a TSiteBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TSiteBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TSite with the contents of bean
 */

public static TSite createTSite(TSiteBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TSite result = (TSite) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TSite();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setTrackVersion(bean.getTrackVersion());
    result.setDbVersion(bean.getDbVersion());
    result.setLicenseExtension(bean.getLicenseExtension());
    result.setExpDate(bean.getExpDate());
    result.setNumberOfUsers(bean.getNumberOfUsers());
    result.setTrackEmail(bean.getTrackEmail());
    result.setSmtpServerName(bean.getSmtpServerName());
    result.setSmtpPort(bean.getSmtpPort());
    result.setMailEncoding(bean.getMailEncoding());
    result.setSmtpUser(bean.getSmtpUser());
    result.setSmtpPassWord(bean.getSmtpPassWord());
    result.setMailReceivingServerName(bean.getMailReceivingServerName());
    result.setMailReceivingPort(bean.getMailReceivingPort());
    result.setMailReceivingUser(bean.getMailReceivingUser());
    result.setMailReceivingPassword(bean.getMailReceivingPassword());
    result.setMailReceivingProtocol(bean.getMailReceivingProtocol());
    result.setAllowedEmailPattern(bean.getAllowedEmailPattern());
    result.setIsLDAPOn(bean.getIsLDAPOn());
    result.setLdapServerURL(bean.getLdapServerURL());
    result.setLdapAttributeLoginName(bean.getLdapAttributeLoginName());
    result.setAttachmentRootDir(bean.getAttachmentRootDir());
    result.setServerURL(bean.getServerURL());
    result.setDescriptionLength(bean.getDescriptionLength());
    result.setIsSelfRegisterAllowed(bean.getIsSelfRegisterAllowed());
    result.setIsDemoSite(bean.getIsDemoSite());
    result.setUseTrackFromAddress(bean.getUseTrackFromAddress());
    result.setReservedUse(bean.getReservedUse());
    result.setLdapBindDN(bean.getLdapBindDN());
    result.setLdapBindPassword(bean.getLdapBindPassword());
    result.setPreferences(bean.getPreferences());
    result.setUuid(bean.getUuid());


result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTNotifyField.java   
/**
 * Creates an instance of TNotifyField with the contents
 * of a TNotifyFieldBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed.
 *
 * This method is intended for internal use only.
 * @param bean the TNotifyFieldBean which contents are used to create
 *        the resulting class
 * @param createdObjects a IdentityMap which maps beans
 *        to already created objects
 * @return an instance of TNotifyField with the contents of bean
 */

public static TNotifyField createTNotifyField(TNotifyFieldBean bean, IdentityMap createdObjects)
    throws TorqueException
{
    TNotifyField result = (TNotifyField) createdObjects.get(bean);
    if (result != null)
    {
        // we already have an object for the bean, return it
        return result;
    }
    result = new TNotifyField();
    createdObjects.put(bean, result);

    result.setObjectID(bean.getObjectID());
    result.setField(bean.getField());
    result.setActionType(bean.getActionType());
    result.setFieldType(bean.getFieldType());
    result.setNotifyTrigger(bean.getNotifyTrigger());
    result.setOriginator(bean.getOriginator());
    result.setManager(bean.getManager());
    result.setResponsible(bean.getResponsible());
    result.setConsultant(bean.getConsultant());
    result.setInformant(bean.getInformant());
    result.setObserver(bean.getObserver());
    result.setUuid(bean.getUuid());





    {
        TNotifyTriggerBean relatedBean = bean.getTNotifyTriggerBean();
        if (relatedBean != null)
        {
            TNotifyTrigger relatedObject = TNotifyTrigger.createTNotifyTrigger(relatedBean, createdObjects);
            result.setTNotifyTrigger(relatedObject);
        }
    }
result.setModified(bean.isModified());
result.setNew(bean.isNew());
  return result;
}
项目:Genji    文件:BaseTProjectReportRepository.java   
/**
 * Creates a TProjectReportRepositoryBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TProjectReportRepositoryBean with the contents of this object
 */
public TProjectReportRepositoryBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTFieldConfig.java   
/**
 * Creates an instance of TFieldConfig with the contents
 * of a TFieldConfigBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TFieldConfigBean which contents are used to create
 *        the resulting class
 * @return an instance of TFieldConfig with the contents of bean
 */
public static TFieldConfig createTFieldConfig(TFieldConfigBean bean)
    throws TorqueException
{
    return createTFieldConfig(bean, new IdentityMap());
}
项目:Genji    文件:BaseTListType.java   
/**
 * Creates an instance of TListType with the contents
 * of a TListTypeBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TListTypeBean which contents are used to create
 *        the resulting class
 * @return an instance of TListType with the contents of bean
 */
public static TListType createTListType(TListTypeBean bean)
    throws TorqueException
{
    return createTListType(bean, new IdentityMap());
}
项目:Genji    文件:BaseTAttributeOption.java   
/**
 * Creates a TAttributeOptionBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TAttributeOptionBean with the contents of this object
 */
public TAttributeOptionBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTWorkItemLock.java   
/**
 * Creates a TWorkItemLockBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TWorkItemLockBean with the contents of this object
 */
public TWorkItemLockBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTNotifyField.java   
/**
 * Creates an instance of TNotifyField with the contents
 * of a TNotifyFieldBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TNotifyFieldBean which contents are used to create
 *        the resulting class
 * @return an instance of TNotifyField with the contents of bean
 */
public static TNotifyField createTNotifyField(TNotifyFieldBean bean)
    throws TorqueException
{
    return createTNotifyField(bean, new IdentityMap());
}
项目:Genji    文件:BaseTPstate.java   
/**
 * Creates a TPstateBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TPstateBean with the contents of this object
 */
public TPstateBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTPstate.java   
/**
 * Creates an instance of TPstate with the contents
 * of a TPstateBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TPstateBean which contents are used to create
 *        the resulting class
 * @return an instance of TPstate with the contents of bean
 */
public static TPstate createTPstate(TPstateBean bean)
    throws TorqueException
{
    return createTPstate(bean, new IdentityMap());
}
项目:Genji    文件:BaseTAttributeClass.java   
/**
 * Creates a TAttributeClassBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TAttributeClassBean with the contents of this object
 */
public TAttributeClassBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTTextBoxSettings.java   
/**
 * Creates an instance of TTextBoxSettings with the contents
 * of a TTextBoxSettingsBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TTextBoxSettingsBean which contents are used to create
 *        the resulting class
 * @return an instance of TTextBoxSettings with the contents of bean
 */
public static TTextBoxSettings createTTextBoxSettings(TTextBoxSettingsBean bean)
    throws TorqueException
{
    return createTTextBoxSettings(bean, new IdentityMap());
}
项目:Genji    文件:BaseTScreenPanel.java   
/**
 * Creates an instance of TScreenPanel with the contents
 * of a TScreenPanelBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TScreenPanelBean which contents are used to create
 *        the resulting class
 * @return an instance of TScreenPanel with the contents of bean
 */
public static TScreenPanel createTScreenPanel(TScreenPanelBean bean)
    throws TorqueException
{
    return createTScreenPanel(bean, new IdentityMap());
}
项目:Genji    文件:BaseTScheduler.java   
/**
 * Creates a TSchedulerBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TSchedulerBean with the contents of this object
 */
public TSchedulerBean getBean()
{
    return getBean(new IdentityMap());
}
项目:Genji    文件:BaseTState.java   
/**
 * Creates an instance of TState with the contents
 * of a TStateBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TStateBean which contents are used to create
 *        the resulting class
 * @return an instance of TState with the contents of bean
 */
public static TState createTState(TStateBean bean)
    throws TorqueException
{
    return createTState(bean, new IdentityMap());
}
项目:Genji    文件:BaseTMSProjectTask.java   
/**
 * Creates an instance of TMSProjectTask with the contents
 * of a TMSProjectTaskBean.
 * This behaviour could have also been achieved using a constructor,
 * however as this class is abstract no constructors are allowed
 * @param bean the TMSProjectTaskBean which contents are used to create
 *        the resulting class
 * @return an instance of TMSProjectTask with the contents of bean
 */
public static TMSProjectTask createTMSProjectTask(TMSProjectTaskBean bean)
    throws TorqueException
{
    return createTMSProjectTask(bean, new IdentityMap());
}
项目:Genji    文件:BaseTOutlineCode.java   
/**
 * Creates a TOutlineCodeBean with the contents of this object
 * This also creates beans for cached related objects, if they exist
 * @return a TOutlineCodeBean with the contents of this object
 */
public TOutlineCodeBean getBean()
{
    return getBean(new IdentityMap());
}