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

com.genexus.db.odata.ODataServiceContext Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

The newest version!
package com.genexus.db.odata;

import com.genexus.db.service.IOServiceContext;
import java.sql.Connection;
import org.apache.olingo.commons.api.edm.EdmEntityType;

public class ODataServiceContext implements IOServiceContext
{
    final EdmEntityType []currentType;
    final Connection con;
    public ODataServiceContext(Connection con, EdmEntityType baseType)
    {
        this.con = con;
        this.currentType = new EdmEntityType[]{ baseType };
    }

    @Override
    public Connection getConnection()
    {
        return con;
    }    

    @Override
    public Object entity(String entity)
    {
        return ((ODataConnection)con).entity(currentType, entity);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy