internal AllorsPredicateRoleGreaterThanValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object obj) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleGreaterThan(roleType, obj); this.roleType = roleType; this.obj = roleType.ObjectType is IUnit?roleType.Normalize(obj) : obj; }
internal AllorsPredicateRoleLessThanRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType lessThanRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLessThan(role, lessThanRole); this.role = role; this.lessThanRole = lessThanRole; }
internal AllorsPredicateRoleCompositeEqualsSql(AllorsExtentFilteredSql extent, IRoleType role, Object obj) { extent.CheckRole(role); PredicateAssertions.ValidateRoleEquals(role, obj); this.role = role; this.obj = obj; }
internal AllorsPredicateRoleUnitEqualsRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType equalsRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleEquals(role, equalsRole); this.role = role; this.equalsRole = equalsRole; }
internal AllorsPredicateRoleInstanceofSql(AllorsExtentFilteredSql extent, IRoleType role, IObjectType instanceType, IClass[] instanceClasses) { extent.CheckRole(role); PredicateAssertions.ValidateRoleInstanceOf(role, instanceType); this.role = role; this.instanceClasses = instanceClasses; }
internal AllorsPredicateRoleInstanceofSql(AllorsExtentFilteredSql extent, IRoleType role, IObjectType instanceType, IClass[] instanceClasses) { extent.CheckRole(role); PredicateAssertions.ValidateRoleInstanceOf(role, instanceType); this.role = role; this.instanceClasses = instanceClasses; }
internal AllorsPredicateRoleGreaterThanSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType greaterThanRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleGreaterThan(role, greaterThanRole); this.role = role; this.greaterThanRole = greaterThanRole; }
public AllorsPredicateRoleInExtentSql(AllorsExtentFilteredSql extent, IRoleType role, Allors.Extent inExtent) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContainedIn(role, inExtent); this.role = role; this.inExtent = (AllorsExtentSql)inExtent; }
public RoleContainedInEnumerable(AllorsExtentFilteredSql extent, IRoleType role, IEnumerable<IObject> enumerable) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContainedIn(role, this.enumerable); this.role = role; this.enumerable = enumerable; }
internal AllorsPredicateRoleGreaterThanValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object obj) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleGreaterThan(roleType, obj); this.roleType = roleType; this.obj = roleType.ObjectType is IUnit ? roleType.Normalize(obj) : obj; }
internal AllorsPredicateRoleLikeSql(AllorsExtentFilteredSql extent, IRoleType role, String str) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLikeFilter(role, str); this.role = role; this.str = str; }
public AllorsPredicateRoleInExtentSql(AllorsExtentFilteredSql extent, IRoleType role, Allors.Extent inExtent) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContainedIn(role, inExtent); this.role = role; this.inExtent = (AllorsExtentSql)inExtent; }
internal AllorsPredicateRoleContainsSql(AllorsExtentFilteredSql extent, IRoleType role, IObject allorsObject) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContains(role, allorsObject); this.role = role; this.allorsObject = allorsObject; }
internal AllorsPredicateRoleGreaterThanSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType greaterThanRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleGreaterThan(role, greaterThanRole); this.role = role; this.greaterThanRole = greaterThanRole; }
public RoleContainedInEnumerable(AllorsExtentFilteredSql extent, IRoleType role, IEnumerable <IObject> enumerable) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContainedIn(role, this.enumerable); this.role = role; this.enumerable = enumerable; }
internal AllorsPredicateRoleLikeSql(AllorsExtentFilteredSql extent, IRoleType role, String str) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLikeFilter(role, str); this.role = role; this.str = str; }
internal AllorsPredicateRoleContainsSql(AllorsExtentFilteredSql extent, IRoleType role, IObject allorsObject) { extent.CheckRole(role); PredicateAssertions.ValidateRoleContains(role, allorsObject); this.role = role; this.allorsObject = allorsObject; }
internal AllorsPredicateRoleLessThanRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType lessThanRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLessThan(role, lessThanRole); this.role = role; this.lessThanRole = lessThanRole; }
internal AllorsPredicateRoleUnitEqualsRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType equalsRole) { extent.CheckRole(role); PredicateAssertions.ValidateRoleEquals(role, equalsRole); this.role = role; this.equalsRole = equalsRole; }
internal AllorsPredicateRoleCompositeEqualsSql(AllorsExtentFilteredSql extent, IRoleType role, Object obj) { extent.CheckRole(role); PredicateAssertions.ValidateRoleEquals(role, obj); this.role = role; this.obj = obj; }
internal AllorsPredicateRoleBetweenRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType first, IRoleType second) { extent.CheckRole(role); PredicateAssertions.ValidateRoleBetween(role, first, second); this.role = role; this.first = first; this.second = second; }
internal AllorsPredicateRoleBetweenRoleSql(AllorsExtentFilteredSql extent, IRoleType role, IRoleType first, IRoleType second) { extent.CheckRole(role); PredicateAssertions.ValidateRoleBetween(role, first, second); this.role = role; this.first = first; this.second = second; }
internal AllorsPredicateRoleBetweenValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object first, Object second) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleBetween(roleType, first, second); this.roleType = roleType; this.first = roleType.ObjectType is IUnit ? roleType.Normalize(first) : first; this.second = roleType.ObjectType is IUnit ? roleType.Normalize(second) : second; }
internal AllorsPredicateRoleBetweenValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object first, Object second) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleBetween(roleType, first, second); this.roleType = roleType; this.first = roleType.ObjectType is IUnit?roleType.Normalize(first) : first; this.second = roleType.ObjectType is IUnit?roleType.Normalize(second) : second; }
internal AllorsPredicateRoleUnitEqualsValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object obj) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleEquals(roleType, obj); this.roleType = roleType; if (obj is Enum) { var unitType = roleType.ObjectType as IUnit; if (unitType != null && unitType.IsInteger) { this.obj = (int)obj; } else { throw new Exception("Role Object Type " + roleType.ObjectType.SingularName + " doesn't support enumerations."); } } else { this.obj = roleType.ObjectType is IUnit ? roleType.Normalize(obj) : obj; } }
internal AllorsPredicateRoleUnitEqualsValueSql(AllorsExtentFilteredSql extent, IRoleType roleType, Object obj) { extent.CheckRole(roleType); PredicateAssertions.ValidateRoleEquals(roleType, obj); this.roleType = roleType; if (obj is Enum) { var unitType = roleType.ObjectType as IUnit; if (unitType != null && unitType.IsInteger) { this.obj = (int)obj; } else { throw new Exception("Role Object Type " + roleType.ObjectType.SingularName + " doesn't support enumerations."); } } else { this.obj = roleType.ObjectType is IUnit?roleType.Normalize(obj) : obj; } }
internal AllorsPredicateRoleExistsSql(AllorsExtentFilteredSql extent, IRoleType role) { extent.CheckRole(role); PredicateAssertions.ValidateRoleExists(role); this.role = role; }
internal AllorsPredicateRoleExistsSql(AllorsExtentFilteredSql extent, IRoleType role) { extent.CheckRole(role); PredicateAssertions.ValidateRoleExists(role); this.role = role; }