
com.genexus.db.odata.ODataServiceContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxodata Show documentation
Show all versions of gxodata Show documentation
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