Class MetaComponent

  • All Implemented Interfaces:
    java.io.Serializable

    public class MetaComponent
    extends java.lang.Object
    implements java.io.Serializable
    All meta info about business concept.

    A business component is all software artifacts that have relation with a business concept. For example, all view, tables, classes, models, etc. about concept of Seller is the Seller business component.

    Author:
    Javier Paniza
    See Also:
    Serialized Form
    • Constructor Detail

      • MetaComponent

        public MetaComponent()
    • Method Detail

      • getAllLoaded

        public static java.util.Collection<MetaComponent> getAllLoaded()
      • getName

        public java.lang.String getName()
        Returns:
        Not null and not empty string
      • setName

        public void setName​(java.lang.String name)
      • getMetaEntity

        public MetaEntity getMetaEntity()
        Returns:
        Not null.
      • hasMetaAggregate

        public boolean hasMetaAggregate​(java.lang.String name)
      • getMetaAggregates

        public java.util.Collection getMetaAggregates()
                                               throws XavaException
        Returns:
        Elementss instanceof MetaAggregate. Not null.
        Throws:
        XavaException - Any other problem.
      • getMetaAggregatesBeanGenerated

        public java.util.Collection getMetaAggregatesBeanGenerated()
                                                            throws XavaException
        Returns:
        Elements instanceof MetaAggregateBean and generate == true. Not null.
        Throws:
        XavaException - Any other problem.
      • getMetaAggregatesForCollectionPojoGenerated

        public java.util.Collection getMetaAggregatesForCollectionPojoGenerated()
                                                                         throws XavaException
        Returns:
        Elements instanceof MetaAggregateForCollection and pojoGenerated == true. Not null.
        Throws:
        XavaException - Any problem.
      • addMetaAggregate

        public void addMetaAggregate​(MetaAggregate metaAggregate)
        Parameters:
        metaAggregate - Not null.
      • getMetaTabs

        public java.util.Collection getMetaTabs()
      • getEntityMapping

        public EntityMapping getEntityMapping()
                                       throws XavaException
        Returns:
        Not null.
        Throws:
        XavaException - Any problem, including that mapping for this component does not exist.
      • getPackageName

        public java.lang.String getPackageName()
                                        throws XavaException
        Java package where the model classes resides.
        Throws:
        XavaException
      • setPackageName

        public void setPackageName​(java.lang.String packageName)
      • getAllPackageNames

        public static java.util.Set getAllPackageNames()
                                                throws XavaException
        The names of all the root Java packages used by the components of all OpenXava application in the classpath.

        It's the root package for each application, that it returns com.gestion400.invoicing and not com.gestion400.invoicing.model.

        Returns:
        Of String
        Throws:
        XavaException
      • getQualifiedPackageForUnqualifiedPackage

        public static java.lang.String getQualifiedPackageForUnqualifiedPackage​(java.lang.String unqualifiedPackage)
                                                                         throws XavaException
        Parameters:
        unqualifiedPackage - For example, of org.openxava.test is test, that is to say, without domain (org.openxava).
        Throws:
        XavaException
      • getPackageNameWithSlashWithoutModel

        public java.lang.String getPackageNameWithSlashWithoutModel()
                                                             throws XavaException
        Package using / instead of . and it does not includes the model package.
        Throws:
        XavaException
      • isTransient

        public boolean isTransient()
      • setTransient

        public void setTransient​(boolean _transient)
      • setPersistenceProvider

        public void setPersistenceProvider​(IPersistenceProvider persistenceProvider)
      • isMetaDataCached

        public boolean isMetaDataCached()
      • setMetaDataCached

        public void setMetaDataCached​(boolean metaDataCached)
      • isLabelForModule

        public boolean isLabelForModule()
      • setLabelForModule

        public void setLabelForModule​(boolean labelForModule)