public static FPPoolRef GetPoolRef(FPPoolQueryRef inPoolQueryRef) { FPPoolRef retval = SDK.FPPoolQuery_GetPoolRef(inPoolQueryRef); SDK.CheckAndThrowError(); return(retval); }
public static FPQueryResultRef FetchResult(FPPoolQueryRef inPoolQueryRef, FPInt inTimeout) { FPQueryResultRef retval = SDK.FPPoolQuery_FetchResult(inPoolQueryRef, inTimeout); SDK.CheckAndThrowError(); return(retval); }
public static FPPoolQueryRef Open(FPPoolRef inPoolRef, FPQueryExpressionRef inQueryExpressionRef) { FPPoolQueryRef retval = SDK.FPPoolQuery_Open(inPoolRef, inQueryExpressionRef); SDK.CheckAndThrowError(); return(retval); }
/// <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); }
/// <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; } }
/// <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; }
/// <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); }
public static void Close(FPPoolQueryRef inPoolQueryRef) { SDK.FPPoolQuery_Close(inPoolQueryRef); SDK.CheckAndThrowError(); }
public static extern FPQueryResultRef FPPoolQuery_FetchResult(FPPoolQueryRef inPoolQueryRef, FPInt inTimeout);
public static extern FPPoolRef FPPoolQuery_GetPoolRef(FPPoolQueryRef inPoolQueryRef);
public static extern void FPPoolQuery_Close(FPPoolQueryRef inPoolQueryRef);