Пример #1
0
 /* (non-Javadoc)
  * @see org.mo.logic.data.ILgTaskLinkDi()
  */
 @Override
 public FSqlFunction nextId() {
   FSqlFunction function = new FSqlFunction("Next_Id");
   function.setLogicName(LOGIC_NAME);
   function.setReturnType(ESqlDataType.Integer);
   activeConnection().execute(function);
   return function;
 }
Пример #2
0
 /* (non-Javadoc)
  * @see org.mo.logic.data.ILgTaskLinkDi(java.lang.Object)
  */
 @Override
 public FSqlFunction containsIdByOgid(Object ogid) {
   FSqlFunction function = new FSqlFunction("Contains_Id_By_Ogid");
   function.setLogicName(LOGIC_NAME);
   function.createParameter("ogid_", ogid, ESqlDataType.String, ESqlDataDirection.In);
   function.setReturnType(ESqlDataType.Boolean);
   activeConnection().execute(function);
   return function;
 }
Пример #3
0
 /* (non-Javadoc)
  * @see org.mo.logic.data.ILgTaskLinkDi(java.lang.Object)
  */
 @Override
 public FSqlFunction getOinf(Object objectId) {
   FSqlFunction function = new FSqlFunction("Get_Oinf");
   function.setLogicName(LOGIC_NAME);
   function.createParameter("object_id_", objectId, ESqlDataType.Integer, ESqlDataDirection.In);
   function.setReturnType(ESqlDataType.String);
   activeConnection().execute(function);
   return function;
 }
Пример #4
0
 /* (non-Javadoc)
  * @see org.mo.logic.data.ILgTaskLinkDi(java.lang.Object)
  */
 @Override
 public FSqlFunction contains(Object objectId) {
   FSqlFunction function = new FSqlFunction("Contains");
   function.setLogicName(LOGIC_NAME);
   function.createParameter("object_id_", objectId, ESqlDataType.Integer, ESqlDataDirection.In);
   function.setReturnType(ESqlDataType.Boolean);
   activeConnection().execute(function);
   return function;
 }
Пример #5
0
 /* (non-Javadoc)
  * @see org.mo.logic.data.ILgTaskLinkDi(java.lang.Object, java.lang.Object)
  */
 @Override
 public FSqlFunction findIdByOgid(Object ogid, Object exists) {
   FSqlFunction function = new FSqlFunction("Find_Id_By_Ogid");
   function.setLogicName(LOGIC_NAME);
   function.createParameter("ogid_", ogid, ESqlDataType.String, ESqlDataDirection.In);
   function.createParameter("exists_", exists, ESqlDataType.Boolean, ESqlDataDirection.InOut);
   function.setReturnType(ESqlDataType.Integer);
   activeConnection().execute(function);
   return function;
 }