Examples of NamingConvention


Examples of com.avaje.ebean.config.NamingConvention

    if (!prop.getTableJoin().hasJoinColumns() && beanTable != null){

      // use naming convention to define join (based on the bean name for this side of relationship)     
      // A unidirectional OneToMany or OneToMany with no mappedBy property
       
            NamingConvention nc = factory.getNamingConvention();

            String fkeyPrefix = null;
            if (nc.isUseForeignKeyPrefix()){
                fkeyPrefix = nc.getColumnFromProperty(descriptor.getBeanType(), descriptor.getName());
            }
        
      // Use the owning bean table to define the join
      BeanTable owningBeanTable = factory.getBeanTable(descriptor.getBeanType());
      owningBeanTable.createJoinColumn(fkeyPrefix, prop.getTableJoin(), false);
View Full Code Here

Examples of com.avaje.ebean.config.NamingConvention

                // from the mapped by property.
                // Refer BeanDescriptorManager.readEntityRelationships()

            } else {
                // use naming convention to define join.
                NamingConvention nc = factory.getNamingConvention();
               
                String fkeyPrefix = null;
                if (nc.isUseForeignKeyPrefix()){
                    fkeyPrefix = nc.getColumnFromProperty(beanType, prop.getName());
                }

                beanTable.createJoinColumn(fkeyPrefix, prop.getTableJoin(), true);
            }
        }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.filenaming.NamingConvention

    @Override
    protected File renameProduct(File product, Metadata productMetadata)
          throws Exception {
       if (getNamingConventionId() != null) {
          NamingConvention namingConvention = (NamingConvention)
                getApplicationContext().getBean(getNamingConventionId());
          if (namingConvention == null) {
             throw new Exception("NamingConvention Id '" + getNamingConventionId()
                   + "' is not defined");
          }
          return namingConvention.rename(product, productMetadata);
       } else {
          return product;
       }
    }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.filenaming.NamingConvention

   protected File renameProduct(File product, Metadata productMetadata)
         throws Exception {
      String namingConventionId = mimeExtractorRepo
            .getNamingConventionId(mimeExtractorRepo.getMimeType(product));
      if (namingConventionId != null) {
         NamingConvention namingConvention = (NamingConvention) getApplicationContext()
               .getBean(namingConventionId);
         return namingConvention.rename(product, productMetadata);
      } else {
         return product;
      }
   }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.filenaming.NamingConvention

    @Override
    protected File renameProduct(File product, Metadata productMetadata)
          throws Exception {
       if (getNamingConventionId() != null) {
          NamingConvention namingConvention = (NamingConvention)
                getApplicationContext().getBean(getNamingConventionId());
          if (namingConvention == null) {
             throw new Exception("NamingConvention Id '" + getNamingConventionId()
                   + "' is not defined");
          }
          return namingConvention.rename(product, productMetadata);
       } else {
          return product;
       }
    }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.filenaming.NamingConvention

   protected File renameProduct(File product, Metadata productMetadata)
         throws Exception {
      String namingConventionId = mimeExtractorRepo
            .getNamingConventionId(mimeExtractorRepo.getMimeType(product));
      if (namingConventionId != null) {
         NamingConvention namingConvention = (NamingConvention) getApplicationContext()
               .getBean(namingConventionId);
         return namingConvention.rename(product, productMetadata);
      } else {
         return product;
      }
   }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.utils.NamingConvention

  }

  public void syncToModel() {
    NamingConvention.Case attributeCase = (NamingConvention.Case) ((IStructuredSelection) _attributeCase.getSelection()).getFirstElement();
    NamingConvention.Separator attributeSeparator = (NamingConvention.Separator) ((IStructuredSelection) _attributeSeparator.getSelection()).getFirstElement();
    _model.setAttributeNamingConvention(new NamingConvention(attributeCase, attributeSeparator, _attributePrefix.getText(), _attributeSuffix.getText()));

    NamingConvention.Case entityCase = (NamingConvention.Case) ((IStructuredSelection) _entityCase.getSelection()).getFirstElement();
    NamingConvention.Separator entitySeparator = (NamingConvention.Separator) ((IStructuredSelection) _entitySeparator.getSelection()).getFirstElement();
    _model.setEntityNamingConvention(new NamingConvention(entityCase, entitySeparator, _entityPrefix.getText(), _entitySuffix.getText()));
   
    _model.setReverseEngineered(_reverseEngineered.getSelection());
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.utils.NamingConvention

  public void _setModelGroup(EOModelGroup _modelGroup) {
    myModelGroup = _modelGroup;
  }

  public void setEntityNamingConvention(NamingConvention entityNamingConvention) {
    NamingConvention oldEntityNamingConvention = _entityNamingConvention;
    _entityNamingConvention = entityNamingConvention;
    firePropertyChange(EOModel.ENTITY_NAMING_CONVENTION, oldEntityNamingConvention, _entityNamingConvention);
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.utils.NamingConvention

  public NamingConvention getEntityNamingConvention() {
    return _entityNamingConvention;
  }

  public void setAttributeNamingConvention(NamingConvention attributeNamingConvention) {
    NamingConvention oldAttributeNamingConvention = _attributeNamingConvention;
    _attributeNamingConvention = attributeNamingConvention;
    firePropertyChange(EOModel.ATTRIBUTE_NAMING_CONVENTION, oldAttributeNamingConvention, _attributeNamingConvention);
  }
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.