Class TabProviderBase

    • Constructor Detail

      • TabProviderBase

        public TabProviderBase()
    • Method Detail

      • translateProperty

        protected abstract java.lang.String translateProperty​(java.lang.String property)
      • translateCondition

        protected abstract java.lang.String translateCondition​(java.lang.String condition)
      • executeNumberSelect

        protected abstract java.lang.Number executeNumberSelect​(java.lang.String select,
                                                                java.lang.String errorId)
      • toSearchByCollectionMemberSelect

        protected abstract java.lang.String toSearchByCollectionMemberSelect​(java.lang.String select)
        Since:
        6.4
      • toIncludeJoinsUsedInWhere

        protected abstract java.lang.String toIncludeJoinsUsedInWhere​(java.lang.String select)
      • getMetaModel

        protected MetaModel getMetaModel()
      • getMetaTab

        protected MetaTab getMetaTab()
      • search

        public void search​(java.lang.String condition,
                           java.lang.Object key)
                    throws javax.ejb.FinderException,
                           java.rmi.RemoteException
        Description copied from interface: ISearch
        Execute search.

        If there are no object then generate a empty result, but does not throw a exception.

        Specified by:
        search in interface ISearch
        Parameters:
        condition - Condition to use in search.
        key - Key to send to search
        Throws:
        javax.ejb.FinderException - Any logic problem on search
        java.rmi.RemoteException - Any system problem on search
      • keyHasNulls

        protected boolean keyHasNulls()
      • getKey

        protected java.lang.Object[] getKey()
      • noValueInSelect

        protected abstract java.lang.String noValueInSelect()
      • getCurrent

        public int getCurrent()
      • getResultSize

        public int getResultSize()
                          throws java.rmi.RemoteException
        Description copied from interface: IDataReader
        Record (or object, or row) count of last consult.
        Specified by:
        getResultSize in interface IDataReader
        Throws:
        java.rmi.RemoteException
      • getSum

        public java.lang.Number getSum​(java.lang.String property)
        Specified by:
        getSum in interface ITabProvider
      • reset

        public void reset()
                   throws java.rmi.RemoteException
        Description copied from interface: IDataReader
        If you call this method the next time that you call IDataReader.nextChunk() you will obtain the first chunk and fresh data from db.
        Specified by:
        reset in interface IDataReader
        Throws:
        java.rmi.RemoteException
      • getSelect

        protected java.lang.String getSelect()
      • isEOF

        protected boolean isEOF()
      • setEOF

        protected void setEOF​(boolean eof)
      • resetEntityReferencesMappings

        protected void resetEntityReferencesMappings()
      • getEntityReferencesReferenceNames

        protected java.util.Map<ReferenceMapping,​java.lang.String> getEntityReferencesReferenceNames()
      • setConditionProperties

        public void setConditionProperties​(java.util.Collection<java.lang.String> conditionProperties)
        Specified by:
        setConditionProperties in interface ITabProvider
      • addEntityReferenceMapping

        protected abstract void addEntityReferenceMapping​(java.util.Collection<ReferenceMapping> entityReferencesMappings,
                                                          java.util.Map<ReferenceMapping,​java.lang.String> entityReferencesReferenceNames,
                                                          ReferenceMapping referenceMapping,
                                                          java.lang.String parentReference)
        Since:
        6.2.1