/** * Determine if a transaction has been conducted after the current AssetTransaction * @return object AssetTransaction */ public function NewerTransaction() { $objNewerAssetTransaction = AssetTransaction::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::AssetTransaction()->AssetId, $this->AssetId), QQ::GreaterOrEqual(QQN::AssetTransaction()->CreationDate, $this->CreationDate), QQ::NotEqual(QQN::AssetTransaction()->AssetTransactionId, $this->AssetTransactionId))); return $objNewerAssetTransaction; }
/** * Load a single AssetTransaction object, * by AssetTransactionId Index(es) * @param integer $intAssetTransactionId * @return AssetTransaction */ public static function LoadByAssetTransactionId($intAssetTransactionId, $objOptionalClauses = null) { return AssetTransaction::QuerySingle(QQ::Equal(QQN::AssetTransaction()->AssetTransactionId, $intAssetTransactionId), $objOptionalClauses); }
/** * Load a single AssetTransaction object, * by AssetTransactionId Index(es) * @param integer $intAssetTransactionId * @return AssetTransaction */ public static function LoadByAssetTransactionId($intAssetTransactionId) { return AssetTransaction::QuerySingle(QQ::Equal(QQN::AssetTransaction()->AssetTransactionId, $intAssetTransactionId)); }