Merged in feature/PMCORE-3149 (pull request #7971)
PMCORE-3149 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
1cf17329ba
@@ -125,6 +125,8 @@ class AppDelegationMapBuilder
|
|||||||
|
|
||||||
$tMap->addColumn('DEL_TITLE', 'DelTitle', 'string', CreoleTypes::VARCHAR, true, 999);
|
$tMap->addColumn('DEL_TITLE', 'DelTitle', 'string', CreoleTypes::VARCHAR, true, 999);
|
||||||
|
|
||||||
|
$tMap->addColumn('DEL_THREAD_STATUS_ID', 'DelThreadStatusId', 'int', CreoleTypes::INTEGER, true, null);
|
||||||
|
|
||||||
$tMap->addValidator('DEL_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|PARALLEL', 'Please select a valid status.');
|
$tMap->addValidator('DEL_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|PARALLEL', 'Please select a valid status.');
|
||||||
|
|
||||||
$tMap->addValidator('DEL_PRIORITY', 'validValues', 'propel.validator.ValidValuesValidator', '1|2|3|4|5', 'Please select a valid Priority.');
|
$tMap->addValidator('DEL_PRIORITY', 'validValues', 'propel.validator.ValidValuesValidator', '1|2|3|4|5', 'Please select a valid Priority.');
|
||||||
|
|||||||
@@ -111,6 +111,10 @@ class ApplicationMapBuilder
|
|||||||
|
|
||||||
$tMap->addColumn('APP_ROUTING_DATA', 'AppRoutingData', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
$tMap->addColumn('APP_ROUTING_DATA', 'AppRoutingData', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||||
|
|
||||||
|
$tMap->addColumn('PRO_ID', 'ProId', 'int', CreoleTypes::INTEGER, true, null);
|
||||||
|
|
||||||
|
$tMap->addColumn('APP_INIT_USER_ID', 'AppInitUserId', 'int', CreoleTypes::INTEGER, true, null);
|
||||||
|
|
||||||
$tMap->addValidator('APP_STATUS', 'validValues', 'propel.validator.ValidValuesValidator', 'DRAFT|TO_DO|PAUSED|COMPLETED|CANCELLED', 'Please select a valid status.');
|
$tMap->addValidator('APP_STATUS', 'validValues', 'propel.validator.ValidValuesValidator', 'DRAFT|TO_DO|PAUSED|COMPLETED|CANCELLED', 'Please select a valid status.');
|
||||||
|
|
||||||
} // doBuild()
|
} // doBuild()
|
||||||
|
|||||||
@@ -207,6 +207,12 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
protected $del_title;
|
protected $del_title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the del_thread_status_id field.
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
protected $del_thread_status_id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
@@ -656,6 +662,17 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
return $this->del_title;
|
return $this->del_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [del_thread_status_id] column value.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getDelThreadStatusId()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->del_thread_status_id;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [app_uid] column.
|
* Set the value of [app_uid] column.
|
||||||
*
|
*
|
||||||
@@ -1327,6 +1344,28 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
|
|
||||||
} // setDelTitle()
|
} // setDelTitle()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [del_thread_status_id] column.
|
||||||
|
*
|
||||||
|
* @param int $v new value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setDelThreadStatusId($v)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Since the native PHP type for this column is integer,
|
||||||
|
// we will cast the input value to an int (if it is not).
|
||||||
|
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||||
|
$v = (int) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->del_thread_status_id !== $v || $v === 0) {
|
||||||
|
$this->del_thread_status_id = $v;
|
||||||
|
$this->modifiedColumns[] = AppDelegationPeer::DEL_THREAD_STATUS_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // setDelThreadStatusId()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hydrates (populates) the object variables with values from the database resultset.
|
* Hydrates (populates) the object variables with values from the database resultset.
|
||||||
*
|
*
|
||||||
@@ -1404,12 +1443,14 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$this->del_title = $rs->getString($startcol + 29);
|
$this->del_title = $rs->getString($startcol + 29);
|
||||||
|
|
||||||
|
$this->del_thread_status_id = $rs->getInt($startcol + 30);
|
||||||
|
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
|
||||||
// FIXME - using NUM_COLUMNS may be clearer.
|
// FIXME - using NUM_COLUMNS may be clearer.
|
||||||
return $startcol + 30; // 30 = AppDelegationPeer::NUM_COLUMNS - AppDelegationPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 31; // 31 = AppDelegationPeer::NUM_COLUMNS - AppDelegationPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating AppDelegation object", $e);
|
throw new PropelException("Error populating AppDelegation object", $e);
|
||||||
@@ -1703,6 +1744,9 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
case 29:
|
case 29:
|
||||||
return $this->getDelTitle();
|
return $this->getDelTitle();
|
||||||
break;
|
break;
|
||||||
|
case 30:
|
||||||
|
return $this->getDelThreadStatusId();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
@@ -1753,6 +1797,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
$keys[27] => $this->getProId(),
|
$keys[27] => $this->getProId(),
|
||||||
$keys[28] => $this->getTasId(),
|
$keys[28] => $this->getTasId(),
|
||||||
$keys[29] => $this->getDelTitle(),
|
$keys[29] => $this->getDelTitle(),
|
||||||
|
$keys[30] => $this->getDelThreadStatusId(),
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -1874,6 +1919,9 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
case 29:
|
case 29:
|
||||||
$this->setDelTitle($value);
|
$this->setDelTitle($value);
|
||||||
break;
|
break;
|
||||||
|
case 30:
|
||||||
|
$this->setDelThreadStatusId($value);
|
||||||
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2017,6 +2065,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
$this->setDelTitle($arr[$keys[29]]);
|
$this->setDelTitle($arr[$keys[29]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists($keys[30], $arr)) {
|
||||||
|
$this->setDelThreadStatusId($arr[$keys[30]]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2148,6 +2200,10 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
$criteria->add(AppDelegationPeer::DEL_TITLE, $this->del_title);
|
$criteria->add(AppDelegationPeer::DEL_TITLE, $this->del_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->isColumnModified(AppDelegationPeer::DEL_THREAD_STATUS_ID)) {
|
||||||
|
$criteria->add(AppDelegationPeer::DEL_THREAD_STATUS_ID, $this->del_thread_status_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
@@ -2270,6 +2326,8 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setDelTitle($this->del_title);
|
$copyObj->setDelTitle($this->del_title);
|
||||||
|
|
||||||
|
$copyObj->setDelThreadStatusId($this->del_thread_status_id);
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew(true);
|
$copyObj->setNew(true);
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ abstract class BaseAppDelegationPeer
|
|||||||
const CLASS_DEFAULT = 'classes.model.AppDelegation';
|
const CLASS_DEFAULT = 'classes.model.AppDelegation';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 30;
|
const NUM_COLUMNS = 31;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
@@ -121,6 +121,9 @@ abstract class BaseAppDelegationPeer
|
|||||||
/** the column name for the DEL_TITLE field */
|
/** the column name for the DEL_TITLE field */
|
||||||
const DEL_TITLE = 'APP_DELEGATION.DEL_TITLE';
|
const DEL_TITLE = 'APP_DELEGATION.DEL_TITLE';
|
||||||
|
|
||||||
|
/** the column name for the DEL_THREAD_STATUS_ID field */
|
||||||
|
const DEL_THREAD_STATUS_ID = 'APP_DELEGATION.DEL_THREAD_STATUS_ID';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/** The PHP to DB Name Mapping */
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
@@ -132,10 +135,10 @@ abstract class BaseAppDelegationPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'DelegationId', 'AppNumber', 'DelPrevious', 'DelLastIndex', 'ProUid', 'TasUid', 'UsrUid', 'DelType', 'DelThread', 'DelThreadStatus', 'DelPriority', 'DelDelegateDate', 'DelInitDate', 'DelFinishDate', 'DelTaskDueDate', 'DelRiskDate', 'DelDuration', 'DelQueueDuration', 'DelDelayDuration', 'DelStarted', 'DelFinished', 'DelDelayed', 'DelData', 'AppOverduePercentage', 'UsrId', 'ProId', 'TasId', 'DelTitle', ),
|
BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'DelegationId', 'AppNumber', 'DelPrevious', 'DelLastIndex', 'ProUid', 'TasUid', 'UsrUid', 'DelType', 'DelThread', 'DelThreadStatus', 'DelPriority', 'DelDelegateDate', 'DelInitDate', 'DelFinishDate', 'DelTaskDueDate', 'DelRiskDate', 'DelDuration', 'DelQueueDuration', 'DelDelayDuration', 'DelStarted', 'DelFinished', 'DelDelayed', 'DelData', 'AppOverduePercentage', 'UsrId', 'ProId', 'TasId', 'DelTitle', 'DelThreadStatusId', ),
|
||||||
BasePeer::TYPE_COLNAME => array (AppDelegationPeer::APP_UID, AppDelegationPeer::DEL_INDEX, AppDelegationPeer::DELEGATION_ID, AppDelegationPeer::APP_NUMBER, AppDelegationPeer::DEL_PREVIOUS, AppDelegationPeer::DEL_LAST_INDEX, AppDelegationPeer::PRO_UID, AppDelegationPeer::TAS_UID, AppDelegationPeer::USR_UID, AppDelegationPeer::DEL_TYPE, AppDelegationPeer::DEL_THREAD, AppDelegationPeer::DEL_THREAD_STATUS, AppDelegationPeer::DEL_PRIORITY, AppDelegationPeer::DEL_DELEGATE_DATE, AppDelegationPeer::DEL_INIT_DATE, AppDelegationPeer::DEL_FINISH_DATE, AppDelegationPeer::DEL_TASK_DUE_DATE, AppDelegationPeer::DEL_RISK_DATE, AppDelegationPeer::DEL_DURATION, AppDelegationPeer::DEL_QUEUE_DURATION, AppDelegationPeer::DEL_DELAY_DURATION, AppDelegationPeer::DEL_STARTED, AppDelegationPeer::DEL_FINISHED, AppDelegationPeer::DEL_DELAYED, AppDelegationPeer::DEL_DATA, AppDelegationPeer::APP_OVERDUE_PERCENTAGE, AppDelegationPeer::USR_ID, AppDelegationPeer::PRO_ID, AppDelegationPeer::TAS_ID, AppDelegationPeer::DEL_TITLE, ),
|
BasePeer::TYPE_COLNAME => array (AppDelegationPeer::APP_UID, AppDelegationPeer::DEL_INDEX, AppDelegationPeer::DELEGATION_ID, AppDelegationPeer::APP_NUMBER, AppDelegationPeer::DEL_PREVIOUS, AppDelegationPeer::DEL_LAST_INDEX, AppDelegationPeer::PRO_UID, AppDelegationPeer::TAS_UID, AppDelegationPeer::USR_UID, AppDelegationPeer::DEL_TYPE, AppDelegationPeer::DEL_THREAD, AppDelegationPeer::DEL_THREAD_STATUS, AppDelegationPeer::DEL_PRIORITY, AppDelegationPeer::DEL_DELEGATE_DATE, AppDelegationPeer::DEL_INIT_DATE, AppDelegationPeer::DEL_FINISH_DATE, AppDelegationPeer::DEL_TASK_DUE_DATE, AppDelegationPeer::DEL_RISK_DATE, AppDelegationPeer::DEL_DURATION, AppDelegationPeer::DEL_QUEUE_DURATION, AppDelegationPeer::DEL_DELAY_DURATION, AppDelegationPeer::DEL_STARTED, AppDelegationPeer::DEL_FINISHED, AppDelegationPeer::DEL_DELAYED, AppDelegationPeer::DEL_DATA, AppDelegationPeer::APP_OVERDUE_PERCENTAGE, AppDelegationPeer::USR_ID, AppDelegationPeer::PRO_ID, AppDelegationPeer::TAS_ID, AppDelegationPeer::DEL_TITLE, AppDelegationPeer::DEL_THREAD_STATUS_ID, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'DELEGATION_ID', 'APP_NUMBER', 'DEL_PREVIOUS', 'DEL_LAST_INDEX', 'PRO_UID', 'TAS_UID', 'USR_UID', 'DEL_TYPE', 'DEL_THREAD', 'DEL_THREAD_STATUS', 'DEL_PRIORITY', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_FINISH_DATE', 'DEL_TASK_DUE_DATE', 'DEL_RISK_DATE', 'DEL_DURATION', 'DEL_QUEUE_DURATION', 'DEL_DELAY_DURATION', 'DEL_STARTED', 'DEL_FINISHED', 'DEL_DELAYED', 'DEL_DATA', 'APP_OVERDUE_PERCENTAGE', 'USR_ID', 'PRO_ID', 'TAS_ID', 'DEL_TITLE', ),
|
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'DELEGATION_ID', 'APP_NUMBER', 'DEL_PREVIOUS', 'DEL_LAST_INDEX', 'PRO_UID', 'TAS_UID', 'USR_UID', 'DEL_TYPE', 'DEL_THREAD', 'DEL_THREAD_STATUS', 'DEL_PRIORITY', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_FINISH_DATE', 'DEL_TASK_DUE_DATE', 'DEL_RISK_DATE', 'DEL_DURATION', 'DEL_QUEUE_DURATION', 'DEL_DELAY_DURATION', 'DEL_STARTED', 'DEL_FINISHED', 'DEL_DELAYED', 'DEL_DATA', 'APP_OVERDUE_PERCENTAGE', 'USR_ID', 'PRO_ID', 'TAS_ID', 'DEL_TITLE', 'DEL_THREAD_STATUS_ID', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -145,10 +148,10 @@ abstract class BaseAppDelegationPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 1, 'DelegationId' => 2, 'AppNumber' => 3, 'DelPrevious' => 4, 'DelLastIndex' => 5, 'ProUid' => 6, 'TasUid' => 7, 'UsrUid' => 8, 'DelType' => 9, 'DelThread' => 10, 'DelThreadStatus' => 11, 'DelPriority' => 12, 'DelDelegateDate' => 13, 'DelInitDate' => 14, 'DelFinishDate' => 15, 'DelTaskDueDate' => 16, 'DelRiskDate' => 17, 'DelDuration' => 18, 'DelQueueDuration' => 19, 'DelDelayDuration' => 20, 'DelStarted' => 21, 'DelFinished' => 22, 'DelDelayed' => 23, 'DelData' => 24, 'AppOverduePercentage' => 25, 'UsrId' => 26, 'ProId' => 27, 'TasId' => 28, 'DelTitle' => 29, ),
|
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 1, 'DelegationId' => 2, 'AppNumber' => 3, 'DelPrevious' => 4, 'DelLastIndex' => 5, 'ProUid' => 6, 'TasUid' => 7, 'UsrUid' => 8, 'DelType' => 9, 'DelThread' => 10, 'DelThreadStatus' => 11, 'DelPriority' => 12, 'DelDelegateDate' => 13, 'DelInitDate' => 14, 'DelFinishDate' => 15, 'DelTaskDueDate' => 16, 'DelRiskDate' => 17, 'DelDuration' => 18, 'DelQueueDuration' => 19, 'DelDelayDuration' => 20, 'DelStarted' => 21, 'DelFinished' => 22, 'DelDelayed' => 23, 'DelData' => 24, 'AppOverduePercentage' => 25, 'UsrId' => 26, 'ProId' => 27, 'TasId' => 28, 'DelTitle' => 29, 'DelThreadStatusId' => 30, ),
|
||||||
BasePeer::TYPE_COLNAME => array (AppDelegationPeer::APP_UID => 0, AppDelegationPeer::DEL_INDEX => 1, AppDelegationPeer::DELEGATION_ID => 2, AppDelegationPeer::APP_NUMBER => 3, AppDelegationPeer::DEL_PREVIOUS => 4, AppDelegationPeer::DEL_LAST_INDEX => 5, AppDelegationPeer::PRO_UID => 6, AppDelegationPeer::TAS_UID => 7, AppDelegationPeer::USR_UID => 8, AppDelegationPeer::DEL_TYPE => 9, AppDelegationPeer::DEL_THREAD => 10, AppDelegationPeer::DEL_THREAD_STATUS => 11, AppDelegationPeer::DEL_PRIORITY => 12, AppDelegationPeer::DEL_DELEGATE_DATE => 13, AppDelegationPeer::DEL_INIT_DATE => 14, AppDelegationPeer::DEL_FINISH_DATE => 15, AppDelegationPeer::DEL_TASK_DUE_DATE => 16, AppDelegationPeer::DEL_RISK_DATE => 17, AppDelegationPeer::DEL_DURATION => 18, AppDelegationPeer::DEL_QUEUE_DURATION => 19, AppDelegationPeer::DEL_DELAY_DURATION => 20, AppDelegationPeer::DEL_STARTED => 21, AppDelegationPeer::DEL_FINISHED => 22, AppDelegationPeer::DEL_DELAYED => 23, AppDelegationPeer::DEL_DATA => 24, AppDelegationPeer::APP_OVERDUE_PERCENTAGE => 25, AppDelegationPeer::USR_ID => 26, AppDelegationPeer::PRO_ID => 27, AppDelegationPeer::TAS_ID => 28, AppDelegationPeer::DEL_TITLE => 29, ),
|
BasePeer::TYPE_COLNAME => array (AppDelegationPeer::APP_UID => 0, AppDelegationPeer::DEL_INDEX => 1, AppDelegationPeer::DELEGATION_ID => 2, AppDelegationPeer::APP_NUMBER => 3, AppDelegationPeer::DEL_PREVIOUS => 4, AppDelegationPeer::DEL_LAST_INDEX => 5, AppDelegationPeer::PRO_UID => 6, AppDelegationPeer::TAS_UID => 7, AppDelegationPeer::USR_UID => 8, AppDelegationPeer::DEL_TYPE => 9, AppDelegationPeer::DEL_THREAD => 10, AppDelegationPeer::DEL_THREAD_STATUS => 11, AppDelegationPeer::DEL_PRIORITY => 12, AppDelegationPeer::DEL_DELEGATE_DATE => 13, AppDelegationPeer::DEL_INIT_DATE => 14, AppDelegationPeer::DEL_FINISH_DATE => 15, AppDelegationPeer::DEL_TASK_DUE_DATE => 16, AppDelegationPeer::DEL_RISK_DATE => 17, AppDelegationPeer::DEL_DURATION => 18, AppDelegationPeer::DEL_QUEUE_DURATION => 19, AppDelegationPeer::DEL_DELAY_DURATION => 20, AppDelegationPeer::DEL_STARTED => 21, AppDelegationPeer::DEL_FINISHED => 22, AppDelegationPeer::DEL_DELAYED => 23, AppDelegationPeer::DEL_DATA => 24, AppDelegationPeer::APP_OVERDUE_PERCENTAGE => 25, AppDelegationPeer::USR_ID => 26, AppDelegationPeer::PRO_ID => 27, AppDelegationPeer::TAS_ID => 28, AppDelegationPeer::DEL_TITLE => 29, AppDelegationPeer::DEL_THREAD_STATUS_ID => 30, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'DELEGATION_ID' => 2, 'APP_NUMBER' => 3, 'DEL_PREVIOUS' => 4, 'DEL_LAST_INDEX' => 5, 'PRO_UID' => 6, 'TAS_UID' => 7, 'USR_UID' => 8, 'DEL_TYPE' => 9, 'DEL_THREAD' => 10, 'DEL_THREAD_STATUS' => 11, 'DEL_PRIORITY' => 12, 'DEL_DELEGATE_DATE' => 13, 'DEL_INIT_DATE' => 14, 'DEL_FINISH_DATE' => 15, 'DEL_TASK_DUE_DATE' => 16, 'DEL_RISK_DATE' => 17, 'DEL_DURATION' => 18, 'DEL_QUEUE_DURATION' => 19, 'DEL_DELAY_DURATION' => 20, 'DEL_STARTED' => 21, 'DEL_FINISHED' => 22, 'DEL_DELAYED' => 23, 'DEL_DATA' => 24, 'APP_OVERDUE_PERCENTAGE' => 25, 'USR_ID' => 26, 'PRO_ID' => 27, 'TAS_ID' => 28, 'DEL_TITLE' => 29, ),
|
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'DELEGATION_ID' => 2, 'APP_NUMBER' => 3, 'DEL_PREVIOUS' => 4, 'DEL_LAST_INDEX' => 5, 'PRO_UID' => 6, 'TAS_UID' => 7, 'USR_UID' => 8, 'DEL_TYPE' => 9, 'DEL_THREAD' => 10, 'DEL_THREAD_STATUS' => 11, 'DEL_PRIORITY' => 12, 'DEL_DELEGATE_DATE' => 13, 'DEL_INIT_DATE' => 14, 'DEL_FINISH_DATE' => 15, 'DEL_TASK_DUE_DATE' => 16, 'DEL_RISK_DATE' => 17, 'DEL_DURATION' => 18, 'DEL_QUEUE_DURATION' => 19, 'DEL_DELAY_DURATION' => 20, 'DEL_STARTED' => 21, 'DEL_FINISHED' => 22, 'DEL_DELAYED' => 23, 'DEL_DATA' => 24, 'APP_OVERDUE_PERCENTAGE' => 25, 'USR_ID' => 26, 'PRO_ID' => 27, 'TAS_ID' => 28, 'DEL_TITLE' => 29, 'DEL_THREAD_STATUS_ID' => 30, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -309,6 +312,8 @@ abstract class BaseAppDelegationPeer
|
|||||||
|
|
||||||
$criteria->addSelectColumn(AppDelegationPeer::DEL_TITLE);
|
$criteria->addSelectColumn(AppDelegationPeer::DEL_TITLE);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppDelegationPeer::DEL_THREAD_STATUS_ID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const COUNT = 'COUNT(APP_DELEGATION.APP_UID)';
|
const COUNT = 'COUNT(APP_DELEGATION.APP_UID)';
|
||||||
|
|||||||
@@ -165,6 +165,18 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
protected $app_routing_data;
|
protected $app_routing_data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the pro_id field.
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
protected $pro_id = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the app_init_user_id field.
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
protected $app_init_user_id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
@@ -516,6 +528,28 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
return $this->app_routing_data;
|
return $this->app_routing_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [pro_id] column value.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getProId()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->pro_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [app_init_user_id] column value.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getAppInitUserId()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->app_init_user_id;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [app_uid] column.
|
* Set the value of [app_uid] column.
|
||||||
*
|
*
|
||||||
@@ -1038,6 +1072,50 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
|
|
||||||
} // setAppRoutingData()
|
} // setAppRoutingData()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [pro_id] column.
|
||||||
|
*
|
||||||
|
* @param int $v new value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setProId($v)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Since the native PHP type for this column is integer,
|
||||||
|
// we will cast the input value to an int (if it is not).
|
||||||
|
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||||
|
$v = (int) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->pro_id !== $v || $v === 0) {
|
||||||
|
$this->pro_id = $v;
|
||||||
|
$this->modifiedColumns[] = ApplicationPeer::PRO_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // setProId()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [app_init_user_id] column.
|
||||||
|
*
|
||||||
|
* @param int $v new value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setAppInitUserId($v)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Since the native PHP type for this column is integer,
|
||||||
|
// we will cast the input value to an int (if it is not).
|
||||||
|
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||||
|
$v = (int) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->app_init_user_id !== $v || $v === 0) {
|
||||||
|
$this->app_init_user_id = $v;
|
||||||
|
$this->modifiedColumns[] = ApplicationPeer::APP_INIT_USER_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // setAppInitUserId()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hydrates (populates) the object variables with values from the database resultset.
|
* Hydrates (populates) the object variables with values from the database resultset.
|
||||||
*
|
*
|
||||||
@@ -1101,12 +1179,16 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$this->app_routing_data = $rs->getString($startcol + 22);
|
$this->app_routing_data = $rs->getString($startcol + 22);
|
||||||
|
|
||||||
|
$this->pro_id = $rs->getInt($startcol + 23);
|
||||||
|
|
||||||
|
$this->app_init_user_id = $rs->getInt($startcol + 24);
|
||||||
|
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
|
||||||
// FIXME - using NUM_COLUMNS may be clearer.
|
// FIXME - using NUM_COLUMNS may be clearer.
|
||||||
return $startcol + 23; // 23 = ApplicationPeer::NUM_COLUMNS - ApplicationPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 25; // 25 = ApplicationPeer::NUM_COLUMNS - ApplicationPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating Application object", $e);
|
throw new PropelException("Error populating Application object", $e);
|
||||||
@@ -1379,6 +1461,12 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
case 22:
|
case 22:
|
||||||
return $this->getAppRoutingData();
|
return $this->getAppRoutingData();
|
||||||
break;
|
break;
|
||||||
|
case 23:
|
||||||
|
return $this->getProId();
|
||||||
|
break;
|
||||||
|
case 24:
|
||||||
|
return $this->getAppInitUserId();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
@@ -1422,6 +1510,8 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
$keys[20] => $this->getAppDelayDuration(),
|
$keys[20] => $this->getAppDelayDuration(),
|
||||||
$keys[21] => $this->getAppDriveFolderUid(),
|
$keys[21] => $this->getAppDriveFolderUid(),
|
||||||
$keys[22] => $this->getAppRoutingData(),
|
$keys[22] => $this->getAppRoutingData(),
|
||||||
|
$keys[23] => $this->getProId(),
|
||||||
|
$keys[24] => $this->getAppInitUserId(),
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -1522,6 +1612,12 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
case 22:
|
case 22:
|
||||||
$this->setAppRoutingData($value);
|
$this->setAppRoutingData($value);
|
||||||
break;
|
break;
|
||||||
|
case 23:
|
||||||
|
$this->setProId($value);
|
||||||
|
break;
|
||||||
|
case 24:
|
||||||
|
$this->setAppInitUserId($value);
|
||||||
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1637,6 +1733,14 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
$this->setAppRoutingData($arr[$keys[22]]);
|
$this->setAppRoutingData($arr[$keys[22]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists($keys[23], $arr)) {
|
||||||
|
$this->setProId($arr[$keys[23]]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists($keys[24], $arr)) {
|
||||||
|
$this->setAppInitUserId($arr[$keys[24]]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1740,6 +1844,14 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
$criteria->add(ApplicationPeer::APP_ROUTING_DATA, $this->app_routing_data);
|
$criteria->add(ApplicationPeer::APP_ROUTING_DATA, $this->app_routing_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->isColumnModified(ApplicationPeer::PRO_ID)) {
|
||||||
|
$criteria->add(ApplicationPeer::PRO_ID, $this->pro_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->isColumnModified(ApplicationPeer::APP_INIT_USER_ID)) {
|
||||||
|
$criteria->add(ApplicationPeer::APP_INIT_USER_ID, $this->app_init_user_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
@@ -1838,6 +1950,10 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setAppRoutingData($this->app_routing_data);
|
$copyObj->setAppRoutingData($this->app_routing_data);
|
||||||
|
|
||||||
|
$copyObj->setProId($this->pro_id);
|
||||||
|
|
||||||
|
$copyObj->setAppInitUserId($this->app_init_user_id);
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew(true);
|
$copyObj->setNew(true);
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ abstract class BaseApplicationPeer
|
|||||||
const CLASS_DEFAULT = 'classes.model.Application';
|
const CLASS_DEFAULT = 'classes.model.Application';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 23;
|
const NUM_COLUMNS = 25;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
@@ -100,6 +100,12 @@ abstract class BaseApplicationPeer
|
|||||||
/** the column name for the APP_ROUTING_DATA field */
|
/** the column name for the APP_ROUTING_DATA field */
|
||||||
const APP_ROUTING_DATA = 'APPLICATION.APP_ROUTING_DATA';
|
const APP_ROUTING_DATA = 'APPLICATION.APP_ROUTING_DATA';
|
||||||
|
|
||||||
|
/** the column name for the PRO_ID field */
|
||||||
|
const PRO_ID = 'APPLICATION.PRO_ID';
|
||||||
|
|
||||||
|
/** the column name for the APP_INIT_USER_ID field */
|
||||||
|
const APP_INIT_USER_ID = 'APPLICATION.APP_INIT_USER_ID';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/** The PHP to DB Name Mapping */
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
@@ -111,10 +117,10 @@ abstract class BaseApplicationPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'AppTitle', 'AppDescription', 'AppNumber', 'AppParent', 'AppStatus', 'AppStatusId', 'ProUid', 'AppProcStatus', 'AppProcCode', 'AppParallel', 'AppInitUser', 'AppCurUser', 'AppCreateDate', 'AppInitDate', 'AppFinishDate', 'AppUpdateDate', 'AppData', 'AppPin', 'AppDuration', 'AppDelayDuration', 'AppDriveFolderUid', 'AppRoutingData', ),
|
BasePeer::TYPE_PHPNAME => array ('AppUid', 'AppTitle', 'AppDescription', 'AppNumber', 'AppParent', 'AppStatus', 'AppStatusId', 'ProUid', 'AppProcStatus', 'AppProcCode', 'AppParallel', 'AppInitUser', 'AppCurUser', 'AppCreateDate', 'AppInitDate', 'AppFinishDate', 'AppUpdateDate', 'AppData', 'AppPin', 'AppDuration', 'AppDelayDuration', 'AppDriveFolderUid', 'AppRoutingData', 'ProId', 'AppInitUserId', ),
|
||||||
BasePeer::TYPE_COLNAME => array (ApplicationPeer::APP_UID, ApplicationPeer::APP_TITLE, ApplicationPeer::APP_DESCRIPTION, ApplicationPeer::APP_NUMBER, ApplicationPeer::APP_PARENT, ApplicationPeer::APP_STATUS, ApplicationPeer::APP_STATUS_ID, ApplicationPeer::PRO_UID, ApplicationPeer::APP_PROC_STATUS, ApplicationPeer::APP_PROC_CODE, ApplicationPeer::APP_PARALLEL, ApplicationPeer::APP_INIT_USER, ApplicationPeer::APP_CUR_USER, ApplicationPeer::APP_CREATE_DATE, ApplicationPeer::APP_INIT_DATE, ApplicationPeer::APP_FINISH_DATE, ApplicationPeer::APP_UPDATE_DATE, ApplicationPeer::APP_DATA, ApplicationPeer::APP_PIN, ApplicationPeer::APP_DURATION, ApplicationPeer::APP_DELAY_DURATION, ApplicationPeer::APP_DRIVE_FOLDER_UID, ApplicationPeer::APP_ROUTING_DATA, ),
|
BasePeer::TYPE_COLNAME => array (ApplicationPeer::APP_UID, ApplicationPeer::APP_TITLE, ApplicationPeer::APP_DESCRIPTION, ApplicationPeer::APP_NUMBER, ApplicationPeer::APP_PARENT, ApplicationPeer::APP_STATUS, ApplicationPeer::APP_STATUS_ID, ApplicationPeer::PRO_UID, ApplicationPeer::APP_PROC_STATUS, ApplicationPeer::APP_PROC_CODE, ApplicationPeer::APP_PARALLEL, ApplicationPeer::APP_INIT_USER, ApplicationPeer::APP_CUR_USER, ApplicationPeer::APP_CREATE_DATE, ApplicationPeer::APP_INIT_DATE, ApplicationPeer::APP_FINISH_DATE, ApplicationPeer::APP_UPDATE_DATE, ApplicationPeer::APP_DATA, ApplicationPeer::APP_PIN, ApplicationPeer::APP_DURATION, ApplicationPeer::APP_DELAY_DURATION, ApplicationPeer::APP_DRIVE_FOLDER_UID, ApplicationPeer::APP_ROUTING_DATA, ApplicationPeer::PRO_ID, ApplicationPeer::APP_INIT_USER_ID, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'APP_TITLE', 'APP_DESCRIPTION', 'APP_NUMBER', 'APP_PARENT', 'APP_STATUS', 'APP_STATUS_ID', 'PRO_UID', 'APP_PROC_STATUS', 'APP_PROC_CODE', 'APP_PARALLEL', 'APP_INIT_USER', 'APP_CUR_USER', 'APP_CREATE_DATE', 'APP_INIT_DATE', 'APP_FINISH_DATE', 'APP_UPDATE_DATE', 'APP_DATA', 'APP_PIN', 'APP_DURATION', 'APP_DELAY_DURATION', 'APP_DRIVE_FOLDER_UID', 'APP_ROUTING_DATA', ),
|
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'APP_TITLE', 'APP_DESCRIPTION', 'APP_NUMBER', 'APP_PARENT', 'APP_STATUS', 'APP_STATUS_ID', 'PRO_UID', 'APP_PROC_STATUS', 'APP_PROC_CODE', 'APP_PARALLEL', 'APP_INIT_USER', 'APP_CUR_USER', 'APP_CREATE_DATE', 'APP_INIT_DATE', 'APP_FINISH_DATE', 'APP_UPDATE_DATE', 'APP_DATA', 'APP_PIN', 'APP_DURATION', 'APP_DELAY_DURATION', 'APP_DRIVE_FOLDER_UID', 'APP_ROUTING_DATA', 'PRO_ID', 'APP_INIT_USER_ID', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,10 +130,10 @@ abstract class BaseApplicationPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'AppTitle' => 1, 'AppDescription' => 2, 'AppNumber' => 3, 'AppParent' => 4, 'AppStatus' => 5, 'AppStatusId' => 6, 'ProUid' => 7, 'AppProcStatus' => 8, 'AppProcCode' => 9, 'AppParallel' => 10, 'AppInitUser' => 11, 'AppCurUser' => 12, 'AppCreateDate' => 13, 'AppInitDate' => 14, 'AppFinishDate' => 15, 'AppUpdateDate' => 16, 'AppData' => 17, 'AppPin' => 18, 'AppDuration' => 19, 'AppDelayDuration' => 20, 'AppDriveFolderUid' => 21, 'AppRoutingData' => 22, ),
|
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'AppTitle' => 1, 'AppDescription' => 2, 'AppNumber' => 3, 'AppParent' => 4, 'AppStatus' => 5, 'AppStatusId' => 6, 'ProUid' => 7, 'AppProcStatus' => 8, 'AppProcCode' => 9, 'AppParallel' => 10, 'AppInitUser' => 11, 'AppCurUser' => 12, 'AppCreateDate' => 13, 'AppInitDate' => 14, 'AppFinishDate' => 15, 'AppUpdateDate' => 16, 'AppData' => 17, 'AppPin' => 18, 'AppDuration' => 19, 'AppDelayDuration' => 20, 'AppDriveFolderUid' => 21, 'AppRoutingData' => 22, 'ProId' => 23, 'AppInitUserId' => 24, ),
|
||||||
BasePeer::TYPE_COLNAME => array (ApplicationPeer::APP_UID => 0, ApplicationPeer::APP_TITLE => 1, ApplicationPeer::APP_DESCRIPTION => 2, ApplicationPeer::APP_NUMBER => 3, ApplicationPeer::APP_PARENT => 4, ApplicationPeer::APP_STATUS => 5, ApplicationPeer::APP_STATUS_ID => 6, ApplicationPeer::PRO_UID => 7, ApplicationPeer::APP_PROC_STATUS => 8, ApplicationPeer::APP_PROC_CODE => 9, ApplicationPeer::APP_PARALLEL => 10, ApplicationPeer::APP_INIT_USER => 11, ApplicationPeer::APP_CUR_USER => 12, ApplicationPeer::APP_CREATE_DATE => 13, ApplicationPeer::APP_INIT_DATE => 14, ApplicationPeer::APP_FINISH_DATE => 15, ApplicationPeer::APP_UPDATE_DATE => 16, ApplicationPeer::APP_DATA => 17, ApplicationPeer::APP_PIN => 18, ApplicationPeer::APP_DURATION => 19, ApplicationPeer::APP_DELAY_DURATION => 20, ApplicationPeer::APP_DRIVE_FOLDER_UID => 21, ApplicationPeer::APP_ROUTING_DATA => 22, ),
|
BasePeer::TYPE_COLNAME => array (ApplicationPeer::APP_UID => 0, ApplicationPeer::APP_TITLE => 1, ApplicationPeer::APP_DESCRIPTION => 2, ApplicationPeer::APP_NUMBER => 3, ApplicationPeer::APP_PARENT => 4, ApplicationPeer::APP_STATUS => 5, ApplicationPeer::APP_STATUS_ID => 6, ApplicationPeer::PRO_UID => 7, ApplicationPeer::APP_PROC_STATUS => 8, ApplicationPeer::APP_PROC_CODE => 9, ApplicationPeer::APP_PARALLEL => 10, ApplicationPeer::APP_INIT_USER => 11, ApplicationPeer::APP_CUR_USER => 12, ApplicationPeer::APP_CREATE_DATE => 13, ApplicationPeer::APP_INIT_DATE => 14, ApplicationPeer::APP_FINISH_DATE => 15, ApplicationPeer::APP_UPDATE_DATE => 16, ApplicationPeer::APP_DATA => 17, ApplicationPeer::APP_PIN => 18, ApplicationPeer::APP_DURATION => 19, ApplicationPeer::APP_DELAY_DURATION => 20, ApplicationPeer::APP_DRIVE_FOLDER_UID => 21, ApplicationPeer::APP_ROUTING_DATA => 22, ApplicationPeer::PRO_ID => 23, ApplicationPeer::APP_INIT_USER_ID => 24, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'APP_TITLE' => 1, 'APP_DESCRIPTION' => 2, 'APP_NUMBER' => 3, 'APP_PARENT' => 4, 'APP_STATUS' => 5, 'APP_STATUS_ID' => 6, 'PRO_UID' => 7, 'APP_PROC_STATUS' => 8, 'APP_PROC_CODE' => 9, 'APP_PARALLEL' => 10, 'APP_INIT_USER' => 11, 'APP_CUR_USER' => 12, 'APP_CREATE_DATE' => 13, 'APP_INIT_DATE' => 14, 'APP_FINISH_DATE' => 15, 'APP_UPDATE_DATE' => 16, 'APP_DATA' => 17, 'APP_PIN' => 18, 'APP_DURATION' => 19, 'APP_DELAY_DURATION' => 20, 'APP_DRIVE_FOLDER_UID' => 21, 'APP_ROUTING_DATA' => 22, ),
|
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'APP_TITLE' => 1, 'APP_DESCRIPTION' => 2, 'APP_NUMBER' => 3, 'APP_PARENT' => 4, 'APP_STATUS' => 5, 'APP_STATUS_ID' => 6, 'PRO_UID' => 7, 'APP_PROC_STATUS' => 8, 'APP_PROC_CODE' => 9, 'APP_PARALLEL' => 10, 'APP_INIT_USER' => 11, 'APP_CUR_USER' => 12, 'APP_CREATE_DATE' => 13, 'APP_INIT_DATE' => 14, 'APP_FINISH_DATE' => 15, 'APP_UPDATE_DATE' => 16, 'APP_DATA' => 17, 'APP_PIN' => 18, 'APP_DURATION' => 19, 'APP_DELAY_DURATION' => 20, 'APP_DRIVE_FOLDER_UID' => 21, 'APP_ROUTING_DATA' => 22, 'PRO_ID' => 23, 'APP_INIT_USER_ID' => 24, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -274,6 +280,10 @@ abstract class BaseApplicationPeer
|
|||||||
|
|
||||||
$criteria->addSelectColumn(ApplicationPeer::APP_ROUTING_DATA);
|
$criteria->addSelectColumn(ApplicationPeer::APP_ROUTING_DATA);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(ApplicationPeer::PRO_ID);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(ApplicationPeer::APP_INIT_USER_ID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const COUNT = 'COUNT(APPLICATION.APP_UID)';
|
const COUNT = 'COUNT(APPLICATION.APP_UID)';
|
||||||
|
|||||||
@@ -44,6 +44,8 @@
|
|||||||
<column name="APP_DELAY_DURATION" type="DOUBLE" default="0"/>
|
<column name="APP_DELAY_DURATION" type="DOUBLE" default="0"/>
|
||||||
<column name="APP_DRIVE_FOLDER_UID" type="VARCHAR" size="128" default="" required="false"/>
|
<column name="APP_DRIVE_FOLDER_UID" type="VARCHAR" size="128" default="" required="false"/>
|
||||||
<column name="APP_ROUTING_DATA" type="LONGVARCHAR"/>
|
<column name="APP_ROUTING_DATA" type="LONGVARCHAR"/>
|
||||||
|
<column name="PRO_ID" type="INTEGER" required="true" default="0"/>
|
||||||
|
<column name="APP_INIT_USER_ID" type="INTEGER" required="true" default="0"/>
|
||||||
<validator column="APP_STATUS">
|
<validator column="APP_STATUS">
|
||||||
<rule name="validValues" value="DRAFT|TO_DO|PAUSED|COMPLETED|CANCELLED"
|
<rule name="validValues" value="DRAFT|TO_DO|PAUSED|COMPLETED|CANCELLED"
|
||||||
message="Please select a valid status."/>
|
message="Please select a valid status."/>
|
||||||
@@ -171,6 +173,7 @@
|
|||||||
<column name="PRO_ID" type="INTEGER" required="false" default="0"/>
|
<column name="PRO_ID" type="INTEGER" required="false" default="0"/>
|
||||||
<column name="TAS_ID" type="INTEGER" required="false" default="0"/>
|
<column name="TAS_ID" type="INTEGER" required="false" default="0"/>
|
||||||
<column name="DEL_TITLE" type="VARCHAR" size="999" required="true"/>
|
<column name="DEL_TITLE" type="VARCHAR" size="999" required="true"/>
|
||||||
|
<column name="DEL_THREAD_STATUS_ID" type="INTEGER" required="true" default="0"/>
|
||||||
<unique name="DELEGATION_ID">
|
<unique name="DELEGATION_ID">
|
||||||
<unique-column name="DELEGATION_ID"/>
|
<unique-column name="DELEGATION_ID"/>
|
||||||
</unique>
|
</unique>
|
||||||
@@ -390,6 +393,9 @@
|
|||||||
<column name="PRO_ID" type="INTEGER" required="false" default="0"/>
|
<column name="PRO_ID" type="INTEGER" required="false" default="0"/>
|
||||||
<column name="TAS_ID" type="INTEGER" required="false" default="0"/>
|
<column name="TAS_ID" type="INTEGER" required="false" default="0"/>
|
||||||
<column name="APP_NUMBER" type="INTEGER" required="false" default="0"/>
|
<column name="APP_NUMBER" type="INTEGER" required="false" default="0"/>
|
||||||
|
<unique name="APP_MSG_ID">
|
||||||
|
<unique-column name="APP_MSG_ID"/>
|
||||||
|
</unique>
|
||||||
<index name="indexAppMsgId">
|
<index name="indexAppMsgId">
|
||||||
<index-column name="APP_MSG_ID"/>
|
<index-column name="APP_MSG_ID"/>
|
||||||
</index>
|
</index>
|
||||||
@@ -466,7 +472,7 @@
|
|||||||
<parameter name="Collation" value="utf8_general_ci"/>
|
<parameter name="Collation" value="utf8_general_ci"/>
|
||||||
<parameter name="Checksum" value=""/>
|
<parameter name="Checksum" value=""/>
|
||||||
<parameter name="Create_options" value=""/>
|
<parameter name="Create_options" value=""/>
|
||||||
<parameter name="Comment" value="Stores the users, processes and/or applications configuratio"/>
|
<parameter name="Comment" value="Stores the users, processes and/or applications configuration"/>
|
||||||
</vendor>
|
</vendor>
|
||||||
<column name="CFG_UID" type="VARCHAR" size="32" required="true" primaryKey="true" default=""/>
|
<column name="CFG_UID" type="VARCHAR" size="32" required="true" primaryKey="true" default=""/>
|
||||||
<column name="OBJ_UID" type="VARCHAR" size="128" required="true" primaryKey="true" default=""/>
|
<column name="OBJ_UID" type="VARCHAR" size="128" required="true" primaryKey="true" default=""/>
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ CREATE TABLE `APPLICATION`
|
|||||||
`APP_DELAY_DURATION` DOUBLE default 0,
|
`APP_DELAY_DURATION` DOUBLE default 0,
|
||||||
`APP_DRIVE_FOLDER_UID` VARCHAR(128) default '',
|
`APP_DRIVE_FOLDER_UID` VARCHAR(128) default '',
|
||||||
`APP_ROUTING_DATA` MEDIUMTEXT,
|
`APP_ROUTING_DATA` MEDIUMTEXT,
|
||||||
|
`PRO_ID` INTEGER default 0 NOT NULL,
|
||||||
|
`APP_INIT_USER_ID` INTEGER default 0 NOT NULL,
|
||||||
PRIMARY KEY (`APP_UID`),
|
PRIMARY KEY (`APP_UID`),
|
||||||
UNIQUE KEY `INDEX_APP_NUMBER` (`APP_NUMBER`),
|
UNIQUE KEY `INDEX_APP_NUMBER` (`APP_NUMBER`),
|
||||||
KEY `indexApp`(`PRO_UID`, `APP_STATUS`, `APP_UID`),
|
KEY `indexApp`(`PRO_UID`, `APP_STATUS`, `APP_UID`),
|
||||||
@@ -95,6 +97,7 @@ CREATE TABLE `APP_DELEGATION`
|
|||||||
`PRO_ID` INTEGER default 0,
|
`PRO_ID` INTEGER default 0,
|
||||||
`TAS_ID` INTEGER default 0,
|
`TAS_ID` INTEGER default 0,
|
||||||
`DEL_TITLE` VARCHAR(999) NOT NULL,
|
`DEL_TITLE` VARCHAR(999) NOT NULL,
|
||||||
|
`DEL_THREAD_STATUS_ID` INTEGER default 0 NOT NULL,
|
||||||
PRIMARY KEY (`APP_UID`,`DEL_INDEX`),
|
PRIMARY KEY (`APP_UID`,`DEL_INDEX`),
|
||||||
UNIQUE KEY `DELEGATION_ID` (`DELEGATION_ID`),
|
UNIQUE KEY `DELEGATION_ID` (`DELEGATION_ID`),
|
||||||
KEY `INDEX_APP_NUMBER`(`APP_NUMBER`),
|
KEY `INDEX_APP_NUMBER`(`APP_NUMBER`),
|
||||||
@@ -152,7 +155,7 @@ DROP TABLE IF EXISTS `APP_MESSAGE`;
|
|||||||
CREATE TABLE `APP_MESSAGE`
|
CREATE TABLE `APP_MESSAGE`
|
||||||
(
|
(
|
||||||
`APP_MSG_ID` INTEGER NOT NULL AUTO_INCREMENT,
|
`APP_MSG_ID` INTEGER NOT NULL AUTO_INCREMENT,
|
||||||
`APP_MSG_UID` VARCHAR(32) NOT NULL,
|
`APP_MSG_UID` VARCHAR(32) NOT NULL,
|
||||||
`MSG_UID` VARCHAR(32),
|
`MSG_UID` VARCHAR(32),
|
||||||
`APP_UID` VARCHAR(32) default '' NOT NULL,
|
`APP_UID` VARCHAR(32) default '' NOT NULL,
|
||||||
`DEL_INDEX` INTEGER default 0 NOT NULL,
|
`DEL_INDEX` INTEGER default 0 NOT NULL,
|
||||||
@@ -176,7 +179,8 @@ CREATE TABLE `APP_MESSAGE`
|
|||||||
`TAS_ID` INTEGER default 0,
|
`TAS_ID` INTEGER default 0,
|
||||||
`APP_NUMBER` INTEGER default 0,
|
`APP_NUMBER` INTEGER default 0,
|
||||||
PRIMARY KEY (`APP_MSG_UID`),
|
PRIMARY KEY (`APP_MSG_UID`),
|
||||||
UNIQUE KEY `indexAppMsgId` (`APP_MSG_ID`),
|
UNIQUE KEY `APP_MSG_ID` (`APP_MSG_ID`),
|
||||||
|
KEY `indexAppMsgId`(`APP_MSG_ID`),
|
||||||
KEY `indexForAppUid`(`APP_UID`),
|
KEY `indexForAppUid`(`APP_UID`),
|
||||||
KEY `indexForMsgStatus`(`APP_MSG_STATUS`),
|
KEY `indexForMsgStatus`(`APP_MSG_STATUS`),
|
||||||
KEY `INDEX_PRO_ID`(`PRO_ID`),
|
KEY `INDEX_PRO_ID`(`PRO_ID`),
|
||||||
@@ -185,7 +189,7 @@ CREATE TABLE `APP_MESSAGE`
|
|||||||
KEY `INDEX_APP_MSG_TYPE_ID`(`APP_MSG_TYPE_ID`),
|
KEY `INDEX_APP_MSG_TYPE_ID`(`APP_MSG_TYPE_ID`),
|
||||||
KEY `INDEX_APP_MSG_STATUS_ID`(`APP_MSG_STATUS_ID`),
|
KEY `INDEX_APP_MSG_STATUS_ID`(`APP_MSG_STATUS_ID`),
|
||||||
KEY `indexAppUidSendDate`(`APP_UID`, `APP_MSG_SEND_DATE`),
|
KEY `indexAppUidSendDate`(`APP_UID`, `APP_MSG_SEND_DATE`),
|
||||||
KEY `indexAppMsgDate`(`APP_MSG_DATE`)
|
KEY `indexAppMsgDate`(`APP_MSG_DATE`)
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Messages in an Application';
|
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Messages in an Application';
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#-- APP_OWNER
|
#-- APP_OWNER
|
||||||
|
|||||||
Reference in New Issue
Block a user