Examples of findProperty()


Examples of org.apache.ibatis.reflection.MetaClass.findProperty()

    final MetaClass metaType = MetaClass.forClass(resultMap.getType());
    final List<String> mappedColumnNames = new ArrayList<String>();
    final List<String> unmappedColumnNames = new ArrayList<String>();
    loadMappedAndUnmappedColumnNames(rs, resultMap, mappedColumnNames, unmappedColumnNames);
    for (String column : unmappedColumnNames) {
      if (metaType.findProperty(column) != null) {
        String value = rs.getString(column);
        if (value != null) {
          cacheKey.update(column);
          cacheKey.update(value);
        }
View Full Code Here

Examples of org.broadleafcommerce.openadmin.dto.Entity.findProperty()

            //This is for an update, as the submittedEntity instance will likely only contain the dirty properties
            entity = recordHelper.getRecord(propertiesMetadata, instance, null, null);
            //acquire any missing properties not harvested from the instance and add to the entity. A use case for this
            //would be the confirmation field for a password validation
            for (Map.Entry<String, FieldMetadata> entry : propertiesMetadata.entrySet()) {
                if (entity.findProperty(entry.getKey()) == null) {
                    Property myProperty = submittedEntity.findProperty(entry.getKey());
                    if (myProperty != null) {
                        entity.addProperty(myProperty);
                    }
                } else if (submittedEntity.findProperty(entry.getKey()) != null ){
View Full Code Here

Examples of org.eclipse.e4.xwt.metadata.IMetaclass.findProperty()

      }

      if (observable == null
          && dataProvider instanceof IObjectDataProvider) {
        IMetaclass mateclass = XWT.getMetaclass(type);
        IProperty property = mateclass.findProperty(propertyName);
        if (property instanceof EventProperty) {
          observable = new EventPropertyObservableValue(object,
              (EventProperty) property);
        }
      }
View Full Code Here

Examples of org.foray.fotree.value.PropertyCollection.findProperty()

     * @return The country embedded in this property, or null if none is
     * embedded.
     */
    public PdCountry getCountry() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdCountry) collection.findProperty(FoProperty.COUNTRY);
    }

    /**
     * Return the Language, if any, embedded in this property.
     * @return The language embedded in this property, or null if none is
View Full Code Here

Examples of org.glassfish.api.ActionReport.findProperty()

        try {
            RemoteCLICommand cmd =
                    new RemoteCLICommand("__locations", programOpts, env);
            ActionReport report =
                    cmd.executeAndReturnActionReport(new String[]{"__locations"});
            String theirDirPath = report.findProperty(directoryKey);
            logger.log(Level.FINER, "Remote server has root directory {0}", theirDirPath);

            if (ok(theirDirPath)) {
                File theirDir = getUniquePath(new File(theirDirPath));
                return theirDir.equals(ourDir);
View Full Code Here

Examples of org.jpox.enhancer.bcel.metadata.BCELClassMetaData.findProperty()

                    AbstractMemberMetaData apmd = jdoConfigClass.findField(f);

                    if (apmd == null)
                    {
                        //check if a property(getter,setter) exists with this field name
                        if( jdoConfigClass.findProperty(f)==null )
                        {
                            //no fields netiher properties in the class, so something is wrong
                            String message = LOCALISER.msg("Enhancer.FieldConfigIsNullError", className + "." + f.getName());
                            JPOXLogger.ENHANCER.fatal(message);
                            throw new RuntimeException(message);
View Full Code Here

Examples of org.odata4j.edm.EdmEntityType.findProperty()

        if (!containsProperty(queryInfo.select, propName, parentPropName)) {
          continue;
        }
      }

      EdmProperty prop = eet.findProperty(propName);
      if (prop != null) {
        if (propValue instanceof Text) {
          propValue = ((Text) propValue).getValue();
        } else if (propValue instanceof ShortBlob) {
          propValue = ((ShortBlob) propValue).getBytes();
View Full Code Here

Examples of org.olat.properties.NarrowedPropertyManager.findProperty()

    BusinessGroup businessGroup = (BusinessGroup)businessObj;
   
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(businessGroup);
    ForumManager fom = ForumManager.getInstance();

    Property forumKeyProperty = npm.findProperty(null, null, CollaborationTools.PROP_CAT_BG_COLLABTOOLS, CollaborationTools.KEY_FORUM);
    // Check if forum-property exist
    if (forumKeyProperty != null) {
      Long forumKey = forumKeyProperty.getLongValue();
      Forum forum = fom.loadForum(forumKey);
      SearchResourceContext forumSearchResourceContext = new SearchResourceContext(parentResourceContext);
View Full Code Here

Examples of org.olat.properties.NarrowedPropertyManager.findProperty()

  }
 
  private static String getIcalAuthToken(OLATResourceable resourceable, Identity identity, boolean create) {
    // find the property for the resourceable
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(resourceable);
    Property tokenProperty = npm.findProperty(identity, null,
        PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
   
    String token; 
    if (tokenProperty == null && create) {
      token = createIcalAuthToken(resourceable, identity);
View Full Code Here

Examples of org.olat.properties.NarrowedPropertyManager.findProperty()

  }
 
  private static String regenerateIcalAuthToken(OLATResourceable resourceable, Identity identity) {
    // find the property for the resourceable
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(resourceable);
    Property tokenProperty = npm.findProperty(identity, null,
        PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
   
    //genearate the new token
    String authToken = RandomStringUtils.randomAlphanumeric(6);
   
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.