Package com.centraview.customfield

Examples of com.centraview.customfield.CustomFieldLocalHome.create()


    ArrayList validFields = new ArrayList();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome home = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal remote = home.create();
      remote.setDataSource(this.dataSource);

      if (fieldType.equals("Both") || fieldType.equals("Individual"))
      {
        // Collections of hashmaps
View Full Code Here


        // Save CustomFields
        Vector custfieldVec = inventoryVO.getCustomFieldsVec();
        InitialContext ic = CVUtility.getInitialContext();
        if(custfieldVec != null && custfieldVec.size() != 0){
          CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
          CustomFieldLocal custRemote = custHome.create();
          custRemote.setDataSource(this.dataSource);
          for (int i =0;i<custfieldVec.size();i++)
          {
            CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
            custFieldVO.setRecordID(pKey);
View Full Code Here

      // Save CustomFields
      Vector custfieldVec = inventoryVO.getCustomFieldsVec();
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(this.dataSource);
      for (int i =0;i<custfieldVec.size();i++)
      {
        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
        custFieldVO.setRecordID(pKey);
View Full Code Here

      remoteContact = null;
      homeContact = null;

      // Collect all the CustomfieldValue
      CustomFieldLocalHome homeCustomField = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal remoteCustomField =  homeCustomField.create();
      remoteCustomField.setDataSource(this.dataSource);

      HashMap CustomFieldValues = remoteCustomField.getCustomFieldValue();
      homeCustomField = null;
      remoteCustomField = null;
View Full Code Here

  {
    try {

      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome homeCustomField = (CustomFieldLocalHome) ic.lookup("local/CustomField");
      CustomFieldLocal remoteCustomField = homeCustomField.create();
      Collection customFieldNames = remoteCustomField.getCustomFieldImportData(tableName);

      if (customFieldNames != null) {
        HashMap hm = null;
        customFields = new ArrayList();
View Full Code Here

  {
    CustomFieldList customFieldValues = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      CustomFieldLocalHome homeCustomField = (CustomFieldLocalHome) ic.lookup("local/CustomField");
      CustomFieldLocal remoteCustomField = homeCustomField.create();
      customFieldValues = remoteCustomField.getCustomFieldList(tableName, recordId);

      // HashMap hm = customFieldValues.getColumnMap();
      DDNameValue fieldName = null;
      // CustomFieldListElement listElement = null;
View Full Code Here

      }

      // Save CustomFields from the Form
      Vector custfieldVec = individualDetail.getCustomField();
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(ds);
      for (int i = 0; i < custfieldVec.size(); i++) {
        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
        custFieldVO.setRecordID(individualID);
        custRemote.addCustomField(custFieldVO);
View Full Code Here

        }

        // update CustomFields
        Vector custfieldVec = this.indVo.getCustomField();
        CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
        CustomFieldLocal custRemote = custHome.create();
        custRemote.setDataSource(this.dataSource);

        boolean customFieldAdd = false;

        dl.setSql("contact.checkindividualcustomfield");
View Full Code Here

        individualVO.setEntityID(newEntityID);
        ih.create(individualVO, individualID, dataSource);
      }
      // Save CustomFields from the Form (which is only the 3 on the form)
      CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
      CustomFieldLocal custRemote = custHome.create();
      custRemote.setDataSource(dataSource);

      Vector custfieldVec = entityVO.getCustomField();
      for (int i = 0; i < custfieldVec.size(); i++) {
        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
View Full Code Here

      }

      try {
        // update CustomFields
        CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
        CustomFieldLocal custRemote = custHome.create();
        custRemote.setDataSource(this.dataSource);

        Vector custfieldVec = this.envo.getCustomField();

        for (int i = 0; i < custfieldVec.size(); i++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.