Class InputProps

    • Constructor Detail

      • InputProps

        public InputProps()
        Creates a Input Properties container with the specified name with a null value.
      • InputProps

        public InputProps​(Atom propertyAtom)
        Creates a Input Properties container with the specified name with a null value.
        propertyAtom - the property atom.
    • Method Detail

      • getDatabaseProps

        public DatabaseProps getDatabaseProps()
        Gets the Database Transaction properties.
        The Database Transaction properties, or null if this property is orphaned.
      • getDescription

        public java.lang.String getDescription()
        Gets the input properties description.
        A description, or null for none.
      • getInputVariables

        public InputVariable[] getInputVariables()
        Gets the input variables.
        An array of input variables.
      • getInputVariable

        public InputVariable getInputVariable​(java.lang.String sqlHostVariableName)
        Gets the input variable by name.
        sqlHostVariableName - The name of the SQL host variable to look-up.
        The input variable property, or null if the variable is not found.
      • getVSReference

        public VSParticipant getVSReference​(Atom refAtom)
        Gets a VSReference instance from the container or any parent containers. The method is used by VSRelativeReference to look up the VSReference instance in order to resolve the relative path to the target property.
        Specified by:
        getVSReference in interface IGProp<GProp<?>[]>
        getVSReference in class PropCnr
        refAtom - The property atom of the requesting relative reference property.
        The instance of the VSReference or null if unassigned.
      • getVirtualSpace

        public VirtualSpace getVirtualSpace()
        Gets the VirtualSpace.
        Specified by:
        getVirtualSpace in interface IVSAccessor
        The VirtualSpace connected to the result set, or null for none.
      • getInputVSParticipant

        public VSParticipant getInputVSParticipant()
        Gets the input VirtualSpace participant for output data.
        The input VirtualSpace participating with the output data, null for none.
      • bind

        public java.lang.String[] bind​(AppSessionGyro appGyro,
                                       NamedParameterStatement statement)
                                throws java.sql.SQLException,
        Binds the variables from the InputProps and a virtualized VirtualSpace from the application session to the statement.
        appGyro - The application session gyro instance.
        statement - The named statement.
        An array with all variable names that were not bound because the input properties did not map them to VSField's.
        java.sql.SQLException - If the statement could not be created or if there are missing variable definitions.
        ValueConversionException - For value conversion errors.
      • getClassReference

        public ClassReference getClassReference()
        The Java class associated with input variables.
        The ClassReference instance, or null for none.
      • onVirtualSpaceVirtualized

        public void onVirtualSpaceVirtualized​(IAppSessionGyro appGyro,
                                              VirtualSpace virtualizedVirtualSpace)
        Called when the VirtualSpace has been virtualized, giving the opportunity for e.g. data connectors to prepare it's virtualized counterparts if this is required.

        This call is done to the non-virtualized instance of the VirtualSpace participant.

        Specified by:
        onVirtualSpaceVirtualized in interface IVSParticipant
        appGyro - The application gyro instance.
        virtualizedVirtualSpace - The virtualized VirtualSpace instance.