All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cds.jdbc.hana.json.HanaDocStoreSqlMapping Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
/*******************************************************************
 * © 2024 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.jdbc.hana.json;

import static com.sap.cds.impl.sql.SQLHelper.delimited;
import static java.util.stream.Collectors.joining;

import java.util.function.Function;

import com.sap.cds.impl.sql.SqlMappingImpl;
import com.sap.cds.ql.cqn.CqnElementRef;
import com.sap.cds.reflect.CdsStructuredType;

public class HanaDocStoreSqlMapping extends SqlMappingImpl {

	public HanaDocStoreSqlMapping(CdsStructuredType rowType, Function casing) {
		super(rowType, casing);
	}

	@Override
	public String columnName(CqnElementRef ref) {
		return ref.stream().map(seg -> delimited(seg.id())).collect(joining("."));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy