Examples of PropertyType


Examples of org.apache.geronimo.deployment.javabean.xbeans.PropertyType

            throw new DeploymentException("Could not analyze java bean class", e);
        }

        PropertyType[] properties = javabean.getPropertyArray();
        for (int i = 0; i < properties.length; i++) {
            PropertyType property = properties[i];
            String propertyName = Introspector.decapitalize(property.getName());
            String propertyString = property.getStringValue().trim();
            for (int j = 0; j < propertyDescriptors.length; j++) {
                PropertyDescriptor propertyDescriptor = propertyDescriptors[j];
                if (propertyName.equals(propertyDescriptor.getName())) {
                    String type = propertyDescriptor.getPropertyType().getName();
                    PropertyEditor propertyEditor = null;
View Full Code Here

Examples of org.apache.geronimo.xbeans.javaee.PropertyType

        }

        // persistence-context-properties
        PersistenceProperty[] properties = annotation.properties();
        for (PersistenceProperty property : properties) {
            PropertyType propertyType = persistenceContextRef.addNewPersistenceProperty();
            XsdStringType propertyName = propertyType.addNewName();
            propertyName.setStringValue(property.name());
            XsdStringType propertyValue = propertyType.addNewValue();
            propertyValue.setStringValue(property.value());
        }

        // injection targets
        if (method != null || field != null) {
View Full Code Here

Examples of org.apache.geronimo.xbeans.javaee6.PropertyType

        }

        // persistence-context-properties
        PersistenceProperty[] properties = annotation.properties();
        for (PersistenceProperty property : properties) {
            PropertyType propertyType = persistenceContextRef.addNewPersistenceProperty();
            XsdStringType propertyName = propertyType.addNewName();
            propertyName.setStringValue(property.name());
            XsdStringType propertyValue = propertyType.addNewValue();
            propertyValue.setStringValue(property.value());
        }

        // injection targets
        if (method != null || field != null) {
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public <T extends HelixProperty> boolean createProperty(PropertyKey key, T value)
  {
    PropertyType type = key.getType();
    String path = key.getPath();
    int options = constructOptions(type);
    return _baseDataAccessor.create(path, value.getRecord(), options);
  }
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public <T extends HelixProperty> boolean setProperty(PropertyKey key, T value)
  {
    PropertyType type = key.getType();
    if (!value.isValid())
    {
      throw new HelixException("The ZNRecord for " + type + " is not valid.");
    }

    String path = key.getPath();
    int options = constructOptions(type);

    if (type.usePropertyTransferServer())
    {
      if (_zkPropertyTransferSvcUrl != null && _zkPropertyTransferClient != null)
      {
        ZNRecordUpdate update = new ZNRecordUpdate(path, OpCode.SET, value.getRecord());
        _zkPropertyTransferClient.enqueueZNRecordUpdate(update, _zkPropertyTransferSvcUrl);
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public <T extends HelixProperty> boolean updateProperty(PropertyKey key, T value)
  {
    PropertyType type = key.getType();
    String path = key.getPath();
    int options = constructOptions(type);

    boolean success = false;
    switch (type)
    {
    case CURRENTSTATES:
      success = _groupCommit.commit(_baseDataAccessor, options, path, value.getRecord());
      break;
    default:
      if (type.usePropertyTransferServer())
      {
        if (_zkPropertyTransferSvcUrl != null && _zkPropertyTransferClient != null)
        {
          ZNRecordUpdate update =
              new ZNRecordUpdate(path, OpCode.UPDATE, value.getRecord());
View Full Code Here

Examples of org.apache.helix.PropertyType

    for (int i = 0; i < keys.size(); i++)
    {
      PropertyKey key = keys.get(i);
      ZNRecord record = children.get(i);

      PropertyType type = key.getType();
      String path = key.getPath();
      int options = constructOptions(type);
      // ZNRecord record = null;

      switch (type)
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public <T extends HelixProperty> T getProperty(PropertyKey key)
  {
    PropertyType type = key.getType();
    String path = key.getPath();
    int options = constructOptions(type);
    ZNRecord record = null;
    try
    {
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public boolean removeProperty(PropertyKey key)
  {
    PropertyType type = key.getType();
    String path = key.getPath();
    int options = constructOptions(type);

    return _baseDataAccessor.remove(path, options);
  }
View Full Code Here

Examples of org.apache.helix.PropertyType

  }

  @Override
  public List<String> getChildNames(PropertyKey key)
  {
    PropertyType type = key.getType();
    String parentPath = key.getPath();
    int options = constructOptions(type);
    List<String> childNames = _baseDataAccessor.getChildNames(parentPath, options);
    if (childNames == null)
    {
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.