//////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // // Methods // //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// internal OciHandle CreateOciHandle( OCI.HTYPE handleType ) { // Constructs a new handle of the type requested, with this handle // as it's parent. Basically, creates a new handle using the // constructor that does all the work. switch (handleType) { case OCI.HTYPE.OCI_HTYPE_ERROR: return(new OciErrorHandle(this)); case OCI.HTYPE.OCI_HTYPE_SERVER: return(new OciServerHandle(this)); case OCI.HTYPE.OCI_HTYPE_SVCCTX: return(new OciServiceContextHandle(this)); case OCI.HTYPE.OCI_HTYPE_SESSION: return(new OciSessionHandle(this)); case OCI.HTYPE.OCI_HTYPE_STMT: return(new OciStatementHandle(this)); default: Debug.Assert(false, "Unexpected OCI Handle Type requested:" + handleType.ToString("G")); return(null); } }
internal static void Trace(string fmtPrintfW, OciHandle a1, OCI.HTYPE a2, OCI.ATTR a3, OciHandle a4, string a5, uint a6, int a7) { if (((modFlags & ApiGroup.Trace) != ApiGroup.Off) && (modID != NoData)) { NativeMethods.Trace(modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, OciHandle.HandleValueToTrace(a1), a2.ToString(), OciHandle.GetAttributeName(a1, a3), OciHandle.HandleValueToTrace(a4), a5, a6, a7); } }
internal static void Trace(string fmtPrintfW, OciHandle a1, OCI.HTYPE a2, OciHandle a3, int a4, IntPtr a5, int a6) { if (((modFlags & ApiGroup.Trace) != ApiGroup.Off) && (modID != NoData)) { NativeMethods.Trace(modID, UIntPtr.Zero, UIntPtr.Zero, fmtPrintfW, OciHandle.HandleValueToTrace(a1), a2.ToString(), OciHandle.HandleValueToTrace(a3), a4, a5, a6); } }