Interface BindingSet

    • Field Detail

      • DEFAULT_DATABASE_SOURCENAME

        static final java.lang.String DEFAULT_DATABASE_SOURCENAME
        See Also:
        Constant Field Values
    • Method Detail

      • getName

        java.lang.String getName()
        Gets the unique name of the BindingSet.
        Returns:
        The unique BindingSet name.
      • getTableReference

        java.lang.String getTableReference()
        Returns a table reference. Can be a plain table name (with alias) or a join of tables
        Returns:
      • getSQLStatementWithParams

        SQLStatementWithParams getSQLStatementWithParams()
        Returns a table expression and if it is a complex one (subselect with where for example) it may come with variables to be bound as host variables
        Returns:
      • hasSubjectFilters

        boolean hasSubjectFilters()
        Tells if the binding set has subject filters.
        Returns:
        True, if there is at least one SubjectFilter inside this BindingSet.
      • getJdbcResourceName

        java.lang.String getJdbcResourceName()
        Gets the database name the table of the BindingSet is located in.
        Returns:
        The dbSourceName attribute of the BindingSet.
      • isBackendCanBypassSubjectFilter

        boolean isBackendCanBypassSubjectFilter()
        isBackendCanBypassSubjectFilter
        Returns:
        true if it is allowed for the backend to bypass SubjectFilters
      • isAllowSelectAllColumns

        boolean isAllowSelectAllColumns()
        isAllowSelectAllColumns
        Returns:
        true if it is allowed to select all columns from this BindingSet.
      • get

        BindingItem get​(java.lang.String key)
                 throws BindingNotFoundException
        Gets a BindingItem by its unique name and throws an Exception if it is not present.
        Parameters:
        key - The name of the BindingItem.
        Returns:
        A BindingItem with the specified name.
        Throws:
        BindingNotFoundException - If there is no BindingItem with the denoted name.
      • hasItem

        boolean hasItem​(java.lang.String key)
        tells if this binding-set contains an item
        Parameters:
        key -
        Returns:
      • getBindingItemNames

        java.util.Collection<java.lang.String> getBindingItemNames()
        getBindingItemNames
        Returns:
        names of all items defined in the bindingSet
      • getBindingItemFromRelation

        BindingItem getBindingItemFromRelation​(Relation pRelation,
                                               java.lang.String itemName)
                                        throws BindingException
        Method getBindingItemFromRelation
        Parameters:
        pRelation -
        itemName - - requested binding item name
        Returns:
        BindingItem object or null if not found
        Throws:
        BindingException
      • hasKeyBindingItems

        boolean hasKeyBindingItems()
        Tests if the BindingSet hat key BindingItems.
        Returns:
        True, if there is a BindingItem which is declared as key item.
      • getKeyBindingItems

        BindingItem[] getKeyBindingItems()
        Retrieves the list of key BindingItems for this binding set which may contain no entries.
        Returns:
        An array of the BindingItems with the isKey attribute set to "true".
      • addRelation

        void addRelation​(Relation p_relation)
        adds a new relation into ArrayList
        Parameters:
        p_relation -
      • getRelations

        java.util.ArrayList<Relation> getRelations()
      • getSecurity

        Security getSecurity()
        Returns:
        security context to this binding, may be NULL if no security configured
      • getWrqModifiers

        java.util.List<java.lang.Class<? extends Modifier>> getWrqModifiers()
        A list of Wrq modifier classes to be applied on all requests for this BindingSet before generating the SQL This is completely transparent to the caller, the answer Wrs does show the original WrsRequest
        Returns:
      • getResolvedBindingSets

        java.util.Set<StandardBindingSet> getResolvedBindingSets()
        All non-virtual BindingSets that were used at the end, BindingGroups are being resolved to the actually used BindingSets
        Returns: