Ejemplo n.º 1
0
        public static FPPoolRef GetPoolRef(FPPoolQueryRef inPoolQueryRef)
        {
            FPPoolRef retval = SDK.FPPoolQuery_GetPoolRef(inPoolQueryRef);

            SDK.CheckAndThrowError();
            return(retval);
        }
Ejemplo n.º 2
0
        public static FPQueryResultRef FetchResult(FPPoolQueryRef inPoolQueryRef, FPInt inTimeout)
        {
            FPQueryResultRef retval = SDK.FPPoolQuery_FetchResult(inPoolQueryRef, inTimeout);

            SDK.CheckAndThrowError();
            return(retval);
        }
Ejemplo n.º 3
0
        public static FPPoolQueryRef Open(FPPoolRef inPoolRef, FPQueryExpressionRef inQueryExpressionRef)
        {
            FPPoolQueryRef retval = SDK.FPPoolQuery_Open(inPoolRef, inQueryExpressionRef);

            SDK.CheckAndThrowError();
            return(retval);
        }
Ejemplo n.º 4
0
        /// <summary>
        ///Construct a Query for an existing Pool. Default values set for an unbounded time query on existing objects.
        ///
        ///@param	p	The existing Pool object.
        /// </summary>
        public FPQuery(FPPool p)
        {
            thePool       = p;
            theQuery      = 0;
            theExpression = Native.QueryExpression.Create();

            // Set default values - unbounded query on existing objects
            Native.QueryExpression.SetStartTime(theExpression, 0);
            Native.QueryExpression.SetEndTime(theExpression, (FPLong)(-1));
            Native.QueryExpression.SetType(theExpression, (FPInt)FPMisc.QUERY_TYPE_EXISTING);
        }
Ejemplo n.º 5
0
        /// <summary>
        ///Explicitly close this Query. See API Guide: FPPoolQuery_Close
        /// </summary>
        public override void Close()
        {
            if (theQuery != 0)
            {
                Native.PoolQuery.Close(theQuery);
                theQuery = 0;
            }

            if (theExpression != 0)
            {
                Native.QueryExpression.Close(theExpression);
                theExpression = 0;
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        ///Construct a Query using an existing FPPoolQueryRef. Used internally when implicitly converting
        ///an FPPoolQueryRef to a Query.
        ///
        ///@param	q	The existing FPPoolQueryRef
        /// </summary>

        internal FPQuery(FPPoolQueryRef q)
        {
            thePool       = Native.PoolQuery.GetPoolRef(q);
            theQuery      = q;
            theExpression = 0;
        }
Ejemplo n.º 7
0
 /// <summary>
 ///Executes this Query on the associated Pool based on the associated QueryExpression.
 ///See API Guide: FPPoolQuery_Open
 ///
 /// </summary>
 public void Execute()
 {
     theQuery = Native.PoolQuery.Open(thePool, theExpression);
 }
Ejemplo n.º 8
0
 public static void Close(FPPoolQueryRef inPoolQueryRef)
 {
     SDK.FPPoolQuery_Close(inPoolQueryRef);
     SDK.CheckAndThrowError();
 }
Ejemplo n.º 9
0
 public static extern FPQueryResultRef FPPoolQuery_FetchResult(FPPoolQueryRef inPoolQueryRef, FPInt inTimeout);
Ejemplo n.º 10
0
 public static extern FPPoolRef FPPoolQuery_GetPoolRef(FPPoolQueryRef inPoolQueryRef);
Ejemplo n.º 11
0
 public static extern void FPPoolQuery_Close(FPPoolQueryRef inPoolQueryRef);