Exemplo n.º 1
0
 public AllorsPredicateRoleInExtentSql(AllorsExtentFilteredSql extent, IRoleType role, Allors.Extent inExtent)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleContainedIn(role, inExtent);
     this.role = role;
     this.inExtent = (AllorsExtentSql)inExtent;
 }
 internal AllorsPredicateAssociationInExtentSql(AllorsExtentFilteredSql extent, IAssociationType association, Extent inExtent)
 {
     extent.CheckAssociation(association);
     PredicateAssertions.AssertAssociationContainedIn(association, inExtent);
     this.association = association;
     this.inExtent = (AllorsExtentSql) inExtent;
 }
 internal AllorsPredicateAssociationInExtentSql(AllorsExtentFilteredSql extent, IAssociationType association, Extent inExtent)
 {
     extent.CheckAssociation(association);
     PredicateAssertions.AssertAssociationContainedIn(association, inExtent);
     this.association = association;
     this.inExtent    = (AllorsExtentSql)inExtent;
 }
 public AllorsPredicateRoleInExtentSql(AllorsExtentFilteredSql extent, IRoleType role, Allors.Extent inExtent)
 {
     extent.CheckRole(role);
     PredicateAssertions.ValidateRoleContainedIn(role, inExtent);
     this.role     = role;
     this.inExtent = (AllorsExtentSql)inExtent;
 }
Exemplo n.º 5
0
 internal AllorsExtentStatementRootSql(AllorsExtentSql extent)
     : base(extent)
 {
     this.parameterIndex        = 0;
     this.aliasIndex            = 0;
     this.sql                   = new StringBuilder();
     this.paramNameByParamValue = new Dictionary <object, string>();
 }
Exemplo n.º 6
0
        internal AllorsExtentStatementSql(AllorsExtentSql extent)
        {
            this.extent           = extent;
            paramNameByParamValue = new Dictionary <object, string>();

            roles                = new ArrayList();
            associations         = new ArrayList();
            roleInstances        = new ArrayList();
            associationInstances = new ArrayList();
        }
Exemplo n.º 7
0
        internal AllorsExtentOperationSql(AllorsExtentSql first, AllorsExtentSql second, AllorsExtentOperationTypeSqlBundled operationType)
        {
            if (!first.ObjectType.Equals(second.ObjectType))
            {
                throw new ArgumentException("Both extents in a Union, Intersect or Except must be from the same type");
            }

            if (first is AllorsExtentOperationSql || second is AllorsExtentOperationSql)
            {
                throw new NotSupportedException("Extent with operation can not be nested");
            }

            this.first = first;
            this.second = second;
            this.operationType = operationType;

            first.ParentOperationExtent = this;
            second.ParentOperationExtent = this;
        }
Exemplo n.º 8
0
        internal AllorsExtentOperationSql(AllorsExtentSql first, AllorsExtentSql second, AllorsExtentOperationTypeSqlBundled operationType)
        {
            if (!first.ObjectType.Equals(second.ObjectType))
            {
                throw new ArgumentException("Both extents in a Union, Intersect or Except must be from the same type");
            }

            if (first is AllorsExtentOperationSql || second is AllorsExtentOperationSql)
            {
                throw new NotSupportedException("Extent with operation can not be nested");
            }

            this.first         = first;
            this.second        = second;
            this.operationType = operationType;

            first.ParentOperationExtent  = this;
            second.ParentOperationExtent = this;
        }
Exemplo n.º 9
0
 internal AllorsExtentStatementRootSql(AllorsExtentSql extent)
     : base(extent)
 {
     this.parameterIndex = 0;
     this.aliasIndex = 0;
     this.sql = new StringBuilder();
     this.paramNameByParamValue = new Dictionary<object, string>();
 }
Exemplo n.º 10
0
 internal override AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IRoleType roleType)
 {
     return(new AllorsExtentStatementChildSql(this.root, extent, roleType));
 }
Exemplo n.º 11
0
 internal override AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IAssociationType associationType)
 {
     return(new AllorsExtentStatementChildSql(this.root, extent, associationType));
 }
Exemplo n.º 12
0
 internal AllorsExtentStatementChildSql(AllorsExtentStatementRootSql root, AllorsExtentSql extent, IAssociationType association)
     : base(extent)
 {
     this.root        = root;
     this.association = association;
 }
Exemplo n.º 13
0
 internal AllorsExtentStatementChildSql(AllorsExtentStatementRootSql root, AllorsExtentSql extent, IRoleType role)
     : base(extent)
 {
     this.root = root;
     this.role = role;
 }
Exemplo n.º 14
0
 internal override AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IRoleType roleType)
 {
     return new AllorsExtentStatementChildSql(this, extent, roleType);
 }
Exemplo n.º 15
0
        internal AllorsExtentStatementSql(AllorsExtentSql extent)
        {
            this.extent = extent;
            paramNameByParamValue = new Dictionary<object, string>();

            roles = new ArrayList();
            associations = new ArrayList();
            roleInstances = new ArrayList();
            associationInstances = new ArrayList();
        }
Exemplo n.º 16
0
 internal abstract AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IAssociationType association);
Exemplo n.º 17
0
 internal AllorsExtentStatementChildSql(AllorsExtentStatementRootSql root, AllorsExtentSql extent, IAssociationType association)
     : base(extent)
 {
     this.root = root;
     this.association = association;
 }
Exemplo n.º 18
0
 internal AllorsExtentStatementChildSql(AllorsExtentStatementRootSql root, AllorsExtentSql extent, IRoleType role)
     : base(extent)
 {
     this.root = root;
     this.role = role;
 }
Exemplo n.º 19
0
 internal abstract AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IRoleType roleType);
Exemplo n.º 20
0
 internal abstract AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IAssociationType association);
Exemplo n.º 21
0
 internal abstract AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IRoleType roleType);
Exemplo n.º 22
0
 internal override AllorsExtentStatementSql CreateChild(AllorsExtentSql extent, IAssociationType association)
 {
     return new AllorsExtentStatementChildSql(this, extent, association);
 }