This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyObject clone := method(return self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
public JavaAdvertSchedule GetByWebSite(String website, String checkableFromDay) { | |
ObjectIterator<JavaAdvertSchedule> result = null; | |
try { | |
result = new ObjectIterator<JavaAdvertSchedule>("JE.AdvertLifecycle.Scheduling.Data.JavaAdvertSchedule", "JavaAdvertSchedule_GetByWebsite", website, checkableFromDay); | |
if (As.Boolean(result.HasNext())) { | |
return result.GetNext(); | |
} | |
return null; | |
} finally { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClassMethod HousekeepingUnscheduledAdverts() | |
{ | |
lock +^DateOfLastLifecycleUnscheduledAdsHK | |
set $ZTRAP = "Error" | |
if (..IsReschedulingEnabledNow()) { | |
set ^DateOfLastLifecycleUnscheduledAdsHK = ##class(Util.DateTime).Today() | |
do ##class(Util.Job).RunCommand("do ##class(JE.AdvertLifecycle.Scheduling.Data.AdvertSchedule.RescheduleUnscheduledAds()") | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE qrtz_job_details | |
( | |
SCHED_NAME VARCHAR(120) NOT NULL, | |
JOB_NAME VARCHAR(200) NOT NULL, | |
JOB_GROUP VARCHAR(200) NOT NULL, | |
DESCRIPTION VARCHAR(250) NULL, | |
JOB_CLASS_NAME VARCHAR(250) NOT NULL, | |
IS_DURABLE BOOL NOT NULL, | |
IS_NONCONCURRENT BOOL NOT NULL, | |
IS_UPDATE_DATA BOOL NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package UnitTest.JE.AdvertSearchStats.Words.Iterators; | |
import static org.junit.Assert.*; | |
import org.jmock.Expectations; | |
import org.jmock.Mockery; | |
import org.junit.Before; | |
import org.junit.Test; | |
import JE.AdvertSearchStats.Words.Iterators.ByScoreJoinedPhrasesPostgres; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Table: advertschedule | |
-- DROP TABLE advertschedule; | |
CREATE TABLE advertschedule | |
( | |
id bigint NOT NULL, | |
advertid character varying(50), | |
checkablefromday character varying(14), | |
lifecyclecategory character varying(200), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
norm, | |
max(den), | |
score | |
from | |
origin | |
inner join | |
(select | |
norm as a, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L'errore è in | |
select normalized_w, denormalized_w from tmp_denormalized r where | |
r.score = ( | |
select max(score) from tmp_denormalized d where r.normalized_w = d.normalized_w | |
group by normalized_w | |
); | |
perché estrae più righe nel caso in cui due parole abbiano lo stesso score. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
("maxConnectionsToBePreloaded")="10" | |
("maxConnPerLicenseUnit")="25" | |
("serverConnectionString")="jdbc:Cache://127.0.0.1:56572/JE" | |
("users","javabinding_nz_01")="j4v4b1nd1ng" | |
("users","javabinding_nz_02")="j4v4b1nd1ng" | |
("users","javabinding_nz_03")="j4v4b1nd1ng" | |
("users","javabinding_nz_04")="j4v4b1nd1ng" | |
("users","javabinding_nz_05")="j4v4b1nd1ng" | |
("users","javabinding_nz_06")="j4v4b1nd1ng" | |
("users","javabinding_nz_07")="j4v4b1nd1ng" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package JE.AdvertSearchEngine; | |
import JE.Advert; | |
import JE.AdvertLifecycle.ProgressCategory; | |
import JE.AdvertLifecycle.Scheduling.Data.AdvertSchedule; | |
import Util.DateTime; | |
public class AdvertScheduleService { | |
public AdvertSchedule scheduleAdvert(Advert advert) { |
OlderNewer