private void ClassLoaderMissed(ClassLoader classLoader, CatalogDeviceSession session, ClassDefinition classDefinition) { if ((_session != null) && (_session._server != null)) { _session._server.ClassLoaderMissed(this, classLoader, classDefinition); } }
private void DoMiss(CatalogDeviceSession session, ClassDefinition classDefinition) { if (OnMiss != null) { OnMiss(this, session, classDefinition); } }
public void IncludeDependencies(CatalogDeviceSession session, Catalog sourceCatalog, Catalog targetCatalog, EmitMode mode) { foreach (Column column in Columns) { column.DataType.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); } }
public override void IncludeDependencies(CatalogDeviceSession session, Catalog sourceCatalog, Catalog targetCatalog, EmitMode mode) { if (!targetCatalog.Contains(Name)) { base.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); targetCatalog.Add(this); } }
public override void DetermineRemotable(CatalogDeviceSession session) { #if TRIGGERSREMOTABLE base.DetermineRemotable(ACatalog); #else IsRemotable = false; #endif }
public RegisteredClass GetClass(CatalogDeviceSession session, ClassDefinition classDefinition) { if (!_classes.Contains(classDefinition.ClassName)) { DoMiss(session, classDefinition); } return(_classes[classDefinition.ClassName]); }
public object CreateObject(CatalogDeviceSession session, ClassDefinition classDefinition, object[] actualParameters) { object objectValue = Activator.CreateInstance(CreateType(session, classDefinition), actualParameters); foreach (ClassAttributeDefinition attribute in classDefinition.Attributes) { SetProperty(objectValue, attribute.AttributeName, attribute.AttributeValue); } return(objectValue); }
public Type CreateType(CatalogDeviceSession session, ClassDefinition classDefinition) { RegisteredClass classValue = GetClass(session, classDefinition); string className = classValue.ClassName; try { return(Type.GetType(className, true)); } catch (Exception E) { throw new ServerException(ServerException.Codes.ClassLoadError, E, className); } }
public EmissionContext ( CatalogDeviceSession session, Catalog catalog, EmitMode mode, ObjectList requestedObjects, string libraryName, bool includeSystem, bool includeGenerated, bool includeDependents, bool includeObject ) : base() { Session = session; Catalog = catalog; Mode = mode; RequestedObjects = requestedObjects; LibraryName = libraryName; IncludeSystem = includeSystem; IncludeGenerated = includeGenerated; IncludeDependents = includeDependents; IncludeObject = includeObject; }
public override void IncludeDependencies(CatalogDeviceSession session, Catalog sourceCatalog, Catalog targetCatalog, EmitMode mode) { if ((SourceOperatorName != null) && (mode == EmitMode.ForRemote)) { var sourceObjectName = MetaData.GetTag(MetaData, "DAE.SourceObjectName", SourceOperatorName); sourceCatalog[sourceObjectName].IncludeDependencies(session, sourceCatalog, targetCatalog, mode); } else { if (!targetCatalog.Contains(this)) { targetCatalog.Add(this); base.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); foreach (Operand operand in Operands) { operand.DataType.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); } if (ReturnDataType != null) { ReturnDataType.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); } } } }
public string ScriptDropCatalog(CatalogDeviceSession session) { return(new D4TextEmitter().Emit(_catalog.EmitDropStatement(session))); }
public void IncludeDependencies(CatalogDeviceSession session, Catalog sourceCatalog, Catalog targetCatalog, EmitMode mode) { ElementType.IncludeDependencies(session, sourceCatalog, targetCatalog, mode); }
private void ClassLoaderMiss(ClassLoader classLoader, CatalogDeviceSession session, ClassDefinition classDefinition) { // Ensure that the library containing the class is loaded. ((ServerCatalogDeviceSession)session).LoadLibraryForClass(classDefinition); }
public bool HasRight(string right) { return(InATCreationContext || CatalogDeviceSession.UserHasRight(SecurityContext.User.ID, right)); }
public void IncludeDependencies(CatalogDeviceSession session, Catalog sourceCatalog, Catalog targetCatalog, EmitMode mode) { }
public string ScriptDropLibrary(CatalogDeviceSession session, string libraryName) { return(new D4TextEmitter().Emit(_catalog.EmitDropStatement(session, new string[] { }, libraryName, false, false, true, true))); }
public string ScriptLibrary(CatalogDeviceSession session, string libraryName) { return(new D4TextEmitter().Emit(_catalog.EmitStatement(session, EmitMode.ForCopy, libraryName, false))); }
/// <summary> Emits the creation script for the catalog and returns it as a string. </summary> public string ScriptCatalog(CatalogDeviceSession session) { return(new D4TextEmitter().Emit(_catalog.EmitStatement(session, EmitMode.ForCopy, false))); }