private static DeprecatedServiceDefinition getDataServiceDefinition(
      GenericApplicationContext ctx) {

    DataServiceManager mgr = getDataServiceManager(ctx);

    DataServiceDefinition def = new DataServiceDefinition(mgr.getMetaData());

    return new SpringServiceDefinitionWrapper(def, ctx);
  }
Beispiel #2
0
 public TypedServiceReturn read(
     TypeDefinition rootType,
     Object o,
     PropertyOptions propertyOptions,
     PagingOptions pagingOptions) {
   return ((TypedServiceReturn)
       dsMgr.invoke(taskMgr.getReadTask(), rootType, o, propertyOptions, pagingOptions));
 }
Beispiel #3
0
 public com.xedb.data.Rol getRolById(String id, PagingOptions pagingOptions) {
   List<com.xedb.data.Rol> rtn =
       ((List<com.xedb.data.Rol>)
           dsMgr.invoke(
               taskMgr.getQueryTask(), (XeDBConstants.getRolByIdQueryName), id, pagingOptions));
   if (rtn.isEmpty()) {
     return null;
   } else {
     return rtn.get(0);
   }
 }
Beispiel #4
0
 public com.testdb.data.SiCliModulo getSiCliModuloById(Integer id, PagingOptions pagingOptions) {
   List<com.testdb.data.SiCliModulo> rtn =
       ((List<com.testdb.data.SiCliModulo>)
           dsMgr.invoke(
               taskMgr.getQueryTask(),
               (TestDBConstants.getSiCliModuloByIdQueryName),
               id,
               pagingOptions));
   if (rtn.isEmpty()) {
     return null;
   } else {
     return rtn.get(0);
   }
 }
Beispiel #5
0
 public com.hrdb.data.Department getDepartmentById(Integer id, PagingOptions pagingOptions) {
   List<com.hrdb.data.Department> rtn =
       ((List<com.hrdb.data.Department>)
           dsMgr.invoke(
               taskMgr.getQueryTask(),
               (HrdbConstants.getDepartmentByIdQueryName),
               id,
               pagingOptions));
   if (rtn.isEmpty()) {
     return null;
   } else {
     return rtn.get(0);
   }
 }
Beispiel #6
0
 public void rollback() {
   dsMgr.rollback();
 }
Beispiel #7
0
 public void commit() {
   dsMgr.commit();
 }
Beispiel #8
0
 public void begin() {
   dsMgr.begin();
 }
Beispiel #9
0
 public void delete(Object o) {
   dsMgr.invoke(taskMgr.getDeleteTask(), o);
 }
Beispiel #10
0
 public Object update(Object o) {
   return dsMgr.invoke(taskMgr.getUpdateTask(), o);
 }
Beispiel #11
0
 public Object insert(Object o) {
   return dsMgr.invoke(taskMgr.getInsertTask(), o);
 }