Examples of AccessType


Examples of org.hibernate.cfg.AccessType

    }
    return accessType;
  }

  public AccessType getExplicitAccessType(XAnnotatedElement element) {
    AccessType accessType = null;

    AccessType hibernateAccessType = null;
    AccessType jpaAccessType = null;

    org.hibernate.annotations.AccessType accessTypeAnnotation = element.getAnnotation( org.hibernate.annotations.AccessType.class );
    if ( accessTypeAnnotation != null ) {
      hibernateAccessType = AccessType.getAccessStrategy( accessTypeAnnotation.value() );
    }
View Full Code Here

Examples of org.hibernate.jpamodelgen.util.AccessType

    Elements utils = context.getElementUtils();
    return utils.getTypeElement( fullyQualifiedClassName );
  }

  private AccessType determineEntityAccessType(EntityMappings mappings) {
    AccessType accessType = context.getPersistenceUnitDefaultAccessType();
    if ( mappings.getAccess() != null ) {
      accessType = mapXmlAccessTypeToJpaAccessType( mappings.getAccess() );
    }
    return accessType;
  }
View Full Code Here

Examples of org.hibernate.jpamodelgen.util.AccessType

  private void determineXmlAccessTypes() {
    for ( EntityMappings mappings : entityMappings ) {
      String fqcn;
      String packageName = mappings.getPackage();
      AccessType defaultAccessType = determineEntityAccessType( mappings );

      for ( Entity entity : mappings.getEntity() ) {
        String name = entity.getClazz();
        fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
        AccessType explicitAccessType = null;
        org.hibernate.jpamodelgen.xml.jaxb.AccessType type = entity.getAccess();
        if ( type != null ) {
          explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
        }
        AccessTypeInformation accessInfo = new AccessTypeInformation(
            fqcn, explicitAccessType, defaultAccessType
        );
        context.addAccessTypeInformation( fqcn, accessInfo );
      }

      for ( org.hibernate.jpamodelgen.xml.jaxb.MappedSuperclass mappedSuperClass : mappings.getMappedSuperclass() ) {
        String name = mappedSuperClass.getClazz();
        fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
        AccessType explicitAccessType = null;
        org.hibernate.jpamodelgen.xml.jaxb.AccessType type = mappedSuperClass.getAccess();
        if ( type != null ) {
          explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
        }
        AccessTypeInformation accessInfo = new AccessTypeInformation(
            fqcn, explicitAccessType, defaultAccessType
        );
        context.addAccessTypeInformation( fqcn, accessInfo );
      }

      for ( org.hibernate.jpamodelgen.xml.jaxb.Embeddable embeddable : mappings.getEmbeddable() ) {
        String name = embeddable.getClazz();
        fqcn = StringUtil.determineFullyQualifiedClassName( packageName, name );
        AccessType explicitAccessType = null;
        org.hibernate.jpamodelgen.xml.jaxb.AccessType type = embeddable.getAccess();
        if ( type != null ) {
          explicitAccessType = mapXmlAccessTypeToJpaAccessType( type );
        }
        AccessTypeInformation accessInfo = new AccessTypeInformation(
View Full Code Here

Examples of org.jboss.as.controller.registry.AttributeAccess.AccessType

                        } else {
                            final AttributeAccess.Storage storage = access.getStorageType();
                            if(! queryRuntime && storage != AttributeAccess.Storage.CONFIGURATION) {
                                continue;
                            }
                            final AccessType type = access.getAccessType();
                            final OperationHandler handler = access.getReadHandler();
                            if(handler != null) {
                                // Create the attribute operation
                                final ModelNode attributeOperation = readOperation.clone();
                                attributeOperation.get(NAME).set(attributeName);
View Full Code Here

Examples of org.jboss.as.controller.registry.AttributeAccess.AccessType

                    final AttributeAccess.Storage storage = access.getStorageType();

                    if (! queryRuntime && storage != AttributeAccess.Storage.CONFIGURATION) {
                        continue;
                    }
                    final AccessType type = access.getAccessType();
                    final OperationStepHandler handler = access.getReadHandler();
                    if (handler != null) {
                        // Discard any directAttribute map entry for this, as the read handler takes precedence
                        directAttributes.remove(attributeName);
                        // Create the attribute operation
View Full Code Here

Examples of org.jitterbit.integration.data.script.de.AccessType

            }
        }

        private void processGlobalDataElement(Token t) {
            if (t.m_str.length() > 1) {
                AccessType type = getAccessType();
                String name = StringUtils.removeStart(t.m_str, "$");
                addAccess(name, type);
            }
        }
View Full Code Here

Examples of org.springframework.data.annotation.AccessType

    super(field, propertyDescriptor, owner, simpleTypeHolder);

    populateAnnotationCache(field);

    AccessType accessType = findPropertyOrOwnerAnnotation(AccessType.class);
    this.usePropertyAccess = accessType == null ? false : Type.PROPERTY.equals(accessType.value());
    this.value = findAnnotation(Value.class);
  }
View Full Code Here

Examples of org.switchyard.serial.graph.AccessType

        List<Access> accessList = new ArrayList<Access>();
        if (clazz.getAnnotation(Deprecated.class) != null) {
            return accessList;
        }
        Strategy strategy = clazz.getAnnotation(Strategy.class);
        AccessType accessType = strategy != null ? strategy.access() : AccessType.BEAN;
        CoverageType coverageType = strategy != null ? strategy.coverage() : CoverageType.INCLUSIVE;
        switch (accessType) {
            case BEAN:
                BeanInfo info;
                try {
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.