public AssociationContainedInExtent(ExtentFiltered extent, IAssociationType association, Allors.Extent inExtent)
 {
     extent.CheckAssociation(association);
     CompositePredicateAssertions.AssertAssociationContainedIn(association, inExtent);
     this.association = association;
     this.inExtent    = ((Extent)inExtent).ContainedInExtent;
 }
Example #2
0
 public ExtentStatementRoot(SqlExtent extent) : base(extent)
 {
     this.parameterIndex        = 0;
     this.aliasIndex            = 0;
     this.sql                   = new StringBuilder();
     this.paramNameByParamValue = new Dictionary <object, string>();
 }
Example #3
0
 public RoleContainedInExtent(ExtentFiltered extent, IRoleType role, Allors.Extent inExtent)
 {
     extent.CheckRole(role);
     CompositePredicateAssertions.ValidateRoleContainedIn(role, inExtent);
     this.role     = role;
     this.inExtent = ((Extent)inExtent).ContainedInExtent;
 }
Example #4
0
        protected ExtentStatement(SqlExtent extent)
        {
            this.extent = extent;

            this.referenceRoles        = new ArrayList();
            this.referenceAssociations = new ArrayList();

            this.referenceRoleInstances        = new ArrayList();
            this.referenceAssociationInstances = new ArrayList();
        }
Example #5
0
        public ExtentOperation(SqlExtent first, SqlExtent second, ExtentOperations operationType)
        {
            if (!first.ObjectType.Equals(second.ObjectType))
            {
                throw new ArgumentException("Both extents in a Union, Intersect or Except must be from the same type");
            }

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

            first.ParentOperationExtent  = this;
            second.ParentOperationExtent = this;
        }
Example #6
0
 public override ExtentStatement CreateChild(SqlExtent extent, IRoleType role)
 {
     return(new ExtentStatementChild(this, extent, role));
 }
Example #7
0
 public override ExtentStatement CreateChild(SqlExtent extent, IAssociationType association)
 {
     return(new ExtentStatementChild(this, extent, association));
 }
Example #8
0
 public abstract ExtentStatement CreateChild(SqlExtent extent, IRoleType role);
Example #9
0
 public abstract ExtentStatement CreateChild(SqlExtent extent, IAssociationType association);
Example #10
0
 public ExtentStatementChild(ExtentStatementRoot root, SqlExtent extent, IAssociationType associationType)
     : base(extent)
 {
     this.root            = root;
     this.associationType = associationType;
 }
Example #11
0
 public ExtentStatementChild(ExtentStatementRoot root, SqlExtent extent, IRoleType roleType)
     : base(extent)
 {
     this.root     = root;
     this.roleType = roleType;
 }