public EdmReferentialConstraint build() { return new EdmReferentialConstraint(principalRole, dependentRole, ImmutableList.copyOf(principalReferences), ImmutableList.copyOf(dependentReferences), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements())); }
public EdmReferentialConstraint build() { return new EdmReferentialConstraint(principalRole, dependentRole, ImmutableList.copyOf(principalReferences), ImmutableList.copyOf(dependentReferences), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements())); }
public EdmReferentialConstraint build() { return new EdmReferentialConstraint(principalRole, dependentRole, ImmutableList.copyOf(principalReferences), ImmutableList.copyOf(dependentReferences), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements())); }
public EdmFunctionImport build() { List<EdmFunctionParameter> parameters = new ArrayList<EdmFunctionParameter>(); for (EdmFunctionParameter.Builder parameter : this.parameters) parameters.add(parameter.build()); EdmType returnType = this.returnType != null ? this.returnType : returnTypeBuilder != null ? returnTypeBuilder.build() : null; return new EdmFunctionImport(name, entitySet == null ? null : entitySet.build(), returnType, httpMethod, ImmutableList.copyOf(parameters), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements())); }
@Override protected EdmType buildImpl() { return new EdmComplexType(namespace, name, properties, (EdmEntityType) (this.baseTypeBuilder != null ? this.baseTypeBuilder.build() : null), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements()), isAbstract); }
public SqlStatement generate(JdbcMetadataMapping mapping, EdmEntitySet entitySet, BoolCommonExpression filter) { JdbcTable table = mapping.getMappedTable(entitySet); StringBuilder sql = new StringBuilder("DELETE FROM " + table.tableName); List<SqlParameter> params = new ArrayList<SqlParameter>(); if (filter != null) { GenerateWhereClause whereClauseGen = newWhereClauseGenerator(entitySet, mapping); whereClauseGen.visitNode(filter); whereClauseGen.append(sql, params); } return new SqlStatement(sql.toString(), ImmutableList.copyOf(params)); }
@Override protected EdmType buildImpl() { return new EdmComplexType(namespace, name, properties, (EdmEntityType) (this.baseTypeBuilder != null ? this.baseTypeBuilder.build() : null), getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements()), isAbstract); }
public EdmProperty build() { if (builtProperty == null) { EdmType type = this.type != null ? this.type : typeBuilder.build(); builtProperty = new EdmProperty(getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements()), getName(), declaringType, type, nullable, maxLength, unicode, fixedLength, storeGeneratedPattern, concurrencyMode, fcTargetPath, fcContentKind, fcKeepInContent, fcEpmContentKind, fcEpmKeepInContent, fcNsPrefix, fcNsUri, collectionKind, defaultValue, precision, scale, collation, mimeType); } return builtProperty; }
public EdmProperty build() { if (builtProperty == null) { EdmType type = this.type != null ? this.type : typeBuilder.build(); builtProperty = new EdmProperty(getDocumentation(), ImmutableList.copyOf(getAnnotations()), ImmutableList.copyOf(getAnnotationElements()), getName(), declaringType, type, nullable, maxLength, unicode, fixedLength, storeGeneratedPattern, concurrencyMode, fcTargetPath, fcContentKind, fcKeepInContent, fcEpmContentKind, fcEpmKeepInContent, fcNsPrefix, fcNsUri, collectionKind, defaultValue, precision, scale, collation, mimeType); } return builtProperty; }