BaseCcTransQuery.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <?php
  2. /**
  3. * Base class that represents a query for the 'cc_trans' table.
  4. *
  5. *
  6. *
  7. * @method CcTransQuery orderById($order = Criteria::ASC) Order by the id column
  8. * @method CcTransQuery orderByTrtok($order = Criteria::ASC) Order by the trtok column
  9. * @method CcTransQuery orderByDirection($order = Criteria::ASC) Order by the direction column
  10. * @method CcTransQuery orderByState($order = Criteria::ASC) Order by the state column
  11. * @method CcTransQuery orderByTrtype($order = Criteria::ASC) Order by the trtype column
  12. * @method CcTransQuery orderByLock($order = Criteria::ASC) Order by the lock column
  13. * @method CcTransQuery orderByTarget($order = Criteria::ASC) Order by the target column
  14. * @method CcTransQuery orderByRtrtok($order = Criteria::ASC) Order by the rtrtok column
  15. * @method CcTransQuery orderByMdtrtok($order = Criteria::ASC) Order by the mdtrtok column
  16. * @method CcTransQuery orderByGunid($order = Criteria::ASC) Order by the gunid column
  17. * @method CcTransQuery orderByPdtoken($order = Criteria::ASC) Order by the pdtoken column
  18. * @method CcTransQuery orderByUrl($order = Criteria::ASC) Order by the url column
  19. * @method CcTransQuery orderByLocalfile($order = Criteria::ASC) Order by the localfile column
  20. * @method CcTransQuery orderByFname($order = Criteria::ASC) Order by the fname column
  21. * @method CcTransQuery orderByTitle($order = Criteria::ASC) Order by the title column
  22. * @method CcTransQuery orderByExpectedsum($order = Criteria::ASC) Order by the expectedsum column
  23. * @method CcTransQuery orderByRealsum($order = Criteria::ASC) Order by the realsum column
  24. * @method CcTransQuery orderByExpectedsize($order = Criteria::ASC) Order by the expectedsize column
  25. * @method CcTransQuery orderByRealsize($order = Criteria::ASC) Order by the realsize column
  26. * @method CcTransQuery orderByUid($order = Criteria::ASC) Order by the uid column
  27. * @method CcTransQuery orderByErrmsg($order = Criteria::ASC) Order by the errmsg column
  28. * @method CcTransQuery orderByJobpid($order = Criteria::ASC) Order by the jobpid column
  29. * @method CcTransQuery orderByStart($order = Criteria::ASC) Order by the start column
  30. * @method CcTransQuery orderByTs($order = Criteria::ASC) Order by the ts column
  31. *
  32. * @method CcTransQuery groupById() Group by the id column
  33. * @method CcTransQuery groupByTrtok() Group by the trtok column
  34. * @method CcTransQuery groupByDirection() Group by the direction column
  35. * @method CcTransQuery groupByState() Group by the state column
  36. * @method CcTransQuery groupByTrtype() Group by the trtype column
  37. * @method CcTransQuery groupByLock() Group by the lock column
  38. * @method CcTransQuery groupByTarget() Group by the target column
  39. * @method CcTransQuery groupByRtrtok() Group by the rtrtok column
  40. * @method CcTransQuery groupByMdtrtok() Group by the mdtrtok column
  41. * @method CcTransQuery groupByGunid() Group by the gunid column
  42. * @method CcTransQuery groupByPdtoken() Group by the pdtoken column
  43. * @method CcTransQuery groupByUrl() Group by the url column
  44. * @method CcTransQuery groupByLocalfile() Group by the localfile column
  45. * @method CcTransQuery groupByFname() Group by the fname column
  46. * @method CcTransQuery groupByTitle() Group by the title column
  47. * @method CcTransQuery groupByExpectedsum() Group by the expectedsum column
  48. * @method CcTransQuery groupByRealsum() Group by the realsum column
  49. * @method CcTransQuery groupByExpectedsize() Group by the expectedsize column
  50. * @method CcTransQuery groupByRealsize() Group by the realsize column
  51. * @method CcTransQuery groupByUid() Group by the uid column
  52. * @method CcTransQuery groupByErrmsg() Group by the errmsg column
  53. * @method CcTransQuery groupByJobpid() Group by the jobpid column
  54. * @method CcTransQuery groupByStart() Group by the start column
  55. * @method CcTransQuery groupByTs() Group by the ts column
  56. *
  57. * @method CcTransQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
  58. * @method CcTransQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
  59. * @method CcTransQuery innerJoin($relation) Adds a INNER JOIN clause to the query
  60. *
  61. * @method CcTrans findOne(PropelPDO $con = null) Return the first CcTrans matching the query
  62. * @method CcTrans findOneOrCreate(PropelPDO $con = null) Return the first CcTrans matching the query, or a new CcTrans object populated from the query conditions when no match is found
  63. *
  64. * @method CcTrans findOneById(int $id) Return the first CcTrans filtered by the id column
  65. * @method CcTrans findOneByTrtok(string $trtok) Return the first CcTrans filtered by the trtok column
  66. * @method CcTrans findOneByDirection(string $direction) Return the first CcTrans filtered by the direction column
  67. * @method CcTrans findOneByState(string $state) Return the first CcTrans filtered by the state column
  68. * @method CcTrans findOneByTrtype(string $trtype) Return the first CcTrans filtered by the trtype column
  69. * @method CcTrans findOneByLock(string $lock) Return the first CcTrans filtered by the lock column
  70. * @method CcTrans findOneByTarget(string $target) Return the first CcTrans filtered by the target column
  71. * @method CcTrans findOneByRtrtok(string $rtrtok) Return the first CcTrans filtered by the rtrtok column
  72. * @method CcTrans findOneByMdtrtok(string $mdtrtok) Return the first CcTrans filtered by the mdtrtok column
  73. * @method CcTrans findOneByGunid(string $gunid) Return the first CcTrans filtered by the gunid column
  74. * @method CcTrans findOneByPdtoken(string $pdtoken) Return the first CcTrans filtered by the pdtoken column
  75. * @method CcTrans findOneByUrl(string $url) Return the first CcTrans filtered by the url column
  76. * @method CcTrans findOneByLocalfile(string $localfile) Return the first CcTrans filtered by the localfile column
  77. * @method CcTrans findOneByFname(string $fname) Return the first CcTrans filtered by the fname column
  78. * @method CcTrans findOneByTitle(string $title) Return the first CcTrans filtered by the title column
  79. * @method CcTrans findOneByExpectedsum(string $expectedsum) Return the first CcTrans filtered by the expectedsum column
  80. * @method CcTrans findOneByRealsum(string $realsum) Return the first CcTrans filtered by the realsum column
  81. * @method CcTrans findOneByExpectedsize(int $expectedsize) Return the first CcTrans filtered by the expectedsize column
  82. * @method CcTrans findOneByRealsize(int $realsize) Return the first CcTrans filtered by the realsize column
  83. * @method CcTrans findOneByUid(int $uid) Return the first CcTrans filtered by the uid column
  84. * @method CcTrans findOneByErrmsg(string $errmsg) Return the first CcTrans filtered by the errmsg column
  85. * @method CcTrans findOneByJobpid(int $jobpid) Return the first CcTrans filtered by the jobpid column
  86. * @method CcTrans findOneByStart(string $start) Return the first CcTrans filtered by the start column
  87. * @method CcTrans findOneByTs(string $ts) Return the first CcTrans filtered by the ts column
  88. *
  89. * @method array findById(int $id) Return CcTrans objects filtered by the id column
  90. * @method array findByTrtok(string $trtok) Return CcTrans objects filtered by the trtok column
  91. * @method array findByDirection(string $direction) Return CcTrans objects filtered by the direction column
  92. * @method array findByState(string $state) Return CcTrans objects filtered by the state column
  93. * @method array findByTrtype(string $trtype) Return CcTrans objects filtered by the trtype column
  94. * @method array findByLock(string $lock) Return CcTrans objects filtered by the lock column
  95. * @method array findByTarget(string $target) Return CcTrans objects filtered by the target column
  96. * @method array findByRtrtok(string $rtrtok) Return CcTrans objects filtered by the rtrtok column
  97. * @method array findByMdtrtok(string $mdtrtok) Return CcTrans objects filtered by the mdtrtok column
  98. * @method array findByGunid(string $gunid) Return CcTrans objects filtered by the gunid column
  99. * @method array findByPdtoken(string $pdtoken) Return CcTrans objects filtered by the pdtoken column
  100. * @method array findByUrl(string $url) Return CcTrans objects filtered by the url column
  101. * @method array findByLocalfile(string $localfile) Return CcTrans objects filtered by the localfile column
  102. * @method array findByFname(string $fname) Return CcTrans objects filtered by the fname column
  103. * @method array findByTitle(string $title) Return CcTrans objects filtered by the title column
  104. * @method array findByExpectedsum(string $expectedsum) Return CcTrans objects filtered by the expectedsum column
  105. * @method array findByRealsum(string $realsum) Return CcTrans objects filtered by the realsum column
  106. * @method array findByExpectedsize(int $expectedsize) Return CcTrans objects filtered by the expectedsize column
  107. * @method array findByRealsize(int $realsize) Return CcTrans objects filtered by the realsize column
  108. * @method array findByUid(int $uid) Return CcTrans objects filtered by the uid column
  109. * @method array findByErrmsg(string $errmsg) Return CcTrans objects filtered by the errmsg column
  110. * @method array findByJobpid(int $jobpid) Return CcTrans objects filtered by the jobpid column
  111. * @method array findByStart(string $start) Return CcTrans objects filtered by the start column
  112. * @method array findByTs(string $ts) Return CcTrans objects filtered by the ts column
  113. *
  114. * @package propel.generator.airtime.om
  115. */
  116. abstract class BaseCcTransQuery extends ModelCriteria
  117. {
  118. /**
  119. * Initializes internal state of BaseCcTransQuery object.
  120. *
  121. * @param string $dbName The dabase name
  122. * @param string $modelName The phpName of a model, e.g. 'Book'
  123. * @param string $modelAlias The alias for the model in this query, e.g. 'b'
  124. */
  125. public function __construct($dbName = 'airtime', $modelName = 'CcTrans', $modelAlias = null)
  126. {
  127. parent::__construct($dbName, $modelName, $modelAlias);
  128. }
  129. /**
  130. * Returns a new CcTransQuery object.
  131. *
  132. * @param string $modelAlias The alias of a model in the query
  133. * @param Criteria $criteria Optional Criteria to build the query from
  134. *
  135. * @return CcTransQuery
  136. */
  137. public static function create($modelAlias = null, $criteria = null)
  138. {
  139. if ($criteria instanceof CcTransQuery) {
  140. return $criteria;
  141. }
  142. $query = new CcTransQuery();
  143. if (null !== $modelAlias) {
  144. $query->setModelAlias($modelAlias);
  145. }
  146. if ($criteria instanceof Criteria) {
  147. $query->mergeWith($criteria);
  148. }
  149. return $query;
  150. }
  151. /**
  152. * Find object by primary key
  153. * Use instance pooling to avoid a database query if the object exists
  154. * <code>
  155. * $obj = $c->findPk(12, $con);
  156. * </code>
  157. * @param mixed $key Primary key to use for the query
  158. * @param PropelPDO $con an optional connection object
  159. *
  160. * @return CcTrans|array|mixed the result, formatted by the current formatter
  161. */
  162. public function findPk($key, $con = null)
  163. {
  164. if ((null !== ($obj = CcTransPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {
  165. // the object is alredy in the instance pool
  166. return $obj;
  167. } else {
  168. // the object has not been requested yet, or the formatter is not an object formatter
  169. $criteria = $this->isKeepQuery() ? clone $this : $this;
  170. $stmt = $criteria
  171. ->filterByPrimaryKey($key)
  172. ->getSelectStatement($con);
  173. return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
  174. }
  175. }
  176. /**
  177. * Find objects by primary key
  178. * <code>
  179. * $objs = $c->findPks(array(12, 56, 832), $con);
  180. * </code>
  181. * @param array $keys Primary keys to use for the query
  182. * @param PropelPDO $con an optional connection object
  183. *
  184. * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter
  185. */
  186. public function findPks($keys, $con = null)
  187. {
  188. $criteria = $this->isKeepQuery() ? clone $this : $this;
  189. return $this
  190. ->filterByPrimaryKeys($keys)
  191. ->find($con);
  192. }
  193. /**
  194. * Filter the query by primary key
  195. *
  196. * @param mixed $key Primary key to use for the query
  197. *
  198. * @return CcTransQuery The current query, for fluid interface
  199. */
  200. public function filterByPrimaryKey($key)
  201. {
  202. return $this->addUsingAlias(CcTransPeer::ID, $key, Criteria::EQUAL);
  203. }
  204. /**
  205. * Filter the query by a list of primary keys
  206. *
  207. * @param array $keys The list of primary key to use for the query
  208. *
  209. * @return CcTransQuery The current query, for fluid interface
  210. */
  211. public function filterByPrimaryKeys($keys)
  212. {
  213. return $this->addUsingAlias(CcTransPeer::ID, $keys, Criteria::IN);
  214. }
  215. /**
  216. * Filter the query on the id column
  217. *
  218. * @param int|array $id The value to use as filter.
  219. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  220. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  221. *
  222. * @return CcTransQuery The current query, for fluid interface
  223. */
  224. public function filterById($id = null, $comparison = null)
  225. {
  226. if (is_array($id) && null === $comparison) {
  227. $comparison = Criteria::IN;
  228. }
  229. return $this->addUsingAlias(CcTransPeer::ID, $id, $comparison);
  230. }
  231. /**
  232. * Filter the query on the trtok column
  233. *
  234. * @param string $trtok The value to use as filter.
  235. * Accepts wildcards (* and % trigger a LIKE)
  236. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  237. *
  238. * @return CcTransQuery The current query, for fluid interface
  239. */
  240. public function filterByTrtok($trtok = null, $comparison = null)
  241. {
  242. if (null === $comparison) {
  243. if (is_array($trtok)) {
  244. $comparison = Criteria::IN;
  245. } elseif (preg_match('/[\%\*]/', $trtok)) {
  246. $trtok = str_replace('*', '%', $trtok);
  247. $comparison = Criteria::LIKE;
  248. }
  249. }
  250. return $this->addUsingAlias(CcTransPeer::TRTOK, $trtok, $comparison);
  251. }
  252. /**
  253. * Filter the query on the direction column
  254. *
  255. * @param string $direction The value to use as filter.
  256. * Accepts wildcards (* and % trigger a LIKE)
  257. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  258. *
  259. * @return CcTransQuery The current query, for fluid interface
  260. */
  261. public function filterByDirection($direction = null, $comparison = null)
  262. {
  263. if (null === $comparison) {
  264. if (is_array($direction)) {
  265. $comparison = Criteria::IN;
  266. } elseif (preg_match('/[\%\*]/', $direction)) {
  267. $direction = str_replace('*', '%', $direction);
  268. $comparison = Criteria::LIKE;
  269. }
  270. }
  271. return $this->addUsingAlias(CcTransPeer::DIRECTION, $direction, $comparison);
  272. }
  273. /**
  274. * Filter the query on the state column
  275. *
  276. * @param string $state The value to use as filter.
  277. * Accepts wildcards (* and % trigger a LIKE)
  278. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  279. *
  280. * @return CcTransQuery The current query, for fluid interface
  281. */
  282. public function filterByState($state = null, $comparison = null)
  283. {
  284. if (null === $comparison) {
  285. if (is_array($state)) {
  286. $comparison = Criteria::IN;
  287. } elseif (preg_match('/[\%\*]/', $state)) {
  288. $state = str_replace('*', '%', $state);
  289. $comparison = Criteria::LIKE;
  290. }
  291. }
  292. return $this->addUsingAlias(CcTransPeer::STATE, $state, $comparison);
  293. }
  294. /**
  295. * Filter the query on the trtype column
  296. *
  297. * @param string $trtype The value to use as filter.
  298. * Accepts wildcards (* and % trigger a LIKE)
  299. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  300. *
  301. * @return CcTransQuery The current query, for fluid interface
  302. */
  303. public function filterByTrtype($trtype = null, $comparison = null)
  304. {
  305. if (null === $comparison) {
  306. if (is_array($trtype)) {
  307. $comparison = Criteria::IN;
  308. } elseif (preg_match('/[\%\*]/', $trtype)) {
  309. $trtype = str_replace('*', '%', $trtype);
  310. $comparison = Criteria::LIKE;
  311. }
  312. }
  313. return $this->addUsingAlias(CcTransPeer::TRTYPE, $trtype, $comparison);
  314. }
  315. /**
  316. * Filter the query on the lock column
  317. *
  318. * @param string $lock The value to use as filter.
  319. * Accepts wildcards (* and % trigger a LIKE)
  320. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  321. *
  322. * @return CcTransQuery The current query, for fluid interface
  323. */
  324. public function filterByLock($lock = null, $comparison = null)
  325. {
  326. if (null === $comparison) {
  327. if (is_array($lock)) {
  328. $comparison = Criteria::IN;
  329. } elseif (preg_match('/[\%\*]/', $lock)) {
  330. $lock = str_replace('*', '%', $lock);
  331. $comparison = Criteria::LIKE;
  332. }
  333. }
  334. return $this->addUsingAlias(CcTransPeer::LOCK, $lock, $comparison);
  335. }
  336. /**
  337. * Filter the query on the target column
  338. *
  339. * @param string $target The value to use as filter.
  340. * Accepts wildcards (* and % trigger a LIKE)
  341. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  342. *
  343. * @return CcTransQuery The current query, for fluid interface
  344. */
  345. public function filterByTarget($target = null, $comparison = null)
  346. {
  347. if (null === $comparison) {
  348. if (is_array($target)) {
  349. $comparison = Criteria::IN;
  350. } elseif (preg_match('/[\%\*]/', $target)) {
  351. $target = str_replace('*', '%', $target);
  352. $comparison = Criteria::LIKE;
  353. }
  354. }
  355. return $this->addUsingAlias(CcTransPeer::TARGET, $target, $comparison);
  356. }
  357. /**
  358. * Filter the query on the rtrtok column
  359. *
  360. * @param string $rtrtok The value to use as filter.
  361. * Accepts wildcards (* and % trigger a LIKE)
  362. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  363. *
  364. * @return CcTransQuery The current query, for fluid interface
  365. */
  366. public function filterByRtrtok($rtrtok = null, $comparison = null)
  367. {
  368. if (null === $comparison) {
  369. if (is_array($rtrtok)) {
  370. $comparison = Criteria::IN;
  371. } elseif (preg_match('/[\%\*]/', $rtrtok)) {
  372. $rtrtok = str_replace('*', '%', $rtrtok);
  373. $comparison = Criteria::LIKE;
  374. }
  375. }
  376. return $this->addUsingAlias(CcTransPeer::RTRTOK, $rtrtok, $comparison);
  377. }
  378. /**
  379. * Filter the query on the mdtrtok column
  380. *
  381. * @param string $mdtrtok The value to use as filter.
  382. * Accepts wildcards (* and % trigger a LIKE)
  383. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  384. *
  385. * @return CcTransQuery The current query, for fluid interface
  386. */
  387. public function filterByMdtrtok($mdtrtok = null, $comparison = null)
  388. {
  389. if (null === $comparison) {
  390. if (is_array($mdtrtok)) {
  391. $comparison = Criteria::IN;
  392. } elseif (preg_match('/[\%\*]/', $mdtrtok)) {
  393. $mdtrtok = str_replace('*', '%', $mdtrtok);
  394. $comparison = Criteria::LIKE;
  395. }
  396. }
  397. return $this->addUsingAlias(CcTransPeer::MDTRTOK, $mdtrtok, $comparison);
  398. }
  399. /**
  400. * Filter the query on the gunid column
  401. *
  402. * @param string $gunid The value to use as filter.
  403. * Accepts wildcards (* and % trigger a LIKE)
  404. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  405. *
  406. * @return CcTransQuery The current query, for fluid interface
  407. */
  408. public function filterByGunid($gunid = null, $comparison = null)
  409. {
  410. if (null === $comparison) {
  411. if (is_array($gunid)) {
  412. $comparison = Criteria::IN;
  413. } elseif (preg_match('/[\%\*]/', $gunid)) {
  414. $gunid = str_replace('*', '%', $gunid);
  415. $comparison = Criteria::LIKE;
  416. }
  417. }
  418. return $this->addUsingAlias(CcTransPeer::GUNID, $gunid, $comparison);
  419. }
  420. /**
  421. * Filter the query on the pdtoken column
  422. *
  423. * @param string|array $pdtoken The value to use as filter.
  424. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  425. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  426. *
  427. * @return CcTransQuery The current query, for fluid interface
  428. */
  429. public function filterByPdtoken($pdtoken = null, $comparison = null)
  430. {
  431. if (is_array($pdtoken)) {
  432. $useMinMax = false;
  433. if (isset($pdtoken['min'])) {
  434. $this->addUsingAlias(CcTransPeer::PDTOKEN, $pdtoken['min'], Criteria::GREATER_EQUAL);
  435. $useMinMax = true;
  436. }
  437. if (isset($pdtoken['max'])) {
  438. $this->addUsingAlias(CcTransPeer::PDTOKEN, $pdtoken['max'], Criteria::LESS_EQUAL);
  439. $useMinMax = true;
  440. }
  441. if ($useMinMax) {
  442. return $this;
  443. }
  444. if (null === $comparison) {
  445. $comparison = Criteria::IN;
  446. }
  447. }
  448. return $this->addUsingAlias(CcTransPeer::PDTOKEN, $pdtoken, $comparison);
  449. }
  450. /**
  451. * Filter the query on the url column
  452. *
  453. * @param string $url The value to use as filter.
  454. * Accepts wildcards (* and % trigger a LIKE)
  455. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  456. *
  457. * @return CcTransQuery The current query, for fluid interface
  458. */
  459. public function filterByUrl($url = null, $comparison = null)
  460. {
  461. if (null === $comparison) {
  462. if (is_array($url)) {
  463. $comparison = Criteria::IN;
  464. } elseif (preg_match('/[\%\*]/', $url)) {
  465. $url = str_replace('*', '%', $url);
  466. $comparison = Criteria::LIKE;
  467. }
  468. }
  469. return $this->addUsingAlias(CcTransPeer::URL, $url, $comparison);
  470. }
  471. /**
  472. * Filter the query on the localfile column
  473. *
  474. * @param string $localfile The value to use as filter.
  475. * Accepts wildcards (* and % trigger a LIKE)
  476. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  477. *
  478. * @return CcTransQuery The current query, for fluid interface
  479. */
  480. public function filterByLocalfile($localfile = null, $comparison = null)
  481. {
  482. if (null === $comparison) {
  483. if (is_array($localfile)) {
  484. $comparison = Criteria::IN;
  485. } elseif (preg_match('/[\%\*]/', $localfile)) {
  486. $localfile = str_replace('*', '%', $localfile);
  487. $comparison = Criteria::LIKE;
  488. }
  489. }
  490. return $this->addUsingAlias(CcTransPeer::LOCALFILE, $localfile, $comparison);
  491. }
  492. /**
  493. * Filter the query on the fname column
  494. *
  495. * @param string $fname The value to use as filter.
  496. * Accepts wildcards (* and % trigger a LIKE)
  497. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  498. *
  499. * @return CcTransQuery The current query, for fluid interface
  500. */
  501. public function filterByFname($fname = null, $comparison = null)
  502. {
  503. if (null === $comparison) {
  504. if (is_array($fname)) {
  505. $comparison = Criteria::IN;
  506. } elseif (preg_match('/[\%\*]/', $fname)) {
  507. $fname = str_replace('*', '%', $fname);
  508. $comparison = Criteria::LIKE;
  509. }
  510. }
  511. return $this->addUsingAlias(CcTransPeer::FNAME, $fname, $comparison);
  512. }
  513. /**
  514. * Filter the query on the title column
  515. *
  516. * @param string $title The value to use as filter.
  517. * Accepts wildcards (* and % trigger a LIKE)
  518. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  519. *
  520. * @return CcTransQuery The current query, for fluid interface
  521. */
  522. public function filterByTitle($title = null, $comparison = null)
  523. {
  524. if (null === $comparison) {
  525. if (is_array($title)) {
  526. $comparison = Criteria::IN;
  527. } elseif (preg_match('/[\%\*]/', $title)) {
  528. $title = str_replace('*', '%', $title);
  529. $comparison = Criteria::LIKE;
  530. }
  531. }
  532. return $this->addUsingAlias(CcTransPeer::TITLE, $title, $comparison);
  533. }
  534. /**
  535. * Filter the query on the expectedsum column
  536. *
  537. * @param string $expectedsum The value to use as filter.
  538. * Accepts wildcards (* and % trigger a LIKE)
  539. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  540. *
  541. * @return CcTransQuery The current query, for fluid interface
  542. */
  543. public function filterByExpectedsum($expectedsum = null, $comparison = null)
  544. {
  545. if (null === $comparison) {
  546. if (is_array($expectedsum)) {
  547. $comparison = Criteria::IN;
  548. } elseif (preg_match('/[\%\*]/', $expectedsum)) {
  549. $expectedsum = str_replace('*', '%', $expectedsum);
  550. $comparison = Criteria::LIKE;
  551. }
  552. }
  553. return $this->addUsingAlias(CcTransPeer::EXPECTEDSUM, $expectedsum, $comparison);
  554. }
  555. /**
  556. * Filter the query on the realsum column
  557. *
  558. * @param string $realsum The value to use as filter.
  559. * Accepts wildcards (* and % trigger a LIKE)
  560. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  561. *
  562. * @return CcTransQuery The current query, for fluid interface
  563. */
  564. public function filterByRealsum($realsum = null, $comparison = null)
  565. {
  566. if (null === $comparison) {
  567. if (is_array($realsum)) {
  568. $comparison = Criteria::IN;
  569. } elseif (preg_match('/[\%\*]/', $realsum)) {
  570. $realsum = str_replace('*', '%', $realsum);
  571. $comparison = Criteria::LIKE;
  572. }
  573. }
  574. return $this->addUsingAlias(CcTransPeer::REALSUM, $realsum, $comparison);
  575. }
  576. /**
  577. * Filter the query on the expectedsize column
  578. *
  579. * @param int|array $expectedsize The value to use as filter.
  580. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  581. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  582. *
  583. * @return CcTransQuery The current query, for fluid interface
  584. */
  585. public function filterByExpectedsize($expectedsize = null, $comparison = null)
  586. {
  587. if (is_array($expectedsize)) {
  588. $useMinMax = false;
  589. if (isset($expectedsize['min'])) {
  590. $this->addUsingAlias(CcTransPeer::EXPECTEDSIZE, $expectedsize['min'], Criteria::GREATER_EQUAL);
  591. $useMinMax = true;
  592. }
  593. if (isset($expectedsize['max'])) {
  594. $this->addUsingAlias(CcTransPeer::EXPECTEDSIZE, $expectedsize['max'], Criteria::LESS_EQUAL);
  595. $useMinMax = true;
  596. }
  597. if ($useMinMax) {
  598. return $this;
  599. }
  600. if (null === $comparison) {
  601. $comparison = Criteria::IN;
  602. }
  603. }
  604. return $this->addUsingAlias(CcTransPeer::EXPECTEDSIZE, $expectedsize, $comparison);
  605. }
  606. /**
  607. * Filter the query on the realsize column
  608. *
  609. * @param int|array $realsize The value to use as filter.
  610. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  611. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  612. *
  613. * @return CcTransQuery The current query, for fluid interface
  614. */
  615. public function filterByRealsize($realsize = null, $comparison = null)
  616. {
  617. if (is_array($realsize)) {
  618. $useMinMax = false;
  619. if (isset($realsize['min'])) {
  620. $this->addUsingAlias(CcTransPeer::REALSIZE, $realsize['min'], Criteria::GREATER_EQUAL);
  621. $useMinMax = true;
  622. }
  623. if (isset($realsize['max'])) {
  624. $this->addUsingAlias(CcTransPeer::REALSIZE, $realsize['max'], Criteria::LESS_EQUAL);
  625. $useMinMax = true;
  626. }
  627. if ($useMinMax) {
  628. return $this;
  629. }
  630. if (null === $comparison) {
  631. $comparison = Criteria::IN;
  632. }
  633. }
  634. return $this->addUsingAlias(CcTransPeer::REALSIZE, $realsize, $comparison);
  635. }
  636. /**
  637. * Filter the query on the uid column
  638. *
  639. * @param int|array $uid The value to use as filter.
  640. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  641. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  642. *
  643. * @return CcTransQuery The current query, for fluid interface
  644. */
  645. public function filterByUid($uid = null, $comparison = null)
  646. {
  647. if (is_array($uid)) {
  648. $useMinMax = false;
  649. if (isset($uid['min'])) {
  650. $this->addUsingAlias(CcTransPeer::UID, $uid['min'], Criteria::GREATER_EQUAL);
  651. $useMinMax = true;
  652. }
  653. if (isset($uid['max'])) {
  654. $this->addUsingAlias(CcTransPeer::UID, $uid['max'], Criteria::LESS_EQUAL);
  655. $useMinMax = true;
  656. }
  657. if ($useMinMax) {
  658. return $this;
  659. }
  660. if (null === $comparison) {
  661. $comparison = Criteria::IN;
  662. }
  663. }
  664. return $this->addUsingAlias(CcTransPeer::UID, $uid, $comparison);
  665. }
  666. /**
  667. * Filter the query on the errmsg column
  668. *
  669. * @param string $errmsg The value to use as filter.
  670. * Accepts wildcards (* and % trigger a LIKE)
  671. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  672. *
  673. * @return CcTransQuery The current query, for fluid interface
  674. */
  675. public function filterByErrmsg($errmsg = null, $comparison = null)
  676. {
  677. if (null === $comparison) {
  678. if (is_array($errmsg)) {
  679. $comparison = Criteria::IN;
  680. } elseif (preg_match('/[\%\*]/', $errmsg)) {
  681. $errmsg = str_replace('*', '%', $errmsg);
  682. $comparison = Criteria::LIKE;
  683. }
  684. }
  685. return $this->addUsingAlias(CcTransPeer::ERRMSG, $errmsg, $comparison);
  686. }
  687. /**
  688. * Filter the query on the jobpid column
  689. *
  690. * @param int|array $jobpid The value to use as filter.
  691. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  692. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  693. *
  694. * @return CcTransQuery The current query, for fluid interface
  695. */
  696. public function filterByJobpid($jobpid = null, $comparison = null)
  697. {
  698. if (is_array($jobpid)) {
  699. $useMinMax = false;
  700. if (isset($jobpid['min'])) {
  701. $this->addUsingAlias(CcTransPeer::JOBPID, $jobpid['min'], Criteria::GREATER_EQUAL);
  702. $useMinMax = true;
  703. }
  704. if (isset($jobpid['max'])) {
  705. $this->addUsingAlias(CcTransPeer::JOBPID, $jobpid['max'], Criteria::LESS_EQUAL);
  706. $useMinMax = true;
  707. }
  708. if ($useMinMax) {
  709. return $this;
  710. }
  711. if (null === $comparison) {
  712. $comparison = Criteria::IN;
  713. }
  714. }
  715. return $this->addUsingAlias(CcTransPeer::JOBPID, $jobpid, $comparison);
  716. }
  717. /**
  718. * Filter the query on the start column
  719. *
  720. * @param string|array $start The value to use as filter.
  721. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  722. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  723. *
  724. * @return CcTransQuery The current query, for fluid interface
  725. */
  726. public function filterByStart($start = null, $comparison = null)
  727. {
  728. if (is_array($start)) {
  729. $useMinMax = false;
  730. if (isset($start['min'])) {
  731. $this->addUsingAlias(CcTransPeer::START, $start['min'], Criteria::GREATER_EQUAL);
  732. $useMinMax = true;
  733. }
  734. if (isset($start['max'])) {
  735. $this->addUsingAlias(CcTransPeer::START, $start['max'], Criteria::LESS_EQUAL);
  736. $useMinMax = true;
  737. }
  738. if ($useMinMax) {
  739. return $this;
  740. }
  741. if (null === $comparison) {
  742. $comparison = Criteria::IN;
  743. }
  744. }
  745. return $this->addUsingAlias(CcTransPeer::START, $start, $comparison);
  746. }
  747. /**
  748. * Filter the query on the ts column
  749. *
  750. * @param string|array $ts The value to use as filter.
  751. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  752. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  753. *
  754. * @return CcTransQuery The current query, for fluid interface
  755. */
  756. public function filterByTs($ts = null, $comparison = null)
  757. {
  758. if (is_array($ts)) {
  759. $useMinMax = false;
  760. if (isset($ts['min'])) {
  761. $this->addUsingAlias(CcTransPeer::TS, $ts['min'], Criteria::GREATER_EQUAL);
  762. $useMinMax = true;
  763. }
  764. if (isset($ts['max'])) {
  765. $this->addUsingAlias(CcTransPeer::TS, $ts['max'], Criteria::LESS_EQUAL);
  766. $useMinMax = true;
  767. }
  768. if ($useMinMax) {
  769. return $this;
  770. }
  771. if (null === $comparison) {
  772. $comparison = Criteria::IN;
  773. }
  774. }
  775. return $this->addUsingAlias(CcTransPeer::TS, $ts, $comparison);
  776. }
  777. /**
  778. * Exclude object from result
  779. *
  780. * @param CcTrans $ccTrans Object to remove from the list of results
  781. *
  782. * @return CcTransQuery The current query, for fluid interface
  783. */
  784. public function prune($ccTrans = null)
  785. {
  786. if ($ccTrans) {
  787. $this->addUsingAlias(CcTransPeer::ID, $ccTrans->getId(), Criteria::NOT_EQUAL);
  788. }
  789. return $this;
  790. }
  791. } // BaseCcTransQuery