@BeanID(value="jgrapeService")
@G9PropertyName(value="JGrapeService")
public interface JGrapeService
| Modifier and Type | Method and Description |
|---|---|
Object |
connect(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
delete(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
disconnect(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
find(FindData findData,
ClientContext ctx,
String dbMapping)
Find a domain object or projection based on the given
findData. |
Object |
find(ObjectSelection objectSelection,
ClientContext ctx) |
List<?> |
findAll(FindData findData,
ClientContext ctx,
String dbMapping)
Find domain objects or projections based on the given
findData. |
List<?> |
findAll(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
get(ObjectSelection objectSelection,
ENavigation navigation,
ClientContext ctx) |
Object |
insert(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
save(ObjectSelection objectSelection,
ClientContext ctx) |
Object |
update(ObjectSelection objectSelection,
ClientContext ctx) |
Object find(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object find(FindData findData, ClientContext ctx, String dbMapping)
findData.
Example (returns the number of Customers in the database):
FindData fd = new FindData();
fd.setFindMethod(EFindMethod.CRITERIA);
fd.setDomainClass(Customer.class);
fd.setCriteriaProjection(Projections.rowCount());
Object result = Application.getServiceProxy().find(fd, ctx, dbMapping);findData - what to find, and howctx - the ClientContext to be useddbMapping - the name of the g9 Database Mapping to be used,
null will use the default Session configurationList<?> findAll(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)List<?> findAll(FindData findData, ClientContext ctx, String dbMapping)
findData.
Example (returns the number of Customers in the database, grouped by zip code):
FindData fd = new FindData();
fd.setFindMethod(EFindMethod.CRITERIA);
fd.setDomainClass(Customer.class);
ProjectionList pl = Projections.projectionList();
pl.add( Projections.rowCount() );
pl.add( Projections.groupProperty("zip") );
fd.setCriteriaProjection(pl);
Object result = Application.getServiceProxy().findAll(fd, ctx, dbMapping);findData - what to find, and howctx - the ClientContext to be useddbMapping - the name of the g9 Database Mapping to be used,
null will use the default Session configurationObject save(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object insert(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object update(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object delete(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object connect(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object disconnect(ObjectSelection objectSelection, ClientContext ctx)
objectSelection - (missing javadoc)ctx - (missing javadoc)Object get(ObjectSelection objectSelection, ENavigation navigation, ClientContext ctx)
objectSelection - (missing javadoc)navigation - (missing javadoc)ctx - (missing javadoc)Copyright © 2006–2020 Esito AS. All rights reserved.