query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public User selectUserByName(String userName) { return userDao.selectUserByName(userName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<User> selectLimit() { return userDao.selectLimit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int modifyPassword(User user) { return userDao.modifyPassword(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<User> findAllUser() { return userDao.findAllUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int addUser(User user) { return userDao.addUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int deleteUser(Integer id) { return userDao.deleteUser(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int updateUser(User user) { return userDao.updateUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String readLine = reader.readLine(); reader.close(); String[] split = readLine.split(" "); int num=Integer.valueOf(split[1])-Integer.valueOf(split[0]); int rs=(int)Math.rint((double)num/100.0); int s=rs%60; int m=(rs/60)%60; int h=rs/3600; System.out.println((h<10?("0"+h):h)+":"+(m<10?("0"+m):m)+":"+(s<10?("0"+s):s)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "private void cancel() {\n\t\tfinish();\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public boolean cancel();", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void cancel()\n\t{\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void cancel(){\n cancelled = true;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onCancel();", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}" ]
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.7785849", "0.7781991", "0.7781991", "0.7781991", "0.7775402", "0.7774749", "0.7774749", "0.77683115", "0.77681756", "0.77668333", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7759365", "0.7731582", "0.7724297", "0.7720925", "0.7720103", "0.76955104", "0.7678485", "0.7654357", "0.7654357", "0.764555", "0.76443124", "0.7634409", "0.7633464", "0.7621916", "0.7621163", "0.7603697", "0.7603203", "0.7600248", "0.7598492", "0.7591874", "0.7591874", "0.7591339", "0.7590508", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7588744", "0.75886345", "0.7560806", "0.7550736", "0.7540379", "0.7539729", "0.7539729", "0.7534361", "0.7531358", "0.75296545", "0.7524118", "0.7523424", "0.75232726", "0.752038", "0.75199866", "0.7512266", "0.75083005", "0.7500499", "0.7497863", "0.7495073", "0.7493796", "0.7492944", "0.74797153", "0.74698204", "0.7465173", "0.74630636", "0.7460028", "0.7460028", "0.7458466", "0.7455514", "0.74514836", "0.7442903", "0.74414104", "0.7436282", "0.7436282", "0.74358857", "0.74198526" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public AreaInfoExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.579016
13
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public int getArea()\n {\n return area;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.62127465", "0.6120584", "0.6120584", "0.602881", "0.5946163", "0.5939068", "0.59278303", "0.59278303", "0.5897159", "0.58465576", "0.5828366", "0.5803375", "0.5802427", "0.5789962", "0.57720095", "0.5757679", "0.5668102", "0.5664908", "0.56620866", "0.5633982", "0.5612919", "0.5612919", "0.56122", "0.560931", "0.560931", "0.56003326", "0.55943155", "0.55582285", "0.55563307", "0.55549353", "0.55420566", "0.5538786", "0.5534753", "0.55035686", "0.55035686", "0.55035686", "0.54864156", "0.5467074", "0.5467074", "0.54304934", "0.54205406", "0.5395378", "0.5386214", "0.5378742", "0.5374991", "0.5374185", "0.5374185", "0.53660923", "0.5352049", "0.53492326", "0.53362215", "0.53359336", "0.53359336", "0.53359336", "0.53229314", "0.5307982", "0.5295736", "0.5294822", "0.5294698", "0.52929294", "0.5262639", "0.52541745", "0.52441615", "0.5227828", "0.52259946", "0.5215337", "0.5196123", "0.5191687", "0.5184203", "0.51799774", "0.51799774", "0.5167573", "0.5157334", "0.51482546", "0.514384", "0.51425654", "0.51421696", "0.5131775", "0.51165026", "0.51079375", "0.5092466", "0.5080878", "0.5075932", "0.5069198", "0.50558496", "0.5051826", "0.5050439", "0.5050439", "0.5050439", "0.50309277", "0.50290686", "0.5017516", "0.50159514", "0.50159514", "0.5008794", "0.5004024", "0.5003293", "0.5002715", "0.49887896", "0.49887896", "0.49887896" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public int getArea()\n {\n return area;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.62127465", "0.6120584", "0.6120584", "0.602881", "0.5946163", "0.5939068", "0.59278303", "0.59278303", "0.5897159", "0.58465576", "0.5828366", "0.5803375", "0.5802427", "0.5789962", "0.57720095", "0.5757679", "0.5668102", "0.5664908", "0.56620866", "0.5633982", "0.5612919", "0.5612919", "0.56122", "0.560931", "0.560931", "0.56003326", "0.55943155", "0.55582285", "0.55563307", "0.55549353", "0.55420566", "0.5538786", "0.5534753", "0.55035686", "0.55035686", "0.55035686", "0.54864156", "0.5467074", "0.5467074", "0.54304934", "0.54205406", "0.5395378", "0.5386214", "0.5378742", "0.5374991", "0.5374185", "0.5374185", "0.53660923", "0.5352049", "0.53492326", "0.53362215", "0.53359336", "0.53359336", "0.53359336", "0.53229314", "0.5307982", "0.5295736", "0.5294822", "0.5294698", "0.52929294", "0.5262639", "0.52541745", "0.52441615", "0.5227828", "0.52259946", "0.5215337", "0.5196123", "0.5191687", "0.5184203", "0.51799774", "0.51799774", "0.5167573", "0.5157334", "0.51482546", "0.514384", "0.51425654", "0.51421696", "0.5131775", "0.51165026", "0.51079375", "0.5092466", "0.5080878", "0.5075932", "0.5069198", "0.50558496", "0.5051826", "0.5050439", "0.5050439", "0.5050439", "0.50309277", "0.50290686", "0.5017516", "0.50159514", "0.50159514", "0.5008794", "0.5004024", "0.5003293", "0.5002715", "0.49887896", "0.49887896", "0.49887896" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public int getArea()\n {\n return area;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.62127465", "0.6120584", "0.6120584", "0.602881", "0.5946163", "0.5939068", "0.59278303", "0.59278303", "0.5897159", "0.58465576", "0.5828366", "0.5803375", "0.5802427", "0.5789962", "0.57720095", "0.5757679", "0.5668102", "0.5664908", "0.56620866", "0.5633982", "0.5612919", "0.5612919", "0.56122", "0.560931", "0.560931", "0.56003326", "0.55943155", "0.55582285", "0.55563307", "0.55549353", "0.55420566", "0.5538786", "0.5534753", "0.55035686", "0.55035686", "0.55035686", "0.54864156", "0.5467074", "0.5467074", "0.54304934", "0.54205406", "0.5395378", "0.5386214", "0.5378742", "0.5374991", "0.5374185", "0.5374185", "0.53660923", "0.5352049", "0.53492326", "0.53362215", "0.53359336", "0.53359336", "0.53359336", "0.53229314", "0.5307982", "0.5295736", "0.5294822", "0.5294698", "0.52929294", "0.5262639", "0.52541745", "0.52441615", "0.5227828", "0.52259946", "0.5215337", "0.5196123", "0.5191687", "0.5184203", "0.51799774", "0.51799774", "0.5167573", "0.5157334", "0.51482546", "0.514384", "0.51425654", "0.51421696", "0.5131775", "0.51165026", "0.51079375", "0.5092466", "0.5080878", "0.5075932", "0.5069198", "0.50558496", "0.5051826", "0.5050439", "0.5050439", "0.5050439", "0.50309277", "0.50290686", "0.5017516", "0.50159514", "0.50159514", "0.5008794", "0.5004024", "0.5003293", "0.5002715", "0.49887896", "0.49887896", "0.49887896" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table area_info
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArea_id() {\n return area_id;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement\n\t\t\t\t\t.executeQuery(\"select * from \" + mDbName + \".\" + TABLE_AREA);\n\t\t\t\n\t\t\t// store information of each area in the areInfos list\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\tAreaInfo info = new AreaInfo();\n\t\t\t\t\n\t\t\t\tinfo.setAreaId( mResultSet.getInt(COLUMN_ID) );\n\t\t\t\tinfo.setAreaName( mResultSet.getString(COLUMN_NAME) );\n\t\t\t\tinfo.setAreaDescription( mResultSet.getString(COLUMN_DESCRIPTION) );\t\t\t\t\n\t\t\t\tinfo.setVersion( mResultSet.getInt(COLUMN_VERSION) );\n\t\t\t\t\n\t\t\t\tareaInfos.add(info);\n\t\t\t}\n\t\t\t\n\t\t\t// query tickets of an area\n\t\t\tfor(AreaInfo info : areaInfos){\n\t\t\t\tList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket> ticketTypes \n\t\t\t\t\t= new ArrayList< de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket >();\n\t\t\t\tArrayList<Ticket> tickets = queryAreaTickets(info.getAreaId());\n\t\t\t\t\n\t\t\t\tfor(Ticket ticket : tickets){\n\t\t\t\t\tticketTypes.add( new de.tudresden.inf.rn.mobilis.services.xhunt.proxy.Ticket( ticket.getId(), ticket.getName() ));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinfo.setTickets( ticketTypes );\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tflush();\n\t\t\n\t\treturn areaInfos;\n\t}", "public interface AreaDao {\n\n @SuppressWarnings(\"rawtypes\")\n public List procArea(String areaId,\n String areaName,String regionId,String countryId, String user, String flag);\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public interface AreaDao {\n\tList<Area> queryArea();\n\tArea queryAreaById(int id);\n\tint insertArea(Area area);\n\tint updateArea(Area area);\n\tint DeleteArea(int id);\n}", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}", "List<AreaMaster> findByName(String areaName);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "List<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getArea() {\n return this.area;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "@Repository\npublic interface AddressDao {\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where 1=1 \" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \" <if test=\\\"province != null and province != '' \\\">\" +\n \" and province= #{province} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> province(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where 1=1 \" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \" <if test=\\\"city != null and city != '' \\\">\" +\n \" and city= #{city} \" +\n \" </if>\" +\n \" <if test=\\\"provinceid != null and provinceid != '' \\\">\" +\n \" and provinceid= #{provinceid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> city(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where 1=1 \" +\n \" <if test=\\\"areaid != null and areaid != '' \\\">\" +\n \" and areaid= #{areaid} \" +\n \" </if>\" +\n \" <if test=\\\"area != null and area != '' \\\">\" +\n \" and area= #{area} \" +\n \" </if>\" +\n \" <if test=\\\"cityid != null and cityid != '' \\\">\" +\n \" and cityid= #{cityid} \" +\n \" </if>\" +\n \"</script>\")\n List<Map<String, Object>> area(Map<String, Object> params);\n\n @Select(\"<script>\" +\n \" select provinceid,province \" +\n \" from provinces \" +\n \" where province= #{province} \" +\n \"</script>\")\n String getProvinceid(String province);\n\n @Select(\"<script>\" +\n \" select cityid,city \" +\n \" from cities \" +\n \" where city= #{city} \" +\n \"</script>\")\n String getCityid(String city);\n\n @Select(\"<script>\" +\n \" select areaid,area \" +\n \" from areas \" +\n \" where area= #{area} \" +\n \"</script>\")\n String getAreaid(String area);\n}", "@ManyToOne(optional = true)\r\n\tpublic Area getArea() {\r\n\t\treturn this.area;\r\n\t}", "public String areaCode() {\n return areaCode;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public interface AreaDao {\n\n List<Area> findByName(@Param(\"areaName\") String areaName);\n}", "public Area wrapperItem(ResultSet rs) throws Exception {\n\t\t\t\tArea a = new Area();\r\n\t\t\t\ta.setAbb(rs.getString(\"abb\"));\r\n\t\t\t\treturn a;\r\n\t\t\t}", "public interface AreaService {\n\n\t/**\n\t * Save Area\n\t * \n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return Area\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster save(String areaName, Long cityId, Long countryId,\n\t\t\tdouble latitude, double longitude) throws DuplicateAreaException;\n\n\t/**\n\t * Delete Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster delete(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Restore Area\n\t * \n\t * @param areaId\n\t * @return Area\n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster restore(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Update Area\n\t * \n\t * @param areaId\n\t * @param areaName\n\t * @param cityId\n\t * @param countryId\n\t * @param latitude\n\t * @param longitude\n\t * @return\n\t * @throws NoSuchAreaException\n\t * @throws DuplicateAreaException\n\t */\n\tAreaMaster update(long areaId, String areaName, Long cityId,\n\t\t\tLong countryId, double latitude, double longitude)\n\t\t\tthrows NoSuchAreaException, DuplicateAreaException;\n\n\t/**\n\t * Use this method if you need complete object\n\t * \n\t * @param areaId\n\t * @return AreaMaster \n\t * @throws NoSuchAreaException\n\t */\n\tAreaMaster findById(long areaId) throws NoSuchAreaException;\n\n\t/**\n\t * Find Active List , Fetch join up to first level\n\t * \n\t * @return List<AreaMaster>\n\t */\n\tList<AreaMaster> findByActive(boolean active);\n\t\n\t/**\n\t * Use this method only for name validation\n\t * It will return only area no join\n\t * \n\t * @param areaName\n\t * @return Area\n\t */\n\tList<AreaMaster> findByName(String areaName);\n\n\t/**\n\t * This methods filters area list based on city and country id.\n\t * \n\t * @param cityId\n\t * @param countryId\n\t * @return list of area\n\t * \n\t * @author Debjyoti Nath\n\t */\n\tList<AreaMaster> findAllByActiveByCityIdAndCountryId(long cityId,long countryId);\n\t\n\tList<AreaMaster> findActiveByCityId(long cityId);\n}", "AreaMaster findById(long areaId) throws NoSuchAreaException;", "public String getArea() {\n\t\treturn area;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "private static OspfArea areaDetails(JsonNode areaNode) {\n OspfArea area = new OspfAreaImpl();\n String areaId = areaNode.path(AREAID).asText();\n if (isValidIpAddress(areaId)) {\n area.setAreaId(Ip4Address.valueOf(areaId));\n } else {\n log.debug(\"Wrong areaId: {}\", areaId);\n return null;\n }\n String routerId = areaNode.path(ROUTERID).asText();\n if (isValidIpAddress(routerId)) {\n area.setRouterId(Ip4Address.valueOf(routerId));\n } else {\n log.debug(\"Wrong routerId: {}\", routerId);\n return null;\n }\n String routingCapability = areaNode.path(EXTERNALROUTINGCAPABILITY).asText();\n if (isBoolean(routingCapability)) {\n area.setExternalRoutingCapability(Boolean.valueOf(routingCapability));\n } else {\n log.debug(\"Wrong routingCapability: {}\", routingCapability);\n return null;\n }\n String isOpaqueEnabled = areaNode.path(ISOPAQUE).asText();\n if (isBoolean(isOpaqueEnabled)) {\n area.setIsOpaqueEnabled(Boolean.valueOf(isOpaqueEnabled));\n } else {\n log.debug(\"Wrong isOpaqueEnabled: {}\", isOpaqueEnabled);\n return null;\n }\n area.setOptions(OspfUtil.HELLO_PACKET_OPTIONS);\n\n return area;\n }", "@Override\n\t@Transactional\n\tpublic List<Area> findAll() {\n\t\treturn (List<Area>) dao.findAll();\n\t}", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n return area_;\n }", "public int getArea()\n {\n return area;\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public interface AreaService {\n /**\n * 根据id查询地区信息\n * @param id\n * @return\n */\n Area findById(Integer id);\n\n\n /**\n * 根据bn查询地区信息\n * @param bn\n * @return\n */\n public Area findByBn(String bn) ;\n}", "public int getArea() {\n\t\treturn area;\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public String getAreaCode() {\n return this.areaCode;\n }", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public interface AreaDao extends BaseDao<Area> {\n\n List<Area> getByGrade(Area.Grade grade);\n\n List<Area> getByGradeAndParent(Area.Grade grade, Area area);\n\n List<Area> test();\n}", "@Override\n\tpublic List<Goodsarea> findAllArea() {\n\t\treturn null;\n\t}", "public abstract String getArea();", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "TDictAreas selectByPrimaryKey(Integer id);", "public interface IAreaService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Area record);\n\n Area selectByPrimaryKey(Long id);\n\n List<Area> selectByParentKey(Long parentId);\n\n List<Area> selectAll();\n\n int updateByPrimaryKey(Area record);\n}", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "@Override\n public List<Area> getAllAreas() {\n return new ArrayList<>(areas.values());\n }", "public List<Tematica> findByAreaInvestigacion(AreaInvestigacion area2);", "public abstract int getArea();", "@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\t@Transactional\n\tpublic void save(Area area) {\n\t\tdao.save(area);\n\t}", "public void createJDBCConnection() {\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\ttry {\n\n\t\t\tstmt = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM section\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\t// Retrieve by column name\n\t\t\t\tsubArea = new SubArea();\n\t\t\t\tsubArea.setId(rs.getInt(\"id\"));\n\t\t\t\tsubArea.setFireSensor(rs.getBoolean(\"fireSensor\"));\n\t\t\t\tsubArea.setBurglarySensor(rs.getBoolean(\"burglarySensor\"));\n\t\t\t\tgetMap().put(rs.getInt(\"id\"), subArea);\n\n\t\t\t}\n\n\t\t\t// from date, to date,weekdays - from time ,to time, weekends - from\n\t\t\t// time, to time values\n\t\t\t// are fetched and displayed in the respective text fields\n\t\t\tString sql4 = \"SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig\";\n\t\t\tResultSet rs4 = stmt.executeQuery(sql4);\n\n\t\t\tif (rs4.next()) {\n\n\t\t\t\t//Fetch the values from database\n\t\t\t\tfromDate = rs4.getDate(1);\n\t\t\t\ttoDate = rs4.getDate(2);\n\t\t\t\twDayFrom = rs4.getTime(3);\n\t\t\t\twDayTo = rs4.getTime(4);\n\t\t\t\twEndFrom = rs4.getTime(5);\n\t\t\t\twEndTo = rs4.getTime(6);\n\n\t\t\t\t//Fetched value is populated in the respective text fields\n\t\t\t\tSimpleDateFormat dFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\tdateFromTf.setText(dFormat.format(fromDate));\n\t\t\t\tdateToTf.setText(dFormat.format(toDate));\n\t\t\t\tWDFromTf.setText(wDayFrom.toString());\n\t\t\t\tWDToTf.setText(wDayTo.toString());\n\t\t\t\tWEndsFrom.setText(wEndFrom.toString());\n\t\t\t\tWEndsTo.setText(wEndTo.toString());\n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "public int getAreaCount() {\n return area_.size();\n }", "@RequestMapping(value= {\"/getArea\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody String getAreaBySiteHandler(HttpServletRequest request,Map<String,Object> map) throws Exception {\n\t\tlogger.debug(\"/*Ajax getting AreaById */\");\n\t\t\n\t\tString siteId = request.getParameter(\"site\");\n\t\tString returnVal=\"\";\n\t\t\n\t\ttry{\n\t\t\tSite site=consumerService.getSiteById(siteId);\n\t\t\tList<Area> areas=site.getAreas();\n\t\t\t\n\t\t\t\n\t\t\tif(areas!=null && !areas.isEmpty()){\n\t\t\t\tfor(Area a : areas){\n\t\t\t\t\treturnVal+=\"<option value=\"+a.getId()+ \">\"+ a.getAreaName() + \"</option>\";\n\t\t\t\t}\n\t\t\t}\t\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Error in Ajax/getArea\",e);\n\t\t}\n\t\t\t\n\t\t\t\n\t\treturn returnVal;\n\n\t}", "public interface AreaService extends Service<Area> {\n\tList<Area> areaList(String areaCode);\n\tList<Area> findAreaById(Long userId);\n\tList<Area> findByAreaId(Long userId, Long areaId);\n\tList<Area> reports(Long areaId, String userName);\n\n}", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "@Override\n\tpublic int insertArea(Area area) {\n\t\treturn areaMapper.insertArea(area);\n\t}", "@Override\n\tpublic String getAreaCode() {\n\t\treturn null;\n\t}", "public final int getArea()\n\t{\n\t\treturn address >>> 12;\n\t}", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }", "public com.example.grpc.SimpleServiceOuterClass.Area getArea(int index) {\n return area_.get(index);\n }" ]
[ "0.6211476", "0.6118926", "0.6118926", "0.6027834", "0.5944427", "0.59369814", "0.59259844", "0.59259844", "0.5895778", "0.5844656", "0.58268017", "0.5801868", "0.5800546", "0.579016", "0.57694465", "0.57557356", "0.56665033", "0.5663364", "0.56605303", "0.5632387", "0.5612579", "0.5612579", "0.56090236", "0.5608491", "0.5608491", "0.5599515", "0.5593995", "0.55575556", "0.5555202", "0.5552139", "0.5540857", "0.5537703", "0.55328614", "0.55029523", "0.55029523", "0.55029523", "0.5485802", "0.5466273", "0.5466273", "0.54292494", "0.5418777", "0.53946424", "0.538488", "0.5377487", "0.5374057", "0.5373199", "0.5373199", "0.5363534", "0.535056", "0.5347474", "0.5335678", "0.5335678", "0.5335678", "0.5335087", "0.5320724", "0.53061813", "0.5295859", "0.52934295", "0.5293292", "0.52929574", "0.5261718", "0.52542704", "0.5244178", "0.5226256", "0.52242684", "0.5214833", "0.5195596", "0.5190557", "0.5183761", "0.5179041", "0.5179041", "0.5168746", "0.51565206", "0.51473975", "0.5143216", "0.5142512", "0.5141247", "0.5130674", "0.5115221", "0.5107318", "0.50926256", "0.5080512", "0.5074308", "0.5068331", "0.5055871", "0.5050024", "0.5049026", "0.5049026", "0.5049026", "0.50297296", "0.5027686", "0.5014926", "0.50145215", "0.50145215", "0.50063336", "0.5003992", "0.50023603", "0.50021774", "0.4988298", "0.4988298", "0.4988298" ]
0.0
-1
Mutate a tour using swap mutation
public static void mutate(Chromosome chrome) { // Loop through tour cities for(int rosterNursePos1=0; rosterNursePos1 < chrome.ChromosomeRowSize(); rosterNursePos1++){ for (int rosterDayPos1=0; rosterDayPos1<chrome.chromosomeColumnCount();rosterDayPos1++){ if(RosterManager.isPreviousShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || RosterManager.isNextShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || chrome.getShift(rosterNursePos1, rosterDayPos1).getHours()!=0 ){ if(Math.random() < mutationRate){ // Get a second random position in the tour int rosterNursePos2= rosterNursePos1; int rosterDayPos2 = returnValidPos(rosterNursePos2, randomizeShiftGeneration(chrome), chrome ); // Get the cities at target position in tour Gene gene1 = chrome.retrieveGene(rosterNursePos1, rosterDayPos1); Gene gene2 = chrome.retrieveGene(rosterNursePos2, rosterDayPos2); // Swap them around chrome.saveGene(rosterNursePos1, rosterDayPos1, gene2); chrome.saveGene(rosterNursePos2, rosterDayPos2, gene1); } } // Apply mutation rate } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void mutate(Tour tour) {\n // Loop through tour cities\n for(int tourPos1=0; tourPos1 < tour.tourSize(); tourPos1++){\n // Apply mutation rate\n if(Math.random() < mutationRate){\n // Get a second random position in the tour\n int tourPos2 = (int) (tour.tourSize() * Math.random());\n\n // Get the cities at target position in tour\n City city1 = tour.getCity(tourPos1);\n City city2 = tour.getCity(tourPos2);\n\n // Swap them around\n tour.setCity(tourPos2, city1);\n tour.setCity(tourPos1, city2);\n }\n }\n }", "void swap() {\n\t\tint remain_singles = this.d - this.couples_found;\n\t\tfor (int pit_id = 0; pit_id < remain_singles; pit_id++) {\n\t\t\tint dancer_id = findDancer(pit_id);\n\t\t\tif(dancers[dancer_id].soulmate != -1) continue;\n\t\t\tint next_pit = getNextPit(pit_id);\n\t\t\tif(next_pit == -1){\n\t\t\t\tdancers[dancer_id].next_pos = new Point(pits[pit_id].pos.x, pits[pit_id].pos.y);\n\t\t\t\tdancers[dancer_id].pit_id = pit_id;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdancers[dancer_id].next_pos = findNearestActualPoint(pits[next_pit].pos, pits[pit_id].pos);\n\t\t\t\tdancers[dancer_id].pit_id = next_pit;\n\t\t\t}\n\t\t}\n \t\tthis.state = 3 - this.state;\n \t\tthis.stay = 0;\n\t}", "protected PuzzleState swapTilesNewState(PuzzleState state, int row1, int col1, int row2, int col2) {\r\n PuzzleState newState = state.copy();\r\n int temp = newState.getTile(row1, col1);\r\n newState.setTile(row1, col1, newState.getTile(row2, col2));\r\n newState.setTile(row2, col2, temp);\r\n return newState;\r\n }", "private void swapTiles(Tile tile1, Tile tile2) {\n\n\t\tint temp = tile2.getValue();\n\t\ttile2.setValue(tile1.getValue());\n\t\ttile1.setValue(temp);\n\t}", "@Override\n \tpublic void swap(int i, int j) {\n \t\tint t=data[i];\n \t\tdata[i]=data[j];\n \t\tdata[j]=t;\n \t}", "private void swap(int[] nums, int i, int j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }", "void rndSwapTwo() {\r\n\t\t// index 0 has the start city and doesn't change\r\n\t\t// hence the random#s are from 1 onwards\r\n\t\trndSwapTwo(1, this.length());\r\n\t}", "private void swap(int firstIdx, int secondIdx) {\r\n // TODO\r\n }", "@Override\n\tpublic void swap(int pos1, int pos2) {\n\t}", "private void swap(int[] values, int p1, int p2) {\n int temp = values[p1];\n values[p1] = values[p2];\n values[p2] = temp;\n moves++;\n }", "private static void swap(int[] nums, int i, int j) {\n nums[i] += nums[j];\n nums[j] = nums[i] - nums[j];\n nums[i] = nums[i] - nums[j];\n }", "private void swap(int[] nums, int i, int j) {\n\t\tint tmp=nums[i];\n\t\tnums[i]=nums[j];\n\t\tnums[j]=tmp;\n\t}", "protected void swapTilesInPlace(int row1, int col1, int row2, int col2) {\r\n int temp = getTile(row1, col1);\r\n state.setTile(row1, col1, getTile(row2, col2));\r\n state.setTile(row2, col2, temp);\r\n }", "private void swap(int i, int j) {\n\t\tint tmp = data.get(i);\n\t\tdata.set(i, data.get(j));\n\t\tdata.set(j, tmp);\n\t}", "public final void mSWAP() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.SWAP;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:753:6: ( 'swap' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:753:8: 'swap'\n\t\t\t{\n\t\t\t\tthis.match(\"swap\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public void swap() {\n Point2D temp = this.point1;\n this.point1 = this.point2;\n this.point2 = temp;\n }", "private static void swap(List<Integer> list, int i, int j){\n int temp = list.get(i);\n list.set(i,list.get(j));\n list.set(j, temp);\n }", "void mutate() {\r\n\t\tif (Math.random() < TSP.p_mutate) {\r\n\t\t\t// randomly flip two cities\r\n\t\t\trndSwapTwo();\r\n\t\t\tthis.distance = distance();\r\n\t\t}\r\n\t}", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "private static <T,P> void vecswap(List<T> x, List<P> a2,int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x,a2, a, b);\n\t}", "void swapTiles(int row1, int col1, int row2, int col2) {\n Tile temp = tiles[row1][col1];\n tiles[row1][col1] = tiles[row2][col2];\n tiles[row2][col2] = temp;\n\n setChanged();\n notifyObservers();\n }", "@Test\r\n public void testSwapFirstTwo() {\r\n int id1 = boardManager4.getBoard().getTile(0,0).getId();\r\n int id2 = boardManager4.getBoard().getTile(0,1).getId();\r\n boardManager4.getBoard().swapTiles(0,0,0,1);\r\n assertEquals(id1, boardManager4.getBoard().getTile(0,1).getId());\r\n assertEquals(id2,boardManager4.getBoard().getTile(0,0).getId());\r\n }", "public void swap(int index1, int index2) {\n \n }", "private void swapAt(int i, int j) {\n\t\tfloat tmp = sequence[i];\n\t\tsequence[i] = sequence[j];\n\t\tsequence[j] = tmp;\n\t}", "public void swap() {\n\t\tCode.put(Code.dup_x1);\n\t\tCode.put(Code.pop);\n\t}", "private static <T> void vecswap(List<T> x, int a, int b, int n) {\n for (int i = 0; i < n; i++, a++, b++) {\n swapElements(x, a, b);\n }\n }", "private void swap(int from, int to) {\n E tmp = array[from];\n array[from] = array[to];\n array[to] = tmp;\n }", "private void swap(int i, int j){\n \t\tint temp = a[i];\n \t\ta[i] = a[j];\n \t\ta[j] = temp;\n }", "public void swap(int[] nums, int i, int j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }", "private static <T> void swap(List<T> list, int x, int y){\n T temp = list.get(x);\n list.set(x, list.get(y));\n list.set(y, temp);\n }", "void swap(CallByValueAndCallByReference t) // passing reference variable(t) of a class . -----Important to remember\n\t{\n\tint temp;\n\ttemp =t.p; // temp =51\n\tt.p= t.q; // t.p=81\n\tt.q=temp; // t.q= 51\n\t}", "@Test\r\n public void testSwapLastTwo() {\r\n int id1 = boardManager4.getBoard().getTile(3,2).getId();\r\n int id2 = boardManager4.getBoard().getTile(3,3).getId();\r\n boardManager4.getBoard().swapTiles(3,3,3,2);\r\n assertEquals(id1, boardManager4.getBoard().getTile(3,3).getId());\r\n assertEquals(id2,boardManager4.getBoard().getTile(3,2).getId());\r\n }", "public void swapAdjacentElements(int[] values)\n {\n // your work here\n\n\n\n\n }", "public void swapPieceValues(Piece p) {\n\t\tthis.x = p.getX();\n\t\tthis.y = p.getY();\n\t\tthis.row = p.getRow();\n\t\tthis.col = p.getCol();\n\t}", "private void swapTransforms() {\n Transform tmp = workTransform;\n workTransform = userTransform;\n userTransform = tmp;\n }", "public static void swap(Strings t ,Strings s){\n\t\tStrings temp = s;\r\n\t\ts = t;\r\n\t\tt = temp;;\r\n\t}", "private static <T,S> void swap(List<T> x, List<S> a2, int a, int b) {\n\t\tT t = x.get(a);\n\t\tx.set(a, x.get(b));\n\t\tx.set(b,t);\n\t\tS t2 = a2.get(a);\n\t\ta2.set(a,a2.get(b));\n\t\ta2.set(b,t2);\n\t}", "private void swapFirstTwoTiles() {\n ((Board) boardManager.getBoard()).swapTiles(0, 0, 0, 1);\n }", "private void swapElement ( int p1, int p2 )\n\t{\n\t}", "private int[] swap(int[] a, int i, int j) {\n int tmp;\n tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n return a;\n }", "@Test\n public void testSwapFirstTwo() {\n setUpCorrect();\n assertEquals(1, ((Board) boardManager.getBoard()).getTile(0, 0).getId());\n assertEquals(2, ((Board) boardManager.getBoard()).getTile(0, 1).getId());\n ((Board) boardManager.getBoard()).swapTiles(0, 0, 0, 1);\n assertEquals(2, ((Board) boardManager.getBoard()).getTile(0, 0).getId());\n assertEquals(1, ((Board) boardManager.getBoard()).getTile(0, 1).getId());\n }", "private static <E> void swap(ArrayList<E> a, int i, int j) {\n\t\tE t = a.get(i);\n\t\ta.set(i, a.get(j));\n\t\ta.set(j, t);\n\t}", "private static <E> void swap(ArrayList<E> a, int i, int j) {\n\t\tE t = a.get(i);\n\t\ta.set(i, a.get(j));\n\t\ta.set(j, t);\n\t}", "@SuppressWarnings(\"unused\")\n private void transformLateralShift() {\n if (steps.size() < 3) {\n return;\n }\n final int index = steps.size() - 3;\n final MoveStep step1 = getStep(index);\n final MoveStep step2 = getStep(index + 1);\n final MoveStep step3 = getStep(index + 2);\n\n if (step1.oppositeTurn(step3)\n && ((step2.getType() == MovePath.MoveStepType.BACKWARDS) || (step2.getType() == MovePath.MoveStepType.FORWARDS))) {\n final MoveStepType stepType = step1.getType();\n final MoveStepType direction = step2.getType();\n // remove all old steps\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n // add new step\n final MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType, direction));\n addStep(shift);\n }\n }", "public final void swap() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(topMostValue);\n\t\t\tpush(secondTopMostValue);\n\t\t}\n\t}", "public void onSwapPosition() {\n\n\t}", "private void swap(int[] a, int i, int j) {\n int tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n }", "private static <T,P> void vecswap(T x[], int[] a2,int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x,a2, a, b);\n\t}", "@Test\n\tvoid testSwapPair()\n\t{\n\t\tSystem.out.println(\"test SwapPair\");\n\t\tString[] exp = {\"suruchi\", \"kunal\"};\n\t\toperate.swapPair(p);\n\t\t\n\t\t//act = {\"suruchi\",\"kunal\"}\n\t\tString[] act = {p.getFirst(),p.getSecond()};\n\n\t\t//if equal the pass then test\n\t\tassertArrayEquals(exp, act);\n\t\n\t}", "private int[] mutationPairwiseExchange(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint pairPoint2 = pairPoint1;\n\t\twhile (mutant[pairPoint2] == mutant[pairPoint1]) {\n\t\t\tpairPoint2 = rand.nextInt(mutant.length); //find element in different bucket\n\t\t}\n\t\tint temp = mutant[pairPoint1];\n\t\tmutant[pairPoint1] = mutant[pairPoint2];\n\t\tmutant[pairPoint2] = temp;\n\t\treturn mutant;\n\t}", "public boolean swap() {\r\n\t\tif(origination == null || destination == null)\r\n\t\t\treturn false;\r\n\t\tLocation l = origination;\r\n\t\torigination = destination;\r\n\t\tdestination = l;\r\n\t\treturn true;\r\n\t}", "private static void swap(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "public void swap(int i, int j) {\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "private void swap(int i, int j) {\n Item tmp = heap[i-1];\n heap[i-1] = heap[j-1];\n heap[j-1] = tmp;\n }", "private static <T,P> void vecswap(T x[], P[] a2,int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x,a2, a, b);\n\t}", "public void savetour(int index, tour tour) {\n tours[index] = tour;\n }", "public void swap(int childIndex,int parentIndex);", "private static void swap(int[] A, int i, int j) {\n int temp = A[i];\n A[i] = A[j];\n A[j] = temp;\n }", "private void swap(int index1, int index2){\r\n ListNode c = head;\r\n ListNode swapNode = head;\r\n \r\n E tmp = null, tmp1 = null;\r\n \r\n for(int i = 0; i < index1; i++) c = c.getLink();\r\n tmp = (E) c.getData();\r\n \r\n for(int i = 0; i < index2; i++) swapNode = swapNode.getLink();\r\n tmp1 = (E) swapNode.getData();\r\n c.setData(tmp1);\r\n swapNode.setData(tmp);\r\n }", "@Test\n public void testSwapLastTwo() {\n setUpCorrect();\n assertEquals(15, ((Board) boardManager.getBoard()).getTile(3, 2).getId());\n assertEquals(16, ((Board) boardManager.getBoard()).getTile(3, 3).getId());\n ((Board) boardManager.getBoard()).swapTiles(3, 3, 3, 2);\n assertEquals(16, ((Board) boardManager.getBoard()).getTile(3, 2).getId());\n assertEquals(15, ((Board) boardManager.getBoard()).getTile(3, 3).getId());\n }", "private void swap(Comparable[] array, int toSwapOne, int toSwapTwo){\r\n\t\tswaps++;\r\n\t\tComparable storage = array[toSwapOne];\r\n\t\tarray[toSwapOne] = array[toSwapTwo];\r\n\t\tarray[toSwapTwo] = storage;\r\n\t}", "private int[] mutationSingleMove(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint newBin = mutant[pairPoint1];\n\t\twhile (newBin == mutant[pairPoint1]) {\n\t\t\tnewBin = rand.nextInt(binCount);\n\t\t}\n\t\tmutant[pairPoint1] = newBin; //swap to a different bucket\n\t\treturn mutant;\n\t}", "public static void swapPosts(int[][] view, int i, int j) {\n int[] temp = view[i];\n view[i] = view[j];\n view[j] = temp;\n }", "public static void swapCity2(ArrayList<City> routine, int index1, int index2, int num) {\n int i = 0;\n while(i < num){\n City temp = routine.get(index1 + i);\n routine.set(index1 + i, routine.get(index2 + i));\n routine.set(index2 + i, temp);\n i++;\n }\n \n }", "private static void swap(Point one, Point two){\n double x = one.x;\n double y = one.y;\n one.setLocation(two.x, two.y);\n two.setLocation(x, y);\n }", "private static <T> void vecswap(int x[], double[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "public static void swap (int[] elts, int i, int j) {\r\n\t\tint temp = elts[i];\r\n\t\telts[i] = elts[j];\r\n\t\telts[j] = temp;\r\n\t}", "public static void swap (int[] elts, int i, int j) {\r\n\t\tint temp = elts[i];\r\n\t\telts[i] = elts[j];\r\n\t\telts[j] = temp;\r\n\t}", "private static <T> void vecswap(int x[], T[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "private void swap(int []a, int i, int j){\n\t\tint temp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = temp;\n\t}", "private void swap(int[] nums, int i, int index) {\n if (i < nums.length && index < nums.length) {\n int temp = nums[i];\n nums[i] = nums[index];\n nums[index] = temp;\n }\n }", "private void swap(Node n1, Node n2) {\r\n Team t = n1.value;\r\n n1.value = n2.value;\r\n n2.value = t;\r\n }", "private int[] mutateSwapChild(int[] child) {\n println(\"before mutateSwapChild\", 1);\n displayChromosome(child, 1);\n int first = (int)(Math.random() * num_shipping_points);\n int second = (int)(Math.random() * num_shipping_points);\n //make sure first and second are different\n while(first == second) {\n second = (int)(Math.random() * num_shipping_points);\n }\n int temp = child[first];\n child[first] = child[second];\n child[second] = temp;\n \n println(\"after mutateSwapChild\", 1);\n displayChromosome(child, 1);\n return child;\n }", "private void swap(int i, int j) {\n\t\tlong temp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = temp;\n\t}", "public static void swap(MatchUp[] matchups, int i, int j) {\n MatchUp temp = matchups[i];\r\n matchups[i] = matchups[j];\r\n matchups[j] = temp;\r\n return;\r\n }", "void rndSwapTwo(int i, int j) {\r\n\t\tint a, b;\r\n\t\tint tmp;\r\n\r\n\t\ta = Util.rndInt(i, j);\r\n\t\tb = Util.rndInt(i, j);\r\n\t\ttmp = index[a];\r\n\t\tindex[a] = index[b];\r\n\t\tindex[b] = tmp;\r\n\t}", "public void sequenceSwaps(int[] tempItem1, int[] tempItem2, Vector<int[]> cyclePosition, int distTotal, Vector<int[]> sequence, int mut_rate){\n boolean b;\n int[] cycles2 = new int[cyclePosition.size()];\n int nrSwaps = 0;\n Arrays.fill(cycles2,-1);\n sequence.clear();\n while(true){\n int j = r.nextInt(cyclePosition.size());\n\n b = false;\n for(int i = 0; i < cycles2.length; i++)\n if(cycles2[i] == -1){\n b = true;\n break;\n }\n if(!b){\n break;\n }\n while(cycles2[j] != -1)\n j = r.nextInt(cyclePosition.size());\n cycles2[j] = 1;\n int[] indexSwap = cyclePosition.elementAt(j).clone();\n int dist = indexSwap.length; //+1;//ps1.getDistance(tempDist1,tempDist2);\n\n //\n int rInt = r.nextInt(indexSwap.length);\n int indexI, indexII;\n \n //tempR.clear();\n for(int i = 0; i < dist-1; i++){\n indexI = tempItem1[indexSwap[rInt]];\n //find indexI in temp2\n indexII = -1;\n for(int k = 0; k < indexSwap.length; k++)\n if(tempItem2[indexSwap[k]] == indexI){\n indexII = indexSwap[k];\n break;\n }\n \n int[] tempInt = new int[2];\n tempInt[0] = indexII;\n tempInt[1] = indexSwap[rInt];\n\n sequence.add(tempInt);\n\n //swaps the two positions\n int temp = tempItem1[indexSwap[rInt]];\n tempItem1[indexSwap[rInt]]=tempItem1[indexII];\n tempItem1[indexII]=temp;\n\n nrSwaps++;\n if(nrSwaps >= mut_rate-1)\n break;\n\n }\n if(nrSwaps >= mut_rate-1)\n break;\n }\n }", "private static void swap(int[] array, int i, int j) {\n\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }", "@Override\n protected void swap(int i, int j)\n {\n E temp = this.elements[i];\n this.elements[i] = this.elements[j];\n \tthis.elementsToArrayIndex.put(elements[i], i);\n this.elements[j] = temp;\n \tthis.elementsToArrayIndex.put(elements[j], j);\n }", "private void swap(int pos1, int pos2) {\n\t\tE temp = apq.get(pos1);\n\t\tapq.set(pos1, apq.get(pos2));\n\t\tapq.set(pos2, temp);\n\n\t\tlocator.set(apq.get(pos1), pos1);\n\t\tlocator.set(apq.get(pos2), pos2);\n\t}", "public static void main(String[] args) {\n int a,b,u;\n a=23;\n b=56;\n System.out.println(\"Before Swapping=a,b=\"+a+\",\"+ + b);\n u=a;\n a=b;\n b=u;\n System.out.println(\"After Swapping=a,b\"+a+\",\"+ + b);\n \n\t}", "static void swap(List<CustomCharacter> list, int a, int b){\n CustomCharacter temp = getClone(list, a);\n list.set(a, list.get(b));\n list.set(b, temp);\n }", "Tour(Tour tr) {\r\n this();\r\n for (int i = 0; i < tr.length(); i++) {\r\n this.index[i] = tr.index[i];\r\n }\r\n this.distance = distance();\r\n }", "private void swap( int i, int j )\n {\n\t\n\tString jStr = _fruits[j] ;\n\t_fruits[j] = _fruits[i];\n\t_fruits[i] = jStr;\n }", "private void swap(int one, int two)\r\n {\r\n//*** one->two\r\n long temp = a[two];\r\n a[one] = a[two];\r\n a[two] = temp;\r\n }", "@Given(\"I swap values in array\")\n public void iSwapValuesInArray() {\n int[] numrs = {5, 2, 9, 7, 3};\n System.out.println(\"I have an array:\");\n for (int numr : numrs) {\n System.out.print(numr + \" \");\n }\n System.out.println(\" \");\n System.out.println(\"I swap the values: \");\n int temp = numrs[2];\n numrs[2] = numrs[4];\n numrs[4] = temp;\n for (int numr : numrs) {\n System.out.print(numr + \" \");\n }\n }", "void swap(int[] array, int i, int j) {\n\t\tint t = array[i];\n\t\tarray[i] = array[j];\n\t\tarray[j] = t;\n\t}", "private static <T> void vecswap(byte x[], T[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "private void swap(int i, int j) {\n\t\t//gets elements\n\t\tPair e1 = heap.get(i);\n\t\tPair e2 = heap.get(j);\n\t\t//swaps them in heap\n\t\theap.remove(i);\n\t\theap.add(i,e2);\n\t\theap.remove(j);\n\t\theap.add(j,e1);\n\t\t//removes and re-adds their mappings\n\t\tlocation.remove(e1.element);\n\t\tlocation.remove(e2.element);\n\t\tlocation.put((int)e1.element, j);\n\t\tlocation.put((int)e2.element, i);\n\t}", "private static void vecswap(int x[], int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a, b);\n\t}", "private void swapTwoTroopPositions(int row1, int col1, int row2, int col2) {\n BaseSingle temp = aliveTroopsFormation[row1][col1];\n aliveTroopsFormation[row1][col1] = aliveTroopsFormation[row2][col2];\n aliveTroopsFormation[row2][col2] = temp;\n if (aliveTroopsFormation[row1][col1] != null) {\n aliveTroopsMap.put(aliveTroopsFormation[row1][col1], row1 * width + col1);\n }\n if (aliveTroopsFormation[row2][col2] != null) {\n aliveTroopsMap.put(aliveTroopsFormation[row2][col2], row2 * width + col2);\n }\n }", "private static void swap(int[] array, int j, int i) {\r\n\t\tint temp = array[i];\r\n\t\tarray[i] = array[j];\r\n\t\tarray[j] = temp;\r\n\t}", "public void swapButtons(int i1, int j1, int i2, int j2) {\n\n\t// Swap locations of two elements in the state array.\n int temp = stateArray[i1][j1];\n stateArray[i1][j1] = stateArray[i2][j2];\n stateArray[i2][j2] = temp;\n\n // Update state if there is collapsed row or column after swapping.\n if(!isGoodState()) {\n updateState();\n\n // Else - swap back the positions of the elements.\n }else {\n \ttemp = stateArray[i2][j2];\n \tstateArray[i2][j2] = stateArray[i1][j1];\n stateArray[i1][j1] = temp;\n }\n }", "public static void swap(int[] arr, int s,int e){\n int t = arr[s];\n arr[s] = arr[e];\n arr[e] = t;\n }", "public void swapPieceValues(int x, int y, int row, int col) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.row = row;\n\t\tthis.col = col;\n\t}", "public void swap(int i, int j) {\n swapRows(i, j);\n swapColumns(i, j);\n }", "private Board swap(int row1, int col1, int row2, int col2) {\n int[][] copy = new int[N][N]; // Instantiate a new N x N tile grid to avoid mutating the instance tile grid\n for (int row = 0; row < N; row++)\n copy[row] = tiles[row].clone(); // Copy each row of the instance grid to the copy grid\n\n // Swap tiles at the row/column indeces passed to the method\n int temp = copy[row1][col1];\n copy[row1][col1] = copy[row2][col2];\n copy[row2][col2] = temp;\n\n return new Board(copy); // Return new board containing swapped tiles\n }", "private void rearrangeSolution() {\r\n List<Integer> trinity = new ArrayList<Integer>();\r\n trinity.add(0); trinity.add(1); trinity.add(2);\r\n permutateDigits();\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapRow(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapCol(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n }", "private static <T> void vecswap(float x[],T[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "public static void swap(List<Integer> values, int i, int j) {\r\n int temp = values.get(i);\r\n values.set(i, values.get(j));\r\n values.set(j, temp);\r\n }", "public void swap(){\n\t\ttempQueue = new LinkedBlockingQueue<Run>();\n\t\t\n\t\tint count = 1;\n\t\t// Loop through queue and add to the tempQueue.\n\t\twhile( !finishQueue.isEmpty() ) {\n\t\t\tRun current = finishQueue.poll();\n\t\t\tif( count == 2 ){\n\t\t\t\tsecondRunner = current;\t// Save second runner for swapping.\n\t\t\t} else {\n\t\t\t\ttempQueue.add(current);\n\t\t\t}\n\t\t\t++count;\n\t\t}\t\n\t\t\n\t\tfinishQueue.add(secondRunner);\n\t\twhile(!tempQueue.isEmpty()){\n\t\t\tRun current = tempQueue.poll();\n\t\t\tfinishQueue.add(current);\n\t\t}\n\t}" ]
[ "0.6961127", "0.6376514", "0.61003244", "0.57670134", "0.5744586", "0.57325387", "0.5705627", "0.5662177", "0.5656746", "0.5653727", "0.56515425", "0.56339693", "0.56099063", "0.5595342", "0.5592343", "0.55616355", "0.55568814", "0.55544573", "0.55452", "0.5539677", "0.55373627", "0.55369854", "0.5521515", "0.54944474", "0.5485591", "0.5471872", "0.5450005", "0.5444977", "0.543994", "0.54328597", "0.54076564", "0.5404823", "0.5398825", "0.53916144", "0.53740907", "0.5369863", "0.53546554", "0.5354404", "0.53514504", "0.5332118", "0.5326839", "0.5325699", "0.5325699", "0.53191215", "0.5313019", "0.5306435", "0.5299903", "0.52958494", "0.5283777", "0.52830637", "0.5274916", "0.52742094", "0.5269425", "0.5268921", "0.5262859", "0.52628255", "0.5248844", "0.5242062", "0.52418685", "0.5238759", "0.52361214", "0.5235535", "0.5234673", "0.5231056", "0.5226475", "0.52248585", "0.5222926", "0.5222926", "0.52214175", "0.52184755", "0.5215126", "0.52102685", "0.52098393", "0.5198609", "0.5189466", "0.5184175", "0.51821077", "0.5181095", "0.5175236", "0.5174717", "0.51617825", "0.5160866", "0.51491225", "0.5144584", "0.51383233", "0.51357096", "0.5131997", "0.51265216", "0.51234865", "0.51230335", "0.51184165", "0.5116311", "0.5109413", "0.51082456", "0.51060414", "0.5095053", "0.5093077", "0.5086668", "0.5084457", "0.5083603", "0.50796753" ]
0.0
-1
This method will be executed once the timer is over Start the app main activity
@Override public void run() { Intent i = new Intent(getBaseContext(), HomeActivity.class); startActivity(i); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n Log.i(\"going to\", \"activity\" + i);\n finish();\n }", "@Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n // Start your app main activity\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n\r\n // close this activity\r\n finish();\r\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n checkMainSetupCompletion();\n Intent i;\n if(isPermanentlySkipped == 1 || isFacebookLoggedIn == 1 )\n i = new Intent(SplashScreen.this, menuActivity.class);\n else\n i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n // close this activity\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(SplashScreen.this, LoginScreen.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n play();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n startRecording();\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This method will be executed once the timer is over\n\t\t\t\t\t\t// Start your app main activity\n\t\t\t\t\t\tIntent i = new Intent(WelcomeScreen.this,\n\t\t\t\t\t\t\t\tLoginActivity.class);\n\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t// close this activity\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n if (flag == true) {\n Intent intent = new Intent(SplashActivity.this, DashBoard.class);\n finish();\n startActivity(intent);\n }\n else {\n Intent intent1 = new Intent(SplashActivity.this, LoginActivity.class);\n finish();\n startActivity(intent1);\n }\n\n\n // close this activity\n finish();\n }", "private AppTimer() {\n\t\tstart();\n\t}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n if (serverUrl != null)\n emerTokenApiCall();\n else {\n Bundle bndlanimation = ActivityOptions.makeCustomAnimation(SplashScreenActivity.this, R.anim.anim_out, R.anim.anim_in).toBundle();\n Intent i = new Intent(SplashScreenActivity.this, CompanyDomainActivity.class);\n startActivity(i, bndlanimation);\n SplashScreenActivity.this.finish();\n }\n\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n session = new SessionManagement(getApplicationContext());\n\n redirect();\n\n // close this activity\n finish();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n timer = new Timer();\n timer.schedule(timerTask, 0, 60000);\n }", "@Override\n public void run() {\n\n\n if(sessionManager.isLoggedIn()){\n\n // This method will be executed once the timer is over\n // Start your app main activity\n mDilatingDotsProgressBar.hideNow();\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n\n }else{\n\n // This method will be executed once the timer is over\n // Start your app main activity\n mDilatingDotsProgressBar.hideNow();\n Intent i = new Intent(SplashActivity.this, LoginActivity1.class);\n startActivity(i);\n }\n\n\n\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n timer = new Timer();\n TimerTask timeOutTask = new TimerTask() {\n @Override\n public void run() {\n timeOut(); }\n };\n timer.schedule(timeOutTask, main_screen.logoutTime);\n }", "private void timerStart()\r\n { updateTimer.postDelayed(updateTimerTask, UPDATE_TIME); }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n\n String token = PreferenceConnector.readString(getApplicationContext(), ApplicationConstants.API_ACCESS_TOKEN, null);\n if (token != null) {\n Intent i = new Intent(SplashScreen.this, InstagramDemoMainFragment.class);\n // Intent i = new Intent(SplashScreen.this, graph.class);\n startActivity(i);\n } else {\n Intent i = new Intent(SplashScreen.this, InstagramAutho.class);\n // Intent i = new Intent(SplashScreen.this, graph.class);\n startActivity(i);\n }\n // close this activity\n finish();\n }", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(VisiWlcmActivity.this, VisiNavigatorMainActivity.class);\n i.putExtra(\"name\",name);\n i.putExtra(\"vuserid\",vuserid);\n startActivity(i);\n\n // close this activity\n finish();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_splash_screen);\n\t\tnm1 = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); //Declaracion de notificacion\n\t\t\n\t\tTimerTask task = new TimerTask(){\n\t\t @Override\n\t public void run() {\n\t Intent mainIntent = new Intent().setClass(SplashScreen.this, MainActivity.class);\n\t startActivity(mainIntent);\n\t finish();//Destrucion de la actividad, usuario no tendra oportunidad de verla hasta reiniciar\n\t }\t\t\n\t};\n\tTimer timer = new Timer();\n\ttimer.schedule(task, splashDelay); //Pasando los 6 segundos entramos a la tarea en si\n\tnoti1();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_welcome);\n\n final Handler handler = new Handler(WelcomeActivity.this.getMainLooper()){\n public void handleMessage(Message msg) {\n\n if (msg.what == -1) {\n\n if (!ifStartMainActivity) {\n ifStartMainActivity = true;\n\n tk = new TokenKeeper(getApplicationContext());\n// tk.logoutUser();\n\n if(!tk.isUserLoggedIn()){\n// Intent it = new Intent(WelcomeActivity.this, LoginActivity.class);\n Intent it = new Intent(WelcomeActivity.this, LoginActivity.class);\n startActivity(it);\n finish();\n }else{\n tk.getUser();\n Intent it2 = new Intent(WelcomeActivity.this, MyNewDaysActivity.class);\n startActivity(it2);\n finish();\n }\n }\n }\n }\n };\n\n// mAccount = CreateSyncAccount(this);\n\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n handler.sendEmptyMessage(-1);\n }\n };\n\n timer.schedule(task, 1500);\n }", "void start_timer(){\n tv_verify_downtime.setVisibility(View.VISIBLE);\n countDownTimer.start();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_splash_screen);\r\n StartAnimations();\r\n\r\n new Handler().postDelayed(new Runnable() {\r\n\r\n\r\n @Override\r\n public void run() {\r\n // This method will be executed once the timer is over\r\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n }, 5000);\r\n }", "private void startTimer() {\n\n // The timer runs for one second. When the timer is finished, it evaluates the alerts, and displays them if needed.\n // When the timer finishes, it restarts.\n alertTimer = new CountDownTimer(1000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n }\n\n public void onFinish() {\n\n if(Controller.evaluateSpeedAlert()) {\n Intent intent = new Intent(context, SpeedActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n\n if(Controller.evaluateFuelConsumptionAlert()) {\n Intent intent = new Intent(context, FuelActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n\n if(Controller.evaluateBrakeAlert()) {\n Intent intent = new Intent(context, BrakesActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n\n if(Controller.evaluateDriverDistractionLevelAlert()) {\n Intent intent = new Intent(context, DistractionActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n\n alertTimer.start();\n\n }\n\n }.start();\n\n }", "@Override\n public void run() {\n // Esse método será executado sempre que o timer acabar\n // E inicia a activity principal\n myapp = (EntregasApp)getApplicationContext();\n\n if(myapp.getStatus()){\n if (myapp.getUsuario().getUuid() == null){\n myapp.logout();\n } else if (myapp.getUsuario().getUuid().isEmpty()){\n myapp.logout();\n }\n }\n if (myapp.getStatus()) {\n //Intent i = new Intent(SplashActivity.this,MainActivity.class );\n //Intent i = new Intent(SplashActivity.this, MainActivity.class);\n Intent i = new Intent(SplashActivity.this, PrincipalDraweActivity.class);\n\n //Intent i = new Intent(SplashActivity.this,MainActivityFreeTrackGps.class );\n startActivity(i);\n } else {\n Intent i = new Intent(SplashActivity.this,LoginActivity.class);\n startActivity(i);\n }\n // Fecha esta activity\n finish();\n }", "@Override\n public void run() {\n try {\n // Sleeping\n Thread.sleep(2800);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n startMainActivity();\n }", "@Override\n public void run() {\n progressBar.setVisibility(View.GONE);\n // Esse método será executado sempre que o timer acabar\n // E inicia a activity principal\n Intent i = new Intent(SplashAct.this, LogEnter.class);\n startActivity(i);\n\n // Fecha esta activity\n finish();\n }", "@Override\n public void onCreate() {\n this.rand = randomWithRange(MIN,MAX);\n if (mTimer != null) {\n mTimer.cancel();\n } else {\n // recreate new\n mTimer = new Timer();\n }\n // schedule task\n mTimer.scheduleAtFixedRate(new TimeDisplayTimerTask(), 0, NOTIFY_INTERVAL);\n\n //shellExecuter = new ShellExecuter();\n }", "public void initializeTimer (){\n \t\t timer = new CountDownTimer(30000, 100) {\n \n \t\t\t public void onTick(long millisUntilFinished) {\n \t\t\t\t activity.setTime(String.valueOf(millisUntilFinished / 1000));\n //\t\t\t\t if (millisUntilFinished>10000){\n //\t\t\t\t\t if (millisUntilFinished%1000 == 0)\n //\t\t\t\t\t\t activity.setTime(String.valueOf(millisUntilFinished / 1000));\n //\t\t\t\t }\n //\t\t\t\t else{\n //\t\t\t\t\t activity.setTime((millisUntilFinished / 1000 + \".\" + (millisUntilFinished%1000)/100));\n //\t\t\t\t }\t \n \t\t\t }\n \n \t\t\t public void onFinish() {\n \t\t\t\t activity.gameState = GuessCharadeActivity.GAME_FINISHED;\n \t\t\t\t videoView.stopPlayback();\n \t\t\t\t turn.setRecPlayerScore(0);\n \t\t\t\t turn.setAnsPlayerScore(0);\n \t\t\t\t turn.setState(Turn.FINISH);\n \t\t\t\t updateModel();\n \t\t\t\t activity.finishDialog();\n \t\t\t }\n \t\t };\n \t }", "public void startTimer(){\n timerStarted = System.currentTimeMillis();\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tEndTimer();\n\t\tStartTimer();\n\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.set_confirmation);\n timer.startCountDownTimer();\n\n Ok=(Button)findViewById(R.id.button);\n Ok.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n timer.stopCountDownTimer();\n startActivity(new Intent(SetConfirmation.this, AlarmMenu.class));\n finish();\n }\n });\n\n try\n {\n\n }\n\n catch(Exception e)\n {\n timer.stopCountDownTimer();\n startActivity(new Intent(SetConfirmation.this, ErrorScreen.class));\n finish();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n System.out.println(\"start: \" + boardManager.getLastTime());\n startTimer(boardManager.getLastTime());\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\n\t\tThread timer = new Thread() {\n\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsleep(2500);\n\t\t\t\t\tif (android.os.Build.VERSION.SDK_INT >= 11)\n\t\t\t\t\t{\n\t\t\t\t\t\tstartActivity(new Intent(\n\t\t\t\t\t\t\t\t\"com.gameprobabilities.siokas.MAIN_ACTIVITY\"));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstartActivity(new Intent(\"com.gameprobabilities.siokas.MENU\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\n\t\t};\n\n\t\ttimer.start();\n\n\t}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n if (firebaseAuth.getCurrentUser()!=null)\n {\n if (lang.equals(\"null\")||lang.length()<=0) {\n //language\n finish();\n startActivity(new Intent(splash.this, language.class));\n System.err.println(lang);\n }\n else {\n //bookdisp\n finish();\n startActivity(new Intent(splash.this, bookdisp.class));\n }\n\n }\n else\n {\n finish();\n startActivity(new Intent(splash.this,loginf.class));\n }\n\n\n // close this activity\n /* Config config = new Config().setThemeColor(R.color.colorPrimaryDark);\n FolioReader folioReader = FolioReader.getInstance(getApplicationContext());\n System.out.println(folioReader);\n folioReader.setConfig(config, true).openBook(R.raw.adventures);\n */\n\n }", "public void onFinish() {\n\n Log.i(\"Done!\", \"Coundown Timer Finished\");\n\n }", "@Override\n public void onFinish() {\n timerActive=false;\n\n //play sound on finish\n //instead of MainActivity.this, we can also use getApplicationContext()\n MediaPlayer mPlayer = MediaPlayer.create(MainActivity.this,R.raw.airhorn);\n mPlayer.start();\n bview.setText(\"GO\");\n }", "@Override\r\n protected void onResume() {\n mDjiGLSurfaceView.resume();\r\n \r\n mTimer = new Timer();\r\n Task task = new Task();\r\n mTimer.schedule(task, 0, 500); \r\n \r\n DJIDrone.getDjiMC().startUpdateTimer(1000);\r\n super.onResume();\r\n }", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "private void TimerMethod() {\n this.runOnUiThread(Timer_Tick);\n }", "@Override\npublic void autonomousInit() {\n m_timer.reset();\n m_timer.start();\n}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (user != null) {\n redireccionar();\n }else{\n Intent intent = new Intent(SplashScreen.this, Login.class);\n startActivity(intent);\n }\n\n }\n }\n };\n timerThread.start();\n }", "public void startTimer() {\n startTime = System.currentTimeMillis();\n }", "public void onStartRunning();", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.activity_splash_screen);\n\n intent = new Intent(this, MainActivity.class);\n\n\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n\n //Start MainActivity\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "protected void recurringAlert() {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DeviceTrackerApplication.getContext());\n alertDialogBuilder.setTitle(getString(R.string.app_name));\n alertDialogBuilder\n .setMessage(R.string.user_not_logged_in)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_msg, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (!Utils.isAppInForeground(LoggedInCheckService.this)) {\n Intent intent = new Intent(LoggedInCheckService.this, SplashActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }\n });\n alertDialog = alertDialogBuilder.create();\n alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);\n\n if (timer2 != null) {\n timer2.cancel();\n }\n\n timer2 = new Timer();\n long alertInterval = getSharedPreferences(Utility.SETTINGS_SHARED_PREFERENCE, Context.MODE_PRIVATE).getInt(Utility.ALERT_INTERVAL, 2) * 60 * 1000;\n timer2.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n Handler handler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message msg) {\n alertDialog.show();\n }\n };\n Message message = handler.obtainMessage();\n message.sendToTarget();\n }\n }, alertInterval , alertInterval);\n\n }", "public boolean onStart(View view) {\n afterCheck=false;\n // challenge.setEnabled(true);\n userTurn = random.nextBoolean();\n TextView text = (TextView) findViewById(R.id.ghostText);\n text.setText(\"\");\n TextView label = (TextView) findViewById(R.id.gameStatus);\n\n\n if (userTurn) {\n label.setText(USER_TURN);\n startCheck=2;\n } else {\n label.setText(COMPUTER_TURN);\n startCheck=1;\n // challenge.setEnabled(false);\n //computerTurn();\n handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do something after 2seconds\n //invoke computerturn\n computerTurn();\n }\n }, 2000);\n }\n return true;\n }", "public void userStart(View view){\n\n glay.animate().alpha(1).start();\n wlay.animate().alpha(0).start();\n\n\n started = true;\n\n\n\n ilay.animate().alpha(0).start();\n //Defining the score and total of exercises\n score = total = 0;\n\n //set the time\n sec = 60;\n start.animate().alpha(0).start();\n appRun();\n\n }", "void onStart(int duration);", "@Override\n public void onCreate() {\n\n if(mTimer != null) {\n mTimer.cancel();\n } else {\n // recreate new\n mTimer = new Timer();\n }\n // schedule task\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY,11);\n calendar.set(Calendar.MINUTE,00);\n calendar.set(Calendar.SECOND,0);\n calendar.set(Calendar.MILLISECOND,0);\n\n if (calendar.before(new Date())){\n calendar.add(Calendar.DAY_OF_MONTH,1);\n };\n\n //Find next weekday\n int tag = calendar.get(Calendar.DAY_OF_WEEK);\n while ((tag < 2) || (tag > 6)) {\n calendar.add(Calendar.DAY_OF_MONTH,1);\n tag = calendar.get(Calendar.DAY_OF_WEEK);\n };\n\n mTimer.scheduleAtFixedRate(new TimeDisplayTimerTask(this.getApplicationContext()),calendar.getTime(),NOTIFY_INTERVAL);\n }", "@Override\n\tpublic void onCreate() {\n\t\tif (mTimer != null) {\n\t\t\tmTimer.cancel();\n\t\t} else {\n\t\t\t// recreate new\n\t\t\tmTimer = new Timer();\n\t\t}\n\t\t// schedule task\n\t\tmTimer.scheduleAtFixedRate(new TimeDisplayTimerTask(), 0,\n\t\t\t\tNOTIFY_INTERVAL);\n\t}", "public void start(View view) {\n if (counterActive) {\n resetTimer();\n\n } else {\n counterActive = true;\n timerSeekBar.setEnabled(false);\n button.setText(\"Stop!\");\n counter = new CountDownTimer(timerSeekBar.getProgress() * 1000 + 100, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n updateTimer((int) millisUntilFinished / 1000);\n getData();\n if (parkingIsFree) {\n resetTimer();\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), \"ID\")\n .setSmallIcon(R.drawable.map)\n .setContentTitle(\"OVGO App\")\n .setContentText(\"The parking lot is free again.\")\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getApplicationContext());\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(2, builder.build());\n }\n\n }\n\n @Override\n public void onFinish() {\n\n resetTimer();\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), \"ID\")\n .setSmallIcon(R.drawable.map)\n .setContentTitle(\"OVGO App\")\n .setContentText(\"Time is up.The requested lot is still full!\")\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getApplicationContext());\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(1, builder.build());\n\n }\n }.start();\n }\n }", "protected void onFirstTimeLaunched() {\n }", "@Override\n\tprotected void onResume() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onResume();\n\t\tnew My_orientation().start();\n\t\t if (startTime_ == 0)\n startTime_ = System.currentTimeMillis();\n\n // Instantiate here so that startTime_ is always valid\n countdownTask_ = new CountdownTimerTask();\n\n // Schedule the timer task\n timer_.scheduleAtFixedRate(countdownTask_, 1000, 1000);\n long[] pattern = { 100, 200 };\n int repeat = 0;\n vibrator_.vibrate(pattern, repeat);\n \tTelephonyManager man = (TelephonyManager) super\n .getSystemService(Context.TELEPHONY_SERVICE);\n deviceId = man.getDeviceId();\n \n Intent i=this.getIntent();\n Acc=i.getDoubleExtra(\"acc\", 0);\n \t\tspeed =i.getFloatExtra(\"speed\", 0);\n \t\tSD=i.getFloatExtra(\"ssd\", 0);\n \t\tlat=i.getDoubleExtra(\"lat\", 0);\n \t\tlon=i.getDoubleExtra(\"lon\", 0);\n \t\tScenario=i.getStringExtra(\"scenario\");\n \t\telapsed_period=i.getIntExtra(\"elpasedPeriod\", 0);\n \t\tCanIrecordVideo=i.getBooleanExtra(\"videoState\", true);\n \t\tCanISendSMS=i.getBooleanExtra(\"smsState\", true);\n \t\tAirbageStae=i.getBooleanExtra(\"airbagState\", true);\n \t\tDiff_detection=i.getLongExtra(\"Diff\", 0);\n }", "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n public void run() {\n Log.e(tag, \"in timer ++++ \"+ (counter++));\n usageStatsManager = (UsageStatsManager) getApplicationContext().getSystemService(\"usagestats\");\n packageManager = getApplicationContext().getPackageManager();\n UsageEvents usageEvents = usageStatsManager.queryEvents(getStartTime(), System.currentTimeMillis());\n while (usageEvents.hasNextEvent()) {\n UsageEvents.Event event = new UsageEvents.Event();\n usageEvents.getNextEvent(event);\n if (event.getEventType() == UsageEvents.Event.MOVE_TO_FOREGROUND &&\n event.getPackageName().equalsIgnoreCase(\"com.google.android.youtube\"))\n {\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Sagar says - YouTube is Opened\", Toast.LENGTH_LONG).show();\n }\n });\n Log.e(tag, \"ACTION FOREGROUND\");\n Log.e(tag, \"PackageName \"+ event.getPackageName());\n Log.e(tag, \"timestamp \"+ new SimpleDateFormat\n (\"dd/MM/yyyy HH:mm:ss\").format(event.getTimeStamp()));\n }\n else if (event.getEventType() == UsageEvents.Event.MOVE_TO_BACKGROUND &&\n event.getPackageName().equalsIgnoreCase(\"com.google.android.youtube\"))\n {\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Sagar says - YouTube goes in background\", Toast.LENGTH_LONG).show();\n }\n });\n Log.e(tag, \"ACTION BACKGROUND\");\n Log.e(tag, \"PackageName \"+ event.getPackageName());\n Log.e(tag, \"timestamp \"+ new SimpleDateFormat\n (\"dd/MM/yyyy HH:mm:ss\").format(event.getTimeStamp()));\n }\n }\n }\n };\n }", "public void startTimer() {\n mStatusChecker.run();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash);\n ButterKnife.inject(this);\n\n if(getResources().getBoolean(R.bool.isTablet)){\n lyMain.setBackgroundResource(R.drawable.ic_tablet_splash);\n }else {\n lyMain.setBackgroundResource(R.drawable.ic_smatphone_splash);\n }\n\n Thread timerThread = new Thread() {\n public void run() {\n try {\n sleep(3000);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n startActivity(new Intent(SplashActivity.this, ApplicationsGridActivity.class));\n }\n }\n };\n timerThread.start();\n\n }", "@Override\n\tpublic void onInit(int status) {\n\t\t\n\t\tprompt(\"Thank you! Good Day!\");\n\t\tnew Timer().schedule(new TimerTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tAcknowledgementPresentActivity.this.finish();\n\t\t\t}\n\t\t}, 2000);\n\t}", "void startGameTimer()\n {\n Timer.destroyTimer(\"starting_game_timer\");\n Timer timer = Timer.createTimer(\"starting_game_timer\", startTimerSeconds);\n timer.addTimerListener(this);\n timer.start();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n //이걸 제일 먼저 해야됌\r\n AppManager.getInstance().setAppManager(this);\r\n\r\n AppManager.getInstance().setSize();\r\n AppManager.getInstance().setVibeSensor();\r\n AppManager.getInstance().setPreference();\r\n AppManager.getInstance().setMoveSensor();\r\n AppManager.getInstance().setResuorces(getResources());\r\n AppManager.getInstance().set_myMediaPlayer();\r\n AppManager.getInstance().set_mySoundPool();\r\n\r\n\r\n setContentView(new LoadingCanvas(this));\r\n\r\n Handler handler = new Handler();\r\n handler.postDelayed(new Runnable() {\r\n public void run() {\r\n Intent intent = new Intent(Loading.this, SelectMenu.class);\r\n startActivity(intent);\r\n finish();\r\n }\r\n }, 3000);\r\n }", "private void startTime()\n {\n timer.start();\n }", "public void ButtonStartClick(View view){\n\n final MyCountDownTimer cdt = new MyCountDownTimer(180000, 1000);\n\n cdt.start();\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n// queryTicket();\n// timer = new Timer();\n// timer.schedule(new TimerTask() {\n//\n// @Override\n// public void run() {\n// // TODO Auto-generated method stub\n// handler.sendEmptyMessage(1);\n// }\n// }, 0, 2000);\n }", "public void onFinish(){\n\n Log.i(\"Done!\", \"Countdown timer finished!\");\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //TODO: add any code you want to do while the splash screen is showing before the MainActivity is shown\n\n// try {\n// Thread.sleep(5000);\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "public void start(){\n handler = new Handler(Looper.getMainLooper());\n handler.postDelayed(this, PERIOD);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\t\tsound = MediaPlayer.create(this,R.raw.sound);\n\t\tsound.start();\n\t\tThread timer = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\ttry{\n\t\t\t\t\tsleep(6300);\n\t\t\t\t}catch(InterruptedException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tIntent window = new Intent(\"android.intent.action.Menu\");\n\t\t\t\t\tstartActivity(window);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\ttimer.start();\n\t}", "public void setTimer(View view) {\n Intent intent = new Intent(this, CreateTimer.class);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n\n mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n\n mSensorManager.registerListener(MainActivity.this , mSensor , mSensorManager.SENSOR_DELAY_NORMAL);\n\n setContentView(R.layout.activity_main);\n timer = (TextView) findViewById(R.id.timer_id);\n }", "@Override\n public void run() {\n time_ = (int) (System.currentTimeMillis() - startTime_) / 1000;\n updateUI();\n\n if (time_ >= maxTime_) {\n // Log.v(VUphone.tag, \"TimerTask.run() entering timeout\");\n handler_.post(new Runnable() {\n public void run() {\n report(true);\n }\n });\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n ImageView image = (ImageView)findViewById(R.id.logo);//logo image\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(), R.anim.side_slide); //animation\n image.startAnimation(animation1);\n TextView t = (TextView) findViewById(R.id.textView2);\n t.startAnimation(animation1);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n\n Intent mySuperIntent = new Intent(MainActivity.this, Main2Activity.class);//link to main activity 2\n startActivity(mySuperIntent);\n finish();\n }\n }, SPLASH_TIME);\n }", "@Override\r\n public void run() {\n try{\r\n // reset all the activity when the start button is pushed\r\n // this is needed because the service is started upon the app being opened\r\n if(bool2 == true){\r\n bool2 = false;\r\n myService.setBlank();\r\n }\r\n\r\n time1.setText((myService.getTime1()));\r\n activity1.setText((myService.getActivity1()));\r\n\r\n time2.setText((myService.getTime2()));\r\n activity2.setText((myService.getActivity2()));\r\n\r\n time3.setText((myService.getTime3()));\r\n activity3.setText((myService.getActivity3()));\r\n\r\n time4.setText((myService.getTime4()));\r\n activity4.setText((myService.getActivity4()));\r\n\r\n time5.setText((myService.getTime5()));\r\n activity5.setText((myService.getActivity5()));\r\n\r\n time6.setText((myService.getTime6()));\r\n activity6.setText((myService.getActivity6()));\r\n\r\n time7.setText((myService.getTime7()));\r\n activity7.setText((myService.getActivity7()));\r\n\r\n time8.setText((myService.getTime8()));\r\n activity8.setText((myService.getActivity8()));\r\n\r\n time9.setText((myService.getTime9()));\r\n activity9.setText((myService.getActivity9()));\r\n\r\n time10.setText((myService.getTime10()));\r\n activity10.setText((myService.getActivity10()));\r\n\r\n\r\n // every time a new activity is added to the UI, it will be written to\r\n // the external storage on a new line\r\n\r\n String externalStorage = Environment.getExternalStorageState();\r\n\r\n // this checks to see if external storage is available\r\n // if it is, then write to it\r\n if (Environment.MEDIA_MOUNTED.equals(externalStorage)) {\r\n\r\n // will create a file in the documents folder\r\n File root = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\r\n // will call the file assignment.txt\r\n File file = new File(root, \"assignment1.txt\");\r\n\r\n // this is a helper for the following if statement\r\n // see the explanation for the if statement\r\n if(bool3 == false){\r\n tmp = myService.getSeconds();\r\n bool3 = true;\r\n }\r\n\r\n // this if statements makes sure that content is written to the file every 2 minutes\r\n // without it, the same content would be written multiple during the minutes,\r\n // instead of just once at the 2 minute mark\r\n if ((myService.getSeconds() % myService.getTimeCheck()) == 0 && tmp != myService.getSeconds()){\r\n\r\n try{\r\n // the content that will be written to the\r\n String content = myService.getTime1() + \" \" + myService.getActivity1() + \"\\n\";\r\n\r\n // this is the code that writes the content to the file on the\r\n // external device\r\n FileOutputStream fileOutputStream = new FileOutputStream(file, true);\r\n fileOutputStream.write(content.getBytes());\r\n fileOutputStream.close();\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n // helper variable, see above\r\n bool3 = false;\r\n }\r\n }\r\n // if external storage is not available, write this Toast message\r\n else{\r\n Toast toast = Toast.makeText(getApplicationContext(), \"External Storage Is Not Available\", Toast.LENGTH_LONG);\r\n toast.show();\r\n }\r\n\r\n }\r\n //do nothing and keep running the program\r\n catch (NullPointerException e){\r\n\r\n }\r\n }", "public void startTimer() {\n\n if(mTimer == null) {\n mTimer = new Timer();\n }\n\n mElapsedTime = 0;\n mTimer.scheduleAtFixedRate(new TimerTask() {\n\n public void run() {\n mElapsedTime += 1; //increase every sec\n mTimerHandler.obtainMessage(TimerHandler.INCREASE_TIMER).sendToTarget();\n if (mLiveVideoBroadcaster == null || !mLiveVideoBroadcaster.isConnected()) {\n mTimerHandler.obtainMessage(TimerHandler.CONNECTION_LOST).sendToTarget();\n }\n }\n }, 0, 1000);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n \n mp = MediaPlayer.create(this, R.raw.love_story);\n mp.start();\n \n Thread logoTimer = new Thread(){\n \tpublic void run(){\n \t\ttry{\n \t\t\tint logoTimer = 0;\n \t\t\twhile(logoTimer<5000){\n \t\t\t\tsleep(100);\n \t\t\t\tlogoTimer = logoTimer +100;\n \t\t\t}\n \t\t\tstartActivity(new Intent(\"com.crognar.CLEARSCREEN\"));\n \t\t\t//clearscreen mag anders\n \t\t} \n \t\t\n \t\tcatch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\n \t\tfinally{\n \t\t\tfinish();\n \t\t}\n \t}\n };\n logoTimer.start();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n UserInfoData entry = new UserInfoData(this);\n \t\n \tentry.open();\n \t\n \tfinal String data = entry.getData();\n \t\n \tentry.close();\n Thread splashTimer = new Thread(){\n \tpublic void run(){\n \t\ttry{\n \t\t\tsleep(3000);\n \t\t\t\n \t}\n \t\tcatch(InterruptedException e){\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n finally{\n \tif (!data.equals(\"\")){\n \t\t\tstartActivity(new Intent (\"com.JacobyApps.android.mainMenu\")); \n \t}\n \t\telse{\n \n startActivity(new Intent (\"android.intent.action.Signup\"));\n \t}\n \tfinish();\n \t \n }\n \t \n \t}\n \t\n };\n splashTimer.start();\n }", "public void start() {timer.start();}", "@Override\n public void onStart() {\n super.onStart();\n waitForSplashAnimation(SPLASH_SCREEN_DELAY);\n }", "public void startCounter(){\n //keeps the counter value from the last time phone was unlocked\n lastPointsUnlocked = counter;\n if(!counterStarted) {\n timer = new Timer();\n //this timer will execute the code every intervalTime time\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n --counter;\n updateCounterView(null);\n //if counter reaches 0 stop counter\n if (counter <= 0) {\n updateCounterView(\"0\");\n MainActivity.setGameOn(false);\n timer.cancel();\n //if phone was unlocked for a while stop timer too\n } else if((lastPointsUnlocked - counter)>totalPoints/5 && !PhoneService.isPhoneLocked()) {\n System.out.println(\"Lost more than 1/5, bomb is deactivated\");\n timer.cancel();\n }\n }\n }, intervalTime, intervalTime);\n counterStarted = true;\n }\n }", "private void startTimerAfterCountDown() {\n \t\thandler = new Handler();\n \t\tprepareTimeCountingHandler();\n \t\thandler.post(new CounterRunnable(COUNT_DOWN_TIME));\n \t}", "@Override\n public void onStart() {\n super.onStart();\n\n /*\n * If call is initiated then we have to reset the timer to initial time.\n * Also inform the user that Authorities have been alerted and video has benn sent.\n */\n if (isCallInitiated) {\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n\n mFiveSecondsScreen.setVisibility(View.GONE);\n enableAuthorityAlertedText();\n enableRecordVideoImages();\n } else {\n disableAuthorityAlertedText();\n }\n\n enableCenterText();\n\n if (!isCameraRecording) {\n disableAuthorityAlertedText();\n }\n\n // Keep screen on when on this view\n getActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }", "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n public void run() {\n Log.i(\"in timer\", \"in timer ++++ \"+ (counter++));\n cek_tugas();\n uploadphoto();\n cekNotifSampai();\n cekJanjiSurvey();\n }\n };\n }", "public void onResume()\n {\n lastTime = System.currentTimeMillis();\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\t\n\t\tfromAlarm = false;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n productAdvertise();\n setTimer();\n }", "private void startTimer()\n {\n if (timer == null)\n {\n timer = new CountDownTimer(TIMER_MILLI_SEC, 1000)\n {\n @Override\n public void onTick(long l)\n {\n timerText.setText(\"\" + l / 1000);\n }\n\n @Override\n public void onFinish()\n {\n // Let P2 play\n if (secondPlayer instanceof IAPlayer)\n {\n ((IAPlayer) secondPlayer).playRandom();\n }\n // Animations and full results\n announceRoundResult();\n\n // Hide timer\n timerText.setVisibility(View.GONE);\n gameControlButton.setVisibility(View.VISIBLE);\n }\n };\n }\n\n // Clean UI state\n gameControlButton.setVisibility(View.INVISIBLE);\n timerText.setVisibility(View.VISIBLE);\n\n drawIcon.setVisibility(View.INVISIBLE);\n firstCup.setVisibility(View.INVISIBLE);\n secondCup.setVisibility(View.INVISIBLE);\n\n // Reset users actions\n resetActionButtonsState();\n firstPlayer.resetLastAction();\n secondPlayer.resetLastAction();\n\n // First player plays first\n if (firstPlayer instanceof IAPlayer)\n {\n ((IAPlayer) firstPlayer).playRandom();\n }\n\n // Start count down\n timer.start();\n }", "public void run() {\n handler.post(new Runnable() {\n public void run() {\n YOURNOTIFICATIONFUNCTION();\n\n Log.e(\"WWWWW\", \"WWWWWWWWW\" + timer);\n\n }\n });\n }", "@Override\n public void onCreate()\n {\n Log.d(\"Service\", \"onCreate\");\n n = 1;\n myPreferences = getSharedPreferences(\"setting\", Activity.MODE_PRIVATE);\n editor = myPreferences.edit();\n load = new UpLoad(getBaseContext());\n mRequestQueue = Volley.newRequestQueue(getBaseContext());\n timer = new Timer();\n timer.schedule(new Work(),0, 4000);\n// new BroadCastUdp().start();\n super.onCreate();\n }", "public void startTimer()\n {\n\n timeVal = 0;\n timer = new Timer();\n\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n timeVal++;\n timeText.setText(\"Time: \" + timeVal);\n }\n }, 0, 1000);\n }", "@Override\n public void onFinish() {\n Log.d(\"timer\", \"finished one timer cycle\");\n new DownloadDataTask().execute(USGS_URL);\n try {\n // get the most recent earthquake\n mostRecentEarthquake = getFirstEarthquakeFromJson();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // notify user of earthquake\n Intent i = new Intent(getBaseContext(), EarthquakeWatchService.class);\n i.putExtra(\"earthquake\", mostRecentEarthquake);\n startService(i);\n createAndStartTimer();\n }", "private void runTimer() {\n\n // Handler\n final Handler handler = new Handler();\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n if (playingTimeRunning) {\n playingSecs++;\n }\n\n handler.postDelayed(this, 1000);\n }\n });\n\n }", "private void start() {\n _countdownBar = new TimeProgressBar((ProgressBar) findViewById(R.id.game_pb_countdown), _game);\n _gameView.setClickable(true);\n _startBtn.setEnabled(false);\n _game.startGame();\n _countdownBar.startTimer();\n }", "@Override\n\tpublic void onCreate() {\n\t\tcounter = 0;\n\t\tTimerTask timerTask = new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tcounter = counter + 1;\n\t\t\t\tLog.d(\"SvcCounter\", Integer.toString(counter));\n\t\t\t\tIntent counterValue = new Intent(\"CounterValue\");\n\n\t\t\t\tcounterValue.putExtra(\"cValue\", counter);\n\t\t\t\tsendBroadcast(counterValue);\n\t\t\t}\n\t\t};\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(timerTask, delay = 2000, period = 5000);\n\t\tsuper.onCreate();\n\t}", "public void beginTimer(View view) {\n if (!isRunning) {\n isRunning = true;\n startButton.setText(R.string.stop_text);\n startTime = System.currentTimeMillis();\n timeHandler.removeCallbacks(startTimer);\n timeHandler.postDelayed(startTimer, 0);\n } else {\n startButton.setText(R.string.go_button);\n stopTimer();\n }\n }", "private void countdown(){\n timer = new CountDownTimer(timeLeft, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n timeLeft = millisUntilFinished;\n updateTimerView();\n }\n @Override\n public void onFinish() {\n timeLeft = 0;\n updateTimerView();\n checkAnswer();\n }\n }.start();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.splash);\n\t\ttActivityDisplay = (TextView) findViewById(R.id.tView1);\n\t\t//playSong = MediaPlayer.create(Splash.this,R.raw.aakasam);\n\t\tSharedPreferences getPrefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\tboolean musicPref = getPrefs.getBoolean(\"checkbox\",true);\n\n\tif (musicPref == true)\n\t//playSong.start();\n\t\t;\n\t Thread timer = new Thread (){\n\t\t public void run(){\n\t\t\t try {\n\t\t\t\t sleep(5000);\n\t\t\t } catch (InterruptedException e){\n\t\t\t\t e.printStackTrace();\n\t\t\t } finally {\n\t\t\t\t Intent startAnotherActivity = new Intent(\"android.intent.action.MENU\");\n\t\t\t startActivity(startAnotherActivity);\n\t\t\t }\n\t\t }\n\t\t \n\t };\n\t \n\t timer.start();\n\t\t\n\t\n\t}", "@SuppressLint(\"NewApi\")\r\n\t@Override\r\n\tprotected void onCreate(Bundle savedInstanceState)\r\n\t{\r\n\t\tsuper.onCreate(savedInstanceState) ;\r\n\t\tsetContentView(R.layout.main) ;\r\n\r\n\t\tbutton = (Button) findViewById(R.id.button1) ;\r\n\t\t\r\n\t\ttimer = new MyTimer(this) ;\r\n\t\ttimer.setBase(SystemClock.elapsedRealtime() - 30000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\ttimer.setOnChronometerTickListener(new OnChronometerTickListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void onChronometerTick(Chronometer chronometer)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tbutton.setText(timer.getText()) ;\r\n\t\t\t\t\r\n/*\t\t\t\tToast.makeText(Main.this, \"is adkadjakdjkad\", Toast.LENGTH_SHORT).show() ;\r\n\t\t\t\t\r\n\t\t\t\tlong myElapsedMillis = SystemClock.elapsedRealtime() - timer.getBase() ;\r\n\t\t\t\tString strElapsedMillis = \"Elapsed milliseconds: \" + myElapsedMillis ;\r\n\t\t\t\tToast.makeText(Main.this, strElapsedMillis, Toast.LENGTH_SHORT).show() ;*/\r\n\t\t\t}\r\n\t\t}) ;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tbutton.setOnClickListener(new OnClickListener()\r\n\t\t{\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\r\n\t\t\t\tToast.makeText(Main.this, \"timer: \" + (timer == null) , Toast.LENGTH_SHORT).show() ;\r\n\t\t\t\tif (timer.isRunning)\r\n\t\t\t\t{\r\n\t\t\t\t\ttimer.stop() ;\r\n\t\t\t\t\tToast.makeText(Main.this, \"stop running\", Toast.LENGTH_SHORT).show() ;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ttimer.start() ;\r\n\t\t\t\t\tToast.makeText(Main.this, \"start running\", Toast.LENGTH_SHORT).show() ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "private void setNewTimer() {\n if (!isSetNewTimerThreadEnabled) {\n return;\n }\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n\n @Override\n public void run() {\n // Send the message to the handler to update the UI of the GameView\n GameActivity.this.handler.sendEmptyMessage(UPDATE);\n\n // For garbage collection\n System.gc();\n }\n\n }, 0, 17);\n }", "@Override\n public void run() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm aa\",\n Locale.getDefault());\n String formattedTime = sdf.format(System.currentTimeMillis());\n tvAlarmTime.setText(formattedTime);\n\n tvAlarmTitle.setText(R.string.snoozed_alarm);\n }", "public void StartTimer() {\n\t\tCount = new Timer();\n\t}", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void onFinish() {\n textViewInput.setVisibility(View.INVISIBLE);\n buttonStartTime.setVisibility(View.VISIBLE);\n mProgressBar.setVisibility(View.VISIBLE);\n mProgressBar1.setVisibility(View.GONE);\n textViewInput.setText(\"\");\n textViewShuffle.setText(givenWord);\n buttonBuyTime.setVisibility(View.INVISIBLE);\n\n //put the new score into highScore list (if suitable)\n\n SharedPreferences preferences = getSharedPreferences(\"TIME_PREFS\", 0);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(\"latestscore\", score);\n editor.apply();\n\n //Hide the soft keyboard when timer finishes\n// textViewInput.onEditorAction(EditorInfo.IME_ACTION_DONE);\n\n closeKeyboard();\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\n\t\t\t\ttry {\n\t\t\t\t\tsleep(2000);\n\t\t\t\t\tfinish();\n\t\t\t\t\tstartActivity(new Intent(getApplicationContext(), StartActivity.class));\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}" ]
[ "0.807211", "0.79716164", "0.79587513", "0.76407665", "0.761142", "0.7559602", "0.7546117", "0.74112004", "0.7320499", "0.72840554", "0.7211744", "0.72001016", "0.71805525", "0.70911676", "0.7016919", "0.6983901", "0.6970407", "0.6937751", "0.68917346", "0.6877359", "0.68749434", "0.6865839", "0.68601394", "0.68552613", "0.6812738", "0.67915994", "0.6774241", "0.6664466", "0.66642386", "0.66394377", "0.66025805", "0.6602007", "0.6599408", "0.6588851", "0.6582876", "0.6575973", "0.6568416", "0.6550401", "0.6527168", "0.6521379", "0.65208346", "0.64983517", "0.6478384", "0.6475582", "0.64660656", "0.6465596", "0.64590305", "0.64580035", "0.6444966", "0.6435579", "0.6419133", "0.6412721", "0.641244", "0.64107794", "0.6402394", "0.6381113", "0.6372348", "0.63618493", "0.63309276", "0.6321112", "0.631362", "0.6310665", "0.6305476", "0.6285846", "0.6281018", "0.62801915", "0.6279675", "0.6276583", "0.62712085", "0.62683356", "0.62606406", "0.6253292", "0.6251641", "0.6248951", "0.62466705", "0.62449485", "0.6239595", "0.6236774", "0.6228625", "0.62263906", "0.62165743", "0.621555", "0.62152743", "0.61989754", "0.6178117", "0.6176746", "0.6172892", "0.6167488", "0.6164539", "0.61638904", "0.6160769", "0.6147831", "0.6147285", "0.6146903", "0.61409396", "0.61401206", "0.6138688", "0.61363024", "0.61180913", "0.61124223", "0.6110408" ]
0.0
-1
boolean shouldall = true;
@Override protected void onResume() { super.onResume(); if (hasBeenSecurity) { if (KeyguardSetting.isAccessibilityEnable(this)) { Util.putPreferenceBoolean(mContext, NOTIFICATION_CHECK, true); mCheckBoxToggle.setChecked(true); } else { mCheckBoxToggle.setChecked(false); } } else { if (KeyguardSetting.isAccessibilityEnable(this) && Util.getPreferenceBoolean(mContext, NOTIFICATION_CHECK, false)) { // TODO 修改逻辑 mCheckBoxToggle.setChecked(true); } else { mCheckBoxToggle.setChecked(false); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAll();", "boolean hasAll();", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public void initializeBoolean(){\n\t\tisEndTime = false;\n\t\tdisplayTimeCount = true;\n\t\tmoveDistanceCount = true;\n\t\tguessCounter = true;\n\t\t\n\t\t\n\t\ttutorial1 = true;\n\t\ttutorial2 = false;\n\t\twin = false;\n\t\tgoLeft = false;\n\t\tgoRight = false;\n\t\tballShoot = false;\n\t\tactiveBall = false;\n\t}", "boolean isAlwaysTrue();", "private CheckBoolean() {\n\t}", "boolean isSetStraight();", "public boolean isAllValues() { return this.isAll; }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public void setRequireAll(final boolean flag) {\n checkSetterPreconditions();\n requireAll = flag;\n }", "boolean isBeating();", "public boolean merayap()\n {\n boolean merayap= true;\n return merayap;\n }", "public void setArrAll(boolean isArrAll) {\n\t\tthis.isArrAll = isArrAll;\n\t}", "boolean isSetLastrun();", "boolean isSetLegs();", "public void setAll(boolean all) {\n uppercase = all;\n lowercase = all;\n numbers = all;\n symbols = all;\n }", "boolean hasAutomatic();", "public void nonTestCase(boolean isTestAll) { }", "boolean isSetLastrunresult();", "boolean isImmediate();", "boolean isIsInitial();", "public boolean isGoal() {\n return humming() = 0;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isArrAll() {\n\t\treturn isArrAll;\n\t}", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "boolean hasPass();", "boolean hasPass();", "public boolean isEverythingIncluded()\n {\n return everythingIncluded;\n }", "boolean isAllInview();", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "boolean pass();", "boolean hasIsInputTo();", "boolean isSetParlay();", "void done(boolean allSucceeded);", "public boolean init() {\n\r\n return true;\r\n }", "boolean init();", "boolean arrCompleted(Boolean[] boolarray) {\n for (int i=0; i < boolarray.length; i++) {\n if (boolarray[i] == false) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void allTrue() {\n assertTrue(getPredicateInstance(true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n assertTrue(getPredicateInstance(true, true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n }", "void setManualCheck (boolean value);", "public boolean checkForGourds() {return false;}", "Boolean getPartiallyCorrect();", "boolean shouldRescore() {\n return false;\n }", "boolean isSetProbables();", "public boolean isGoal();", "public void getEaten() {\n\t\tsuper.flag=true;\n\t}", "public boolean isMacthAllSkillTag() {\n\t\treturn macthAllSkillTag;\n\t}", "public int antall();", "Boolean getCompletelyCorrect();", "private boolean isAllIngredientOk(ArrayList<Boolean> listOfBool) {\n if (listOfBool.isEmpty() || listOfBool.contains(false))\n return false;\n return true;\n }", "boolean isSetQuick();", "private boolean isLava() {\n/* 317 */ return this.isLava;\n/* */ }", "boolean hasIsAutoBet();", "public void setAllLoaded(boolean value) {\n this.allLoaded = value;\n }", "public boolean isDontCare(){\n return hasDontCare;\n }", "boolean initialized();", "private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }", "public abstract Boolean isImportant();", "boolean isConsomme();", "public boolean isSetSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDALL$6) != 0;\n }\n }", "public boolean tom();", "boolean internal();", "public boolean allAre(ISelect s){\r\n return true; \r\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "public void check_always_true_condition(boolean on){\r\n this.e_always_true_condition = on;\r\n }", "public boolean isGoal() {\n return hamming == 0;\n }", "boolean isGoodQuestion(){\n\t\treturn goodQ;\n\t}", "boolean hasIsPerformOf();", "public boolean helpForAll()\n {\n boolean action = false;\n //boolean value2048 = false;\n \n int i = 0;\n \n // Faire {...} tant qu'on a pu effectuer une action le coup précédent //et tant qu'on a pas rencontré la valeur 2048 \n do\n {\n action = helpForOne();\n //System.out.println(i++);\n //System.out.println(\"Action : \"+action);\n this.displayGrid();\n } while (action);\n //} while (action && !value2048);\n \n return action;\n }", "@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}", "public static Value makeAnyBool() {\n return theBoolAny;\n }", "void mo22049es(boolean z);", "public static boolean anyDirty ()\n {\n for (Boolean b : _dirty.values()) {\n if (Boolean.TRUE.equals(b)) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic void all() {\n\t\t\n\t}", "public void setTallied(java.lang.Boolean value);", "default boolean isBear() {\n return true;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }" ]
[ "0.66595685", "0.66595685", "0.65282834", "0.65282834", "0.63995767", "0.63514656", "0.62853897", "0.62726396", "0.62698966", "0.626934", "0.626934", "0.6264747", "0.6146346", "0.6138795", "0.60844094", "0.607476", "0.6040238", "0.6039004", "0.6037433", "0.59724385", "0.59628373", "0.5956069", "0.59468675", "0.59380364", "0.59279394", "0.59258354", "0.59231377", "0.5918701", "0.5918701", "0.5914691", "0.59043014", "0.58841175", "0.5864582", "0.585386", "0.5851769", "0.5839177", "0.5836834", "0.583503", "0.5834436", "0.5833719", "0.58325374", "0.58285713", "0.5818078", "0.5816692", "0.58154297", "0.581198", "0.5793787", "0.5779673", "0.5778382", "0.57745665", "0.57732797", "0.576888", "0.5765044", "0.5762944", "0.57607365", "0.5759753", "0.57586116", "0.5750731", "0.5745585", "0.5745198", "0.57381743", "0.5735951", "0.57348984", "0.57337064", "0.5726322", "0.57221055", "0.57217324", "0.57128626", "0.57121706", "0.5711961", "0.5710556", "0.5704816", "0.57003015", "0.5698128", "0.56971896", "0.5694858", "0.5691632", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765", "0.5689765" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onStop() { super.onStop(); mInstalledLayout4Notification.saveData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Go Back when Back button is clicked.
@Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == android.R.id.home) { finish(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onGoBackButtonClick();", "public void back() {\n Views.goBack();\n }", "public void goBack() {\n goBackBtn();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "public void onBackPressed() {\n backbutton();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\n public void onBackPressed() {\n backToHome();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "public void onBackPressed() {\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "private void returnBack()\n {\n getActivity().onBackPressed();\n }", "@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\n\t\t\n\t}", "public void Back(View view) {\n\n onBackPressed();\n }", "@Override\n\tpublic void backButton() {\n\n\t}", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\n\t}", "boolean onBackPressed();", "boolean onBackPressed();", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}", "@Override\n \tpublic void onBackPressed() {\n \t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n public void onBackPressed() {\n this.finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n new goBack().execute(0);\n }", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "public void onBackPressed()\n {\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\r\n public void onBackPressed() {\n }", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\n public void onBackPressed()\n {\n mIsBackButtonPressed = true;\n super.onBackPressed();\n \n }", "@Override\n public void onBackPressed() {\n //super.onBackPressed();\n goBack();\n }", "@Override\n public void onBackPressed() {\n\n finish();\n }", "@Override\n public void goBack() {\n\n }", "public void back() {\n\t\tstate.back();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(true);\r\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n public void backButton() {\n\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\n public void onBackPressed() {}", "@Override\n\tpublic void onBackPressed() {\n\t\tif (wv1.canGoBack()) {\n\t wv1.goBack();\n\t\t}else \n\t\t{\n\t\t\twv1.stopLoading();\n\t\t\twv1.clearCache(true);\n\t\t\tfinish();\n\t }\n\t}", "@Override\n public void onBackPressed(){\n System.out.println(\"---------------- No debe hacer nada -------------------------------\");\n }", "public void onBackPressed() {\n\t\tLog.d(USER_TAG, \"onBackPressed\");\n\t\tmoveTaskToBack(true);\n\t}", "@Override\n public void onBackPressed()\n {\n\n }", "public void backClick(View view) {\n finish();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, MainActivity.class);\r\n\t\tstartActivity(i);\r\n\t}", "public void clickBack(View view){\r\n onBackPressed();\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tupdata();\n\t\tsuper.onBackPressed();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\r\n\t\t\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }", "public void goBack(View view) {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }", "public static void onBackPressed()\n {\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n }" ]
[ "0.8747207", "0.8731754", "0.8636483", "0.8605507", "0.84957194", "0.84650594", "0.84347105", "0.8413632", "0.83999604", "0.8383273", "0.83175117", "0.83058184", "0.82877785", "0.82877785", "0.8247843", "0.8213869", "0.8213869", "0.8202563", "0.81930596", "0.81930596", "0.81930596", "0.81901795", "0.8175484", "0.81716925", "0.8160452", "0.8152346", "0.8139355", "0.8104838", "0.80992174", "0.8069674", "0.80691737", "0.8066726", "0.8066635", "0.80602086", "0.8058717", "0.8058487", "0.8058153", "0.8043116", "0.8043116", "0.80424416", "0.80419344", "0.80419344", "0.8041837", "0.8041837", "0.8039252", "0.8024628", "0.80239534", "0.80239534", "0.80239534", "0.80239534", "0.8022845", "0.8022675", "0.80206865", "0.80206865", "0.80206865", "0.80206865", "0.80206865", "0.80206865", "0.80206865", "0.80206865", "0.80183786", "0.8017652", "0.8010262", "0.80024385", "0.79891986", "0.7988604", "0.79725736", "0.79725736", "0.79677194", "0.7964924", "0.79636896", "0.7962622", "0.79532874", "0.7951368", "0.7948898", "0.7924117", "0.7916289", "0.7916289", "0.7916289", "0.79102874", "0.79060274", "0.7903056", "0.7899884", "0.78985906", "0.7898539", "0.7893288", "0.7882781", "0.7870453", "0.78696585", "0.7869343", "0.78685987", "0.78666234", "0.7862826", "0.7856425", "0.7856425", "0.7856425", "0.7856425", "0.7856425", "0.7856425", "0.7856425", "0.7851395" ]
0.0
-1
Switches between Add screen and Edit screen according to Intent Extras. If Intent has StringExtra(NOTE_UID) > Note's Uid has been passed > Screen is Edit.
private void switchBetweenAddEdit() { String uid = getIntent().getStringExtra(NOTE_UID); if (uid != null) { Objects.requireNonNull(getSupportActionBar()).setTitle(R.string.edit_note); Note note = Arrays.stream(firebase.getNotes().getValue()).filter(note1 -> uid.equals(note1.getUid())).findFirst().get(); Calendar cal = Calendar.getInstance(); cal.setTime(note.getDate()); date.init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); title.setText(note.getTitle()); body.setText(note.getBody()); addBtn.setVisibility(View.GONE); editBtnsLyot.setVisibility(View.VISIBLE); saveBtn.setOnClickListener(view -> { prepareNote(note1 -> { note1.setUid(uid); setNoteOnFirebaseManager(note1, true); }); }); deleteBtn.setOnClickListener(view -> { deleteNoteOnFirebaseManager(note); }); } addBtn.setOnClickListener(view -> { prepareNote(note -> { setNoteOnFirebaseManager(note, false); }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void contactEdit() {\n Intent editIntent = new Intent(viewContacts.this, editContact.class); //start the intent to go back to edit contact\n editIntent.putExtra(\"MyID\", edit_intent);\n\n startActivity(editIntent); //start the activity\n\n\n\n }", "public void onPressEdit() {\r\n Intent intent = new Intent(this, CreateEventActivity.class);\r\n intent.putExtra(CreateEventActivity.EXTRA_EDIT_EVENT_UID, event.uid);\r\n startActivity(intent);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n\n\n String Title, Content, Date = \"\";\n\n Title = title.getText().toString();\n Content = content.getText().toString();\n\n boolean flag = false;\n\n DataBase myData = new DataBase(this);\n\n Date date = new Date();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date = dateFormat.format(date);\n\n\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (id)\n {\n case R.id.Save:\n\n if (Title.trim().isEmpty()) {\n Toast.makeText(getApplicationContext(), \"Please enter the name of note!\", Toast.LENGTH_SHORT).show();\n\n } else {\n boolean r = myData.insertNotes(Title, Date, Content);\n\n if (r) {\n Toast.makeText(getApplicationContext(), \"Added Successfully\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(getApplicationContext(),NoteList.class);\n startActivity(i);\n finish();\n\n } else {\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_SHORT).show();\n\n }\n\n }\n\n return true;\n\n\n case R.id.edit:\n\n Menu menu ;\n\n setContentView(R.layout.edit_note);\n\n\n\n MenuItem menuItem = (MenuItem) myMenu.findItem(R.id.save2);\n menuItem.setVisible(true);\n menuItem = myMenu.findItem(R.id.edit);\n menuItem.setVisible(false);\n menuItem = myMenu.findItem(R.id.delete);\n menuItem.setVisible(false);\n\n\n title = (EditText) findViewById(R.id.title);\n content = (EditText) findViewById(R.id.txtcontent);\n\n title.setText(Name);\n content.setText(Contents);\n\n title.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n changedTitle = s.toString();\n flagT = true;\n\n\n }\n });\n\n\n content.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n changedContent = s.toString();\n flagC = true;\n\n }\n });\n\n return true;\n\n\n\n case R.id.save2:\n\n if(flagT & !flagC)\n {\n flag = myData.updateNotes(value,changedTitle,Date,\"\");\n }\n\n if(flagC & !flagT)\n {\n flag = myData.updateNotes(value,\"\",Date,changedContent);\n }\n\n if(flagC & flagT)\n {\n flag = myData.updateNotes(value,changedTitle,Date,changedContent);\n }\n\n if(flag)\n {\n Toast.makeText(getApplicationContext(),\"Saved\",Toast.LENGTH_SHORT).show();;\n }\n\n Intent intent = new Intent(getApplicationContext(),NoteList.class);\n\n startActivity(intent);\n\n finish();\n\n\n\n return true;\n\n case R.id.delete:\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Delete!\")\n .setMessage(\"Are you sure you want to delete this ?\");\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n DataBase myData = new DataBase(getApplicationContext());\n\n int count = myData.deleteNotes(value);\n\n if(count == 0)\n {\n Toast.makeText(getApplicationContext(),\"Item Not Found\",Toast.LENGTH_SHORT).show();\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Deleted\",Toast.LENGTH_SHORT).show();\n NoteList.adapter.notifyDataSetChanged();\n\n Intent i = new Intent(getApplicationContext(),NoteList.class);\n\n startActivity(i);\n finish();\n\n }\n\n }\n });\n\n builder.setNegativeButton(\"No\", null);\n\n\n AlertDialog alert = builder.create();\n alert.show();\n\n\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setTextColor(Color.BLACK);\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setTextColor(Color.BLACK);\n\n return true;\n\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void addItemScreen() {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tstartActivity(intent);\n }", "public void editProfile(View view){\n Intent intent = new Intent(this, EditProfileActivity.class);\n intent.putExtra(\"MY_NAME\", nameStr);\n intent.putExtra(\"MY_DESCRIPTION\", descriptionStr);\n intent.putExtra(\"MY_LOCATION\", locationStr);\n startActivityForResult(intent, 1);\n }", "public void marksEdit(View view) {\n Intent intent = new Intent(getApplicationContext(), InsertingAtten.class);\n intent.putExtra(\"STATUS\", \"edit\");\n intent.putExtra(\"SEMESTER\", semester);\n intent.putExtra(\"SECTION\", section);\n intent.putExtra(\"COURSEID\", courseId);\n intent.putExtra(\"DEPARTMENT\", department);\n intent.putExtra(\"SERIES\", series);\n startActivity(intent);\n }", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "@Test\n public void triggerIntent_hasExtras() {\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(notNullValue() ));\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(withText(\"Change Page\")));\n onView(withId(getResourceId(\"switchActivity\"))).perform(click());\n intended(hasExtra(\"Developer\", \"Oguzhan Orhan\"));\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(NoteListActivity.this,\r\n\t\t\t\t\t\tEditNoteActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "private void editElement(int position) {\n Intent intent = new Intent(this, NewNoteActivity.class);\n Task t = this.printedTasks.get(position);\n intent.putExtra(\"id\", t.getUid());\n intent.putExtra(\"intitule\", t.getIntitule());\n intent.putExtra(\"description\", t.getDescription());\n intent.putExtra(\"duree\", t.getDuree());\n intent.putExtra(\"date\", t.getDate());\n intent.putExtra(\"color\", t.getColor());\n intent.putExtra(\"url\", t.getUrl());\n intent.putExtra(\"position\", position);\n\n // Send boolean -> edit mode\n intent.putExtra(\"edit\", true);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n\n reloadWidget();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(NOTE_ACTION)) {\n remark = intent.getStringExtra(\"remark\");\n updataNote();\n }\n }", "@Override\n public void onClick(View view) {\n Intent addEvent = new Intent(getApplicationContext(), EditActivity.class);\n startActivity(addEvent);\n }", "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }", "@OnClick(R.id.setUserProfileEdits)\n public void onConfirmEditsClick() {\n if (UserDataProvider.getInstance().getCurrentUserType().equals(\"Volunteer\")){\n addSkills();\n addCauses();\n }\n updateUserData();\n // get intent information from previous activity\n\n// Intent intent = new Intent(getApplicationContext(), LandingActivity.class);\n\n\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n finish();\n// startActivity(intent);\n }", "public void onClick(View v) {\n Context context = RumorsEdit.this;\n Class startRumors = Rumors.class;\n Intent startRumorsIntent = new Intent(context, startRumors);\n rName = (EditText) findViewById(R.id.rumor_name);\n rSummary = (EditText) findViewById(R.id.rumor_summery);\n\n switch (v.getId()) {\n case R.id.undo: //goes back to Lander\n startActivity(startRumorsIntent);\n //this doesn't send anything back with the intent as the destination activity will\n //use a check on the sentName and sentSummary; if both are null, that means\n //the user decided not to update and thus the database doesn't need to be update.\n break;\n case R.id.done: //starts the rumors activity\n newName = rName.getText().toString();\n newSummary = rSummary.getText().toString();\n startRumorsIntent.putExtra(\"sentName\", newName);\n startRumorsIntent.putExtra(\"sentSummary\", newSummary);\n if (ID != null) {\n startRumorsIntent.putExtra(\"entryID\", ID);\n }\n ID = null;\n\n Log.d(\"Debug\", \"done, sending back \" + newName);\n startActivity(startRumorsIntent);\n break;\n }\n }", "protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "public void edit(Student student){\n Intent intento = new Intent( context, StudentActivity.class);\n intento.putExtra(\"student\", student);\n context.startActivity(intento);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent i = new Intent(NewProfileActivity.this,\n\t\t\t\t\t\tTBDispContacts.class);\n\t\t\t\ti.putExtra(\"Edit\", \"true\");\n\t\t\t\ti.putExtra(\"Details\", \"false\");\n\t\t\t\tstartActivity(i);\n\t\t\t}", "private void updateItemScreen(long rowId) {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tintent.putExtra(INTENT_ID_KEY, rowId);\n \tstartActivity(intent);\n }", "@Override\n public void onClickRecipe(Recipe recipe) {\n String recipeJson = ObjectConverter.getStringFromRecipe(recipe);\n SharedPreferences.Editor editor = mRecipeSharedPref.edit();\n editor.putString(getString(R.string.recipe_key), recipeJson);\n editor.apply();\n\n //detail intent\n Intent intentToStartDetailActivity = new Intent(this, RecipeDetailActivity.class);\n intentToStartDetailActivity.putExtra(getString(R.string.recipe_key), recipe);\n startActivity(intentToStartDetailActivity);\n\n\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "@Override\n public void onClick(View v) {\n String newName = etname.getText().toString();\n String newAge = etage.getText().toString();\n String newPicture = etpicture.getText().toString();\n\n // put the strings into a message for MainActivity\n\n //start MainActivity again\n\n\n Intent i = new Intent(v.getContext(), MainActivity.class);\n\n i.putExtra(\"modifier\", positionToEdit);\n i.putExtra(\"nom\", newName);\n i.putExtra(\"age\", newAge);\n i.putExtra(\"photo\", newPicture);\n startActivity(i);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String taskName = intent.getStringExtra(\"taskName\");\n int order = intent.getIntExtra(\"order\",-1);\n Toast.makeText(work.this,taskName +\" \" ,Toast.LENGTH_SHORT).show();\n\n if(taskName != null)\n {\n Cursor data = myDB.getListContents();\n\n if(data.getCount() > 0)\n {\n if(order == 2)\n myDB.deleteTask(taskName);\n else if(order == 0)\n {\n myDB.updateTask(taskName,taskName,\"\",1,\"WORK\",\"ordinary\",\"Done\");\n }\n else\n {\n Intent transferIntent = new Intent(getBaseContext(), AddActivity.class );\n // whichActivity = \"WEEKEND\";\n\n //we need to transfer the task we want to edit now and change add Bt to save changes\n // transferIntent.putExtra(\"taskName\",taskName);\n\n while (data.moveToNext()) {\n if (data.getString(3).equals(whichActivity) && data.getString(1).equals(taskName)) {\n transferIntent.putExtra(\"taskName\",taskName);\n transferIntent.putExtra(\"description\",data.getString(2));\n transferIntent.putExtra(\"date\",data.getString(4));\n }\n }\n // transferIntent.putExtra(\"taskName\",taskName);\n startActivity(transferIntent);\n }\n\n\n loadData();\n }\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_delete) {\n// DatabaseHelper helper = DatabaseHelper.getInstance(this);\n switch (type) {\n case AUTHOR:\n DatabaseAuthor authorDb = new DatabaseAuthor(this);\n authorDb.deleteAuthor(author);\n break;\n case SERIES:\n DatabaseSeries seriesDb = new DatabaseSeries(this);\n seriesDb.deleteSeries(series);\n break;\n case STATUS:\n DatabaseStatus statusDb = new DatabaseStatus(this);\n statusDb.deleteStatus(status);\n break;\n case EDITOR:\n DatabasePublisher publisherDb = new DatabasePublisher(this);\n publisherDb.deletePublisher(publisher);\n break;\n }\n finish();\n return true;\n } else if (id == R.id.action_edit) {\n Log.i(TAG, \"Indo para StandardForm\");\n Intent intent = new Intent(this, StandardFormActivity.class);\n intent.putExtra(\"logged_user\", user);\n intent.putExtra(\"Type\", type);\n switch (type) {\n case AUTHOR:\n intent.putExtra(\"Author\", author);\n break;\n case SERIES:\n intent.putExtra(\"Series\", series);\n break;\n case STATUS:\n intent.putExtra(\"Status\", status);\n break;\n case EDITOR:\n intent.putExtra(\"Publisher\", publisher);\n break;\n }\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, EditDataActivity.class);\n startActivity(intent);\n\n }", "public void onEdit(View view){\n\n Intent intent = new Intent(this,ACT_Edit_Course.class);\n intent.putExtra(\"refID\",selectedCategory);\n startActivity(intent);\n\n }", "public void openSettingsScreen(View view) {\n// Intent intent = new Intent(this, RnluSettingsScreen.class);\n Intent intent = new Intent(this, pl.hubertkarbowy.androidrnlu.config.SettingsActivity.class);\n// EditText editText = findViewById(R.id.nlInput);\n// String message = editText.getText().toString();\n// intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch(id){\n case R.id.History_of_appointments:\n Intent intent_history = new Intent(this,history_of_appointments.class);\n intent_history.putExtra(\"netId\", getIntent().getStringExtra(\"netId\").toString());\n this.startActivity(intent_history);\n return true;\n case R.id.Create_appointment_slot:\n Intent intent_create_appointment = new Intent(this,create_appointment_slot.class);\n intent_create_appointment.putExtra(\"netId\", getIntent().getStringExtra(\"netId\").toString());\n this.startActivity(intent_create_appointment);\n return true;\n case R.id.Messenger:\n Intent intent_messenger = new Intent(this,Messenger.class);\n intent_messenger.putExtra(\"netId\", getIntent().getStringExtra(\"netId\").toString());\n this.startActivity(intent_messenger);\n return true;\n case R.id.Search:\n Intent intent_search = new Intent(this,search.class);\n this.startActivity(intent_search);\n return true;\n case R.id.Logout:\n Intent intent_Logout = new Intent(this,LoginActivity.class);\n SharedPreferences settings = getSharedPreferences(\"UTA_APPT_SCHEDULER\", 0);\n\n settings.edit()\n .putString(\"UserName\", \"NA\")\n .putString(\"Password\", \"NA\")\n .putString(\"user_name\", \"NA\")\n .putString(\"user_dept\", \"NA\")\n .putString(\"user_type\", \"NA\")\n .putString(\"user_email\", \"NA\")\n .putString(\"user_deptname\", \"NA\")\n .apply();\n intent_Logout.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent_Logout.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent_Logout.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n this.startActivity(intent_Logout);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MacroEdit.class);\n\n if(macroHandler.getMacro(currentName)!= null) {\n Object[] info = macroHandler.getMacro(currentName);\n ArrayList<String> actions = (ArrayList<String>) info[0];\n ArrayList<Integer> hours = (ArrayList<Integer>) info[1];\n ArrayList<Integer> minutes = (ArrayList<Integer>) info[2];\n int MID = (Integer) info[3];\n intent.putExtra(\"macroToEdit\", currentName); //Optional parameters\n intent.putExtra(\"actions\", actions);\n intent.putExtra(\"hours\", hours);\n intent.putExtra(\"minutes\", minutes);\n intent.putExtra(\"MID\", MID);\n getApplicationContext().startActivity(intent);\n }\n }", "@Override\n public void onClick(View v){\n editor.putString(\"term\", idNum);\n editor.commit();\n\n //switch to Details activity\n Intent intent = new Intent(v.getContext(), TermDetailsActivity.class);\n v.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), EditAssessment.class);\n intent.putExtra(\"termID\", termID);\n intent.putExtra(\"courseID\", courseID);\n intent.putExtra(\"assessmentID\", assessmentID);\n startActivity(intent);\n }", "private void addExtras(Intent intent)\n\t{\n\t\tBundle extras = getIntent().getExtras();\n\t\t\n\t\t// Load in the unused extras from the\n\t\t// previous Activity.\n\t\tintent.putExtras(extras);\n\t\t\n\t\t////////////////////////////////////////\n\t\t// Add optional standings categories. //\n\t\t////////////////////////////////////////\n\t\tif (_points.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", false);\n\t\t}\n\t\t\n\t\tif (_score.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", false);\n\t\t}\n\t\t/////////////////////////////////////////\n\t}", "public void addNewNote(MenuItem item){\n \t\tIntent intent = new Intent(this, ActivityNote.class);\n \t\tstartActivity(intent);\n \t}", "private void onClickButtonSaveAndCreateAnother() {\n if (onClickButtonSave()) {\n startActivity(getIntent());\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent incomingNote) {\n if (requestCode ==CODE_FOR_NEW_NOTE){\n if (resultCode == RESULT_OK){\n Note blankNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.add(0, blankNote);\n }\n }\n //Incoming note that is result of an edited note\n if (requestCode == CODE_FOR_EDIT_NOTE){\n if(resultCode == RESULT_OK){\n Note editedNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.remove(pos);\n noteList.add(0, editedNote);\n\n }\n }\n\n try {\n doWrite();\n } catch (JSONException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n }\n doRead();\n setCount();\n noteAdapter.notifyDataSetChanged();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getApplicationContext(), String.valueOf(CusIds.get(getPosition())), Toast.LENGTH_LONG).show();\n Intent edit = new Intent(getApplicationContext(),CustomerEdit.class);\n edit.putExtra(\"CUSID\", String.valueOf(CusIds.get(getPosition())));\n Log.d(\"view11\", String.valueOf(CusIds.get(getPosition())));\n\n startActivity(edit);\n\n\n }", "@Override\n public void onClick(View view) {\n\n startActivity(new Intent(MainActivity.this,InsertNotesActivity.class));\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent;\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_myresume_edit_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.layout_myresume_edit_project_experience:\n\t\t\tintent = new Intent(MyresumeEditActivity.this, ProjectExperienceListActivity.class);\n\t\t\tintent.putExtra(\"uid\", \"\"+uid);\n\t\t\tintent.putExtra(\"writeable\", \"\"+0);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.tv_myresume_edit_save:\n\t\tcase R.id.btn_myresume_edit_save:\n\t\t\tcomStr = etMyresumeEditCompany.getText().toString();\n\t\t\tcontactStr = myresumeEditContact.getText().toString();\n\t\t\tmobileStr = myresumeEditMobile.getText().toString();\n\t\t\tqqStr = myresumeEditQQ.getText().toString();\n\t\t\temailStr = myresumeEditEmail.getText().toString();\n//\t\t\tjobStr = myresumeEditJob.getText().toString();\n//\t\t\texperienceStr = myresumeEditExperience.getText().toString();\n\t\t\taddressStr = myresumeEditAddress.getText().toString();\n\t\t\tidnumberStr = myresumeEditIdnumber.getText().toString();\n\t\t\tintroduceStr = myresumeEditIntroduce.getText().toString();\n\t\t\tif (resumeType == 2) {\n\t\t\t\tif (\"\".equals(comStr)) {\n\t\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入企业名称\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (\"\".equals(contactStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系人姓名\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(mobileStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入手机号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(qqStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系QQ\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(emailStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系E-mail\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\telse if (\"\".equals(jobStr)) {\n//\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入职业状态\",\n//\t\t\t\t\t\tToast.LENGTH_LONG).show();\n//\t\t\t\tbreak;\n//\t\t\t}\n\t\t\telse if (\"\".equals(experienceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入行业经验\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(addressStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入通讯地址\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(idnumberStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入证件号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 1 && idnumberStr.length() != 18) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"身份证号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 2 && idnumberStr.length() != 15) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"营业执照号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(introduceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入自我介绍\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpd = new ProgressDialog(MyresumeEditActivity.this);\n\t\t\tpd.setMessage(\"请稍后…\");\n\t\t\tpd.show();\n\t\t\tList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n\t\t\t\n\t\t\tparams.add(new BasicNameValuePair(\"uid\", \"\"+uid));\n\t\t\tparams.add(new BasicNameValuePair(\"type\", \"\"+resumeType));\n\t\t\tparams.add(new BasicNameValuePair(\"comname\", comStr));\n\t\t\tparams.add(new BasicNameValuePair(\"linkname\", contactStr));\n\t\t\tparams.add(new BasicNameValuePair(\"mobile\", mobileStr));\n\t\t\tparams.add(new BasicNameValuePair(\"qq\", qqStr));\n\t\t\tparams.add(new BasicNameValuePair(\"email\", emailStr));\n\t\t\tparams.add(new BasicNameValuePair(\"status\", \"\"+status));\n\t\t\tparams.add(new BasicNameValuePair(\"workinglife\", experienceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"address\", addressStr));\n\t\t\tparams.add(new BasicNameValuePair(\"idcardno\", idnumberStr));\n\t\t\tparams.add(new BasicNameValuePair(\"description\", introduceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"goodin_item_num\", \"\"+(mArray.size() - 1)));\n\t\t\n\t\t\tfor(int i = 0; i < (mArray.size() - 1); i++){\n\t\t\t\tparams.add(new BasicNameValuePair(\"goodin_item\"+(i+1), \"\"+mArray.get(i).get(\"id\")));\n\t\t\t}\n\t\t\tnew Thread(new ConnectPHPToGetJSON(URL_ADDRESUME, handler, params))\n\t\t\t\t\t.start();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n //Reads the text that was passed by the user in the EditText and saves it to the notesArrayList.\n String noteText = String.valueOf(noteEditText.getText());\n allNotes.addNote(noteText);\n //Sets the content of the EditText to empty.\n noteEditText.setText(\"\");\n //Gets user back to MainActivity using Intent.\n Intent getBackIntent = new Intent(AddNoteActivity.this,\n MainActivity.class);\n startActivity(getBackIntent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n Intent intent = new Intent();\n intent.putExtra(\"task\", todoEditText.getText().toString());\n intent.putExtra(\"date\", dateSelected);\n intent.putExtra(\"priority\", priorityLevel);\n intent.putExtra(\"status\", statusSelected);\n intent.putExtra(\"position\", position);\n\n switch (id) {\n case R.id.action_save:\n saveTask(intent);\n return true;\n\n case R.id.action_dismiss:\n dismissActivity(intent);\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "private void establishContext() {\n ParcelableNote encoded = getIntent().getParcelableExtra(NOTE_EXTRA);\n mCtx = (encoded == null) ? Context.CREATE : Context.UPDATE;\n\n if (mCtx == Context.UPDATE) {\n mNote = encoded.getNote();\n mTags.addAll(mNote.tags());\n\n EditText title = findViewById(R.id.edit_note_title);\n title.setText(mNote.title());\n EditText body = findViewById(R.id.edit_note_body);\n body.setText(mNote.body());\n }\n }", "private void editAlarm(Alarm affectedAlarm) {\n \t\t//TODO: Launch AddAlarmActivity with this alarm as base so the user can edit it.\n \t}", "@Override\n public void onClick(View v) {\n if (AppUtils.isEmptyString(edtNoteTitle.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n final String noteTitle = edtNoteTitle.getText().toString();\n final String noteDes = edtNoteDes.getText().toString();\n // check if user updating note\n if (shouldUpdate && todo != null) {\n // update note by it's id\n updateNote(todo.getTodoId(), noteTitle, noteDes, position);\n } else {\n // create new note\n createNote(noteTitle, noteDes, mUserId);\n }\n }", "@Override\n public void onClick(View view) {\n Intent getBackIntent = new Intent(AddNoteActivity.this,\n MainActivity.class);\n startActivity(getBackIntent);\n }", "public void setFlag(Intent intent) {\n String flag2;\n if (intent != null && (flag2 = intent.getStringExtra(\"flag\")) != null) {\n flag = flag2;\n Log.e(\"MOBISEC\", \"flag set correctly\");\n }\n }", "@Override\n\tpublic void setContentView() {\n\t\tsetContentView(R.layout.activity_edit_person);\n\t\tMyApplication.getInstance().addActivity(this);\n\t\tflag=getIntent().getStringExtra(\"CONTEXT\");\n\t\tcontent=getIntent().getStringExtra(\"CONTENT\");\n\t\tLog.i(\"TAG\", flag);\n\t\tif(flag==null){\n\t\t\treturn;\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) \r\n {\r\n switch (item.getItemId()) // switch based on selected MenuItem's ID\r\n {\r\n case R.id.editItem:\r\n // create an Intent to launch the AddEditContact Activity\r\n Intent addEditContact =\r\n new Intent(this, AddEditContact.class);\r\n \r\n // pass the selected contact's data as extras with the Intent\r\n addEditContact.putExtra(AddressBook.ROW_ID, rowID);\r\n addEditContact.putExtra(\"name\", nameTextView.getText());\r\n addEditContact.putExtra(\"phone\", phoneTextView.getText());\r\n addEditContact.putExtra(\"email\", emailTextView.getText());\r\n addEditContact.putExtra(\"street\", streetTextView.getText());\r\n addEditContact.putExtra(\"city\", cityTextView.getText());\r\n startActivity(addEditContact); // start the Activity\r\n return true;\r\n case R.id.deleteItem:\r\n deleteContact(); // delete the displayed contact\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n } // end switch\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView tv = (TextView) view.findViewById(R.id.note_id);\n String clickedID = tv.getText().toString();\n Intent intent = new Intent(this, EditNoteActivity.class);\n intent.putExtra(NOTE_ID, clickedID);\n startActivity(intent);\n }", "public void addLocal(String user, String email, String role){\n //Add user to signed in\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"Username\", user);\n editor.putString(\"Email\", email);\n editor.putString(\"Role\", role);\n editor.apply();\n\n //Send to appropriate page\n if(role.equals(\"Child\")) {\n Intent intent = new Intent(this, childView.class);\n startActivity(intent);\n }else if(role.equals(\"Parent\")){\n Intent intent = new Intent(this, parentView.class);\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, CreateNoteActivity.class);\n startActivity(intent);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_edit) {\r\n if(FBFBM!=null){\r\n Intent intent = new Intent(this, FBFEditActivity.class);\r\n intent.putExtra(\"FBFBM\", FBFBM);\r\n intent.putExtra(\"owners_db\", mOwnersDB);\r\n intent.putExtra(\"parcel_map\", mParcelMap);\r\n startActivity(intent);\r\n }\r\n return true;\r\n } \r\n return super.onOptionsItemSelected(item);\r\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "@OnClick(R.id.btn_edit_profile)\n public void btnEditProfile(View view) {\n Intent i=new Intent(SettingsActivity.this,EditProfileActivity.class);\n i.putExtra(getString(R.string.rootUserInfo), rootUserInfo);\n startActivity(i);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n myMenu = menu;\n\n Bundle extras = getIntent().getExtras();\n\n if(extras != null)\n {\n getMenuInflater().inflate(R.menu.display_note_menu, menu);\n }\n else\n {\n getMenuInflater().inflate(R.menu.edit_note_menu, menu);\n }\n\n return true;\n }", "@Override\n public void onClick(View v) {\n Intent intent = PostEditActivity.newIntent(contex);\n intent.putExtra(\"PostKey\", postKey);\n contex.startActivity(intent);\n }", "private void checkIntentInformation() {\n Bundle extras = getIntent().getExtras();\n Gson gson = new Gson();\n if (extras != null) {\n Curso aux;\n aux = (Curso) getIntent().getSerializableExtra(\"addCurso\");\n if (aux == null) {\n aux = (Curso) getIntent().getSerializableExtra(\"editCurso\");\n if (aux != null) {//Accion de actualizar\n //found an item that can be updated\n String cursoU = \"\";\n cursoU = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=updateC\" +\"&cursoU=\"+cursoU +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n } else {//Accion de agregar\n //found a new Curso Object\n String cursoA = \"\";\n cursoA = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=addC\" +\"&cursoA=\"+cursoA +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_send_used_runes) {\n\n // преобразуем в текст и отправляем интентом\n String text = new String();\n for (int i = 0; i < mapForNewNote.size(); ++i){\n if (mapForNewNote.get(i) < 0 || mapForNewNote.get(i) == null) continue;\n text += type[i] + \": \" + mapForNewNote.get(i);\n }\n Log.d(\"mLog\", text);\n Intent intent = new Intent(getApplicationContext(), activity_add_note.class);\n Note note = new Note();\n note._parentId = \"12\";\n note._text = text;\n intent.putExtra(Note.class.getCanonicalName(), note);\n startActivity(intent);\n\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n if (item.getTitle() == \"Edit Activity\") {\n\n String editDialogDistance = null;\n String editDialogAlt = null;\n String editDialogAvgHR = null;\n String editDialogMaxHR = null;\n\n long editDialogId = Long.parseLong(editId.getText().toString());\n String editDialogTime = editTime.getText().toString();\n String editDialogTotalTime = editTotalTime.getText().toString();\n String editDialogInfo = editInfo.getText().toString();\n String editDialogSport = editSport.getText().toString();\n try {\n editDialogDistance = editDistance.getText().toString();\n editDialogAlt = editAltitude.getText().toString();\n editDialogAvgHR = editAvgHR.getText().toString();\n editDialogMaxHR = editMaxHR.getText().toString();\n } catch (NullPointerException e) {\n\n }\n\n showEditDialog(editDialogId, editDialogTime, editDialogTotalTime, editDialogDistance,\n editDialogInfo, editDialogSport, editDialogAlt, editDialogAvgHR, editDialogMaxHR, _day, _month, _year);\n } else if (item.getTitle() == \"Delete Activity\") {\n showDialog(DIALOG_DELETE);\n } else {\n return false;\n }\n return super.onContextItemSelected(item);\n }", "private void studentRoleAction(){\n savePreferenceData(\"student\");\n Intent intent = new Intent(this, StudentMainActivity.class);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add) {\n\n Intent i = new Intent(getApplicationContext(), NoteActivity.class);\n startActivity(i);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onClickAddPhone(View v) {\n Intent intent = new Intent(CatalogActivity.this, EditorActivity.class);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String settingid = ((TextView) view.findViewById(R.id.txtsettingid)).getText().toString();\n\n Bundle dataBundle = new Bundle();\n dataBundle.putString(\"settingid\", settingid);\n\n // Starting new intent\n Intent intent = new Intent(getApplicationContext(),\n editsettingactivity.class);\n // sending settingid to next activity\n intent.putExtras(dataBundle);\n\n // starting new activity\n startActivity(intent);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n \tif (item.getItemId() == R.id.gotoNotes) {\r\n \t\tIntent i = new Intent(this, NotepadList.class);\r\n \t\ti.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\tstartActivity(i);\r\n\t\t\treturn true;\r\n \t}\r\n \tif (onMenuIndexSelected(item.getItemId())) return true;\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.trip_menu_add_note) {\n\n Intent intent = NoteFormActivity.newIntent(getActivity(), mTrip);\n startActivity(intent);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public static Intent fromMainActivityToEditUserActivity(final MainActivity mainActivity) {\n\n Intent i = new Intent(mainActivity, EditUserActivity.class);\n mainActivity.startActivityForResult(i, EDIT_USER_ACTIVITY_REQUEST_CODE);\n\n return i;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_edit:\n Intent intent = new Intent(getApplicationContext(), ProfileEditActivity.class);\n intent.putExtra(\"userName\", userName);\n startActivity(intent);\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n }\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public void editStaffMember(){\n Intent intent = new Intent(this, EditStaffMemberActivity.class);\n intent.putExtra(\"SelectedStaffMemberID\", selectedStaffMember._id);\n intent.putExtra(\"SelectedStaffMemberName\", selectedStaffMember.name);\n intent.putExtra(\"SelectedStaffMemberSalary\", selectedStaffMember.salaryPerHour);\n intent.putExtra(\"SelectedStaffMemberEmail\", selectedStaffMember.email);\n startActivity(intent);\n}", "public void startImportant(View view) {\n\n startActivity(new Intent(this, ImportantNotes.class));\n\n }", "@Override\n\t\tpublic void onClick(View v) {\n\n\t\t\tString a = ((EditText)((TableRow)TL.getChildAt(pos)).getChildAt(0)).getText().toString().trim();\n String b = ADD2Activity.this.getIntent().getStringExtra(\"ID\");\n\n\t\t\tToast.makeText(ADD2Activity.this,\"Id\"+a, Toast.LENGTH_LONG).show();\n\n\t\t\tIntent i = new Intent(ADD2Activity.this,ADD3Activity.class);\n\t\t\ti.putExtra(\"STU\", a);\n i.putExtra(\"ID\",b);\n\t\t\tstartActivity(i);\n\n\t\t}", "public void OnIngredients (View View)\n {\n \tIntent intent = new Intent(this, EditIngredients.class);\n \t\tstartActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_edit) {\n\n Intent intent = new Intent(getApplicationContext(), AddTripActivity.class);\n\n intent.putExtra(\"TripID\", tripItem.getID());\n\n startActivityForResult(intent, EDIT_TRIP_CODE);\n\n return true;\n } else if (id == R.id.action_view_map) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n\n intent.putExtra(\"TRIP\", tripID);\n\n startActivity(intent);\n\n return true;\n } else if(id == R.id.menu_item_share) {\n\n String text = \"Have a look at Joshes Place, \" + tripItem.getTitle();\n\n Intent sharingIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);\n sharingIntent.setType(\"*/*\");\n\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, \"Joshes Trip, \" + tripItem.getTitle());\n\n ArrayList<Uri> imageUris = new ArrayList<Uri>();\n\n\n if((tripItem.getPic() != null) && (tripItem.getPic().getID() > 0)) {\n String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), tripItem.getPic().getImage(), tripItem.getPic().getTitle(), null);\n Uri bmpUri = Uri.parse(pathofBmp);\n\n imageUris.add(bmpUri);\n }\n\n\n\n List<Note> notes = tripItem.getNotes();\n\n\n\n if(notes.size() > 0) {\n\n text += \"\\nNotes:\\n\";\n\n for (Note n : notes) {\n text += n.getTitle() + \", \\n\" + n.getNote() + \"\\n\";\n\n\n }\n\n }\n\n List<String> companions = tripItem.getCompanions();\n\n if(companions.size() > 0) {\n\n text += \"\\nCompanions:\\n\";\n\n for (String s : companions) {\n text += s + \"\\n\";\n\n\n }\n\n }\n\n List<PlaceItem> places = tripItem.getPlaces();\n\n if(places.size() > 0) {\n\n text += \"\\nPlaces Visited: \\n\";\n\n for(PlaceItem p : places) {\n text += p.getTitle() + \" (\" + p.getDate() + \")\\n\";\n }\n }\n\n text +=\"\\nHere on: \" + tripItem.getStartDate() + \" to \" + tripItem.getEndDate();\n\n\n\n ArrayList<ImageItem> images = tripItem.getImages();\n\n\n if(images.size() > 0) {\n\n sharingIntent.putExtra(Intent.EXTRA_TEXT, \"\\nImages:\\n\");\n\n\n\n for (ImageItem i : images) {\n String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), i.getImage(), i.getTitle(), null);\n Uri bmpUri = Uri.parse(pathofBmp);\n\n imageUris.add(bmpUri);\n\n\n\n }\n\n sharingIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris);\n\n }\n\n sharingIntent.putExtra(Intent.EXTRA_TEXT, text);\n\n\n\n\n\n\n startActivity(Intent.createChooser(sharingIntent, \"Share trip using\"));\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString number = editview.getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tSQLiteDatabase db = openOrCreateDatabase(\"doctor\", MODE_PRIVATE, null);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tString value = setting.getString(\"given\", \"no\");\r\n\r\n\t\t\t\tif(value.endsWith(\"no\")){\r\n\t\t\t\t\tdb.execSQL(\"INSERT INTO numbertable VALUES('\"+number+\"');\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdb.execSQL(\"UPDATE numbertable SET doctornumber='\"+number+\"';\");\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdb.close();\r\n\t\t\t\t\r\n//\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = setting.edit();\r\n\t\t\t\t\r\n\t\t\t\teditor.putString(\"given\", \"yes\");\r\n\t\t\t\teditor.commit();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(SugarDoctor.this,Sugar.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n\n if (requestCode == REQUEST_CREATE && resultCode == RESULT_OK && data != null) {\n Log.i(LOG_TAG, \"onActivityResult CREATE\");\n\n String text = data.getStringExtra(\"todo\");\n this._adapter.add(text);\n return;\n }\n\n if (requestCode == REQUEST_EDIT && data != null) {\n String original = data.getStringExtra(\"todo\");\n String updated = data.getStringExtra(\"todo_updated\");\n\n if (resultCode == EditActivity.RESULT_UPDATE) {\n Log.i(LOG_TAG, \"onActivityResult UPDATE\");\n\n this._adapter.update(original, updated);\n } else if (resultCode == EditActivity.RESULT_DELETE) {\n Log.i(LOG_TAG, \"onActivityResult DELETE\");\n\n this._adapter.remove(original);\n }\n return;\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Log.i(TAG, \"Got a result back from the add activity.\");\n // We need to make sure the requestCode matches the task that we asked for above.\n // If result is OK - We have something we need to look at.\n if (requestCode == TODO_ADDED && resultCode == RESULT_OK) {\n // Get the string value that has the ID entered in the parameter.\n DatabaseManager.toDoItemHelper().addToDo(data.getStringExtra(AddToDoActivity.ToDo_Desc));\n this.toDoFragment.refreshToDos(this.drawerPosition);\n }\n }", "private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }", "@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"third\");\n bundle.putString(\"Membername\",\"\"+ youtextt[2].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }", "@Override\n public void onClick(View v) {\n {\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Intent NextScreen = new Intent(RoundSetting.this, SelectCourse.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n }\n\n\n }", "private Intent m34056c(Context context) {\n Intent intent = new Intent(\"miui.intent.action.APP_PERM_EDITOR\");\n intent.putExtra(\"extra_pkgname\", context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.miui.securitycenter\", \"com.miui.permcenter.permissions.AppPermissionsEditorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case R.id.action_settings:{\n Intent intent = new Intent(this, AppPreferences.class);\n startActivity(intent);\n return true;\n }\n case R.id.action_about:\n // About option clicked.\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n /*\n else if (id == R.id.action_add_categories)\n {\n Intent intent = new Intent(this, NoteDetailActivity.class);\n intent.putExtra(MainActivity.NOTE_FRAGMENT_TO_LOAD_EXTRA, fragmentToLaunch.CREATE);\n startActivity(intent);\n return true;\n }*/\n }", "@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"forth\");\n bundle.putString(\"Membername\",\"\"+ youtextt[3].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }", "public void onEditItem(View view) {\n Intent data = new Intent(EditItemActivity.this, MainActivity.class);\n data.putExtra(\"position\", elementId);\n data.putExtra(\"text\", etText.getText().toString());\n setResult(RESULT_OK, data);\n finish();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Log.d(\"CheckingNow\",\"IT comes here\");\n if (id == R.id.add_new_contact) {\n Intent intent = new Intent(this, ContactDetails.class);\n intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n Intent i=new Intent(this,ContactDetails.class);\n i.putExtra(\"mode\", \"add\");\n startActivity(i);\n //this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case (R.id.save_phone_entry):\n savePhone();\n //Exit out of the activity\n finish();\n return true;\n case (R.id.delete_phone_entry):\n showDeleteConfirmationDialog();\n //Exit out of activity\n return true;\n case (R.id.order_more_entry):\n //Showcase a method which emails the supplier using an Android intent\n orderMoreFromSupplier();\n return true;\n //When the user clicks the Android's device for home, check for additional changes\n case (android.R.id.home):\n if (!mPhoneProductHasChanged) {\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n }\n //If there are additional changes, setup a dialog to warn user\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, navigate to parent activity.\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n }\n };\n\n // Show a dialog that notifies the user they have unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"second\");\n bundle.putString(\"Membername\",\"\"+ youtextt[1].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getActivity(), String.valueOf(CusId),Toast.LENGTH_LONG).show();\n //Intent edit = new Intent(getActivity(),CustomerEdit.class);\n //edit.putExtra(\"CUSID\", String.valueOf(CusIds.get(getPosition())));\n //Log.d(\"view11\", String.valueOf(CusIds.get(getPosition())));\n\n // startActivity(edit);\n\n\n\n\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(SpecialAttentionActivity.this, AddAttentionActivity.class);\n intent.putExtra(Navigator.EXTRA_ROUTER_ID, GlobleConstant.getgDeviceId());\n intent.putExtra(\"AleadyAttentioned\", (Serializable) mAttentionList);\n startActivityForResult(intent, REQUEST_ADD_ATTENTION);\n }", "public void editTest(View v) {\n\t \t int value = (Integer) v.getTag();\n\t \t Intent intent = new Intent(this, EditTestActivity.class);\n\t \t intent.putExtra(\"Test value\", testList);\n\t \t intent.putExtra(\"int value\", value);\n\t \t startActivity(intent);\n\t }", "public void startIntent(View view) {\n Intent addToDoIntent = new Intent(ToDoListActivity.this, AddToDoActivity.class);\n startActivityForResult(addToDoIntent, TODO_ADDED);\n }", "public void onClick(View view) {\n if(validate_info(newRecipe)) {\n\n String date = new Date().toString();\n newRecipe.posted = date;\n newRecipe.updateDB();\n // go to menu\n Intent intent = new Intent(PostActivity.this, MenuActivity.class);\n Toast.makeText(PostActivity.this, \"Post successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n\n //change intent?\n }\n else {\n\n }\n\n }", "private void goToEditPage()\n {\n Intent intent = new Intent(getActivity(),EditProfilePage.class);\n getActivity().startActivity(intent);\n }", "public void onClick(View v) {\n switch (v.getId()) {\n case R.id.hsmic:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // je récupère le PID de la donnée cliquée\n in.putExtra(TAG_PID, id_hsmic);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in, 100);\n\n break;\n case R.id.msmic:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in2 = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // sending pid to next activity\n in2.putExtra(TAG_PID, id_msmic);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in2, 100);\n\n break;\n case R.id.ming:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in3 = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // sending pid to next activity\n in3.putExtra(TAG_PID, id_ming);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in3, 100);\n\n break;\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int itemId = item.getItemId();\n if (itemId == R.id.menu_edit) {\n editTextTitle.setEnabled(true);\n editTextDesc.setEnabled(true);\n cancelEdit.setEnabled(true);\n acceptEdit.setEnabled(true);\n cancelEdit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String title = getIntent().getExtras().getString(\"r_title\");\n String desc = getIntent().getExtras().getString(\"r_description\");\n editTextTitle.setText(title);\n editTextDesc.setText(desc);\n editTextTitle.setEnabled(false);\n editTextDesc.setEnabled(false);\n cancelEdit.setEnabled(false);\n acceptEdit.setEnabled(false);\n }\n });\n acceptEdit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Request\");\n String requestID = getIntent().getExtras().getString(\"r_id\");\n query.getInBackground(requestID, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n object.put(\"request_title\", editTextTitle.getText().toString());\n object.put(\"request_desc\", editTextDesc.getText().toString());\n object.saveInBackground();\n }\n }\n });\n editTextTitle.setEnabled(false);\n editTextDesc.setEnabled(false);\n cancelEdit.setEnabled(false);\n acceptEdit.setEnabled(false);\n }\n });\n return true;\n\n } else if (itemId == R.id.menu_delete) {\n builder = new AlertDialog.Builder(this);\n builder.setMessage(\"¿Desea eliminar la tarea demandada?\");\n\n builder.setPositiveButton(\"Sí\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Request\");\n String requestID = getIntent().getExtras().getString(\"r_id\");\n query.getInBackground(requestID, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n try {\n object.delete();\n } catch (ParseException parseException) {\n parseException.printStackTrace();\n }\n }\n });\n Intent intent = new Intent(getApplicationContext(), MainMenu.class);\n startActivity(intent);\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n return true;\n\n } else if (itemId == R.id.menu_contact) {\n Intent intent = new Intent(getApplicationContext(), ChatActivity.class);\n String username = getIntent().getExtras().getString(\"r_username\");\n if (username.equals(ParseUser.getCurrentUser().getUsername())) {\n Toast.makeText(getApplicationContext(), \"No puedes contactar contigo mismo\", Toast.LENGTH_SHORT).show();\n } else {\n intent.putExtra(\"username_r\", username);\n startActivity(intent);\n }\n return true;\n\n } else if (itemId == R.id.menu_exchange) {\n Intent intent = new Intent(getApplicationContext(), TimeExchangeRequest.class);\n String username = getIntent().getExtras().getString(\"r_username\");\n if (username.equals(ParseUser.getCurrentUser().getUsername())) {\n Toast.makeText(getApplicationContext(), \"No puedes intercambiar tiempo contigo mismo\", Toast.LENGTH_SHORT).show();\n } else {\n intent.putExtra(\"r_id\", getIntent().getExtras().getString(\"r_id\"));\n intent.putExtra(\"r_username\", getIntent().getExtras().getString(\"r_username\"));\n intent.putExtra(\"r_title\", getIntent().getExtras().getString(\"r_title\"));\n startActivity(intent);\n }\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "public void editEntry(int id) {\n ListView entryList = (ListView) getView().findViewById(R.id.breakfastFoods);\n ListAdapter arrayAdapter = entryList.getAdapter();\n String entry = (String) arrayAdapter.getItem(id);\n Intent i = new Intent(getActivity(), EditEntry.class);\n i.putExtra(\"pos\", \"\" + id);\n startActivity(i);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case R.id.btn_edit: {\n Intent i = new Intent(LocationDetailActivity.this, LocationEditActivity.class );\n i.putExtra(\"locationObject\", attLoc);\n startActivity(i);\n break;\n }\n\n case R.id.btn_delete:\n AlertDialog dialog = AskOption();\n dialog.show();\n return true;\n\n }\n\n //noinspection SimplifiableIfStatement\n\n return super.onOptionsItemSelected(item);\n }", "public static void m22267a(Activity activity, String str, String str2, ArrayList<IntroduceModel> arrayList) {\n Intent intent = new Intent(activity, IntroduceActivity.class);\n intent.putExtra(\"intent_key_introduce_todocode\", str);\n intent.putExtra(\"intent_key_introduce_todocontent\", str2);\n intent.putParcelableArrayListExtra(\"intent_key_introduce_info\", arrayList);\n activity.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(context,EditActivity.class);\n i.putExtra(DUMMY_PASSWORD, mList.get(position));\n context.startActivity(i);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.edit_info) {\n if(parentAtivityMsg.equals(\"OWNER\")) {\n Intent intent = new Intent(ShowMDMInfoActivity.this, UpdateMDMInfoActivity.class);\n startActivity(intent);\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestReceiver tr = new TestReceiver();\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(Intent.ACTION_EDIT);\r\n\t\t\t\tMainActivity.this.sendBroadcast(intent);\r\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6501269", "0.6217641", "0.60169595", "0.58384055", "0.5720122", "0.5707604", "0.5674256", "0.56476706", "0.5630249", "0.5604869", "0.55949485", "0.5580037", "0.5567516", "0.5565828", "0.55411506", "0.5485628", "0.54791725", "0.54690784", "0.5465793", "0.54393846", "0.54358184", "0.5414641", "0.5409534", "0.5399697", "0.5393779", "0.53490037", "0.5345751", "0.5341655", "0.5340731", "0.53371125", "0.53340995", "0.53279775", "0.5321115", "0.53114104", "0.5301781", "0.5298971", "0.52986324", "0.52764666", "0.5273681", "0.52690804", "0.52578294", "0.52404326", "0.52369577", "0.5233665", "0.5229725", "0.5229107", "0.5225124", "0.52226126", "0.5217907", "0.5216406", "0.5212049", "0.5200487", "0.51947457", "0.5188657", "0.51885754", "0.5184113", "0.51824677", "0.5178059", "0.51755655", "0.5165048", "0.51558214", "0.51556796", "0.51539147", "0.5150104", "0.51414514", "0.5132345", "0.5130875", "0.5130363", "0.51240134", "0.5120043", "0.5110239", "0.5109479", "0.51088333", "0.51025605", "0.5098898", "0.50939476", "0.5087151", "0.5080454", "0.5079051", "0.50775784", "0.5069148", "0.50637674", "0.506333", "0.50568485", "0.50536406", "0.5052211", "0.5052127", "0.5050684", "0.50501186", "0.50471574", "0.50436854", "0.5043013", "0.50371885", "0.50340194", "0.50336754", "0.5030246", "0.5022373", "0.50206155", "0.50169605", "0.50087327" ]
0.6906896
0
Handle deleting note on FirebaseManager and display a Toast for Success/Failure.
private void deleteNoteOnFirebaseManager(Note note){ firebase.deleteNoteOnDB(note, unused -> { Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show(); finish(); }, e -> { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "@Override\n\tpublic void delete(GalaxyNote galaxynote) {\n\t\t\n\t}", "private void deleteNote(QueryService service, String noteId) {\n service.removeNote(noteId, (e, didSucceed) -> {\n runOnUiThread(() -> {\n if (e != null || didSucceed == null || !didSucceed) {\n Toast.makeText(getApplicationContext(), \"could not delete note\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ndelete),\n Toast.LENGTH_SHORT).show();\n finish();\n }\n });\n });\n }", "public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }", "@Override\n\t\tpublic void onDeletionNotice(long arg0, long arg1) {\n\t\t\t\n\t\t}", "@Override\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }", "private void deleteNotification(int position) {\n Notification notificationToDelete = mNoteWithNotificationList.get(position).getNotification();\n\n Boolean returnVal = db.deleteNotification(notificationToDelete);\n\n ArrayList<Note> notes = db.getAllNotes();\n\n if (returnVal) {\n notifyRemoved(position);\n int calendarReadPermission = ContextCompat.checkSelfPermission(activity, Manifest.permission.READ_CALENDAR);\n int calendarWritePermission = ContextCompat.checkSelfPermission(activity, Manifest.permission.WRITE_CALENDAR);\n\n if (calendarReadPermission == PermissionChecker.PERMISSION_GRANTED && calendarWritePermission == PermissionChecker.PERMISSION_GRANTED) {\n int deletedRows = 0;\n deletedRows = calendarSync.deleteCalendarEntry(activity.getApplicationContext(), notificationToDelete.getId());\n if (deletedRows > 0) {\n Toast.makeText(activity, activity.getResources().getString(R.string.calendar_event_deleted), Toast.LENGTH_LONG).show();\n }\n }\n } else {\n Toast.makeText(activity, activity.getResources().getString(R.string.notification_delete_error), Toast.LENGTH_LONG);\n }\n\n refresh();\n }", "public void onDeletionNotice(\n \t\t\t\t\tStatusDeletionNotice statusDeletionNotice) {\n \t\t\t}", "@Override\r\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }", "@Override\r\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }", "public void onDeletionNotice(StatusDeletionNotice arg0) { }", "@Override\n\tpublic void onDeletionNotice(long directMessageId, long userId) {\n\n\t}", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "@Override\n public void onDeletionNotice(StatusDeletionNotice arg0) {\n }", "void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }", "boolean deleteMyNote(MyNoteDto usernote);", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateNoteActivity.this, \"\" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\tpublic void onDeletionNotice(StatusDeletionNotice arg0) {\n\t\t\n\t}", "void onDeleteSuccess(int position);", "@Override\n\t\tpublic void onDeletionNotice(\n\t\t\t\tStatusDeletionNotice statusDeletionNotice) {\n\t\t}", "@Override\n\t\tpublic void onDeletionNotice(StatusDeletionNotice arg0) {\n\t\t\t\n\t\t}", "@Override\n public void onSuccess(Void aVoid) {\n pd.setMessage(\"File Deleted ... \");\n Toast.makeText(AddNewNoticeActivity.this, \"Deleted File !!\", Toast.LENGTH_LONG).show();\n\n pd.dismiss();\n\n }", "private void deleteNote(Integer noteId) {\n notesRepository.markDeleted(noteId, true);\n\n broadcastManager.sendBroadcast(new Intent(ACTION_DELETE));\n getActivity().sendBroadcast(new Intent(ACTION_DELETE));\n\n showDeleteUndoBar(noteId);\n }", "@Override\n\tpublic void onDeletionNotice(StatusDeletionNotice arg0) \n\t{\n\t}", "@Override\n\t\t\tpublic void onDeletionNotice(\n\t\t\t\t\tStatusDeletionNotice statusDeletionNotice) {\n\t\t\t}", "@Override\n\t\t\tpublic void onDeletionNotice(StatusDeletionNotice arg0) {\n\n\t\t\t}", "@Override\r\n public void onDeletionNotice(StatusDeletionNotice arg0) {\n\r\n }", "@Override\r\n public void onDeletionNotice(StatusDeletionNotice arg0) {\n\r\n }", "public void deleteNote() {\n if (cursor == 0) {\n JOptionPane.showMessageDialog(null, \"There's no note to delete!\", \"Invalid Delete\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (sequence.getNote(cursor) == REST) {\n cursor--;\n controller.setSelected(cursor);\n\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n } else {\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n }\n }\n }", "@Test\n void deleteNoteSuccess() {\n noteDao.delete(noteDao.getById(2));\n assertNull(noteDao.getById(2));\n }", "void onDelete();", "private void showDeleteSuccess() {\n Notification notification = Notification.show(\"Your Advert Has Been Deleted \");\n notification.addThemeVariants(NotificationVariant.LUMO_ERROR);\n UI.getCurrent().getPage().reload();\n }", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Successfully deleted\", Toast.LENGTH_SHORT).show();\n //realm.close();\n }", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Successfully deleted\", Toast.LENGTH_SHORT).show();\n //realm.close();\n }", "@Override\n public void deleteTodo(final int position) {\n new AlertDialog.Builder(this)\n .setIcon(R.drawable.ic_warning_red_24dp)\n .setTitle(R.string.delete_todo_title)\n .setMessage(getString(R.string.delete_body_message)\n + todos.get(position).getTitle() + \"'\")\n .setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n todos.remove(position);\n Toast.makeText(MainActivity.this, \"Deleted\", Toast.LENGTH_SHORT).show();\n adapter.notifyDataSetChanged();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n int rowsDeleted = getContentResolver().delete(notesEntry.CONTENT_URI, null, null);\n Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n Toast.makeText(MainActivity.this, \"ALL NOTES HAVE BEEN DELETED!\", Toast.LENGTH_SHORT).show();\n }", "public void onDelete(final R record) {\n // can be overridden.\n }", "public boolean delete_item(final DatabaseReference RefItem) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"هل أنت متاكد من حذف المنتج؟\")\n .setPositiveButton(\"نعم\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //make sensor available\n RefItem.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n if (dataSnapshot.hasChild(\"Sensor\")) {\n String Sensor= dataSnapshot.child(\"Sensor\").getValue().toString();\n\n RefItem.getParent().getParent().child(\"Sensors\").child(Sensor).removeValue();\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n //delete item\n RefItem.removeValue();\n delete_item = true;\n\n }//if click yes end\n })\n .setNegativeButton(\"لا\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n delete_item=false;\n }\n });\n // Create the AlertDialog object and return it\n AlertDialog deletemass= builder.create();\n deletemass.show();\n return delete_item;\n\n\n }", "public void onDelete() {\n }", "@Override\n public void onWhatEverClick(int position) {\n Upload selectedItem = patientsList.get(position);\n String userId = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n\n databaseReference.child(userId).removeValue();\n Toast.makeText(PatientsListActivity.this, \"Patient deleted\", Toast.LENGTH_SHORT).show();\n\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(PatientsListActivity.this, \"Error: \"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }", "@Override\n protected Void doInBackground(Void... params) {\n DataManager dataManager = DataManager.getInstance(weakReference.get());\n dataManager.deleteNote(noteId);\n return null;\n }", "@DELETE\n\t@Produces(\"text/plain\")\n\tpublic String onDelete() {\n\t\tmsg = null;\n\t\treturn \"Message deleted.\\n\";\n\t}", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "int deleteByExample(ComplainNoteDOExample example);", "public boolean delete(Reminder reminder);", "@DeleteMapping(\"/notes/{id}\")\n public boolean deleteNote(@PathVariable(\"id\") UUID id) {\n return noteService.deleteNote(id);\n }", "@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}", "public void removeNote(Note note) throws ChangeVetoException;", "private void delete_message_reciver(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n }", "@Override\n public void remove(Note note) {\n }", "private void showDeleteAlert(final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater layoutInflater = LayoutInflater.from(this);\n final View view = layoutInflater.inflate(R.layout.unfollow_alert_dialog, null);\n TextView tvDialogContent = (TextView) view.findViewById(R.id.dialog_content);\n tvDialogContent.setText(getResources().getString(R.string.delete_topic_message));\n builder.setView(view);\n\n Button yesBtn = (Button) view.findViewById(R.id.yes_btn);\n Button noBtn = (Button) view.findViewById(R.id.no_btn);\n\n yesBtn.setText(getString(R.string.yes));\n noBtn.setText(getString(R.string.no));\n\n final AlertDialog alertDialog = builder.create();\n alertDialog.setCancelable(false);\n alertDialog.show();\n\n yesBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n deleteMagazine(title);\n }\n });\n\n\n noBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "public void onDelete() {\n if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName());\n showDialog(R.id.dialog_confirm_delete);\n }", "public void onDelete(View view){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Are you sure you want to delete this item?\")\n\t\t .setCancelable(false)\n\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t dialog.cancel();\n\t\t }\n\t\t })\n\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t deleteItem();\n\t }\n\t });\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}", "@Override\n public void onClick(View v)\n {\n if(Admin.equals(mFirebaseAuth.getCurrentUser().getEmail()))\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(EventDetailsActivity.this);\n builder.setTitle(\"Are you sure you want to delete Event?\");\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n Toast.makeText(EventDetailsActivity.this,\"Deleting Event...\",Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.VISIBLE); //sets progress bar to show event is being deleted\n //Deletes event for current user/admin\n userRef.document(mFirebaseAuth.getCurrentUser().getEmail()).collection(\"Events\").document(ID)\n .delete()\n .addOnCompleteListener(new OnCompleteListener<Void>()\n {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n if(task.isSuccessful())\n {\n //Checks if the event has a file to delete\n if(pdf_url!=null)\n {\n StorageReference storageReference = storage.getReferenceFromUrl(pdf_url);\n //Deletes file from storage\n storageReference.delete()\n .addOnSuccessListener(new OnSuccessListener<Void>()\n {\n @Override\n public void onSuccess(Void aVoid)\n {\n //Deletes event for all shared members\n if(members.size()>0)\n {\n k=0;\n deleteSharedEvents(members.get(k));\n }\n }\n })\n .addOnFailureListener(new OnFailureListener()\n {\n @Override\n public void onFailure(@NonNull Exception e)\n {\n Toast.makeText(EventDetailsActivity.this,e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n });\n }\n else\n {\n //Deletes event for all shared members\n if(members.size()>0)\n {\n k=0;\n deleteSharedEvents(members.get(k));\n }\n }\n progressBar.setVisibility(View.INVISIBLE); //sets progress bar to invisible to show deletion is complete\n Toast.makeText(EventDetailsActivity.this,\"Event Deleted\",Toast.LENGTH_SHORT).show();\n //returns to home page after deleting the event\n Intent i =new Intent(EventDetailsActivity.this,HomeActivity.class);\n startActivity(i);\n }\n }\n })\n .addOnFailureListener(new OnFailureListener()\n {\n @Override\n public void onFailure(@NonNull Exception e)\n {\n Toast.makeText(EventDetailsActivity.this,\"Error: \"+ e,Toast.LENGTH_SHORT).show();\n }\n });\n\n }\n });\n\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n //If current user is not the admin\n else\n {\n AlertDialog alertDialog = new AlertDialog.Builder(EventDetailsActivity.this).create();\n alertDialog.setTitle(\"Cannot Delete Event\");\n alertDialog.setMessage(\"User does not have Admin Privileges.\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n }", "public void onConfirmFavouriteDeletion();", "@Override\n public void onClick(View view) {\n mDatabase.deleteNote(singleNote.getId());\n //refresh the activity page.\n ((Activity)context).finish();\n context.startActivity(((Activity) context).getIntent());\n }", "private void delete_message_sender(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n\r\n }", "private void doDeleteSong() {\n int result = dbHelper.deleteSong(selectedSong.getId());\n Log.d(TAG + \"in doDeleteSong\", \"Result > \" + result);\n\n // Check Status\n if (result == 1) {\n Toast.makeText(this, \"Successfully deleted the song\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Failed to delete the song\", Toast.LENGTH_SHORT).show();\n }\n }", "public static void deleteItemMessage(String deletedItem, String deletedItemQuantity) {\n System.out.println(\"Noted. I've removed \" + deletedItemQuantity + \" \" + deletedItem);\n }", "@Override\n public void onClick(View v) {\n final Intent intent = new Intent(context, admin_show_std.class);\n intent.putExtra(\"roll\", adminUserList.get(holder.getAdapterPosition()).getRoll());\n final String roll = intent.getStringExtra(\"roll\");\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Delete ?\" + roll).setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n adminUserList.remove(adminUserList.get(position));\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference().child(\"UsersData\");\n assert roll != null;\n databaseReference.child(roll).removeValue();\n notifyItemRemoved(position);\n notifyDataSetChanged();\n Toast.makeText(context, \"User Deleted\" + position, Toast.LENGTH_SHORT).show();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.setTitle(\"Confirm\");\n dialog.show();\n }", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "public void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Inside Click !!!!\");\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\"Record Deleted...\",\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t}", "private void deleteItem(final int id){\n // Instantiate AlertDialog builder\n builder = new AlertDialog.Builder(context);\n\n // Inflate the confirmation dialog\n inflater = LayoutInflater.from(context);\n View view = inflater.inflate(R.layout.confirmation_popup, null);\n\n // Instantiate buttons\n Button noButton = view.findViewById(R.id.conf_no_button);\n Button yesButton = view.findViewById(R.id.conf_yes_button);\n\n builder.setView(view);\n dialog = builder.create();\n dialog.show();\n\n\n // When user confirms to delete, delete the task item and clear the dialog\n yesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // DatabaseHandler\n DatabaseHandler db1 = new DatabaseHandler(context, \"task_details\"); // MODIFIED JUNE 5TH\n\n // Delete the task from database\n db1.deleteTask(id);\n todoItems.remove(getAdapterPosition());\n notifyItemRemoved(getAdapterPosition());\n\n dialog.dismiss();\n }\n });\n\n // When user confirms not to delete, just get rid of the dialog\n noButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }", "private void deleteNotification(final Notification notification, final NotifyItemHolder holder) {\n Call<Object> httpRequest = LoggedUserActivity.getNotificationsService().deleteNotification(notification.getNotificationId());\n\n httpRequest.enqueue(new Callback<Object>() {\n @Override\n public void onResponse(Call<Object> call, Response<Object> response) {\n if (response.isSuccessful()) {\n notificationsListFragment.removeUserNotification(notificationsListFragment, notification, fragmentView, recyclerView, holder);\n } else {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), response.code() + \" \" + response.message(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Call<Object> call, Throwable t) {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "public void deleteAttachments(String notice_firbaseID){\n\n pd=new ProgressDialog(AddNewNoticeActivity.this);\n pd.setProgress(100);;\n pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pd.setTitle(\"Deleting\");\n pd.setMessage(\"Please Wait ...\");\n pd.setCancelable(false);\n\n String attchFilesPath = \"Global/\" + StartUpActivity.userDetails.getState() + \"/Notice_Board/\" + notice_firbaseID + \"/Attachments/\";\n\n mDatabase = FirebaseDatabase.getInstance().getReference(attchFilesPath);\n\n //adding an event listener to fetch values\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n //dismissing the progress dialog\n\n //iterating through all the values in database\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Upload upload = postSnapshot.getValue(Upload.class);\n\n pd.show();\n\n // Delete One by one all files\n deleteFileFromStorage(upload);\n\n }\n\n mDatabase.removeEventListener(this);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n pd.dismiss();\n }\n });\n\n }", "@Override\n public void onYesClicked() {\n // Find the appointment in Firestore and delete.\n final AppointmentModel deleteAppt = appointmentList.get(deletePos);\n final String deleteApptDate = deleteAppt.getDate();\n final String deleteApptTime = deleteAppt.getTime();\n final String deleteApptAddress = deleteAppt.getAddress();\n\n // Delete the patient's appointment\n apptListRef.addSnapshotListener(this, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot queryApptSnapshots, FirebaseFirestoreException e) {\n if (e != null) {\n return;\n }\n\n for (QueryDocumentSnapshot deleteApptSnapshot : queryApptSnapshots) {\n AppointmentModel apptDelete = deleteApptSnapshot.toObject(AppointmentModel.class);\n String daDateCheck = apptDelete.getDate(); String daTimeCheck = apptDelete.getTime();\n DocumentReference deleteA = deleteApptSnapshot.getReference();\n if (deleteApptDate.equals(daDateCheck) && deleteApptTime.equals(daTimeCheck)) {\n deleteA.delete();\n Toast.makeText(AdminCalendar.this, \"Appointment Successfully Canceled!\", Toast.LENGTH_SHORT).show();\n\n // Send a cancellation email\n String tempAMorPM = deleteApptTime.substring(0, 2);\n String tempTime = deleteApptTime.substring(3);\n String emailSubject = \"Cancellation of appointment set for \" + deleteApptDate + \" at \" + deleteApptAddress;\n String emailMessage = \"Hello \" + name + \",\\n\\n\" +\n \"Your appointment scheduled for \" + deleteApptDate + \" at \" + tempTime + ' ' + tempAMorPM + \" at \"\n + deleteApptAddress + \" has been cancelled...\" + \"\\n\\nThank you,\\n\" + \"TT&T Scheduling\";\n JavaMailAPI sendEmail = new JavaMailAPI(AdminCalendar.this, deleteAppt.getEmail(), emailSubject, emailMessage);\n sendEmail.execute();\n\n break;\n }\n }\n }\n });\n\n appointmentList.remove(deletePos);\n adapter.notifyItemRemoved(deletePos);\n }", "public void deleteFileFromStorage(Upload details){\n\n\n StorageReference storageRef = FirebaseStorage.getInstance().getReferenceFromUrl(details.getUrl());\n\n // Delete the file\n storageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n // Delete content from database\n pd.setMessage(\"File Deleted ... \");\n Toast.makeText(AddNewNoticeActivity.this, \"Deleted File !!\", Toast.LENGTH_LONG).show();\n\n pd.dismiss();\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n pd.dismiss();\n Toast.makeText(AddNewNoticeActivity.this, \"Failed to Delete !!\" + exception, Toast.LENGTH_LONG).show();\n }\n });\n\n\n\n }", "public abstract void delete(int msg);", "@POST\n\t@Path(\"/deleteNote/{noteId}\")\n\tpublic Response deleteNote(@PathParam(\"noteId\") String noteid) {\n\n\t\tif (noteid == null) {\n\t\t\treturn Response.ok().entity(\"note id is null\").build();\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(noteid);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn Response.ok().entity(\"note id is not a valid number\").build();\n\t\t}\n\n\t\tint noteId = Integer.parseInt(noteid);\n\t\tNote note = noteService.findById(noteId);\n\t\tif (note == null) {\n\t\t\treturn Response.ok().entity(\"Requested note is not available in Database\").build();\n\t\t} else {\n\t\t\tnoteService.deleteNote(note);\n\t\t\treturn Response.ok().entity(\"success\").build();\n\t\t}\n\t}", "@Override\n\tpublic int deleteNotice(int id) throws Exception {\n\t\treturn -1;//res;\n\t}", "public static void deleteAlert() {\n\n }", "public void delete(int singerId);", "private void delete_message_everyone(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n\r\n if(task.isSuccessful()){\r\n /// todo finial task\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n\r\n Mprogress.dismiss();\r\n }\r\n\r\n }\r\n });\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context,task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n }", "@Cacheable(value = \"DeleteNote\", key = \"#noteId\")\n\t@Override\n\tpublic Response deleteNote(String noteId, String token) throws IOException {\n\t\t\n\t\tString email = jwt.getEmailId(token);\n\t\t\n\t\tif(email != null) {\n\t\t\tnoterepository.deleteById(noteId);\n\t\t\telasticSearchService.deleteDocument(noteId);\n\t\t\treturn new Response(200, noteEnvironment.getProperty(\"Delete_Note\"), noteEnvironment.getProperty(\"DELETE_NOTE\"));\n\t\t}\n\t\treturn new Response(404, noteEnvironment.getProperty(\"UNAUTHORIZED_USER_EXCEPTION\"), null);\n\t}", "private void clearNote()\n\t{\n\t\t((EditText) findViewById(R.id.note_edittext)).setText(\"\");\n\t\tNoteDbWorker worker = new NoteDbWorker(this);\n\t\tworker.deleteNote(user.userName);\n\t\tworker.close();\n\t\tToast.makeText(this, getString(R.string.note_cleared), Toast.LENGTH_LONG).show();\n\t}", "public void onDeleteList() {\n ListsManager listManager = ListsManager.getInstance(context);\n listManager.deleteTable(deletePosition,context);\n Toast.makeText(context, \"deleted TodoList\", Toast.LENGTH_SHORT).show();\n data.remove(deletePosition);\n notifyItemRemoved(deletePosition);\n }", "void onDelete() {\n if (getText().equals(mResult) || mIsError) {\n clear();\n } else {\n mDisplay.dispatchKeyEvent(new KeyEvent(0, KeyEvent.KEYCODE_DEL));\n mResult = \"\";\n }\n }", "private void deleteitem() {\n if (mCurrentItemInfoUri != null) {\n DialogInterface.OnClickListener yesButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mProgressbarView.setVisibility(View.VISIBLE);\n ContentValues values = null;\n new updateDeleteItemToDbTask().execute(values);\n }\n };\n // Show dialog that there are unsaved changes\n showConfirmationDeleteDialog(yesButtonClickListener);\n }\n }", "boolean notifyDelete(InetAddress address, ContentEntry recording);", "public static void deleteNote(int tenantID, String noteName) throws RegistryException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n String noteLocation = getNoteLocation(noteName);\n\n if (userRegistry.resourceExists(noteLocation)) {\n userRegistry.delete(noteLocation);\n } else {\n log.error(\"Cannot to delete note note with name \" + noteName +\n \" for tenant with tenant ID \" + tenantID + \" because it does not exist\");\n }\n }", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n todoDBAdapter.open();\n todoDBAdapter.deleteContact(contactID);\n todoDBAdapter.close();\n Toast toast = Toast.makeText(context.getApplicationContext(), R.string.DetailTodo_info_successful_contact_delete, Toast.LENGTH_SHORT);\n toast.show();\n Intent overviewIntent = new Intent(context, Overview.class);\n context.startActivity(overviewIntent);\n }", "@Override\n public void onClick(View v) {\n noteDialog.dismiss();\n }", "public void delete(final View view) {\n AlertDialog.Builder dialog = new AlertDialog.Builder(view.getContext());\n dialog.setTitle(\"Delete Post\");\n dialog.setMessage(\"Are you sure about deleting this post?\");\n dialog.setCancelable(false);\n dialog.setPositiveButton(\"Yes, Delete.\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n deleteHelper();\n }\n });\n dialog.setNegativeButton(\"No, don't!\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n dialog.show();\n\n }", "public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }", "public static void RecipeTipsFirebaseDeleteSingle() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n String number = snapshot.child(FIELD_RECIPE_TIPS_NUMBER).getValue(String.class);\n\n assert number != null;\n if (number.equals(sCurrentRecipeTipNumber)) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }", "public void attemptDelete(final int reminderId){\n\t\t\t\t\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n\t\t builder.setTitle(\"Delete reminder\");\n\t\t builder.setMessage(\"Are you sure you want to delete this reminder in your account?\");\n\t\t builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t \t dataBase.deleteEntry(reminderId);\n\t\t \t\t Toast.makeText(getApplicationContext(), \"Reminder deleted successfully.\", Toast.LENGTH_LONG).show();\n\t\t \t\t Intent i = getIntent();\n\t\t \t\t finish();\n\t\t \t\t startActivity(i);\n\t\t }\n\t\t });\n\t\t builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t }\n\t\t });\n\t\t \n\t\t AlertDialog dialog = builder.create();\n\t\t dialog.show();\n\t\t \n\t\t\t}", "int deleteByPrimaryKey(String noticeId);", "private void showDeletedSnackbar() {\n Snackbar.make(parent, \"Selected \" + getTypeDescription() + \" deleted.\", Snackbar.LENGTH_LONG)\n .setAction(\"Undo\", new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (previouslyDeletedItems.size() > 0) {\n // Re-add the items and update the list.\n listDao.insertRows(previouslyDeletedItems);\n reloadData();\n }\n }\n })\n .show();\n }", "String markRecordAsDeleted(String recordID) throws RepoxException;", "void delete(String receiptHandle);", "private void onDeleteConfirmed() {\n stopService();\n\n Intent intent = new Intent(this, StartRecordingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }", "private void deleteDataResult(final DataResult dataResult) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setTitle(\"Are You Sure ?\");\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n\n if (dataResult.isIs_clouded()) {\n// DatabaseReference databaseReference = firebaseUserHelper.getDatabaseReference().child(\"user\").child(firebaseUserHelper.getFirebaseUser().getUid()).child(\"data_result\").child(String.valueOf(dataResult.getId()));\n// databaseReference.removeValue();\n// firebaseUserHelper.getStorageReference().child(String.valueOf(dataResult.getId())).delete();\n DeleteDataResult deleteDataResult = new DeleteDataResult();\n deleteDataResult.setUid(MoflusSharedPreferenceHelper.getUser(context).getUid());\n deleteDataResult.setData_result_id(dataResult.getId());\n MoFluSService.getService().deleteDataResult(\n deleteDataResult\n ).enqueue(new Callback<Status>() {\n @Override\n public void onResponse(Call<Status> call, Response<Status> response) {\n if (response.body()!= null &&response.body().isSuccess()) {\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n } else {\n Toast.makeText(context, \"Delete Failed\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<Status> call, Throwable t) {\n Toast.makeText(context, \"No Internet Access\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n });\n }else{\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n });\n alertDialogBuilder.show();\n }", "void afterDelete(T resource);", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Successfully deleted category\", Toast.LENGTH_SHORT).show();\n //realm.close();\n }" ]
[ "0.71904755", "0.6908492", "0.6894954", "0.6849478", "0.6762148", "0.66902727", "0.6664408", "0.6656127", "0.66543937", "0.6634081", "0.6634081", "0.6623552", "0.6535859", "0.6531844", "0.652852", "0.6527487", "0.6481261", "0.6449666", "0.6416715", "0.64147645", "0.64134115", "0.6410183", "0.6398018", "0.63979614", "0.6396902", "0.63843334", "0.6378109", "0.63115126", "0.63115126", "0.6297193", "0.6283094", "0.6280918", "0.626776", "0.6240248", "0.6240248", "0.6239638", "0.62263733", "0.62177217", "0.6216579", "0.6213127", "0.6189305", "0.6174099", "0.6169162", "0.6145283", "0.6125652", "0.61039937", "0.60992575", "0.60963976", "0.6065181", "0.6034689", "0.598932", "0.59585714", "0.5955048", "0.5950631", "0.5944735", "0.5938271", "0.5892703", "0.58885556", "0.5888", "0.58873755", "0.5871879", "0.58657926", "0.58552736", "0.5848301", "0.58304125", "0.5810947", "0.5804862", "0.5804519", "0.58030385", "0.5801206", "0.57978165", "0.5797514", "0.57950556", "0.57942736", "0.57892835", "0.5782857", "0.57740164", "0.5773295", "0.577092", "0.57652974", "0.57594407", "0.5755192", "0.5754362", "0.575343", "0.57486105", "0.5731557", "0.5722923", "0.57218915", "0.5719574", "0.5717308", "0.57130706", "0.5710859", "0.57006544", "0.5697957", "0.56953895", "0.56900585", "0.56897205", "0.5681765", "0.56780136", "0.56722164" ]
0.8279309
0
Add/Update Note on FirebaseManager and display a Toast for Success/Failure.
private void setNoteOnFirebaseManager(Note note, boolean isUpdate){ firebase.setNoteOnDB(note, unused -> { Toast.makeText(this, isUpdate ? R.string.note_update_success : R.string.note_addition_success, Toast.LENGTH_LONG).show(); finish(); }, e -> { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addNote(){\n DatabaseReference noteRef = mDB.getReference(\"Notes\");\n\n Long time = System.currentTimeMillis();\n\n Bundle bundleNote = new Bundle();\n bundleNote.putString(\"notesDetail\", notes.getText().toString());\n bundleNote.putString(\"notesTime\", time.toString());\n\n Note note = new Note(bundleNote);\n String currNoteKey;\n currNoteKey = noteRef.push().getKey();\n noteRef.child(LoginActivity.currUserID).child(currNoteKey).setValue(note);\n\n }", "private void saveNote()\n\t{\n\t\tString text = ((EditText) findViewById(R.id.note_edittext)).getText().toString();\n\t\tNoteDbWorker worker = new NoteDbWorker(this);\n\t\tworker.updateNote(user.userName, text);\n\t\tworker.close();\n\t\tToast.makeText(this, getString(R.string.note_saved), Toast.LENGTH_LONG).show();\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateNoteActivity.this, \"\" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }", "private void onSaveNote() {\n String text= inputNote.getText().toString();\n if(!text.isEmpty()){\n long date=new Date().getTime(); // get current time\n // Note note= new Note(text,date); because temp now has Note object\n\n // if note exits update else create new\n temp.setNoteText(text);\n temp.setNoteDate(date);\n\n if(temp.getId()==-1)\n dao.insertNote(temp); // insert and save note to database\n else{\n dao.updateNote(temp);\n }\n finish(); // return to the MainActivity\n }\n\n }", "@Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n\n Toast.makeText(CreateNoteActivity.this, firebaseVisionText.getText(), Toast.LENGTH_SHORT).show();\n }", "public void addNote(Note note) throws ChangeVetoException;", "private void updateNote(int noteId, final String noteTitle, final String noteDescription, final int position) {\n mDispose.add(\n AppConfig.getApiClient().updateNote(noteId, noteTitle, noteDescription)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeWith(new DisposableCompletableObserver() {\n @Override\n public void onComplete() {\n Toast.makeText(MainActivity.this, \"Updated\", Toast.LENGTH_SHORT).show();\n\n ToDo toDo = toDoList.get(position);\n toDo.setName(noteTitle);\n toDo.setDescription(noteDescription);\n\n mAdapterNote.notifyItemChanged(position);\n }\n\n @Override\n public void onError(Throwable e) {\n showError(e);\n }\n })\n );\n }", "private void saveNote() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E,MMM d, hh:mm a\");\n String lastSavedDate = sdf.format(new Date());\n String id;\n boolean isNew = true;\n if (oldNote != null && oldNote.getId() != null && !oldNote.getId().isEmpty()) {\n id = oldNote.getId();\n isNew = false;\n } else\n id = UUID.randomUUID().toString();\n Note note = new Note(id, etTitle.getText().toString().trim(), lastSavedDate, etNote.getText().toString().trim());\n note.setNew(isNew);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"NEW_NOTE\", note);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "private void deleteNoteOnFirebaseManager(Note note){\n firebase.deleteNoteOnDB(note, unused -> {\n Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "@Override\n public void onClick(View v) {\n if (AppUtils.isEmptyString(edtNoteTitle.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n final String noteTitle = edtNoteTitle.getText().toString();\n final String noteDes = edtNoteDes.getText().toString();\n // check if user updating note\n if (shouldUpdate && todo != null) {\n // update note by it's id\n updateNote(todo.getTodoId(), noteTitle, noteDes, position);\n } else {\n // create new note\n createNote(noteTitle, noteDes, mUserId);\n }\n }", "public void insertNote(Note note) {\n ProgressTrackerDatabase.databaseWriteExecutor.execute(() -> {\n mNoteDao.insert(note);\n });\n }", "public void addNote(Note n){\n notes.add(n);\n }", "public void AddData(String newEntry) {\n boolean insertData = mDatabaseHelper.addData(newEntry);\n if (insertData) {\n toastMessage(\"Item Added to Shopping List!\");\n } else {\n toastMessage(\"Sorry, Please Try Again\");\n }\n\n }", "private void note(Notification n){\r\n\t\tusers.get(n.userID).addNotification(n);\r\n\t\tif (loggedInUsers.contains(n.userID))\r\n\t\t\tcomms.sendMessage(n);\r\n\t}", "private void createNote(NewNoteInput note, QueryService service) {\n if ((note.body() == null || note.body().isEmpty()) &&\n (note.title() == null || note.title().isEmpty())) {\n Log.i(LOG_TAG, \"skipped upload of note with empty body\");\n return;\n }\n\n service.createNote(note, (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note created\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ncreate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public void addNote(@NonNull Note_Model newNote) {\n noteModelSection.add(0, newNote);\n if (noteModelSection.size() > 1) {\n noteScreenRecycler.smoothScrollToPosition(0);\n }\n for (int position = 0; position < noteModelSection.size(); position++) {\n noteModelSection.get(position).setActualPosition(position);\n }\n mainActivity.get().getNoteScreen().get().getAdapter().updateNotesAdapter(noteModelSection);\n // new Thread(() -> everDataBase.noteManagement().insert(transformNoteModelToNoteDatabase(newNote))).start();\n }", "public void setNote(String note);", "public void setNote(String note) {\r\n this.note = note; \r\n }", "private void updateNote(NewNoteInput note, QueryService service) {\n boolean isTagListSame = new TreeSet<>(mNote.tags()).equals(mTags);\n\n if (note.body().equals(mNote.body()) && note.title().equals(mNote.title()) && isTagListSame) {\n Log.i(LOG_TAG, \"skipped update of unchanged note\");\n return;\n }\n\n // The single spaces are like clear commands. This is a hack around\n // the express graphql implementation.\n EditNoteInput.Builder builder = EditNoteInput.builder()\n .id(mNote.id())\n .title((note.title() == null || note.title().isEmpty()) && mNote.title() != null ? \" \" : note.title())\n .body((note.body() == null || note.body().isEmpty()) && !mNote.body().isEmpty() ? \" \" : note.body())\n .tags(isTagListSame ? null : note.tags());\n\n service.editNote(builder.build(), (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note updated\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_nupdate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n String data = dataSnapshot.getValue(String.class);\n notes.add(data);\n arrayAdapter.notifyDataSetChanged();\n }", "@Override\n public void add(Note note) {\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public void storeNote(String text) {\r\n\t\tTextNote note = new TextNote();\r\n\t\tnote.setText(text);\r\n\t\tthis.TextNoteList.add(note);\r\n\t}", "void add(Note note);", "public static boolean FireBaseAddWord(String source,String target,String userId){\n\r\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\r\n DatabaseReference root = firebaseDatabase.getReference(\"words\").child(userId); // Firebase database table path.\r\n\r\n Map wordMap = new HashMap(); // Set word information in map\r\n\r\n wordMap.put(\"source\",source);\r\n wordMap.put(\"target\",target);\r\n wordMap.put(\"time\",ServerValue.TIMESTAMP);\r\n\r\n root.push().updateChildren(wordMap).addOnCompleteListener(new OnCompleteListener() {\r\n @Override\r\n public void onComplete(@NonNull Task task) { // Update Database\r\n if(task.isSuccessful()){\r\n setAddWordIsSuccessful(true);\r\n }else {\r\n setAddWordIsSuccessful(false);\r\n }\r\n }\r\n });\r\n\r\n\r\n return addWordIsSuccessful;\r\n\r\n\r\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public void setDocumentNote (String DocumentNote);", "public void add(@NonNull Context context, @NonNull Note newNote)\n {\n boolean closeDatabase = false;\n if (databaseClosed)\n {\n //the database will be opened by this call, set this to true to\n // ensure it is closed upon exit.\n closeDatabase = true;\n openDatabase(context);\n }\n addNewNoteQuery(newNote);\n if (closeDatabase)\n {\n noteDatabase.close();\n }\n }", "private void onDoneClicked() {\n\n// if(flag == 1)\n// {\n if (items.size() > 0) {\n\n\n //insertion method\n String title = mEtTitle.getText().toString();\n String itemString = RemainderItems.convertItemsListToString(items);\n RemainderItems notes = new RemainderItems();\n\n notes.title = title;\n notes.items = itemString;\n\n dbhelper.insertDataToDatabase(notes, dbhelper.getWritableDatabase());\n\n Toast.makeText(CheckboxNoteActivity.this, \"Retrieved Item Size = \" + retrievedItems.size(), Toast.LENGTH_SHORT).show();\n }\n\n // }\n\n// else{\n// String title = mEtTitle.getText().toString();\n// String content = mEtNotes.getText().toString();\n// RemainderItems newContent = new RemainderItems();\n// newContent.title = title;\n// newContent.items = content;\n// notedbhelper.insertNote(newContent,notedbhelper.getWritableDatabase());\n// }\n\n }", "private void switchBetweenAddEdit() {\n String uid = getIntent().getStringExtra(NOTE_UID);\n if (uid != null) {\n\n Objects.requireNonNull(getSupportActionBar()).setTitle(R.string.edit_note);\n\n Note note = Arrays.stream(firebase.getNotes().getValue()).filter(note1 -> uid.equals(note1.getUid())).findFirst().get();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(note.getDate());\n\n date.init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null);\n title.setText(note.getTitle());\n body.setText(note.getBody());\n\n addBtn.setVisibility(View.GONE);\n editBtnsLyot.setVisibility(View.VISIBLE);\n\n saveBtn.setOnClickListener(view -> {\n prepareNote(note1 -> {\n note1.setUid(uid);\n setNoteOnFirebaseManager(note1, true);\n });\n });\n\n deleteBtn.setOnClickListener(view -> {\n deleteNoteOnFirebaseManager(note);\n });\n }\n\n addBtn.setOnClickListener(view -> {\n prepareNote(note -> {\n setNoteOnFirebaseManager(note, false);\n });\n });\n }", "Update withNotes(String notes);", "boolean saveMyNoteText(String myNote);", "public void addToDo() {\n\n ToDoDBContract.ToDoListDbHelper dbHelper = new ToDoDBContract.ToDoListDbHelper(context);\n\n String name = et_name.getText().toString(); // gets the name the user has entered in the et_name edit text\n\n // If the name is null or empty, alert the user that they must enter a name\n if (name.equals(null) || name.equals(\"\")) {\n Log.d(\"ERROR\", \"name is not valid\", null);\n AlertDialog alertDialog = new AlertDialog.Builder(context)\n .setMessage(R.string.dialog_message_input_error_name)\n .setTitle(R.string.dialog_title_input_error_name)\n .setPositiveButton(\"Ok!\", null).create();\n alertDialog.show();\n } else {\n // If the name was NOT null or empty, create a new ToDoItem with the valid to-do name entered by the user\n ToDoItem addToDo = new ToDoItem(name);\n String note = et_note.getText().toString();\n\n // Get the other inputs from the use and make sure they are not null or invalid\n // If not null or invalid, set the ToDoItem's instance variables to the corresponding inputs\n if (!note.equals(null) || !note.equals(\"\")) {\n addToDo.setNote(note);\n }\n if (dueDateDate != null) {\n if (dueDateDate.getTime() > 0)\n addToDo.setDueDate(dueDateDate);\n } else {\n addToDo.setDueDate(null);\n }\n if (alarmDate != null) {\n if (alarmDate.getTimeInMillis() > 0)\n addToDo.setAlarmDate(new Date(alarmDate.getTimeInMillis()));\n } else {\n alarmDate = null;\n addToDo.setAlarmDate(null);\n }\n dbHelper.insertNewToDo(addToDo); // add the to-do to the database\n\n // If the user set a valid alarm, schedule it.\n if (alarmDate != null && alarmDate.getTimeInMillis() > 0) {\n int alarmID = dbHelper.getID(addToDo);\n Intent intent = new Intent(context, ToDoAlarmReceiver.class);\n intent.putExtra(\"ToDoName\", name);\n intent.putExtra(\"AlarmID\", alarmID);\n Log.d(TAG, \"alarm id = \" + alarmID);\n AlarmManager alarm = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\n alarm.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, alarmDate.getTimeInMillis(), pendingIntent);\n }\n\n // Make a toast confirming that the to do has been added and redirect back to the ToDoFragment\n Toast.makeText(context, \"To do \\\"\" + name + \"\\\" added\", Toast.LENGTH_LONG).show();\n ToDoFragment newFragment = new ToDoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "public void addNewNote(MenuItem item){\n \t\tIntent intent = new Intent(this, ActivityNote.class);\n \t\tstartActivity(intent);\n \t}", "void handle_push_note(LinkedList<Object> args) {\n try {\n String name = (String)args.get(1);\n String create = (String)args.get(2);\n String modify = (String)args.get(3);\n String content = (String)args.get(4);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT user_id \" +\n \"FROM data WHERE note_name=? AND user_id=?\");\n pst.setString(1, name);\n pst.setInt(2, userid);\n rsl = pst.executeQuery();\n String state;\n if(rsl.next()) { //查询到结果\n state = \"UPDATE data SET \"+\n \"time_create=?,\" +\n \"time_modify=?,\" +\n \"note_content=? WHERE note_name=? AND user_id=?\";\n pst = con.prepareStatement(state);\n pst.setString(1, create);\n pst.setString(2, modify);\n pst.setString(3, content);\n pst.setString(4, name);\n pst.setInt(5, userid);\n System.out.println(username + \" updated \" + name + \":\" + content);\n } else {\n state = \"INSERT INTO \" +\n \"data(user_id,note_name,time_create,\" +\n \"time_modify,note_content) VALUES(?,?,?,?,?)\";\n pst = con.prepareStatement(state);\n pst.setInt(1, userid);\n pst.setString(2, name);\n pst.setString(3, create);\n pst.setString(4, modify);\n pst.setString(5, content);\n System.out.println(username + \" added \" + name + \":\" + content);\n }\n pst.executeUpdate();\n args.set(1, \"yes\");\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "@Override\n\tpublic void update(GalaxyNote galaxynote) {\n\t\t\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent incomingNote) {\n if (requestCode ==CODE_FOR_NEW_NOTE){\n if (resultCode == RESULT_OK){\n Note blankNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.add(0, blankNote);\n }\n }\n //Incoming note that is result of an edited note\n if (requestCode == CODE_FOR_EDIT_NOTE){\n if(resultCode == RESULT_OK){\n Note editedNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.remove(pos);\n noteList.add(0, editedNote);\n\n }\n }\n\n try {\n doWrite();\n } catch (JSONException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n }\n doRead();\n setCount();\n noteAdapter.notifyDataSetChanged();\n }", "public void saveNote(String noteText, int courseId, boolean newNote) {\r\n CourseNoteEntity note = liveNote.getValue();\r\n\r\n if (note == null) {\r\n if (TextUtils.isEmpty(noteText.trim())) {\r\n return;\r\n }\r\n else if (newNote) {\r\n note = new CourseNoteEntity(noteText, courseId);\r\n noteRepository.insertNote(note);\r\n }\r\n }\r\n else {\r\n note.setNote(noteText);\r\n noteRepository.updateNote(note);\r\n }\r\n }", "String saveNote(NoteModel noteModel) throws ManagerException ;", "@Override\n public void addNote(Note note) {\n\n List<Note> notes = new ArrayList<>();\n notes.add(note);\n\n if (this.notes.get(note.getBeat()) == null) {\n this.notes.put(note.getBeat(), notes);\n } else {\n List<Note> oldList = this.notes.remove(note.getBeat());\n oldList.addAll(notes);\n this.notes.put(note.getBeat(), oldList);\n }\n }", "public interface TodoNoteAddPresenterInterface {\n void noteaddSuccess( String message);\n\n void noteaddFailure(String message);\n\n void showProgressDialog(String mesage);\n\n void hideProgressDialog();\n\n void addNoteToFirebase(Bundle bundle);\n\n void CallBackNotes(TodoHomeDataModel model);\n}", "@Override\r\n\tpublic CustomResult updateNote(MaterialConsume materialConsume) throws Exception{\n\t\tint i = materialConsumeMapper.updateNote(materialConsume);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn CustomResult.build(101, \"修改物料消耗备注失败\");\r\n\t\t}\r\n\t}", "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "public static void addNewNote(int tenantID, String noteName, String content) throws NotePersistenceException, RegistryException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n createNotesCollectionIfNotExists(userRegistry);\n String noteLocation = getNoteLocation(noteName);\n if (content == null) {\n content = \"[]\";\n }\n\n if (!userRegistry.resourceExists(noteLocation)) {\n Resource resource = userRegistry.newResource();\n resource.setContent(content);\n resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE);\n userRegistry.put(noteLocation, resource);\n } else {\n log.error(\"Cannot create new note with name \" + noteName +\n \" for tenant with tenant ID \" + tenantID + \" because note already exists\");\n throw new NotePersistenceException(\"Already a note exists with same name : \" + noteName +\n \" for tenantId :\" + tenantID);\n }\n }", "void setNotes(String notes);", "public void setNotes(String notes) {\n this.notes = notes;\n }", "void onNewTaskComplete(String name, String notes, int position);", "@Override\n public void onClick(View v) {\n addUpdateNotes();\n }", "@Override\n\tpublic void add(GalaxyNote phone) {\n\t\t\n\t}", "public void setNotes(String notes);", "private static void showAppUpdateNotesAlert(Context context) {\n\n\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n\t\talertDialog.setTitle(\"Welcome!\");\n\t\tString latestUpdateNotes = context.getResources().getString(R.string.latest_update_notes);\n\n\t\t// if we have latest update notes configured, then show the dialog\n\t\tif (!latestUpdateNotes.equals(\"\")) {\n\t\t\talertDialog.setMessage(latestUpdateNotes);\n\t\t\talertDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\t\t\talertDialog.setIcon(R.drawable.ic_launcher);\n\t\t\talertDialog.show();\n\t\t}\n\t}", "public void addNote(Note note) {\n\t\tthis.notes.put(note,Idea.NON_PROMPT_NOTE);\n\t}", "public void setNote(String note) {\n\t\tthis._note = note;\n\t}", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public void addReminder(int position, Reminder addedReminder){\n reminderList.add(position, addedReminder);\n notifyItemInserted(position);\n badgeUpdateListener.onBadgeUpdate();\n }", "public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }", "public void setNotes(String notes) {\n\tthis.notes = notes;\n}", "@Override\n public void onClick(View v) {\n InputMethodManager inputManager = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow((null == getActivity().getCurrentFocus()) ? null : getActivity().getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n String post = editText_post.getText().toString().trim();\n\n\n\n\n //To remove the text writtrn in the edit text box\n\n if (!TextUtils.isEmpty(post)) {\n\n progressBar.setVisibility(View.VISIBLE);\n //This is used to get the user id\n final String id=databaseReference1.push().getKey();\n\n Date today = new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\");\n String dateToStr = format.format(today);\n final Post post1= new Post(post,name,id,dateToStr);\n\n\n\n if(imageUri!=null){\n storageReference.child(name+id+\".jpg\").putFile(imageUri)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n databaseReference1.child(id).setValue(post1);\n Toast.makeText(context,\"Post added\",Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n progressBar.setVisibility(View.INVISIBLE);\n postImage.setImageResource(0);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(notificationId, mBuilder.build());\n }\n });\n\n\n }\n\n if(imageUri==null){\n\n databaseReference1.child(id).setValue(post1);\n Toast.makeText(context,\"Post added\",Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n progressBar.setVisibility(View.INVISIBLE);\n postImage.setImageResource(0);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(notificationId, mBuilder.build());\n\n }\n\n //Set value method is used to write the data inside the database\n //Using custom Java class(Post) will automatically ensures that data is written inside the\n //database in nested tree form\n //setvalue() method overwrites the data written at the specified location\n //taking an object at once\n\n\n } else {\n Toast.makeText(context, \"Add both post and image\", Toast.LENGTH_SHORT).show();\n editText_post.setText(\"\");\n postImage.setImageResource(0);\n }\n }", "@PostMapping(\"/addnote\")\n private String saveNote(Note note, Idea idea) {\n noteService.save(note);\n // System.out.println(idea.getIdeaId());\n return \"notes\";\n\n }", "public void notifyInserted(int position) {\n notifyItemInserted(position);\n notifyItemRangeChanged(position, mNoteWithNotificationList.size());\n }", "@Test\n public void createNewNote() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText = \"This is the body test of my text note\";\n\n int noteIndex = sDataManager.createNewNote();\n NoteInfo newNote = sDataManager.getmNotes().get(noteIndex);\n newNote.setmCourses(course);\n newNote.setmTitle(noteTitle);\n newNote.setmText(noteText);\n\n NoteInfo compareNote = sDataManager.getmNotes().get(noteIndex);//contains the things that we put on the note at that point\n assertEquals(compareNote.getmCourses(), course);\n assertEquals(compareNote.getmTitle(), noteTitle);\n assertEquals(compareNote.getmText(), noteText);\n// assertSame(newNote, compareNote);//checks if two references point to the same object\n }", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "@Override\n public void onFailure(@NonNull @NotNull Exception e) {\n Snackbar.make(save, R.string.update_fail, BaseTransientBottomBar.LENGTH_SHORT).show();\n }", "@PostMapping(\"/updateNote\")\n public String updateNote(@ModelAttribute Note note){\n noteService.update(note);\n return \"redirect:/mods\";\n }", "public void insertNote(NewsModel data) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(NewsModel.COLUMN_SOURCE, data.getSourceName());\n values.put(NewsModel.COLUMN_AUTHOR, data.getAuthor());\n values.put(NewsModel.COLUMN_CONTENT, data.getContent());\n values.put(NewsModel.COLUMN_DESCRIPTION, data.getDescription());\n values.put(NewsModel.COLUMN_PUBLISHEDAT, data.getPublishedAt());\n values.put(NewsModel.COLUMN_TITLE, data.getTitle());\n values.put(NewsModel.COLUMN_URL, data.getUrl());\n values.put(NewsModel.COLUMN_URLTOIMAGE, data.getUrlToImage());\n // insert row\n long id = db.insert(NewsModel.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n }", "public void addQuestionNote(int qId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_QID, qId);\r\n\r\n db.insert(TABLE_QUESTION_NOTES, null, values);\r\n\r\n db.close();\r\n }", "@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n long lastMessageTime = sharedPref.getLong(\"last_announcement\", System.currentTimeMillis());\n\n /*get announcementItem from database*/\n AnnouncementItem announcementItem = dataSnapshot.getValue(AnnouncementItem.class);\n\n /*compare time of last read announcementItem and announcementItem from database*/\n if (announcementItem.getTime() > lastMessageTime) {\n /*builder for push notification*/\n Notification.Builder builder = new Notification.Builder(AnnouncementService.this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"Announcement\")\n .setContentText(\"There is a new announcement\");\n\n /*intent for push notification*/\n Intent resultIntent = new Intent(AnnouncementService.this, AnnouncementsActivity.class);\n\n /*build stack for intent calls*/\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(AnnouncementService.this);\n stackBuilder.addParentStack(Sahaya.class);\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n\n /*add resultPendingIndent to builder*/\n builder.setContentIntent(resultPendingIntent);\n\n /*build push notification*/\n Notification notification = builder.build();\n notification.defaults |= Notification.DEFAULT_SOUND;\n notification.defaults |= Notification.DEFAULT_VIBRATE;\n\n /*get notification manager*/\n NotificationManager notificationManager = (NotificationManager) getSystemService(Service.NOTIFICATION_SERVICE);\n\n /*show notification*/\n notificationManager.notify(0, notification);\n }\n\n /*set last read message time as current time*/\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putLong(\"last_announcement\", System.currentTimeMillis());\n editor.apply();\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n client = (GTFSClient) getApplicationContext();\n\n if(client.getID() == null){\n Intent intent = new Intent(this, LoginActivityCog.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n return;\n }\n\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setLogo(R.mipmap.ic_launcher); //user's pic\n getSupportActionBar().setDisplayUseLogoEnabled(true);\n setContentView(R.layout.activity_edit_note);\n\n Bundle extras = getIntent().getExtras();\n\n if(extras != null) {\n noteID = extras.getString(NOTE_ID_KEY);\n }\n\n dbAdapter = client.getDatabaseAdapter();\n\n String[] titleBody = dbAdapter.getNoteTitleBody(noteID);\n\n getSupportActionBar().setTitle(titleBody[0]);\n bodyEdit = (EditText) findViewById(R.id.editBody);\n bodyEdit.setText(titleBody[1]);\n\n confirmButton = (Button) findViewById(R.id.confirm);\n confirmButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MessageBundle editNoteBundle = new MessageBundle(client.getID(),\n client.getSESSION_ID(),MessageBundle.messageType.EDIT_NOTE);\n editNoteBundle.putNoteID(noteID);\n editNoteBundle.putNoteText(bodyEdit.getText().toString());\n\n String jsonMessage = JsonWriter.objectToJson(editNoteBundle.getMessage());\n Intent sendMessageIntent = new Intent(EditNoteActivity.this, NetworkService.class);\n sendMessageIntent.putExtra(NetworkService.MESSAGE_KEY, jsonMessage);\n EditNoteActivity.this.startService(sendMessageIntent);\n EditNoteActivity.this.finish();\n }\n });\n }", "public static boolean RecipeTipsFirebaseUpdate(\n String recipe_tips_recipe,\n String recipe_tips_number,\n String recipe_tips_text,\n String firebaseKey,\n Context context) {\n\n try {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_RECIPE).setValue(recipe_tips_recipe);\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_NUMBER).setValue(recipe_tips_number);\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_TEXT).setValue(recipe_tips_text);\n\n return true;\n\n } catch (Exception error) {\n\n String ClassName = String.class.getName();\n new SupportHandlingExceptionError(ClassName, error, context);\n return false;\n\n }\n }", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}", "public void updatePatient(View view) {\r\n\t\tboolean seenByDoctor;\r\n\t\t\r\n\t\tIntent intent = getIntent();\r\n\r\n\t\t// Get the staff member from AccessRecordActivity.\r\n\t StaffMember staff = (StaffMember) intent.getSerializableExtra(\"staff\");\r\n\t \r\n\t // Get Record from AccessRecordActivity\r\n\t Record record = (Record) intent.getSerializableExtra(\"record\");\r\n\t \r\n\t // Sets patient's new blood pressure measurement . \r\n\t EditText pressure = (EditText) findViewById(R.id.blood_pressure);\r\n\t String bloodPressureString = pressure.getText().toString();\r\n\t int bloodPressure = Integer.parseInt(bloodPressureString);\r\n\t \r\n\t // Sets patient's new heart rate measurement .\r\n\t EditText rate = (EditText) findViewById(R.id.heart_rate);\r\n\t String heartRateString = rate.getText().toString();\r\n\t int heartRate = Integer.parseInt(heartRateString);\r\n\t \r\n\t // Sets patient's new blood pressure measurement .\r\n\t EditText seenBy = (EditText) findViewById(R.id.prescription_name);\r\n\t String seenByDoctorString = seenBy.getText().toString();\r\n\t \r\n\t //Sets in the record whether this patient has seen a doctor yet. \r\n\t seenByDoctor = seenByDoctorString.equalsIgnoreCase(\"Yes\");\r\n\t \r\n\t // Sets the new patient's symptoms.\r\n\t EditText symptom = \r\n\t \t\t(EditText) findViewById(R.id.prescription_instructions);\r\n\t String symptoms = symptom.getText().toString();\r\n\t \r\n\t // Sets the new patient's temperature. \r\n\t EditText temp = (EditText) findViewById(R.id.temperature);\r\n\t String temperatureString = temp.getText().toString();\r\n\t double temperature = Double.parseDouble(temperatureString);\r\n\t \r\n\t try {\r\n\t \t//This patient's record exists add to it.\r\n\t \tstaff.setTemperature(record, temperature);\r\n\t \tstaff.setBloodPressure(record, bloodPressure);\r\n\t\t staff.setHeartRate(record, heartRate);\r\n\t\t staff.setSeenByDoctor(record, seenByDoctor,\r\n\t\t \t\tthis.getApplicationContext());\r\n\t\t staff.setSymptoms(record, symptoms);\r\n\t\t staff.updateUrgency(record);\r\n\t\t \r\n\t\t} catch (Exception e) {\r\n\t\t\t// prompt for a record\r\n\t\t\t Intent reenter = new Intent(this, RetryUpdateInfo.class);\r\n\t\t\t reenter.putExtra(\"staff\", staff);\r\n\t\t\t startActivity(reenter);\r\n\t\t}\r\n\t \r\n\t\ttry {\r\n\t\t\tif (StaffMember.getRecords().getUrgencyRecords().\r\n\t\t\t\t\tcontains(record.getHealthCardNum())){\r\n\t\t\t StaffMember.getRecords().removePatientFromUrgency(record);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tStaffMember.getRecords().removePatient(record.getHealthCardNum());\r\n\t\t\tStaffMember.getRecords().add(record);\r\n\t\t\tStaffMember.getRecords().saveRecordsToFile(\"PatientsAndRecords\", \r\n\t\t\t\t\topenFileOutput(\"PatientsAndRecords\",\r\n\t\t\t\t\t\t\tContext.MODE_PRIVATE));\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t //With this patient dealt with the previous activity is returned too.\r\n\t Intent intent1 = new Intent(this, UpdatePatientActivity.class);\r\n\t intent1.putExtra(\"staff\", staff);\r\n\t intent1.putExtra(\"record\", record);\r\n\t startActivity(intent1);\t \r\n\t}", "protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}", "void setNote(int note) {\n\t\tthis.note = note;\n\t}", "public static void updateNote(int tenantID, String noteName, String content) throws RegistryException, NotePersistenceException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n String noteLocation = getNoteLocation(noteName);\n\n if (userRegistry.resourceExists(noteLocation)) {\n Resource resource = userRegistry.get(noteLocation);\n resource.setContent(content);\n resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE);\n userRegistry.put(noteLocation, resource);\n } else {\n log.warn(\"Cannot update note with name \" + noteName + \" for tenant with tenant ID \" + tenantID +\n \" because it does not exist. Creating new note and adding the content.\");\n addNewNote(tenantID, noteName, content);\n }\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "private void updateChatDetails(){\n Map<String,Object> chatAddMap = new HashMap<>();\n chatAddMap.put(\"seen\",false);\n chatAddMap.put(\"timestamp\", ServerValue.TIMESTAMP);\n\n DatabaseReference chatRef = rootRef.child(\"Chat\").child(current_user.getUid()).child(chatUserId).getRef();\n //Add to Chat\n chatRef.updateChildren(chatAddMap).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.i(\"Checkkkkk\",\"ssss\");\n }\n });\n }", "private void addDatatoFirebase(String name, String phone, String address) {\n employeeInfo.setstartUpName(name);\n employeeInfo.setpotential(phone);\n employeeInfo.setbuildTime(address);\n String id = databaseReference.push().getKey();\n\n\n assert id != null;\n\n databaseReference.child(id).setValue(employeeInfo);\n\n\n\n\n\n // we are use add value event listener method\n // which is called with database reference.\n// databaseReference.addValueEventListener(new ValueEventListener() {\n// @Override\n// public void onDataChange(@NonNull DataSnapshot snapshot) {\n// // inside the method of on Data change we are setting\n// // our object class to our database reference.\n// // data base reference will sends data to firebase.\n// databaseReference.setValue(employeeInfo);\n//\n// // after adding this data we are showing toast message.\n// Toast.makeText(MainActivity.this, \"data added\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// @Override\n// public void onCancelled(@NonNull DatabaseError error) {\n// // if the data is not added or it is cancelled then\n// // we are displaying a failure toast message.\n// Toast.makeText(MainActivity.this, \"Fail to add data \" + error, Toast.LENGTH_SHORT).show();\n// }\n// });\n }", "void onEditTaskComplete(String name, String notes, int position);", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "@Override\n public void onSuccess(Void unused) {\n Snackbar.make(save, R.string.sucessfull_update, BaseTransientBottomBar.LENGTH_SHORT).show();\n }", "public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }", "public String getNote() {\r\n return note; \r\n }" ]
[ "0.6882696", "0.6729398", "0.65132415", "0.632295", "0.62829435", "0.62368894", "0.6082585", "0.6038207", "0.6020993", "0.5967148", "0.5947215", "0.5894952", "0.58772653", "0.58713305", "0.58689076", "0.58301896", "0.58271194", "0.5821109", "0.57719874", "0.5756876", "0.5727217", "0.5715369", "0.5713953", "0.5696838", "0.5694156", "0.5685487", "0.56744367", "0.56744367", "0.56744367", "0.56744367", "0.56744367", "0.56623846", "0.5618547", "0.56101495", "0.55904627", "0.5575099", "0.5560708", "0.5557635", "0.5556402", "0.5546737", "0.55291915", "0.55116457", "0.548916", "0.5486599", "0.5480965", "0.5467844", "0.5453342", "0.5448984", "0.54413515", "0.5440508", "0.5438829", "0.5437063", "0.54240704", "0.5422298", "0.53957343", "0.53918785", "0.5354029", "0.53512084", "0.53462636", "0.5320966", "0.53148365", "0.5313189", "0.53097105", "0.5309255", "0.52849066", "0.5284543", "0.52819985", "0.5278278", "0.52747023", "0.5258098", "0.5253214", "0.5252218", "0.52494395", "0.5246818", "0.52466345", "0.524384", "0.5240399", "0.523469", "0.52241284", "0.5220239", "0.521787", "0.52149296", "0.52149296", "0.521334", "0.52084297", "0.52061874", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52028143", "0.52023077", "0.5199361", "0.5192044" ]
0.7391046
0
Create a Note instance and get Current Location to pass NoteReadyListener.OnReady Callback with Note instance.
private void prepareNote(NoteReadyListener listener) { progressBar.setVisibility(View.VISIBLE); Date dateO = getDate(date.getYear(), date.getMonth(), date.getDayOfMonth()); String titleS = title.getText().toString(); String bodyS = body.getText().toString(); getLocation(location -> { GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude()); Note note = new Note(titleS, bodyS, geoPoint, dateO); listener.OnReady(note); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n LayoutInflaterCompat.setFactory2(getLayoutInflater(), new IconicsLayoutInflater2(getDelegate()));\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_note);\n Bundle bundle = getIntent().getExtras();\n if (bundle != null) {\n if (bundle.containsKey(\"isNew\") && bundle.getInt(\"isNew\") == 1) {\n isNewNote = true;\n } else {\n //Grab the id for this note that is also sent with the bundle;\n id = bundle.getLong(\"id\");\n isNewNote = false;\n }\n }\n mNoteActivityManager = new NoteActivityManager(this);\n }", "@Test\n public void createNewNote() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText = \"This is the body test of my text note\";\n\n int noteIndex = sDataManager.createNewNote();\n NoteInfo newNote = sDataManager.getmNotes().get(noteIndex);\n newNote.setmCourses(course);\n newNote.setmTitle(noteTitle);\n newNote.setmText(noteText);\n\n NoteInfo compareNote = sDataManager.getmNotes().get(noteIndex);//contains the things that we put on the note at that point\n assertEquals(compareNote.getmCourses(), course);\n assertEquals(compareNote.getmTitle(), noteTitle);\n assertEquals(compareNote.getmText(), noteText);\n// assertSame(newNote, compareNote);//checks if two references point to the same object\n }", "QuoteNote createQuoteNote();", "public Note() {\n }", "public NoteManager getNoteManager() {\n return noteManager;\n }", "public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }", "public Note() {\n\t\tsuper();\n\t}", "@Override\n public NoteInfo createFromParcel(Parcel parcel) {\n\n return new NoteInfo(parcel);\n }", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n app.mCurrentLocation = locationResult.getLastLocation();\n initCamera(app.mCurrentLocation);\n }\n };\n }", "public static Notes getInstance(PresentationNotesElement noteElement) {\n\t\tPresentationDocument ownerDocument = (PresentationDocument) ((OdfFileDom) (noteElement.getOwnerDocument()))\n\t\t\t\t.getDocument();\n\t\treturn ownerDocument.getNotesBuilder().getNotesInstance(noteElement);\n\n\t}", "Location createLocation();", "Location createLocation();", "Location createLocation();", "String get_note()\n {\n return note;\n }", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n mLastLocation = locationResult.getLastLocation();\n mRequestingLocationUpdate = false;\n\n startAddressLookupService();\n }\n };\n }", "private void onSaveNote() {\n String text= inputNote.getText().toString();\n if(!text.isEmpty()){\n long date=new Date().getTime(); // get current time\n // Note note= new Note(text,date); because temp now has Note object\n\n // if note exits update else create new\n temp.setNoteText(text);\n temp.setNoteDate(date);\n\n if(temp.getId()==-1)\n dao.insertNote(temp); // insert and save note to database\n else{\n dao.updateNote(temp);\n }\n finish(); // return to the MainActivity\n }\n\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.size()-1);\n\n View eView = exampleLayoutRenderable.getView();\n TextView finalDistance = findViewById(R.id.textView4);\n\n\n // An example \"onRender\" event, called every frame\n // Updates the layout with the markers distance\n layoutLocationMarker.setRenderEvent(new LocationNodeRender() {\n @Override\n public void render(LocationNode node) {\n View eView = exampleLayoutRenderable.getView();\n\n TextView distanceTextView = eView.findViewById(R.id.textView2);\n distanceTextView.setText(node.getDistance() + \"m\");\n }\n });\n // Adding the marker\n locationScene.mLocationMarkers.add(layoutLocationMarker);\n\n }", "private void establishContext() {\n ParcelableNote encoded = getIntent().getParcelableExtra(NOTE_EXTRA);\n mCtx = (encoded == null) ? Context.CREATE : Context.UPDATE;\n\n if (mCtx == Context.UPDATE) {\n mNote = encoded.getNote();\n mTags.addAll(mNote.tags());\n\n EditText title = findViewById(R.id.edit_note_title);\n title.setText(mNote.title());\n EditText body = findViewById(R.id.edit_note_body);\n body.setText(mNote.body());\n }\n }", "public String getNote()\n {\n return note;\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(getContext(), \"location: \" + location, Toast.LENGTH_LONG).show();\n EventBus.getDefault().post(new LocationEvent(location));\n }\n }", "private void createNote(NewNoteInput note, QueryService service) {\n if ((note.body() == null || note.body().isEmpty()) &&\n (note.title() == null || note.title().isEmpty())) {\n Log.i(LOG_TAG, \"skipped upload of note with empty body\");\n return;\n }\n\n service.createNote(note, (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note created\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ncreate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public synchronized Notes getNotesInstance(PresentationNotesElement noteElement) {\n\t\t\tif (maNotesRepository.containsKey(noteElement))\n\t\t\t\treturn maNotesRepository.get(noteElement);\n\t\t\telse {\n\t\t\t\tNotes newNotes = new Notes(noteElement);\n\t\t\t\tmaNotesRepository.put(noteElement, newNotes);\n\t\t\t\treturn newNotes;\n\t\t\t}\n\t\t}", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "void openNote(Note note, int position);", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n double lat = location.getLatitude();\n double lng = location.getLongitude();\n mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker at current Location\"));\n // mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker in NYC\").icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_launcher_round)));\n }\n }", "public String getNote() {\n\t\treturn _note;\n\t}", "public MockEditNote() {}", "public void testCreateSampleNoteForOffActn() {\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_NOTE.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(\"NoteForOffActnAssoc.pdf\");\n String NOTE_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> noteParam = new HashMap<String, String>();\n noteParam.put(ParameterKeys.URL.toString(), NOTE_CREATE_WEBSCRIPT_URL);\n noteParam.put(ParameterKeys.METADATA.toString(), NoteBaseTest.VALUE_NOTE_METADATA);\n noteParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), NoteBaseTest.CONTENT_NOTE_TTACHMENT);\n ClientResponse response = createDocument(noteParam);\n // String str = response.getEntity(String.class);\n // System.out.println(str);\n assertEquals(201, response.getStatus());\n }", "public String getNote() {\r\n return note; \r\n }", "private void setUpNote() {\n _noteHead = new Ellipse(Constants.NOTE_HEAD_WIDTH, Constants.NOTE_HEAD_HEIGHT);\n _noteHead.setFill(Color.WHITE);\n _noteHead.setStroke(Color.BLACK);\n _noteHead.setStrokeWidth(Constants.STROKE_WIDTH);\n _noteHead.setCenterX(Constants.NOTE_X_LOC);\n // switch statement for the note value that was passed in\n switch (_note) {\n case 0:\n _noteHead.setCenterY(Constants.C4_LOCATION);\n _ledgerLine.setStartX(Constants.NOTE_X_LOC - Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setEndX(Constants.NOTE_X_LOC + Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setStartY(Constants.C4_LOCATION);\n _ledgerLine.setEndY(Constants.C4_LOCATION);\n break;\n case 1:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.C4_LOCATION);\n _ledgerLine.setStartX(Constants.NOTE_X_LOC - Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setEndX(Constants.NOTE_X_LOC + Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setStartY(Constants.C4_LOCATION);\n _ledgerLine.setEndY(Constants.C4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.D4_LOCATION); \n this.setUpFlat();\n break;\n }\n case 2:\n _noteHead.setCenterY(Constants.D4_LOCATION);\n break;\n case 3: \n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.D4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.E4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.E4_LOCATION);\n _staffLine.setEndY(Constants.E4_LOCATION);\n this.setUpFlat();\n break;\n }\n case 4:\n _noteHead.setCenterY(Constants.E4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.E4_LOCATION);\n _staffLine.setEndY(Constants.E4_LOCATION);\n break;\n case 5:\n _noteHead.setCenterY(Constants.F4_LOCATION);\n break;\n case 6:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.F4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.G4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.G4_LOCATION);\n _staffLine.setEndY(Constants.G4_LOCATION);\n this.setUpFlat();\n break;\n }\n case 7:\n _noteHead.setCenterY(Constants.G4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.G4_LOCATION);\n _staffLine.setEndY(Constants.G4_LOCATION);\n break;\n case 8:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.G4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.A4_LOCATION);\n this.setUpFlat();\n break;\n } \n case 9:\n _noteHead.setCenterY(Constants.A4_LOCATION);\n break;\n case 10:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.A4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.B4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.B4_LOCATION);\n _staffLine.setEndY(Constants.B4_LOCATION);\n this.setUpFlat();\n break;\n } \n case 11:\n _noteHead.setCenterY(Constants.B4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.B4_LOCATION);\n _staffLine.setEndY(Constants.B4_LOCATION);\n break;\n \n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n btnWaypoint = (Button) findViewById(R.id.btnNewWalk);\n btnWalk = (Button) findViewById(R.id.btnNewWaypoint);\n btnSaveWalk = (Button) findViewById(R.id.btnSaveWalk);\n\n btnWaypoint.setOnClickListener(this);\n btnWalk.setOnClickListener(this);\n btnSaveWalk.setOnClickListener(this);\n\n\n // Acquire a reference to the system Location Manager\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // Define a listener that responds to location updates\n LocationListen locationListener = new LocationListen(this);\n\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n\n Location loc = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n }", "public TranscribedNote()\r\n {\r\n\r\n }", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public interface NoteCreatorInterface {\n void createNote(TaskResultInterface<Note> callback);\n}", "public void playNote ( Location loc , Instrument instrument , Note note ) {\n\t\texecute ( handle -> handle.playNote ( loc , instrument , note ) );\n\t}", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat) {\n return new NoteImpl(octave, pitch, startBeat, endBeat);\n }", "public String getNote() {\n\t\treturn note;\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n SharedStore.getInstance().save(Double.toString(wayLatitude),\"CurrentLat\");\n SharedStore.getInstance().save(Double.toString(wayLongitude),\"CurrentLong\");\n Log.e(\"getLocation\", String.valueOf(wayLatitude));\n }\n }", "private Notes() {}", "private void addNote(){\n DatabaseReference noteRef = mDB.getReference(\"Notes\");\n\n Long time = System.currentTimeMillis();\n\n Bundle bundleNote = new Bundle();\n bundleNote.putString(\"notesDetail\", notes.getText().toString());\n bundleNote.putString(\"notesTime\", time.toString());\n\n Note note = new Note(bundleNote);\n String currNoteKey;\n currNoteKey = noteRef.push().getKey();\n noteRef.child(LoginActivity.currUserID).child(currNoteKey).setValue(note);\n\n }", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "private void AddLocation () {\n Location mLocation = new Location();\n mLocation.SetId(1);\n mLocation.SetName(\"Corner Bar\");\n mLocation.SetEmail(\"contact.email.com\");\n mLocation.SetAddress1(\"1234 1st Street\");\n mLocation.SetAddress2(\"\");\n mLocation.SetCity(\"Minneapolis\");\n mLocation.SetState(\"MN\");\n mLocation.SetZip(\"55441\");\n mLocation.SetPhone(\"612-123-4567\");\n mLocation.SetUrl(\"www.cornerbar.com\");\n\n ParseACL acl = new ParseACL();\n\n // Give public read access\n acl.setPublicReadAccess(true);\n mLocation.setACL(acl);\n\n // Save the post\n mLocation.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n\n }\n });\n }", "@Override\n public void onCreate() {\n super.onCreate();\n\n Integer response = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (response != ConnectionResult.SUCCESS) {\n Log.d(\"LocationUpdateService\", \"Google Play services unavailable\");\n stopSelf();\n return;\n }\n\n locationClient = new LocationClient(this, this, this);\n }", "protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }", "protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n //Sets the preferred interval for GPS location updates\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MS);\n //Sets the fastest interval for GPS location updates\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MS);\n //Sets priority of the GPS location to accuracy\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }", "private Point getHeadLocation (Note note)\r\n {\r\n return new Point(tailLocation.x, note.getReferencePoint().y);\r\n }", "public void createNoteEditModel() {\n \t\tif (this.mNoteItemModel == null)\n \t\t\tthis.mNoteItemModel = new NoteItemModel(this.getContext());\n \t\tthis.status = STATUS_CREATE;\n \t}", "public void createMarker(DBMarker marker)\n\t{\n\t\t//Call get location function\n Location location = getLocation();\n \n //If location is not null, create a marker at the location and draw a line from that location to lat:0 long:0\n if (location != null)\n {\n \t//Get current location and create a LatLng object\n \tLatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n \tMarker locationMarker = map.addMarker(new MarkerOptions().position(currentLocation));\n \t\n \t//Create a new GPS object to attach to the marker\n \tGPS gpsObject = new GPS();\n \tgpsObject.latitude = location.getLatitude();\n \tgpsObject.longitude = location.getLongitude();\n \tgpsObject.time = location.getTime();\n \tmarker.gps = gpsObject;\n \n \t//Add the marker to the list of markers and HashTable\n \tmarkerList.add(marker);\n \tmarkerHashTable.put(marker, locationMarker);\n }\n else\n {\n \t//Create alert when location fails\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Location not found.\");\n builder.setTitle(\"Error\");\n builder.setNeutralButton(\"Close\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n\t}", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public static Note update(final Note note) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n return note;\r\n }", "void init(Properties realTimeNotifierProperties, Properties persistentNotifierProperties);", "@Override\n public void onSuccess(Location location) {\n createPhoto(location);\n }", "@Override\n public void onSuccess(Location location) {\n createPhoto(location);\n }", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void getNote(UMLObject object){\n\t\tnote = (Note) object;\n\t}", "@Test\n\tpublic void saveTest() {\n//\t\tlog.trace(\"Testing Save Note\");\n\n\t\t// find batch and trainee to associate with note\n\t\tfinal Batch batch = batchDao.findOne(TEST_QCBATCH_ID);\n\t\tfinal Trainee trainee = traineeDao.findAll().get(0);\n\n\t\t// create a new note\n\t\tNote note = new Note();\n\t\tnote.setNoteId(1);\n\t\tnote.setContent(\"Note Test\");\n\t\tnote.setBatch(batch);\n\t\tnote.setQcFeedback(false);\n\t\tnote.setWeek((short) 1);\n\t\tnote.setTrainee(trainee);\n\t\tnote.setQcStatus(null);\n\t\tnote.setMaxVisibility(null);\n\t\tnote.setType(NoteType.TRAINEE);\n\n\t\t// save note\n\t\tnoteDao.save(note);\n\t}", "public void createLocationRequest(){\n locationRequest = new LocationRequest();\n locationRequest.setInterval(1000);\n locationRequest.setFastestInterval(500);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }", "private void saveNote() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E,MMM d, hh:mm a\");\n String lastSavedDate = sdf.format(new Date());\n String id;\n boolean isNew = true;\n if (oldNote != null && oldNote.getId() != null && !oldNote.getId().isEmpty()) {\n id = oldNote.getId();\n isNew = false;\n } else\n id = UUID.randomUUID().toString();\n Note note = new Note(id, etTitle.getText().toString().trim(), lastSavedDate, etNote.getText().toString().trim());\n note.setNew(isNew);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"NEW_NOTE\", note);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "Note getBukkitNote();", "protected NewLocation(Parcel in) {\n locationID = in.readInt();\n longitude = in.readDouble();\n altitude = in.readDouble();\n latitude = in.readDouble();\n speed = in.readFloat();\n time = in.readLong();\n }", "public void init() {\n mLocationManager = (LocationManager) this.activity.getSystemService(Context\n .LOCATION_SERVICE);\n // checking run time location access permissions only for API version >= 23 (Marshmallow)\n if (ActivityCompat.checkSelfPermission(this.activity, Manifest.permission\n .ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n // if permission is already granted request for permissions\n // ActivityCompat.requestPermissions(\n // this.activity, new String[]{Manifest.permission\n // .ACCESS_FINE_LOCATION},\n // MY_PERMISSIONS_REQUEST_ACCESS_LOCATION);\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n UPDATE_INTERVAL_IN_MILLISECONDS, MIN_DISTANCE, locationListener);\n mLocationManager.addGpsStatusListener(gpsStatusListener);\n mLocationManager.addNmeaListener(nmeaListener);\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n\n // Sets the desired interval for active location updates. This interval is\n // inexact.\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS);\n\n // Sets the fastest rate for active location updates. This interval is exact, and your\n // application will never receive updates faster than this value.\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS);\n\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n Log.d(Constants.LOCATION_REQUEST, Constants.LOCATION_REQUEST);\n }", "public Point getNotePoint() {\r\n\t\tif (rect != null) {\r\n\t\t\treturn new Point((int) rect.getX(), (int) rect.getY());\r\n\t\t} else {\r\n\t\t\treturn new Point(0, 0);\r\n\t\t}\r\n\t}", "public void playNote ( Location loc , byte instrument , byte note ) {\n\t\texecute ( handle -> handle.playNote ( loc , instrument , note ) );\n\t}", "private android.location.Location getMockLocation() {\n android.location.Location newLocation = new android.location.Location(\"flp\");\n newLocation.setLatitude(110);\n newLocation.setLongitude(150);\n newLocation.setAccuracy(3.0f);\n newLocation.setTime(System.currentTimeMillis());\n newLocation.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos());\n return newLocation;\n }", "public static Note createUpdatedEntity(EntityManager em) {\n Note note = new Note().content(UPDATED_CONTENT).title(UPDATED_TITLE).xpos(UPDATED_XPOS).ypos(UPDATED_YPOS);\n return note;\n }", "public BwLocation getLocation() {\n if (location == null) {\n location = BwLocation.makeLocation();\n }\n\n return location;\n }", "public NoteTip(Note note, Long Oid)\r\n {\r\n super();\r\n user = FormatterUtils.getUserLabel(note.getUser());\r\n userImageURL = MyPicturePreferenceUtils.getUsersImageURI(note.getUser());\r\n if (note.getTimestamp() != null)\r\n {\r\n timeStamp = DateUtils.formatDateTime(note.getTimestamp());\r\n timeStampAsDate = note.getTimestamp();\r\n }\r\n String noteTitle = StringEscapeUtils.unescapeHtml(note.getText());\r\n toolTipContent = noteTitle;\r\n title = noteTitle == null || noteTitle.length() < 30 ? noteTitle : noteTitle.substring(0, 29) + \"...\";\r\n title = title.replaceAll(\"\\\\n\", \"\");\r\n scopeType = getScopeType(note, Oid);\r\n }", "@Override\n public void onReady() {\n if (Notificare.shared().isNotificationsEnabled()) {\n Notificare.shared().enableNotifications();\n }\n // Check if location updates are enabled, by default they are not.\n if (Notificare.shared().isLocationUpdatesEnabled()) {\n Notificare.shared().enableLocationUpdates();\n if (NotificarePushLibPlugin.getPluginSetting(\"enableBeacons\")) {\n Notificare.shared().enableBeacons();\n }\n }\n }", "public static Note add(final Note noteToAdd) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n noteToAdd.setId(4);\r\n return noteToAdd;\r\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(MainActivity.this,\n location.toString(),Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(MainActivity.this,\n \"Location object not received\",Toast.LENGTH_LONG).show();\n }\n }", "public void loadNote(String id) {\n if (mNote != null) {\n onStart();\n endTask(false);\n\n } else {\n\n startTask();\n\n mCall = getApi().noteGet(id);\n mCall.enqueue(new Callback<Note>() {\n @Override\n public void onResponse(Call<Note> call, Response<Note> response) {\n if (!response.isSuccessful()) {\n setFeedback(R.string.note_not_found, true);\n } else {\n mNote = response.body();\n }\n endTask(false);\n }\n\n @Override\n public void onFailure(Call<Note> call, Throwable t) {\n setFeedback(R.string.network_error);\n endTask(false);\n }\n });\n }\n }", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat, int\n instrument, int volume) {\n return new NoteImpl(octave, pitch, startBeat, endBeat, instrument, volume);\n }", "private void getLocation() {\n NimbeesLocationManager.NimbeesLocationListener mNimbeesLocationListener = new NimbeesLocationManager.NimbeesLocationListener() {\n @Override\n public void onGetCurrentLocation(Location location) {\n mLocation = location;\n setUpMap();\n }\n\n @Override\n public void onError(NimbeesException e) {\n }\n };\n NimbeesClient.getLocationManager().obtainCurrentLocation(mNimbeesLocationListener);\n }", "public Note(int _pitch, int _duration, int _dynamic) {\n pitch = _pitch;\n duration = _duration;\n dynamic = _dynamic;\n tiedIn = false;\n tiedOut = false;\n displayDynamic = false;\n }", "Coordinate createCoordinate();", "@Override\n public void onCreate() {\n super.onCreate();\n\n // initialize helper class\n notificationHelper = new NotificationHelper(this);\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }" ]
[ "0.62142175", "0.5677622", "0.55250597", "0.54413486", "0.5437657", "0.5391671", "0.5369244", "0.5363626", "0.5343486", "0.5319977", "0.5172984", "0.5154798", "0.5154798", "0.5154798", "0.51491225", "0.5128009", "0.51056707", "0.50940514", "0.5089962", "0.50684226", "0.50651306", "0.5062071", "0.5054947", "0.50516695", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.5028159", "0.50145245", "0.50145245", "0.49919796", "0.49861565", "0.49824044", "0.49785173", "0.49736902", "0.4970541", "0.49660432", "0.49452132", "0.49413398", "0.4928649", "0.49255145", "0.4923757", "0.4913952", "0.49052164", "0.49014914", "0.48956367", "0.48936096", "0.48857152", "0.48847225", "0.48844245", "0.4880559", "0.48710436", "0.4864727", "0.482845", "0.48260364", "0.48257488", "0.4822426", "0.4822426", "0.4822426", "0.4822426", "0.4822426", "0.4818626", "0.48074085", "0.48027864", "0.47928026", "0.47784555", "0.47784555", "0.4777744", "0.47740293", "0.47739902", "0.47670367", "0.4764536", "0.47542632", "0.4750517", "0.47484154", "0.47307026", "0.47288823", "0.47278622", "0.47236204", "0.47228774", "0.4719978", "0.47184888", "0.47139484", "0.4709566", "0.47093356", "0.46941838", "0.46908325", "0.4686992", "0.46814582", "0.46719432", "0.4668396", "0.46655825", "0.46630475" ]
0.6485386
0
Get Current Device Location, Throws an exception if fails.
private void getLocation(LocationListener listener){ FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this); try { if (locationPermissionGranted){ Task<Location> locationResult = fusedLocationClient.getLastLocation(); locationResult.addOnCompleteListener(this, task -> { if (task.isSuccessful()) { // Set the map's camera position to the current location of the device. listener.onSuccess(task.getResult()); } else { Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show(); } progressBar.setVisibility(View.GONE); }); } } catch (SecurityException e){ Log.e("Exception: %s", e.getMessage(), e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getDeviceLocation(){\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n try {\n if (mLocationPermissionsGranted) {\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if(task.isSuccessful()){\n\n Location currentLocation = (Location) task.getResult();\n\n if (currentLocation == null) {\n\n // Provide default current location\n\n currentLocation = new Location(\"\");\n currentLocation.setLatitude(51.454514);\n currentLocation.setLongitude(-2.587910);\n }\n\n } else {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }\n });\n }\n } catch (SecurityException e) {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG,\"Current location is null. Using defaults.\");\n Log.e(TAG, task.getException().toString());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n showCurrentPlace();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(mActivity, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "DeviceLocation getDeviceLocation(DeviceIdentifier deviceIdentifier) throws DeviceDetailsMgtException;", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n currLatLng = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n destinationPoint.set(0,currLatLng);\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n currLatLng = mDefaultLocation;\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public Location getLocation() {\n try {\n initLocation();\n Location location = locationManager.getLastKnownLocation(locationProviderName);\n if (location == null) {\n Logger.e(\"Cannot obtain location from provider \" + locationProviderName);\n return new Location(\"unknown\");\n }\n return location;\n } catch (IllegalArgumentException e) {\n Logger.e(\"Cannot obtain location\", e);\n return new Location(\"unknown\");\n }\n }", "@SuppressWarnings(\"unused\")\n Location getCurrentLocation();", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult()!=null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getProfile(mLastKnownLocation);\n } else {\n Log.d(\"Map\", \"Current location is null. Using defaults.\");\n Log.e(\"Map\", \"Exception: %s\", task.getException());\n googleMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n googleMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public Location getCurrentLocation();", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the customer_map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getNearestDriver();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n getCurrentPlaceLikelihoods();\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "@SuppressWarnings(\"WeakerAccess\")\n public Location getCurrentLocation() {\n final LocationClient locationClient = getLocationClient();\n return locationClient == null ? null: locationClient.getCurrentLocation();\n }", "public Location getCurrentLocation() {\n\n Location location = null;\n\n try {\n mLocationManager = (LocationManager) mContext\n .getSystemService(Context.LOCATION_SERVICE);\n\n // get GPS status\n mIsGpsEnabled = mLocationManager\n .isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // get network status\n mIsNetworkEnabled = mLocationManager\n .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n if (mIsGpsEnabled || mIsNetworkEnabled) {\n this.mGetLocationPossible = true;\n\n if (mIsNetworkEnabled) {\n mLocationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER,\n MIN_TIME_BW_UPDATES,\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (mLocationManager != null) {\n location = mLocationManager\n .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n }\n }\n\n // if GPS Enabled get lat/long using GPS Services\n if (mIsGpsEnabled) {\n location = null;\n\n if (location == null) {\n mLocationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER,\n MIN_TIME_BW_UPDATES,\n MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (mLocationManager != null) {\n location = mLocationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n }\n }\n }\n\n } catch (Exception aExc) {\n aExc.printStackTrace();\n }\n\n return location;\n }", "private void getDeviceLocation(){\n\n Log.d(TAG, \"getDeviceLocation: getting device current location\");\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGaranted){\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(task -> {\n if(task.isSuccessful()){\n Log.d(TAG, \"onComplete: found location!\");\n Location currentLocation = (Location) task.getResult();\n System.out.println(currentLocation);\n if (currentLocation !=null) {\n if (numDispositivo==1) {\n disp_Lat1 = Double.toString(currentLocation.getLatitude());\n disp_Long1 = Double.toString(currentLocation.getLongitude());\n }\n if (numDispositivo==2) {\n disp_Lat2 = Double.toString(currentLocation.getLatitude());\n disp_Long2 = Double.toString(currentLocation.getLongitude());\n }\n }\n System.out.println(disp_Lat1+\"-\"+disp_Long1);\n System.out.println(disp_Lat2+\"-\"+disp_Long2);\n Guardar();\n\n }else{\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(FormularioCurso.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }catch (SecurityException e){\n Log.e(TAG, \"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n }", "public Location getLocation() {\n\n if (isPermissionGranted()) {\n try\n {\n\n lastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(googleApiClient);\n\n Log.e(TAG, \"getLocation: LAST KNOWN LOCATION\" + (lastKnownLocation==null));\n return lastKnownLocation;\n }\n catch (SecurityException e)\n {\n e.printStackTrace();\n }\n }\n\n return null;\n\n }", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n }\n\n // Set the map's camera position to the current location of the device.\n if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }", "public Location getLocation() {\n return getLocation(null);\n }", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n if (world.geoHome == null && mLastKnownLocation != null) {\n world.geoHome = new Vector2f(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n }\n }\n\n // Set the map's camera position to the current location of the device.\n /*if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), mMap.getCameraPosition().zoom));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }*/\n }", "@Nullable\n public Location getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return null;\n }\n LocationManager mLocationManager = (LocationManager) getActivity().getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n List<String> providers = mLocationManager.getProviders(true);\n Location bestLocation = null;\n for (String provider : providers) {\n Location l = mLocationManager.getLastKnownLocation(provider);\n if (l == null) {\n continue;\n }\n if (bestLocation == null || l.getAccuracy() < bestLocation.getAccuracy()) {\n // Found best last known location: %s\", l);\n bestLocation = l;\n }\n }\n return bestLocation;\n }", "public DeviceDescriptionLocation getLocation() {\n return location;\n }", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = (Location) task.getResult();\n if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n\n\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"....\", \"Null pointer exception\");\n }\n }", "public Location getCurrentLocation()\n\t{\n\t\treturn currentLocation;\n\t}", "private void getDeviceLocation( ) {\n\n if (searchLocationMarker != null) {\n searchLocationMarker.remove();\n }\n\n mFusedLocationProviderClient =\n LocationServices.getFusedLocationProviderClient(this);\n //Task locationResult = mFusedLocationProviderClient.getLastLocation();\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n System.out.println(\"Current location retrieved successfully!\");\n mLastKnownLocation = (Location) task.getResult(); // location?\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()))\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n getNearbyStations(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(mDefaultLocation)\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n }", "private LatLng getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return new LatLng(0, 0);\n }\n LocationManager locationManager = (LocationManager) getSystemService(this.LOCATION_SERVICE);\n Location current_location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (current_location == null) {\n return new LatLng(0, 0);\n }\n return new LatLng(current_location.getLatitude(), current_location.getLongitude());\n }", "public String getCurrentLocation() {\n return currentLocation;\n }", "private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n\n if (lastKnownLocation != null) {\n if (checkInLACounty(lastKnownLocation) != -1) {\n // geofenceHelper(getContext());\n lastKnownLocationInLA = true;\n sharedViewModel.setCountyData(\"Los Angeles County\");\n backLA.setVisibility(View.INVISIBLE);\n } else if (lastKnownLocationInLA) {\n lastKnownLocationInLA = false;\n sharedViewModel.setCountyData(\"Not in Los Angeles County\");\n\n backLA.setVisibility(View.VISIBLE);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setTitle(\"Friendly Warning\");\n alertDialogBuilder.setMessage(\"Out of Los Angeles County \\n(Current Service Area)\");\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show(); // Show Dialog\n }\n } else {\n sharedViewModel.setCountyData(\"Los Angeles County\");\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n map.moveCamera(CameraUpdateFactory\n .newLatLngZoom(defaultLocation, DEFAULT_ZOOM));\n map.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "public Location getLocation() {\n /* if ( Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission( mContext, android.Manifest.permission.ACCESS_FINE_LOCATION ) != PackageManager.PERMISSION_GRANTED ) {\n Toast.makeText(mContext,\"Permission is not granted so returning back \",Toast.LENGTH_LONG).show();\n// showSettingsAlert();\n return null ;\n }*/\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n Criteria criteria = new Criteria();\n provider = locationManager.getBestProvider(criteria, false);\n if(provider != null) {\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n System.out.println(\"Provider \" + provider + \" has been selected.\");\n onLocationChanged(location);\n resumeGpsService();\n }\n }else {\n// ISSUtils.checkPermission(mContext);\n }\n\n\n }catch (SecurityException secx) {\n secx.printStackTrace();\n// ISSUtils.checkPermission(mContext);\n showSettingsAlert();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }", "private void getCurrentLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n if (lastKnownLocation != null) {\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(lastKnownLocation.getLatitude(),\n lastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n updateCameraBearing(map, location.getBearing());\n }\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (mLocationPermissionGranted){\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()){\n Location currentLocation = (Location) task.getResult();\n if (currentLocation != null){\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude()), DEFAULT_ZOOM));\n\n } else {\n /*\n AlertDialog alertDialog = new AlertDialog.Builder(MapActivity.this).create();s\n alertDialog.setMessage(\"Activa ubicación\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n */\n Toast.makeText(MapActivity.this, \"Tu ubicación es nula\", Toast.LENGTH_SHORT).show();\n }\n } else Toast.makeText(MapActivity.this, \"Error al obtener la ubicación\", Toast.LENGTH_LONG).show();\n }\n });\n }else Toast.makeText(MapActivity.this, \"Da permiso para acceder a la ubicación\", Toast.LENGTH_LONG).show();\n } catch (SecurityException e){\n Toast.makeText(MapActivity.this, \"Seleciona un punto en el mapa primero\", Toast.LENGTH_LONG).show();\n }\n }", "public BwLocation getLocation() {\n if (location == null) {\n location = BwLocation.makeLocation();\n }\n\n return location;\n }", "@SuppressLint({\"MissingPermission\", \"DefaultLocale\"})\n private void requestCurrentLocation() {\n mFusedLocationClient\n .getCurrentLocation(PRIORITY_HIGH_ACCURACY, cancellationTokenSource.getToken())\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful() && task.getResult() != null) {\n Location result = task.getResult();\n Log.d(TAG, String.format(\"getCurrentLocation() result: %s\", result.toString()));\n logOutputToScreen(String.format(\n \"Location (success): %f, %f\",\n result.getLatitude(), result.getLongitude()\n ));\n } else {\n Log.e(TAG, String.format(\"Location (failure): %s\", task.getException()));\n }\n });\n }", "private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }", "@Pure\n @NonNull\n public Location getLocation() {\n return this.location;\n }", "private void getLocation() { \n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); \n Criteria criteria = new Criteria(); \n criteria.setAccuracy(Criteria.ACCURACY_FINE); \n criteria.setAltitudeRequired(false); \n criteria.setBearingRequired(false); \n criteria.setCostAllowed(true);\n criteria.setPowerRequirement(Criteria.POWER_LOW); \n String provider = locationManager.getBestProvider(criteria,true); \n \n //In order to make sure the device is getting location, request updates. locationManager.requestLocationUpdates(provider, 1, 0, this); \n mostRecentLocation = locationManager.getLastKnownLocation(provider); \n }", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "public Location getCurrentLocation(){\n if (mapController == null){\n logMessage(TAG, \"getCurrentLocation -> mMapController is null\");\n return null;\n }\n return mapController.getCurrentLocation();\n }", "private void getDeviceLocation(){\n if(mMap == null){\n return;\n }\n\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(activity, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() !=null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(\"error\", \"Current location is null. Using defaults.\");\n Log.e(\"error\", \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mFusedLocationProviderClient.requestLocationUpdates(mLocationRequest,mLocationCallback,null);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n List<Location> locationList = locationResult.getLocations();\n if (locationList.size() > 0) {\n //The last location in the list is the newest\n Location location = locationList.get(locationList.size() - 1);\n Log.i(\"MapsActivity\", \"Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n mLastKnownLocation = location;\n }\n }\n };\n }", "public int getCurrentLocation() {\n\t\treturn currentLocation;\n\t}", "public Location getCurrentUserPosition() {\n if (ActivityCompat.checkSelfPermission(getContext(),\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(getContext(),\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n String[] permissions = {Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION};\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissions, ACCESS_COARSE_LOCATION);\n }\n return null;\n }\n locationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER, 5000, 10, this);\n return locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }", "public Location getCurrentLocation() { return entity.getLocation(); }", "public StarSystem getCurrentLocation() {\n\t\treturn player.getLocation();\n\t}", "public double[] getLocation()\n {\n \t\t\t\t\n\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tLocation place = null;\n\t\t\t\tdouble[] resultLocation = new double[2];\n\t\t\t\t\n\t\t\t\t\tswitch (option)\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\tcase GPS:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplace = locationManager\n\t\t\t \t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase NETWORK:\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplace = locationManager\n\t\t\t\t\t\t\t\t\t.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tresultLocation[0] = place.getLongitude();\n\t\t\t\t\tresultLocation[1] = place.getLatitude();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn resultLocation;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}catch(Exception error){\n\t\t\t\t\n\t\t\t\tLog.d(\"ERROR CLASS GEO LOCATION - GET LOCATION\", error.getMessage());\n\t\t\t\t\n\t\t\t}\n\t\t\t \n \treturn null;\n\t\t\t\n }", "private Location getLocation() {\n try {\n locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n\n } else {\n this.canGetLocation = true;\n\n if (isNetworkEnabled) {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n Log.d(TAG, \"nagy nulla\");\n return null;\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 3, locationListener);\n\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled){\n if (location == null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60000, 3, locationListener);\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n } else {\n //showAlertDialog();\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return location;\n }", "public void getLocation() {\n\n\t\t// If Google Play Services is available\n\t\tif (servicesConnected()) {\n\t\t\t// Get the current location\n\t\t\tLocation currentLocation = mLocationClient.getLastLocation();\n\n\t\t\t// Display the current location in the UI\n\t\t\tmLatLng.setText(LocationUtils.getLatLng(this, currentLocation));\n\n\t\t\tlatCurrent=(float) currentLocation.getLatitude();\n\t\t\tlntCurrent=(float) currentLocation.getLongitude();\n\n\t\t}\n\t}", "public Point getLocation() {\n return currentLocation;\n }", "public Location getLocation() \n\t{\n\t\treturn location;\n\t}", "public Location getLocation() {\n return loc;\n }", "public Location getLocation() {\n return loc;\n }", "@SuppressLint(\"MissingPermission\")//Assumes that is checked before calling\n private Location getLastLocation (){\n List<String> providers = mLocationManager.getProviders(true);\n Location loc=null;\n for (int i=0; i<providers.size() && loc==null;i++){\n loc = mLocationManager.getLastKnownLocation(providers.get(i));\n }\n return loc;\n }", "public Location getLocation() {\r\n\t\treturn location;\r\n\t}", "public Location getLocation() {\r\n\t\treturn location;\r\n\t}", "public final Coord getLocation() {\n return location;\n }", "@SuppressLint(\"MissingPermission\")\n public Location getLastLocation() {\n this.context=context;\n if (isPermissionGranted()) {\n PrintLog.d(TAG, \"getLastLocation ..............: \");\n fusedLocationProviderClient.getLastLocation()\n .addOnCompleteListener(context, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n mLastLocation = task.getResult();\n String result = \"Last known Location Latitude is \" +\n mLastLocation.getLatitude() + \"\\n\" +\n \"Last known longitude Longitude is \" + mLastLocation.getLongitude();\n PrintLog.d(TAG, \"getLastLocation ..............: \" + result);\n\n if (mLastLocation != null) {\n mLastLocation = mLastLocation;\n locationFetchedCallback.onLocationFetched(mLastLocation);\n }\n\n } else {\n callCurrentLocation();\n PrintLog.d(TAG, \"No Last known location found. Try current location..!\");\n }\n }\n });\n\n\n return mLastLocation;\n } else\n checkpermission();\n return null;\n }", "public Location getLocation() {\n try {\n double latitude = Double.parseDouble(fetchIfNeeded().getString(\"latitude\"));\n double longitude = Double.parseDouble(fetchIfNeeded().getString(\"longitude\"));\n Location location = new Location(TAG);\n location.setLatitude(latitude);\n location.setLongitude(longitude);\n return location;\n }\n catch(ParseException e) {\n return null;\n }\n }", "public Location getLocation() {\n return location;\n }", "public Location getLocation() {\n return location;\n }", "public Location getLocation() {\n return location;\n }", "public Location getLocation() {\n return location;\n }", "public DeviceLocator getDeviceLocator();", "public Location getLocation() {\n\t\treturn location;\n\t}", "public Location getLocation() {\n\t\treturn loc;\n\t}", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\n }", "@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n @ReturnValue(type=NativeType.VARIANT)\r\n java.lang.Object currentDevicePosition();", "protected Location getLocation()\n {\n return location;\n }", "protected Location getLocation()\n {\n return location;\n }", "private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}", "public Location getLocation() {\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(GPS_PROVIDER);\n isNetworkEnabled = locationManager.isProviderEnabled(NETWORK_PROVIDER);\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n //Nothing is enabled...\n } else {\n canGetLocation = true;\n\n if (isNetworkEnabled) {\n if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n\n Intent trackingIntent = new Intent(CustomConstants.SEND_TRACKING_MAIL);\n sendBroadcast(trackingIntent);\n\n return null;\n }\n locationManager.requestLocationUpdates(NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n\n if (locationManager != null) {\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n location.setAccuracy(LOCATION_ACCURACY);\n\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled) {\n\n if (locationManager == null) {\n\n locationManager.requestLocationUpdates(GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\n location.setAccuracy(LOCATION_ACCURACY);\n if (locationManager != null) {\n location = locationManager.getLastKnownLocation(GPS_PROVIDER);\n\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }", "private Location getLastLocation() {\n try {\n return LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n } catch (SecurityException e) {\n e.printStackTrace();\n return null;\n }\n }", "private void getDeviceLocation() {\n\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (!hasPermissions(MapActivity.this, PERMISSIONS)) {\n ActivityCompat.requestPermissions(this, PERMISSIONS, LOCATION_PERMISSION_REQUEST_CODE);\n } else {\n mLocationPermissionGranted = true;\n\n }\n\n if (mLocationPermissionGranted) {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mLastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n source = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n googleMap.clear();\n }\n\n // Set the map's camera position to the current location of the device.\n if (mCameraPosition != null) {\n\n googleMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n\n String address = getCompleteAddressString(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude());\n\n googleMap.clear();\n\n MarkerOptions markerOptions = new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()))\n .title(address)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n\n mCurrLocationMarker = googleMap.addMarker(markerOptions);\n mCurrLocationMarker.showInfoWindow();\n tvAddressDisplay.setText(address);\n\n } else {\n Log.d(MapActivity.class.getSimpleName(), \"Current location is null. Using defaults.\");\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n googleMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n\n\n }", "public DevicePosition getCurrentPosition() {\n if (!isReady())\n return null;\n\n if (isFaceUp()) {\n return (DevicePosition.FACE_UP);\n } else if (isFaceDown()) {\n return (DevicePosition.FACE_DOWN);\n } else if (isDark() && isCloseProximity()\n && (!isFaceDown()) && (!isFaceUp())) {\n return (DevicePosition.IN_POCKET);\n }\n return DevicePosition.UNKNOWN;\n }", "public Location getLocation() {\n long __key = this.locationId;\n if (location__resolvedKey == null || !location__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n LocationDao targetDao = daoSession.getLocationDao();\n Location locationNew = targetDao.load(__key);\n synchronized (this) {\n location = locationNew;\n \tlocation__resolvedKey = __key;\n }\n }\n return location;\n }", "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "public WotlasLocation getLocation() {\n return this.getBasicChar().getLocation();\n }", "public phaseI.Hdfs.DataNodeLocation getLocation() {\n if (locationBuilder_ == null) {\n return location_ == null ? phaseI.Hdfs.DataNodeLocation.getDefaultInstance() : location_;\n } else {\n return locationBuilder_.getMessage();\n }\n }", "public LocationObject getLocate() {\n LocationObject responseObject = new LocationObject();\n\n SdkObject sdkObject = checkPermission(API_LOCATION_PERMISSION);\n if (sdkObject != null) {\n responseObject.setMessage(sdkObject.getMessage());\n responseObject.setBusinessCode(sdkObject.getBusinessCode());\n return responseObject;\n }\n\n long lastSdkLocateTime = PreferencesUtils.getLong(context, CommonConstants.SP_LAST_GET_LOCATION_TIME, 0L);\n if (System.currentTimeMillis() - lastSdkLocateTime < 1000L) { //Ignore call within 60 second\n responseObject.setBusinessCode(QueryResult.GET_LOCATION_TOO_FAST.getCode());\n responseObject.setMessage(QueryResult.GET_LOCATION_TOO_FAST.getMsg());\n Log.w(TAG, QueryResult.GET_LOCATION_TOO_FAST.getMsg());\n return responseObject;\n }\n\n PreferencesUtils.putLong(context, CommonConstants.SP_LAST_GET_LOCATION_TIME, System.currentTimeMillis());\n\n responseObject = getLocationInfo();\n if (responseObject.getBusinessCode() == ResultCode.SUCCESS.getCode()) {\n responseObject.setLastLocateTime(System.currentTimeMillis());\n }\n return responseObject;\n }", "private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }", "public java.lang.String getLocation() {\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public Location getLocation(){\n try{\n\n locationManager = (LocationManager) context.getSystemService(LOCATION_SERVICE);\n isGPSEnabled = locationManager.isProviderEnabled(locationManager.GPS_PROVIDER);\n isNetworkEnabled=locationManager.isProviderEnabled(locationManager.NETWORK_PROVIDER);\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED\n || ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED ){\n\n if(isGPSEnabled){\n if(location==null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000,10,this);\n if(locationManager!=null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n }\n }\n // if lcoation is not found from GPS than it will found from network //\n if(location==null){\n if(isNetworkEnabled){\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000,10,this);\n if(locationManager!=null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n }\n\n }\n }\n\n }\n\n }catch(Exception ex){\n\n }\n\n\n\n return location;\n }", "public byte[] getLocation() {\r\n return location;\r\n }", "public final Point getLocation() {\n return this.location ;\n }", "public final String getLocation() {\n return location;\n }", "public static MapLocation myLocation() {\n return RC.getLocation();\n }", "public double getLocation(){\n\t\treturn location;\n\t}", "public FrillLoc getLocation() {\n return MyLocation;\n }", "public Location getLocation()\n\t{\n\t\treturn l;\n\t}", "public Coordinate getLocation() {\n return location;\n }", "public Location getLastLocation() {\n\t\tif (mLocationClient.isConnected()) {\n\t\t\treturn mLocationClient.getLastLocation();\n\t\t}\n\t\treturn null;\n\t}", "public String getLocation(){\r\n return Location;\r\n }", "public Point getLocation() {\n\t\treturn location;\n\t}", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "public String getLocation()\n {\n return location;\n }", "public String getLocation() {\n return mLocation;\n }" ]
[ "0.7682202", "0.73755306", "0.7356885", "0.7336927", "0.7334721", "0.7331082", "0.72833073", "0.72305703", "0.72242856", "0.72067475", "0.71910065", "0.71322244", "0.70948964", "0.70836765", "0.7018398", "0.69808006", "0.6977543", "0.69685495", "0.6940709", "0.68781275", "0.68649507", "0.68476415", "0.679162", "0.677881", "0.6711435", "0.6659147", "0.6647109", "0.6608938", "0.65906215", "0.65723604", "0.6565475", "0.6543535", "0.6510359", "0.6493812", "0.6484782", "0.6455301", "0.64502823", "0.6410299", "0.6407252", "0.6407252", "0.6407252", "0.6407252", "0.6406115", "0.6404139", "0.6400936", "0.64003897", "0.6372132", "0.6361606", "0.63057244", "0.6286219", "0.6276464", "0.62601197", "0.62518287", "0.6235402", "0.6235402", "0.6234141", "0.62259626", "0.62259626", "0.6199135", "0.61923456", "0.6190201", "0.61901283", "0.61901283", "0.61901283", "0.61901283", "0.61863875", "0.6182346", "0.6181802", "0.6171287", "0.61516845", "0.6146495", "0.6143641", "0.6143641", "0.6141473", "0.6137812", "0.61371326", "0.6135368", "0.6121845", "0.6112088", "0.610526", "0.60842717", "0.60827655", "0.6054541", "0.60507417", "0.6040472", "0.6035908", "0.6019349", "0.60167456", "0.6013723", "0.60077286", "0.60012", "0.59979665", "0.599588", "0.5989735", "0.59867364", "0.5984738", "0.5976246", "0.59685427", "0.5966296", "0.59642327", "0.59603" ]
0.0
-1
Prompts the user for permission to use the device location.
private void getLocationPermission() { /* * Request location permission, so that we can get the location of the * device. The result of the permission request is handled by a callback, * onRequestPermissionsResult. */ if (ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_FINE_LOCATION) == PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_COARSE_LOCATION) == PERMISSION_GRANTED) { locationPermissionGranted = true; } else { ActivityCompat.requestPermissions(this, new String[]{ ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION }, PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }", "private void requestLocationPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Permission needed\")\n .setMessage(\"Location Permission is needed to show your current location on the map\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(ScavengerHunt.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Toast.makeText(ScavengerHunt.this, \"Location Permission is needed to update the map\", Toast.LENGTH_SHORT).show();\n }\n })\n .create()\n .show();\n\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n }", "public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);*/\n }", "private void getLocation() {\n if(ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n new AlertDialog.Builder(this)\n .setTitle(\"Location Permission Required\")\n .setMessage(\"This app needs permission to use your location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(RestaurantsActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n })\n .create()\n .show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n }\n }", "private void askPermissionsAndShowMyLocation() {\n if (Build.VERSION.SDK_INT >= 23) {\n int accessCoarsePermission\n = ContextCompat.checkSelfPermission(activity, android.Manifest.permission.ACCESS_COARSE_LOCATION);\n int accessFinePermission\n = ContextCompat.checkSelfPermission(activity, android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n\n if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n || accessFinePermission != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{android.Manifest.permission.ACCESS_COARSE_LOCATION,\n android.Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(activity, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n }\n\n // Show current location on Map.\n this.showMyLocation();\n }", "private void permissionLocationRequest() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);\n if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {\n if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {\n showMessageOKCancel(\"You need to allow access to Location\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n });\n }\n }\n\n }\n }", "public void askPermission() {\n if (ContextCompat.checkSelfPermission(getActivity()\n , android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n reqestLocationPermission);\n }\n }", "private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }", "private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(activity.getApplicationContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(activity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n String[] permissions = {ACCESS_FINE_LOCATION,\n ACCESS_COURSE_LOCATION};\n\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_FINE_LOCATION) == PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_COURSE_LOCATION) == PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);}\n } else{\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "private void setupLocation() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION) &&\n ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)) {\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n } else {\n // Request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n }\n } else {\n // Permission has already been granted\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void askPermissionsAndShowMyLocation() {\n boolean isGPSEnabled = false;\n // flag for network status\n boolean isNetworkEnabled = false;\n // flag for GPS status\n boolean canGetLocation = false;\n LocationManager locationManager;\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // getting GPS status\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // getting network status\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n if (Build.VERSION.SDK_INT >= 23) {\n // flag for GPS status\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n// if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n// || accessFinePermission != PackageManager.PERMISSION_GRANTED)\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(this, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n this.showMyLocation();\n }\n\n } else {\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n this.showMyLocation();\n }\n\n\n }\n // Show current location on Map.\n }", "private void getLocationPermission() {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n //request location permission\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION\n }, LOCATION_REQUEST_CODE);\n }\n fetchLastLocation();\n }", "private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void locationPermission() {\n if(Build.VERSION.SDK_INT<23){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n }else{\n if(checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n return;\n }\n\n if(shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_COARSE_LOCATION) && shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)){\n Snackbar.make(drawer,\"Location access is required to show your friend and questions on map.\",Snackbar.LENGTH_INDEFINITE)\n .setAction(\"OK\", new View.OnClickListener() {\n @TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onClick(View v) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n })\n .show();\n }else{\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n }\n }", "public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED)\n {\n mLocationPermissionGranted = true;\n } else {\n requestPermissions(\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION\n );\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void checkLocationPermission() {\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)) {\n new AlertDialog.Builder(getActivity())\n .setTitle(\"give permission\")\n .setMessage(\"give permission message\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n })\n .create()\n .show();\n }\n else{\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n }\n\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(mContext,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(mActivity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "public void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void getLocationPermission(){\n Log.d(TAG, \"getLocationPermission: getting location permission.\");\n String[] permissions = {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n COURSE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mLocationPermissionGaranted = true;\n getDeviceLocation();\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "private void requestPermissionAccessLocation() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n Log.d(TAG, \"permissionCheck: \" + permissionCheck);\n\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n updateFragmentOnLocationSuccess();\n } else {\n ActivityCompat\n .requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_PERMISSION_LOCATION);\n }\n }", "private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }", "public void startLocationButtonClick() {\n Dexter.withActivity(this)\r\n .withPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n .withListener(new PermissionListener() {\r\n @Override\r\n public void onPermissionGranted(PermissionGrantedResponse response) {\r\n mRequestingLocationUpdates = true;\r\n startLocationUpdates();\r\n }\r\n\r\n @Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\r\n if (response.isPermanentlyDenied()) {\r\n // open device settings when the permission is\r\n // denied permanently\r\n openSettings();\r\n }\r\n }\r\n\r\n @Override\r\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\r\n token.continuePermissionRequest();\r\n }\r\n }).check();\r\n }", "public void checkLocationPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n 99);\n }\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }", "@Override\n public void onGeolocationPermissionsShowPrompt(String origin,\n GeolocationPermissions.Callback callback) {\n String perm = Manifest.permission.ACCESS_FINE_LOCATION;\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M ||\n ContextCompat.checkSelfPermission(Main2Activity.this, perm) == PackageManager.PERMISSION_GRANTED) {\n // we're on SDK < 23 OR user has already granted permission\n callback.invoke(origin, true, false);\n } else {\n if (!ActivityCompat.shouldShowRequestPermissionRationale(Main2Activity.this, perm)) {\n // ask the user for permission\n ActivityCompat.requestPermissions(Main2Activity.this, new String[]{perm}, REQUEST_FINE_LOCATION);\n\n // we will use these when user responds\n mGeolocationOrigin = origin;\n mGeolocationCallback = callback;\n }\n }\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AdminMap.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void getLocationPermission() {\n Log.wtf(TAG, \"getLocationPermission() has been instantiated\");\n\n Log.d(TAG, \"getLocationPermission: getting location permissions\");\n String[] permissions = {\n FINE_LOCATION,\n COARSE_LOCATION\n };\n\n if (ContextCompat.checkSelfPermission(getActivity(), FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(getActivity(), COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n Log.d(TAG, \"getLocationPermission: Permission granted\");\n initMap();\n\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "public static void checkLocationPermission() {\n globalContext.stopService(locationIntent);\n\n globalFragmentActivity.requestPermissions(\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void fetchlocation() {\n if (ContextCompat.checkSelfPermission(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n new AlertDialog.Builder(this)\n .setTitle(\"Required Location Permission\")\n .setMessage(\"You have to give permission to fetch your current location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .create()\n .show();\n\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n // Logic to handle location object\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n });\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(SearchActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(OwnerMapActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(WeatherByGPS.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(View view) {\n locationChecker.checkBeforeAsking(new PermissionChecker.CheckPermissionListener() {\n @Override\n public void onPermissionDenied() {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onPermissionGranted() {\n\n gm.requestLastLocation(new GeoManager.GeoDirectLocationListener() {\n @Override\n public void onLocationError(Throwable error) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onLocationSuccess(double latitude, double longitude) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, latitude, longitude);\n }\n });\n }\n });\n }", "public void requestLocationPermision(){\n\n // Forma de actuar diferente si la versión del dispositivo en Marshmallow\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n Log.d(TAG, \"Versión 23\");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Si no tenemos permiso, lo pedimos\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"Show an expanation\");\n new AlertDialog.Builder(this)\n .setMessage(getString(R.string.show_explanation))\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n }\n })\n .create()\n .show();\n\n } else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE_ASK_PERMISSIONS);\n }\n } else{\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n //Comprobamos si es una mejor localización\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n } else{\n //Comprobacion de permisos\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n }\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(IntroActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQCODELOCATION\n );\n } else {\n // caso contrario: obtener la ubicacion actual\n getCurrentLocation();\n }\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(mapActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public boolean onMyLocationButtonClick() {\n LocationManager manager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n // If Location disable create a alert dialog\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setMessage(\"Location is disabled in your device. Would you like to enable it?\")\n // Have to respond to this message not cancelable\n .setCancelable(false)\n // If yes open setting page to enable location\n .setPositiveButton(\"Yes\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // intent calls the android activity of location settings\n Intent callGPSSettingIntent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(callGPSSettingIntent);\n }\n });\n //if no close the dialog\n alertDialogBuilder.setNegativeButton(\"Maybe Later\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = alertDialogBuilder.create();\n alert.show();\n }\n\n return false;\n }", "private void displayLocation() {\n\n if(customProgressDialog.isShowing())\n customProgressDialog.cancel();\n\n boolean hasPermissionFine = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n boolean hasPermissionCoarse = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n if (!hasPermissionFine || !hasPermissionCoarse) {\n ActivityCompat.requestPermissions(LocationChooser.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_LOCATION);\n } else {\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n }\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLocation != null) {\n sLat = mLocation.getLatitude();\n sLang = mLocation.getLongitude();\n Log.d(\"curren location:\", String.valueOf(sLat) + \"::\" + String.valueOf(sLang));\n source.setText(\"Your location\");\n //locationText.setText(String.valueOf(sLat)+\"::\"+String.valueOf(sLang));\n } else {\n Toast.makeText(this, \"Location not Detected.\", Toast.LENGTH_SHORT).show();\n // showSettingsAlert();\n }\n }", "private void pickLocation() {\n // By default the location picker will enable all the included buttons like\n // Satellite view and position me\n Intent locationPicker = new LocationPickerActivity.Builder().build(this.getContext());\n startActivityForResult(locationPicker, LOCATION_REQUEST_CODE);\n }", "private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n map.setMyLocationEnabled(false);\n map.getUiSettings().setMyLocationButtonEnabled(false);\n lastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(Userhome.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COURSE_LOCATION);\n }", "private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }", "void configure_button(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void inputLocation() {\n// boolean googleMapExist= (ConnectionResult.SUCCESS==GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext));\n//\n// if(googleMapExist) {\n// org.wowtalk.Log.w(\"google map exist\");\n// Intent mapIntent = new Intent(mContext, PickLocActivity.class);\n// mapIntent.putExtra(\"auto_loc\", true);\n// mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n// } else {\n //org.wowtalk.Log.w(\"google map not exist\");\n Intent mapIntent = new Intent(mContext, PickLocActivityWithAMap.class);\n mapIntent.putExtra(\"auto_loc\", true);\n mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n //}\n }", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n }\n }", "private void startGettingLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //should check if location is enabled\n\n initializeGoogleApiClient();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSION_ACCESS_LOCATION);\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n }\n }", "public void checkLocationPermission() {\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, getActivity(), getActivity())) {\n if (checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, getActivity(), getActivity())) {\n gpsTracker.getLocation();\n } else {\n requestPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n requestPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n gpsTracker.getLocation();\n }\n } catch (Exception e) {\n // logException(e, \"GpsMapManualFragment_checkLocationPermission()\");\n }\n\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getCurrentLocation();\n } else {\n Toast.makeText(this, \"Permision Denied\", Toast.LENGTH_SHORT).show();\n }\n }", "private void displayLocation() {\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (mLastLocation != null) {\n double latitude = mLastLocation.getLatitude();\n double longitude = mLastLocation.getLongitude();\n\n\n String add = getAddressString(latitude, longitude);\n\n //Check in\n student_checkin chkIn = new student_checkin(getActivity(), sessionId, \"Lat: \" + latitude + \" Long: \" + longitude);\n chkIn.execute();\n lblLocation.setText(latitude + \", \" + longitude);\n cords.setText(add);\n\n\n\n } else {\n\n lblLocation\n .setText(\"(Couldn't get the location. Make sure location is enabled on the device)\");\n }\n }", "public void requestLocation() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.INTERNET}, 12);\n }\n return;\n }\n //this line updates location\n mMap.setMyLocationEnabled(true);\n providerClient.requestLocationUpdates(locationRequest, locationCallback, getMainLooper());\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (mLocationPermissionGranted){\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()){\n Location currentLocation = (Location) task.getResult();\n if (currentLocation != null){\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude()), DEFAULT_ZOOM));\n\n } else {\n /*\n AlertDialog alertDialog = new AlertDialog.Builder(MapActivity.this).create();s\n alertDialog.setMessage(\"Activa ubicación\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n */\n Toast.makeText(MapActivity.this, \"Tu ubicación es nula\", Toast.LENGTH_SHORT).show();\n }\n } else Toast.makeText(MapActivity.this, \"Error al obtener la ubicación\", Toast.LENGTH_LONG).show();\n }\n });\n }else Toast.makeText(MapActivity.this, \"Da permiso para acceder a la ubicación\", Toast.LENGTH_LONG).show();\n } catch (SecurityException e){\n Toast.makeText(MapActivity.this, \"Seleciona un punto en el mapa primero\", Toast.LENGTH_LONG).show();\n }\n }", "private void initializeLocation() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n Constants.PERMISSION_FINE_LOCATION);\n } else {\n createLocationRequest();\n }\n } else {\n createLocationRequest();\n }\n }", "private void requestPermission(){\r\n ActivityCompat.requestPermissions(activity,new String[]{Manifest.permission.ACCESS_FINE_LOCATION},1);\r\n }", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n getLocationPermission();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 100) {\n if (resultCode != RESULT_OK)\n Toast.makeText(getContext(), \"GPS est déactivé\", Toast.LENGTH_LONG).show();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }", "private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }", "private void askForPermission(String permission) {\n ActivityCompat.requestPermissions(\n this,\n new String[] {Manifest.permission.ACCESS_COARSE_LOCATION},\n PERM_REQUEST_CODE\n );\n }", "private void updateLocationUi() {\n if (mMap == null) {\n return;\n }\n try {\n if (mPermissionCheck.locationPermissionGranted()) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "void requestPermissionAndPopulateDistance(){\n //Check and acquire COARSE location permissions, to calculate distance, if not already granted\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)){\n // show rationale\n }else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, PERMISSION_CONS);\n }\n }else{\n //If the permission is already acquired, calculate the distance and update the view\n calculateAndPopulateDistance();\n }\n }", "private void fineLocationPermissionGranted() {\n UtilityService.addGeofences(this);\n UtilityService.requestLocation(this);\n }", "@Override\n public void onRequestPermissionsResult(@NonNull int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (permissions.length == 0) {\n return;\n }\n boolean allPermissionsGranted = true;\n if (grantResults.length > 0) {\n for (int grantResult : grantResults) {\n if (grantResult != PackageManager.PERMISSION_GRANTED) {\n allPermissionsGranted = false;\n break;\n }\n }\n }\n if (!allPermissionsGranted) {\n boolean somePermissionsForeverDenied = false;\n for (String permission : permissions) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) {\n //denied\n } else {\n if (ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED\n && requestCode == Extra.LOCATION) {\n getLocation();\n } else {\n //set to never ask again\n somePermissionsForeverDenied = true;\n }\n }\n }\n if (somePermissionsForeverDenied) {\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(R.string.permissions_required)\n .setMessage(R.string.you_have_explicitly_denied_permissions_which_are_required_by_this_app_to_run_for_this_action_open_settings_go_to_permissions_and_allow_them)\n .setPositiveButton(R.string.settings, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(Extra.PACKAGE, getPackageName(), null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }\n } else if (requestCode == Extra.LOCATION) {\n getLocation();\n }\n }", "private void startTrackingRoute(){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n //Starts up alert dialog for getting permission\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOC_PERMISSION);\n }\n else{\n //Start the location updater listener\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, MIN_DISTANCE, this);\n }\n }", "private void getLocation() {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\t\t\tif (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tFusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(getApplicationContext());\n\t\tlocationProviderClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Location location) {\n\t\t\t\t\n\t\t\t\tfinal Location finalLocation = location;\n\t\t\t\t\n\t\t\t\tbtnGoToYou.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLatLng userLocation = new LatLng(finalLocation.getLatitude(), finalLocation.getLongitude());\n\t\t\t\t\t\tmMap.addMarker(new MarkerOptions().position(userLocation).title(\"You are Here!\"));\n\t\t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "protected void getLocation() {\n if (isLocationEnabled(Navigate.this)) {\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();\n\n //You can still do this if you like, you might get lucky:\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(bestProvider);\n if (location != null) {\n Log.e(\"TAG\", \"GPS is on\");\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, this);\n }\n } else {\n// final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n// builder.setMessage(\"Your GPS seems to be disabled, do you want to enable it?\")\n// .setCancelable(false)\n// .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n// }\n// })\n// .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// dialog.cancel();\n// }\n// });\n// final AlertDialog alert = builder.create();\n// alert.show();\n }\n }", "private boolean checkPermissonLocationRequest(int requestCode) {\n if (Build.VERSION.SDK_INT >= 23) {\n if (checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION}, requestCode);\n return false;\n }\n } else {\n return true;\n }\n }", "void configure_button(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n locButton.setOnClickListener(new View.OnClickListener() {\n @SuppressLint(\"MissingPermission\")\n @Override\n public void onClick(View view) {\n //noinspection MissingPermission\n switcher = true;\n locManager.requestLocationUpdates(\"gps\", 5000, 0, locListener);\n }\n });\n }", "protected void startLocationUpdates() {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n /*if (shouldShowRequestPermissionRationale(\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n showExplanationDialog(new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(\n new String[]{ Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n } else {\n requestPermissions(\n new String[]{ Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }*/\n } else {\n if (mGoogleApiClient.isConnected()) {\n LocationServices.FusedLocationApi.requestLocationUpdates(\n mGoogleApiClient, mLocationRequest, this);\n mRequestingLocationUpdates = true;\n Fog.d(TAG, \"requestedLocationUpdates\");\n }\n }\n }", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n // The user has not granted permission.\n Log.i(TAG, \"The user did not grant location permission.\");\n\n // Add a default marker, because the user hasn't selected a place.\n mMap.addMarker(new MarkerOptions()\n .title(getString(R.string.default_info_title))\n .position(mDefaultLocation)\n .snippet(getString(R.string.default_info_snippet)));\n\n // Prompt the user for permission.\n getLocationPermission();\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }" ]
[ "0.776698", "0.7651568", "0.7638665", "0.76210517", "0.74222696", "0.7376342", "0.72495216", "0.7231457", "0.72216654", "0.72000766", "0.7024308", "0.7022187", "0.7013939", "0.6992729", "0.6987125", "0.6987125", "0.6986646", "0.69855034", "0.698384", "0.69819254", "0.69819254", "0.69727206", "0.69494087", "0.6944171", "0.69438535", "0.6940635", "0.6940635", "0.6927119", "0.6906697", "0.69026685", "0.6891465", "0.687489", "0.6863529", "0.6840768", "0.6836656", "0.68039286", "0.6774371", "0.6758584", "0.67571265", "0.673376", "0.6723588", "0.67183065", "0.6712618", "0.6677001", "0.66759384", "0.6673356", "0.66588396", "0.6656386", "0.6647213", "0.6639417", "0.6573793", "0.6558253", "0.65477383", "0.6546998", "0.6540419", "0.6535042", "0.6485757", "0.64789546", "0.64782673", "0.64257294", "0.6423337", "0.64147455", "0.63951784", "0.63863087", "0.6379868", "0.6370859", "0.6369825", "0.6367581", "0.6360887", "0.63563144", "0.6346496", "0.6344851", "0.63219655", "0.6317804", "0.6304545", "0.629183", "0.62882435", "0.6272583", "0.62681174", "0.62670237", "0.6265583", "0.6248075", "0.6247825", "0.6247302", "0.6240661", "0.6228602", "0.62091637", "0.6206315", "0.6196269", "0.6190574", "0.61687946", "0.6165918", "0.6163796", "0.615594", "0.61530435", "0.61468345", "0.61103374", "0.6107765", "0.61063844", "0.61063844" ]
0.6848028
33
Handles the result of the request for location permissions.
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); locationPermissionGranted = false; if (requestCode == PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION) {// If request is cancelled, the result arrays are empty. if (grantResults.length > 0 && grantResults[0] == PERMISSION_GRANTED) { locationPermissionGranted = true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n String[] permissions = {ACCESS_FINE_LOCATION,\n ACCESS_COURSE_LOCATION};\n\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_FINE_LOCATION) == PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_COURSE_LOCATION) == PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);}\n } else{\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "private void getLocationPermission() {\n Log.wtf(TAG, \"getLocationPermission() has been instantiated\");\n\n Log.d(TAG, \"getLocationPermission: getting location permissions\");\n String[] permissions = {\n FINE_LOCATION,\n COARSE_LOCATION\n };\n\n if (ContextCompat.checkSelfPermission(getActivity(), FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(getActivity(), COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n Log.d(TAG, \"getLocationPermission: Permission granted\");\n initMap();\n\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "private void fetchlocation() {\n if (ContextCompat.checkSelfPermission(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(SelectService.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n new AlertDialog.Builder(this)\n .setTitle(\"Required Location Permission\")\n .setMessage(\"You have to give permission to fetch your current location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .create()\n .show();\n\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(SelectService.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n // Logic to handle location object\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n });\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case LOCATION_REQUEST_CODE:\n if(grantResults.length>0&& grantResults[0] == PackageManager.PERMISSION_GRANTED){\n fetchLastLocation();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getCurrentLocation();\n } else {\n Toast.makeText(this, \"Permision Denied\", Toast.LENGTH_SHORT).show();\n }\n }", "private void fineLocationPermissionGranted() {\n UtilityService.addGeofences(this);\n UtilityService.requestLocation(this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_LOCATION_PERMISSION:\n // If the permission is granted, get the location,\n // otherwise, write a message to the log\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getLocation();\n } else {\n Log.d(\"HackCMU19\", \"location permission denied\");\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults){\n switch (requestCode){\n case MY_PERMISSIONS_LOCATIONS: {\n if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mFusedClient.requestLocationUpdates(mLocationRequest,mLocationCallback, Looper.myLooper());\n }\n } else {\n Toast.makeText(this, \"permission denied\", Toast.LENGTH_LONG).show();\n }\n return;\n }\n }\n }", "private void getLocationPermission() {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n //request location permission\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION\n }, LOCATION_REQUEST_CODE);\n }\n fetchLastLocation();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n //switch\n switch (requestCode) {\n case ACCESS_REQUEST_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // permission was granted.\n Log.i(getResources().getString(R.string.app_name),\n \"Location Permission granted by user.\");\n setLocationUpdateFunction();\n } else {\n // permission denied, boo! Disable the functionality that depends on this permission.\n Log.e(getResources().getString(R.string.app_name),\n \"No Location Permission granted by user.\");\n //toast message telling the user to enable location permissions\n Toast.makeText(this, \"You have not enabled Location services for this app, please enable them in this apps settings\", Toast.LENGTH_LONG);\n }\n return;\n }\n\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n mLocationPermissionGaranted = false;\n Log.d(TAG, \"onRequestPermissionsResult: called.\");\n switch ( requestCode){\n case LOCATION_PERMISSION_REQUEST_CODE:{\n if (grantResults.length >0){\n for (int i =0; i < grantResults.length; i++) {\n if (grantResults[i] != PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGaranted = false;\n Log.d(TAG, \"onRequestPermissionsResult: failed.\");\n return;\n }\n }\n mLocationPermissionGaranted =true;\n Log.d(TAG, \"onRequestPermissionsResult: permission granted.\");\n //obtener la localizacion\n getDeviceLocation();\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQ:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n fineLocationPermissionGranted();\n }\n }\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"onRequestPermissionsResult()\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == REQ_PERMISSION) {\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted\n getLastKnownLocation();\n\n } else {\n // Permission denied\n permissionsDenied();\n }\n }\n }", "public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);*/\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,@NonNull int[] grantResults) {\n if (requestCode != PermissionUtils.REQUEST_CODE) {\n return;\n }\n if (PermissionUtils.isPermissionGranted(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION}, grantResults)) {\n //If you have permission, go to the code to get the location value\n initGoogleMapLocation();\n } else {\n Toast.makeText(this, \"Stop apps without permission to use location information\", Toast.LENGTH_SHORT).show();\n //finish();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n //\n switch (requestCode) {\n case REQUEST_ID_ACCESS_COURSE_FINE_LOCATION: {\n\n // Note: If request is cancelled, the result arrays are empty.\n // Permissions granted (read/write).\n if (grantResults.length > 1\n && grantResults[0] == PackageManager.PERMISSION_GRANTED\n && grantResults[1] == PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(this, \"Permission granted!\", Toast.LENGTH_LONG).show();\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n\n }\n\n // Show current location on Map.\n this.showMyLocation();\n }\n // Cancelled or denied.\n else {\n Toast.makeText(this, \"Permission denied!\", Toast.LENGTH_LONG).show();\n }\n break;\n }\n }\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Log.i(TAG, \"All location settings are satisfied.\");\n requestDangerousPermission();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n switch (requestCode) {\n case MY_LOCATION:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n gMap.setMyLocationEnabled(true);\n }\n } else {\n Toast.makeText(getActivity().getApplicationContext(), \"Bit Chat requires location permissions to be granted\", Toast.LENGTH_LONG).show();\n getActivity().finish();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if(requestCode==REQUEST_location)\n if (Connectivity.Checkinternet(getActivity())) {\n if (requestCode == 100) {\n if (!PermissionUtils.isPermissionGranted(permissions, grantResults, Manifest.permission.ACCESS_FINE_LOCATION) &&\n !PermissionUtils.isPermissionGranted(permissions, grantResults, Manifest.permission.ACCESS_COARSE_LOCATION))\n setupmap();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case LOCATION_REQUEST_CODE:\n // If request is denied, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Permission Granted\n fetchLastLocation();\n } else {\n AlertDialog alertDialog = new AlertDialog.Builder(MapsActivity.this).create();\n alertDialog.setTitle(\" Location Permission Denied!\");\n alertDialog.setMessage(\"\\nDefault Birmingham Location Used:\\n New Street Train Station\");\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n //Set default current location of New Street\n Location defaultLocation = new Location(\"LocationManager.GPS_PROVIDER\");\n defaultLocation.setLatitude(52.478060);\n defaultLocation.setLongitude(-1.898493);\n currentLocation = defaultLocation;\n supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_content);\n supportMapFragment.getMapAsync(MapsActivity.this);\n break;\n }\n }\n }", "private void locationPermission() {\n if(Build.VERSION.SDK_INT<23){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n }else{\n if(checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n return;\n }\n\n if(shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_COARSE_LOCATION) && shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)){\n Snackbar.make(drawer,\"Location access is required to show your friend and questions on map.\",Snackbar.LENGTH_INDEFINITE)\n .setAction(\"OK\", new View.OnClickListener() {\n @TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onClick(View v) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n })\n .show();\n }else{\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(LOG_TAG, \"onRequestPermissionsResult() called\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n boolean permissionsAccepted = false;\n switch (requestCode) {\n case REQUEST_LOCATION_PERMISSIONS:\n permissionsAccepted = (grantResults[0] == PackageManager.PERMISSION_GRANTED) && (grantResults[1] == PackageManager.PERMISSION_GRANTED);\n }\n Log.d(LOG_TAG, \"onRequestPermissionsResult(): \" + permissionsAccepted);\n if (!permissionsAccepted) {\n // User is required to allow location tracking - display error message\n Toast.makeText(this, getString(R.string.require_location_permissions), Toast.LENGTH_LONG).show();\n finish();\n } else {\n initializeComponents();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case 1:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n }\n\n } else {\n Toast.makeText(getContext(), \"This app needs location permission to be granted!,\",\n Toast.LENGTH_LONG).show();\n getActivity().finish();\n }\n break;\n }\n }", "private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onSuccess(Location location) {\n Log.e(\"onRequestPermissions\", \"Success\");\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n Log.e(\"getLocation\", String.valueOf(wayLongitude));\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_FINE_LOCATION) == PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_COARSE_LOCATION) == PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{\n ACCESS_FINE_LOCATION,\n ACCESS_COARSE_LOCATION\n }, PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@SuppressLint(\"NewApi\")\n @Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case 1340:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n Toast.makeText(this, \"Location cannot be obtained due to \" + \"missing permission.\", Toast.LENGTH_LONG).show();\n }\n break;\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void\n onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n if (requestCode == PERMISSION_ID) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getLastLocation();\n }\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocation() {\n if(ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n new AlertDialog.Builder(this)\n .setTitle(\"Location Permission Required\")\n .setMessage(\"This app needs permission to use your location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(RestaurantsActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n })\n .create()\n .show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n }\n }", "@Override\n public void\n onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n if (requestCode == PERMISSION_ID) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n getLastLocation1();\n }\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case LOCATION_PERMISSION_REQUEST_CODE: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0) {\n for (int i = 0; i < permissions.length; i++) {\n if (grantResults[i] != PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = false;\n return;\n }\n }\n mLocationPermissionGranted = true;\n //initialize our map\n initMap();\n getDeviceLocation();\n }\n }\n }\n\n }", "private void getLocationPermission(){\n Log.d(TAG, \"getLocationPermission: getting location permission.\");\n String[] permissions = {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n COURSE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mLocationPermissionGaranted = true;\n getDeviceLocation();\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(activity.getApplicationContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(activity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED)\n {\n mLocationPermissionGranted = true;\n } else {\n requestPermissions(\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION\n );\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(mContext,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(mActivity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // permission was granted by the user. Proceed with GPS location check\n mRequestingLocationUpdates = true;\n } else {\n // permission denied. Do not proceed with GPS location check\n mRequestingLocationUpdates = false;\n //If permission has been denied, lets the user know that the app cannot be operated\n //without the location permissions enabled\n if (ActivityCompat.shouldShowRequestPermissionRationale(RecordLapActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(RecordLapActivity.this,\n \"Location permissions required to operate Sprint\", Toast.LENGTH_LONG).show();\n }\n }\n // Include any other permission requests after this point\n }\n }\n }", "private void requestLocationPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Permission needed\")\n .setMessage(\"Location Permission is needed to show your current location on the map\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(ScavengerHunt.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Toast.makeText(ScavengerHunt.this, \"Location Permission is needed to update the map\", Toast.LENGTH_SHORT).show();\n }\n })\n .create()\n .show();\n\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n }", "private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == MY_PERMISSIONS_REQUEST_LOCATION) {\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n // permission was granted. Do the\n // contacts-related task you need to do.\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n\n if (mGoogleApiClient == null) {\n buildGoogleApiClient();\n }\n mMap.setMyLocationEnabled(true);\n }\n\n } else {\n\n // Permission denied, Disable the functionality that depends on this permission.\n Toast.makeText(this, \"permission denied\", Toast.LENGTH_LONG).show();\n }\n\n // other 'case' lines to check for other permissions this app might request.\n // You can add here other case statements according to your requirement.\n }\n }", "private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[], @NonNull int[] grantResults) {\n switch (requestCode) {\n case MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if ((grantResults.length > 0)\n && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n Log.d(MainActivity.TAG,\"Location Permission Granted.\");\n if(checkGoogleApiAvailability()) {\n start();\n }\n } else {\n alertUserAboutError(getString(R.string.no_location_found_address),\"Open Settings?\",ForecastRetrievalServiceConstants.LOCATION_FAILURE_RESULT);\n }\n }\n }\n }", "public void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n getDeviceLocation();\n updateLocationUI();\n }\n }\n }\n }", "private void requestPermissionAccessLocation() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n Log.d(TAG, \"permissionCheck: \" + permissionCheck);\n\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n updateFragmentOnLocationSuccess();\n } else {\n ActivityCompat\n .requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_PERMISSION_LOCATION);\n }\n }", "public void checkLocationPermission() {\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, getActivity(), getActivity())) {\n if (checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, getActivity(), getActivity())) {\n gpsTracker.getLocation();\n } else {\n requestPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n requestPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n gpsTracker.getLocation();\n }\n } catch (Exception e) {\n // logException(e, \"GpsMapManualFragment_checkLocationPermission()\");\n }\n\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n int coarseLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[0]);\n int fineLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[1]);\n\n switch (requestCode) {\n\n case (REQUEST_LOCATION_PERMISSION):\n\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Log.v(TAG, \"Permission Granted\");\n\n if (coarseLocation == PackageManager.PERMISSION_GRANTED && fineLocation == PackageManager.PERMISSION_GRANTED) {\n\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 20000, 10, locationListener);\n\n // Permission are granted. Check if GPS and bluetooth are enabled or send an alert to activate them\n if (!mBluetoothAdapter.isEnabled() && mAlertBlue == null)\n mAlertBlue = showAlert(ALERT_BLUE).create();\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) && mAlertGps == null) {\n mAlertGps = showAlert(ALERT_GPS).create();\n mAlertGps.show();\n }\n if (mBluetoothAdapter.isEnabled() && mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n Log.d(TAG, \"scanLeDevice(true) after permission and all enabled\");\n scanLeDevice(true);\n }\n }\n\n } else {\n\n Log.v(TAG, \"Permission NOT Granted\");\n showNegativeDialog(getResources().getString(R.string.perm_error_title),\n getResources().getString(R.string.perm_error_msg)\n );\n if (mLocationManager != null)\n mLocationManager.removeUpdates(locationListener);\n }\n break;\n\n default:\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[], @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { //check for permission\n //Permission Required\n } else {\n mFusedLocationClient.requestLocationUpdates(mLocationRequest,\n mLocationCallback,\n null /* Looper */);\n }\n }", "private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onSuccess: Location : \" + locationResult);\n if (locationResult == null) {\n return;\n }\n for (Location location : locationResult.getLocations()) {\n // Update UI with location data\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n updateLocationUI();\n }", "public static void checkLocationPermission() {\n globalContext.stopService(locationIntent);\n\n globalFragmentActivity.requestPermissions(\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "private void permissionLocationRequest() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);\n if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {\n if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {\n showMessageOKCancel(\"You need to allow access to Location\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n });\n }\n }\n\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode){\n case PERMISSION_FINE_LOCATION:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED){\n updateGPS();\n }else{\n Toast.makeText(this, \"This app requires permission.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,@NonNull String[] permissions,@NonNull int[] grantResults) {\n switch (requestCode) {\n case 1:\n if (grantResults.length > 0\n && grantResults[0]\n == PackageManager.PERMISSION_GRANTED) {\n enableMyLocation();\n break;\n }else{\n Toast.makeText(this,\"Permission Denied.\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_LOCATION_PERMISSION:\n if (grantResults.length > 0\n && grantResults[0]\n == PackageManager.PERMISSION_GRANTED) {\n enableMyLocation();\n break;\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[],\n int[] grantResults) {\n //In our example we only have one permission, but we could have more\n //we use the requestCode to distinguish them\n switch (requestCode) {\n case LOCATION_PERMISSION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n checkAndStartLocationUpdate();\n } else {\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n AlertDialog.Builder builder = new AlertDialog.Builder(AggStato.this);\n builder.setMessage(\"Questa app necessita dei permessi di locazione\").setTitle(\"Login Error\");\n\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "@Override\n public void onClick(View view) {\n locationChecker.checkBeforeAsking(new PermissionChecker.CheckPermissionListener() {\n @Override\n public void onPermissionDenied() {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onPermissionGranted() {\n\n gm.requestLastLocation(new GeoManager.GeoDirectLocationListener() {\n @Override\n public void onLocationError(Throwable error) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onLocationSuccess(double latitude, double longitude) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, latitude, longitude);\n }\n });\n }\n });\n }", "private void setupLocation() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION) &&\n ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)) {\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n } else {\n // Request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n }\n } else {\n // Permission has already been granted\n }\n }", "public void checkLocationPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n 99);\n }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == RC_PERMISSION_ALL) {\n if (permissions.length > 0 && /*permissions[0].equals(android.Manifest.permission.READ_EXTERNAL_STORAGE) &&*/ grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n } else if (grantResults.length > 0 &&/* permissions[0].equals(Manifest.permission.ACCESS_FINE_LOCATION) && */grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n// mLocationPermissionGranted = true;\n } else if (/*grantResults.length > 0 &&*/ grantResults[0] == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"Permissions denied the app will shut down shortly\", Toast.LENGTH_LONG).show();\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n finish();\n }\n }, 2000);\n }\n }\n\n // donot allow the onmap raedy proceed unless the permissions are granted and gps is on\n//\n }", "private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n mLocationPermissionGranted = false;\n switch (requestCode) {\n case PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_FINE_LOCATION) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Permissão Concedida\", Toast.LENGTH_LONG).show();\n //populateAutoComplete();\n }\n }\n }", "@Override\n public void onSuccess(Location location) {\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(\"INFO\", \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(\"INFO\", \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n getLastLocation();\n }\n }\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n getCurrentLocation();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n switch (requestCode) {\n case ACCESS_LOCATION_CODE: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n mLocationPermissionsGranted = true;\n\n } else {\n\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n mLocationPermissionsGranted = false;\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request.\n }\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }", "private void getLocation(LocationListener listener){\n FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (locationPermissionGranted){\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n listener.onSuccess(task.getResult());\n } else {\n Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show();\n }\n progressBar.setVisibility(View.GONE);\n });\n }\n } catch (SecurityException e){\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "private boolean checkPermissonLocationRequest(int requestCode) {\n if (Build.VERSION.SDK_INT >= 23) {\n if (checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION}, requestCode);\n return false;\n }\n } else {\n return true;\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 100) {\n if (resultCode != RESULT_OK)\n Toast.makeText(getContext(), \"GPS est déactivé\", Toast.LENGTH_LONG).show();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }", "private void askPermissionsAndShowMyLocation() {\n boolean isGPSEnabled = false;\n // flag for network status\n boolean isNetworkEnabled = false;\n // flag for GPS status\n boolean canGetLocation = false;\n LocationManager locationManager;\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // getting GPS status\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // getting network status\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n if (Build.VERSION.SDK_INT >= 23) {\n // flag for GPS status\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n// if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n// || accessFinePermission != PackageManager.PERMISSION_GRANTED)\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(this, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n this.showMyLocation();\n }\n\n } else {\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n this.showMyLocation();\n }\n\n\n }\n // Show current location on Map.\n }", "public void requestLocationPermision(){\n\n // Forma de actuar diferente si la versión del dispositivo en Marshmallow\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n Log.d(TAG, \"Versión 23\");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Si no tenemos permiso, lo pedimos\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"Show an expanation\");\n new AlertDialog.Builder(this)\n .setMessage(getString(R.string.show_explanation))\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n }\n })\n .create()\n .show();\n\n } else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE_ASK_PERMISSIONS);\n }\n } else{\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n //Comprobamos si es una mejor localización\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n } else{\n //Comprobacion de permisos\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n }\n\n }", "@Override\n public void onRequestPermissionsResult (int requestCode, String[] permissions,\n int[] grantResults) {\n int index = 0;\n Map<String, Integer> PermissionsMap = new HashMap<String, Integer>();\n for (String permission : permissions){\n PermissionsMap.put(permission, grantResults[index]);\n index++;\n }\n\n if((PermissionsMap.get(Manifest.permission.ACCESS_FINE_LOCATION) != 0)\n || PermissionsMap.get(Manifest.permission.ACCESS_COARSE_LOCATION) != 0){\n Toast.makeText((AppCompatActivity)getActivity(), \"Location permission is a must\", Toast.LENGTH_SHORT).show();\n// finish();\n }\n else\n {\n// this.ble.initializeBle((AppCompatActivity)getActivity());\n }\n }", "private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\r\n @NonNull int[] grantResults) {\r\n Log.i(TAG, \"onRequestPermissionResult\");\r\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\r\n if (grantResults.length <= 0) {\r\n // If user interaction was interrupted, the permission request is cancelled and you\r\n // receive empty arrays.\r\n Log.i(TAG, \"User interaction was cancelled.\");\r\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n if (mRequestingLocationUpdates) {\r\n Log.i(TAG, \"Permission granted, updates requested, starting location updates\");\r\n startLocationUpdates();\r\n }\r\n } else {\r\n // Permission denied.\r\n Log.i(TAG, \"Permission denied\");\r\n }\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(@NonNull int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (permissions.length == 0) {\n return;\n }\n boolean allPermissionsGranted = true;\n if (grantResults.length > 0) {\n for (int grantResult : grantResults) {\n if (grantResult != PackageManager.PERMISSION_GRANTED) {\n allPermissionsGranted = false;\n break;\n }\n }\n }\n if (!allPermissionsGranted) {\n boolean somePermissionsForeverDenied = false;\n for (String permission : permissions) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) {\n //denied\n } else {\n if (ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED\n && requestCode == Extra.LOCATION) {\n getLocation();\n } else {\n //set to never ask again\n somePermissionsForeverDenied = true;\n }\n }\n }\n if (somePermissionsForeverDenied) {\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(R.string.permissions_required)\n .setMessage(R.string.you_have_explicitly_denied_permissions_which_are_required_by_this_app_to_run_for_this_action_open_settings_go_to_permissions_and_allow_them)\n .setPositiveButton(R.string.settings, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(Extra.PACKAGE, getPackageName(), null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }\n } else if (requestCode == Extra.LOCATION) {\n getLocation();\n }\n }", "public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }", "private void checkLocationPermission() {\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)) {\n new AlertDialog.Builder(getActivity())\n .setTitle(\"give permission\")\n .setMessage(\"give permission message\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n })\n .create()\n .show();\n }\n else{\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n }\n\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n onLocationChanged(location);\n findNearbyHospitals(location);\n }\n }" ]
[ "0.71567273", "0.7141907", "0.71304005", "0.7114405", "0.7099874", "0.69807446", "0.6941455", "0.6903116", "0.6890953", "0.68448895", "0.683298", "0.6827792", "0.6819534", "0.68057734", "0.68019074", "0.6792721", "0.67802286", "0.6773205", "0.67676735", "0.67322105", "0.67148507", "0.66946524", "0.6685742", "0.6681441", "0.66693145", "0.6664885", "0.66585773", "0.6655855", "0.6652527", "0.6650862", "0.6647419", "0.66424155", "0.6637791", "0.66320693", "0.6629032", "0.66255295", "0.6603396", "0.66008085", "0.6598446", "0.65955085", "0.659256", "0.659256", "0.65838546", "0.65838546", "0.65809137", "0.65809137", "0.65795827", "0.65788156", "0.6574361", "0.6567929", "0.6554764", "0.6541093", "0.65380913", "0.6513956", "0.6505365", "0.6504921", "0.65044177", "0.6494669", "0.6490741", "0.6489007", "0.64807147", "0.6476674", "0.6474935", "0.6474935", "0.6474935", "0.6474935", "0.6474935", "0.6456714", "0.6433928", "0.64040434", "0.6391496", "0.63639605", "0.63624805", "0.63538575", "0.63462555", "0.6336674", "0.6331324", "0.6321815", "0.6301209", "0.6301209", "0.62819725", "0.6270427", "0.6269897", "0.62609833", "0.6260742", "0.62461084", "0.62400615", "0.62238604", "0.62090695", "0.6205922", "0.6200176", "0.6198495", "0.61854833", "0.61478764", "0.6140348", "0.61329585", "0.61263067", "0.6110252", "0.6110252", "0.6102335" ]
0.64514107
68
Objeto que vem do JSON
public Venda(int idProduto, double valorUnitarioProduto, int quantidadeUnitarioProduto, double valorTotalProduto, int idEndereco, double valorFrete, int idPagamento) { this.idProduto = idProduto; this.valorUnitarioProduto = valorUnitarioProduto; this.quantidadeUnitarioProduto = quantidadeUnitarioProduto; this.valorTotalProduto = valorTotalProduto; this.idEndereco = idEndereco; this.valorFrete = valorFrete; this.idPagamento = idPagamento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T zzb(JSONObject jSONObject);", "public abstract Object toJson();", "void mo28373a(JSONObject jSONObject);", "private JSON() {\n\t}", "public String getJson();", "String getJson();", "String getJson();", "String getJson();", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "JsonObject raw();", "String toJSON();", "JSONObject toJson();", "JSONObject toJson();", "private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void mo15090a(JSONObject jSONObject) {\n }", "private static JsonEstado toBasicJson(Estado estado) {\r\n\t\tJsonEstado jsonEstado = new JsonEstado();\r\n\t\tapplyBasicJsonValues(jsonEstado, estado);\r\n\t\treturn jsonEstado;\r\n\t}", "String getJSON();", "T fromJson(Object source);", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "private Alvo retornaAlvo(JSONObject jsonAlvo){\n\n Alvo alvoTemp = null;\n\n String divisao = ((JSONObject) jsonAlvo).get(\"divisao\").toString();\n String tipo = ((JSONObject) jsonAlvo).get(\"tipo\").toString();\n\n alvoTemp= new Alvo(tipo, divisao);\n return alvoTemp;\n }", "public abstract void fromJson(JSONObject jsonObject);", "private static JsonAluno toBasicJson(Aluno aluno) {\r\n\t\tJsonAluno jsonAluno = new JsonAluno();\r\n\t\tapplyBasicJsonValues(jsonAluno, aluno);\r\n\t\treturn jsonAluno;\r\n\t}", "public abstract String toJson();", "private Tamagotchi tamagotchiToJson(JSONObject jsonObject) {\n String name = jsonObject.getString(\"name\");\n Tamagotchi tr = new Tamagotchi(name);\n return tr;\n }", "@Override\n\tpublic void setObjectFromJSON(JSONObject j) throws JSONException{\n\t\tsetID(Integer.parseInt(j.getString(KEY_ID)));\n\t\tsetVehicleID(Integer.parseInt(j.getString(KEY_VEHICLE_IDVEHICLE)));\n\t\tsetItemID(Integer.parseInt(j.getString(KEY_ITEMS_IDITEMS)));\n\t\tsetReceiptID(Integer.parseInt(j.getString(KEY_RECEIPT_IDRECEIPT)));\n\t\tsetMileage(Integer.parseInt(j.getString(KEY_WORKMILEAGE)));\n\t\tsetNotes(j.getString(KEY_WORKNOTES));\n\t\t\n\t}", "public JsonObject toJson();", "public void deserialize(JsonObject src);", "public static void main(String[] args) {\n Gson json = new Gson();\n RestPregunta client = new RestPregunta();\n ArrayList value = client.getPreguntasCuestionario(ArrayList.class, \"68\");\n for(Object ob: value){ \n System.out.println(ob);\n Pregunta pregunta = json.fromJson(ob.toString(), Pregunta.class);\n System.out.println(pregunta.getPregunta());\n }\n client.close();\n //Gson json = new Gson();\n RestPregunta restPregunta = new RestPregunta();\n ArrayList<Pregunta> lista = new ArrayList();\n ArrayList values = restPregunta.getPreguntasCuestionario(ArrayList.class,\"68\");\n for(Object pro: values){\n Pregunta pregunta = json.fromJson(pro.toString(), Pregunta.class);\n lista.add(new Pregunta(pregunta.getIdPregunta(), pregunta.getIdCuestionario(), pregunta.getPuntoAsignado(), pregunta.getPuntoObtenido(), pregunta.getPregunta())); \n }\n// Pregunta pregunta = client.getPregunta(Pregunta.class, \"1\");\n// System.out.println(pregunta);\n// System.out.println(pregunta.toString());\n \n// ArrayList value = client.getPreguntas(ArrayList.class);\n // ArrayList<Pregunta> list = new ArrayList();\n// System.out.println(value);\n \n //list.add(pregunta);\n \n //System.out.println(pregunta.getArchivoimg2());\n \n// Pregunta p = new Pregunta(1,14,400,300,\"5000?\",\"C:\\\\Users\\\\Matias\\\\Pictures\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg\", inputStream,\" \");\n //Object ob = p;\n// client.addPregunta(p, Pregunta.class);\n// System.out.println(list);\n \n }", "private void leerCabezeraJson(JSONObject node){\n if( !REQUEST_STR.contentEquals(node.getString(NODE_TYPE_STR) ) ){\n throw new RuntimeException(Mensajes.ERR_FIRMA_JSON);\n }\n try{\n setScope(node.getString(REQUEST_SCOPE_STR));\n setIdentity(node.getString(REQUEST_IDENTITY_STR)); \n internalJSONToMetadata(node.getJSONObject(REQUEST_META_STR) );\n setCmd(node.getString(REQUEST_ID_STR));\n }\n catch(Exception e){\n throw new RuntimeException(Mensajes.ERR_FALTA_DATO+\" : \"+ e.getMessage());\n }\n if( this.mScope == null || this.mScope.equals(\"\") ||\n this.mIdentity == null || this.mIdentity.equals(\"\") ||\n this.mCurrentCommand == null || this.mCurrentCommand.equals(\"\")){\n \n throw new RuntimeException(Mensajes.ERR_DATO_VACIO);\n }\n \n }", "public JSONModel() {\n jo = new JSONObject();\n }", "@Override\r\n\tprotected GuardarVtaCeroMotivoResponse responseText(String json) {\n\t\tGuardarVtaCeroMotivoResponse guardarVtaCeroMotivoResponse = JSONHelper.desSerializar(json, GuardarVtaCeroMotivoResponse.class);\r\n\t\treturn guardarVtaCeroMotivoResponse;\r\n\t}", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "public native Object parse( Object json );", "public Database(JsonObject data){\n this.obj = data;\n rest = (JsonArray) obj.get(\"restaurants\");\n /* TODO \nset the memebr variable declared above.*/\n }", "@Override\r\n\tpublic void OC_setPropsJSON(JSONObject jo)\r\n\t{\n\t\t\r\n\t}", "public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }", "private static JsonLista toBasicJson(Lista lista) {\r\n\t\tJsonLista jsonLista = new JsonLista();\r\n\t\tapplyBasicJsonValues(jsonLista, lista);\r\n\t\treturn jsonLista;\r\n\t}", "public abstract JsonElement serialize();", "public String toJSON() throws JSONException;", "private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }", "@Override\r\n\tprotected JSON_Paginador getJson_paginador() {\n\t\treturn null;\r\n\t}", "void sendJson(Object data);", "private DatasetJsonConversion() {}", "public void parseJSONData(Object JSONdata){\n\n\t}", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "public abstract String toJsonString();", "private static JsonQuestao toBasicJson(Questao questao) {\r\n\t\tJsonQuestao jsonQuestao = new JsonQuestao();\r\n\t\tapplyBasicJsonValues(jsonQuestao, questao);\r\n\t\treturn jsonQuestao;\r\n\t}", "@Override\r\n\tprotected ActualizarClienteResponse responseText(String json) {\n\t\tActualizarClienteResponse actualizarClienteResponse = JSONHelper.desSerializar(json, ActualizarClienteResponse.class);\r\n\t\treturn actualizarClienteResponse;\r\n\t}", "private static JsonEndereco toBasicJson(Endereco endereco) {\r\n\t\tJsonEndereco jsonEndereco = new JsonEndereco();\r\n\t\tapplyBasicJsonValues(jsonEndereco, endereco);\r\n\t\treturn jsonEndereco;\r\n\t}", "protected abstract String getJSON(B bean);", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public native Object parse( Object json, String texturePath );", "public JSONObject transformer() {\n JSONObject jsonObject = new JSONObject();\n JSONArray listening = new JSONArray();\n JSONArray listening_correction = new JSONArray();\n JSONArray reading = new JSONArray();\n JSONArray reading_correction = new JSONArray();\n JSONArray historique = new JSONArray();\n\n for (int i = 0; i < this.listening.size(); i++) {\n listening.put(this.listening.get(i).whoIs());\n listening_correction.put(this.listening_correction.get(i).whoIs());\n }\n\n for (int j = 0; j < this.reading.size(); j++) {\n reading.put(this.reading.get(j).whoIs());\n reading_correction.put(this.reading_correction.get(j).whoIs());\n }\n\n for(int k=0; k < this.historique.size(); k++){\n historique.put( transforme(this.historique.get(k)) );\n }\n\n try {\n jsonObject.put(\"nom\", this.nom);\n jsonObject.put(\"listening\", listening);\n jsonObject.put(\"reading\", reading);\n jsonObject.put(\"listening_correction\", listening_correction);\n jsonObject.put(\"reading_correction\", reading_correction);\n jsonObject.put(\"historique\",historique);\n jsonObject.put(\"etat\", this.etat);\n jsonObject.put(\"mode\", this.mode);\n jsonObject.put(\"est_termine\", this.est_termine);\n jsonObject.put(\"chronometre\", this.chronometre);\n Log.i(\"jsonObject\",jsonObject.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonObject;\n }", "public void load(JSONObject obj);", "public void testJson() {\n\t\t\n\t\tSmallTalkEpisode episode = new SmallTalkEpisode();\n\t\tSmallTalkGespraech gespraech = new SmallTalkGespraech(0);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz1 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz2 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz3 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(testInstanz1);\n\t\tString myJson1 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson2 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson3 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech.createInnerJson());\n\t\t\n\t\tSmallTalkGespraech gespraech1 = new SmallTalkGespraech(1);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz4 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz5 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz6 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz1);\n\t\tString myJson4 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson5 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson6 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech1.createInnerJson());\n\t\t\n\t\tSystem.out.println(episode.createInnerJson());\n\t\t\n\t\tFileSaver fileSaver = new FileSaver();\n\t\tfileSaver.stringAsJson(episode.createInnerJson(), \"FinalJson.json\");\n\t}", "public void ReadJson() {\n System.out.println(\"Read Json Method in the Mother Class\");\n }", "protected abstract Object buildJsonObject(R response);", "private static JsonQuestaoDesafio toBasicJson(QuestaoDesafio questaoDesafio) {\r\n\t\tJsonQuestaoDesafio jsonQuestaoDesafio = new JsonQuestaoDesafio();\r\n\t\tapplyBasicJsonValues(jsonQuestaoDesafio, questaoDesafio);\r\n\t\treturn jsonQuestaoDesafio;\r\n\t}", "String parseObjectToJson(Object obj);", "@Override\n public String toString() {\n return jsonString;\n }", "@Override\r\n\tprotected ActualizarCompromisoResponse responseText(String json) {\n\t\tActualizarCompromisoResponse response = JSONHelper.desSerializar(json, ActualizarCompromisoResponse.class);\r\n\t\treturn response;\r\n\t}", "public void fiddle(String jso) {\n\n Lexicon dict = gson.fromJson(jso,Lexicon.class);\n\n Log.i(TAG,\"POJO Success: language = \" + dict.getLanguage() );\n for (String s : dict.dictionary.keySet()) {\n Log.i(TAG,\"key = \" + s + \" value = \" + dict.dictionary.get(s));\n }\n\n String jsonString = gson.toJson(jso);\n Log.i(TAG,\"jsonString = \" + jsonString);\n\n DictionaryAdapter adapter = new DictionaryAdapter(dict.getDictionary());\n ListView lv = (ListView) findViewById(R.id.dictview);\n lv.setAdapter(adapter);\n }", "void mo59932a(String str, JSONObject jSONObject);", "public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}", "protected abstract JSONObject build();", "public ClaseJson() {\n }", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n\n JSONObject rezultat = new JSONObject();\n\n List<Korisnici> korisnici = korisniciFacade.findAll();\n\n \n\n try {\n for (Korisnici k : korisnici) {\n if (k.getIdkorisnik() == Long.parseLong(id)) {\n\n SoapListaAdresa soapOdgovor = listaDodanihAdresaBesplatno(k.getKorisnickoime(), k.getLozinka());\n\n List<Adresa> adrese = soapOdgovor.getAdrese();\n \n JSONArray jsonPolje = new JSONArray();\n int brojac = 0;\n for (Adresa a : adrese) {\n JSONObject jsonAdresa = new JSONObject();\n jsonAdresa.put(\"idadresa\", a.getIdadresa());\n jsonAdresa.put(\"adresa\", a.getAdresa());\n jsonAdresa.put(\"lat\", a.getGeoloc().getLatitude());\n jsonAdresa.put(\"long\", a.getGeoloc().getLongitude());\n jsonPolje.put(brojac,jsonAdresa);\n brojac++;\n }\n rezultat.put(\"adrese\", jsonPolje);\n } \n }\n return rezultat.toString();\n } catch (JSONException ex) {\n Logger.getLogger(MeteoRESTResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "@Override\n public List<ModelPerson> selectjson(ModelPerson person) {\n List<ModelPerson> result = null;\n JSONArray response = null;\n Gson gson = new Gson();\n\n try {\n request = new HttpRequest( HTTP_URL_SELECTJSON );\n request.configPostType( HttpRequest.MineType.JSONObject );\n\n // Gson을 이용하여 ModelPerson 을 JSONObject로 변환.\n String jsonString = gson.toJson( person );\n httpCode = request.post(jsonString);\n\n if( httpCode == HttpURLConnection.HTTP_OK ){\n response = request.getJSONArrayResponse();\n }\n\n // Gson을 이용하여 JSONArray 를 List<ModelPerson> 로 변환.\n result = gson.fromJson(response.toString(), new TypeToken< List<ModelPerson> >(){}.getType() );\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public void setJSON(JSONObject json) {this.progressJSON = json;}", "@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}", "@Override\r\n\tprotected ProfitHistoryDetalleResponse responseText(String json) {\n\t\tProfitHistoryDetalleResponse response = JSONHelper.desSerializar(json,ProfitHistoryDetalleResponse.class);\r\n\t\treturn response;\r\n\t}", "public PersonajeVO getPersonaje(String url) {\n\t\tGson gson = new Gson();\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tPersonajeVO data = new PersonajeVO();\n\t\t java.lang.reflect.Type aType = new TypeToken<PersonajeVO>()\n\t\t{}.getType();\n\t\t gson = new Gson();\n\t\t httpClient = WebServiceUtils.getHttpClient();\n\t\t try {\n\t\t HttpResponse response = httpClient.execute(new HttpGet(url));\n\t\t HttpEntity entity = response.getEntity();\n\t\t Reader reader = new InputStreamReader(entity.getContent());\n\t\t data = gson.fromJson(reader, aType);\n\t\t } catch (Exception e) {\n\t\t Log.i(\"json array\",\"While getting server response server generate error. \");\n\t\t }\n\t\t return data;\n\t}", "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n String temp = null;\n temp = mapper.writeValueAsString(request);\n JSONObject j = new JSONObject(temp);\n\n return j;\n }", "private JsonUtils() {}", "@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }", "@Override\n\tprotected void handleResult(JSONObject obj) {\n\t\t\n\t}", "public abstract VKRequest mo118416a(JSONObject jSONObject);", "private static JsonCidade toBasicJson(Cidade cidade) {\r\n\t\tJsonCidade jsonCidade = new JsonCidade();\r\n\t\tapplyBasicJsonValues(jsonCidade, cidade);\r\n\t\treturn jsonCidade;\r\n\t}", "void mo16412a(String str, JSONObject jSONObject);", "@Override\r\n\tprotected ConsultarIndiceEjecucionAnioResponse responseText(String json) {\n\t\tConsultarIndiceEjecucionAnioResponse response = JSONHelper.desSerializar(json, ConsultarIndiceEjecucionAnioResponse.class);\r\n\t\treturn response;\r\n\t}", "public ChatMember(JsonObject json) {\n\n }", "public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}", "public String pasarAjson(ArrayList<Cliente> miLista){\n String textoenjson;\n Gson gson = new Gson();\n textoenjson = gson.toJson(miLista);\n\n\n return textoenjson;\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "public String toJSon() {\n File jsonFile = new File(context.getFilesDir(), \"data.json\");\n String previousJson = null;\n if (jsonFile.exists()) {\n previousJson = readFromFile(jsonFile);\n } else {\n previousJson = \"{}\";\n }\n\n // create new \"complex\" object\n JSONObject mO = null;\n try {\n mO = new JSONObject(previousJson);\n\n JSONArray arr;\n if (!mO.has(getIntent().getStringExtra(\"date\"))) {\n arr = new JSONArray();\n }\n else{\n arr = mO.getJSONArray(getIntent().getStringExtra(\"date\"));\n }\n JSONObject jo = new JSONObject();\n jo.put(\"title\", titleField.getText().toString());\n jo.put(\"minute\", minute);\n jo.put(\"hour\", hour);\n jo.put(\"description\", descriptionField.getText().toString());\n jo.put(\"location\", locationField.getText().toString());\n\n arr.put(jo);\n\n mO.put(getIntent().getStringExtra(\"date\"), arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // generate string from the object\n String jsonString = null;\n try {\n jsonString = mO.toString(4);\n return jsonString;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n\n }", "Objet getObjetAlloue();", "void mo26099a(String str, JSONObject jSONObject);", "public final void mo18962a(JSONObject jSONObject) {\n }", "@Test\n public void oneSpartanPojo(){\n Response response = given().accept(ContentType.JSON)\n .and().pathParam(\"id\", 15)\n .and().get(\"http://18.232.145.26:8000/api/spartans/{id}\");\n\n // Verify response status code should be 200\n Assert.assertEquals(response.statusCode(), 200 , \"Verify status code : \");\n\n // Convert Json to POJO( Our custom Spartan java class )\n Spartan spartan15 = response.body().as(Spartan.class);\n System.out.println(\"spartan15 = \" + spartan15);\n System.out.println(\"spartan15.getNames() = \" + spartan15.getName());\n System.out.println(\"spartan15.getId() = \" + spartan15.getId());\n\n\n }", "TorrentJsonParser getJsonParser();", "Person addPerson(JSONObject person);", "public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static JSONObject getDataObject(JSONObject obj)\n\t{\n\t\tJSONObject objData = new JSONObject();\n\t\tobjData.put(\"data\", obj);\n\t\treturn objData;\n\t}", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "public void mo9092a(JSONObject jSONObject) throws JSONException {\n }", "@Override\r\n\tpublic void translateToJSON(ParsedJSONContainer jsonContainer) {\t\tjsonContainer.put(\"id\",getId());\r\n\t\tjsonContainer.put(\"labels\",getLabels());\r\n\t\tjsonContainer.put(\"version\",getVersion());\r\n\t}", "@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}" ]
[ "0.659613", "0.6573268", "0.6561883", "0.65355045", "0.6523522", "0.6457104", "0.6457104", "0.6457104", "0.63792866", "0.63289136", "0.6270627", "0.6262346", "0.6262346", "0.6224346", "0.6223217", "0.62025523", "0.6176329", "0.61660594", "0.6159065", "0.6158491", "0.615787", "0.6153896", "0.61466134", "0.6132893", "0.61291045", "0.6118928", "0.6081865", "0.60682803", "0.60638386", "0.60450816", "0.6028323", "0.60134506", "0.599504", "0.5985471", "0.59827995", "0.5970886", "0.59682494", "0.5968093", "0.5965118", "0.59371245", "0.59338313", "0.5931532", "0.5928257", "0.5923403", "0.59225225", "0.5916342", "0.5914008", "0.5898302", "0.58763534", "0.58755386", "0.5875144", "0.5868274", "0.58593696", "0.58493674", "0.5840617", "0.58393747", "0.5838429", "0.5835673", "0.58355945", "0.58320725", "0.58138853", "0.5813214", "0.5812191", "0.57921517", "0.5792141", "0.57896644", "0.5789269", "0.5780509", "0.5777957", "0.576936", "0.57637143", "0.5760409", "0.5754201", "0.57527316", "0.5739374", "0.5737166", "0.5734853", "0.572841", "0.57281536", "0.5725752", "0.57255125", "0.5723926", "0.57235616", "0.57229614", "0.5719815", "0.5711385", "0.5706896", "0.5695904", "0.5692466", "0.5691267", "0.5687848", "0.56798637", "0.5674695", "0.56693435", "0.5666035", "0.566518", "0.56592894", "0.5649562", "0.56402487", "0.5638898", "0.56302774" ]
0.0
-1
Objeto salvo na tbl_produtos_venda
public Venda(int idVenda, int idProduto, int quantidadeUnitarioProduto) { this.idVenda = idVenda; this.idProduto = idProduto; this.quantidadeUnitarioProduto = quantidadeUnitarioProduto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }", "private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }", "public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal_vendido()});\n }\n \n \n }", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "public void salvarProdutos(Produto produto){\n }", "public Venda(int idProduto, double valorUnitarioProduto, int quantidadeUnitarioProduto, double valorTotalProduto, int idEndereco, double valorFrete, int idPagamento) {\r\n this.idProduto = idProduto;\r\n this.valorUnitarioProduto = valorUnitarioProduto;\r\n this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;\r\n this.valorTotalProduto = valorTotalProduto;\r\n this.idEndereco = idEndereco;\r\n this.valorFrete = valorFrete;\r\n this.idPagamento = idPagamento;\r\n }", "private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }", "public Ventas() {\n setIdVenta(1);\n setIdCliente(1);\n setFecha(new Date());\n setEstado(0); \n }", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "public Produto salvarProduto(Produto Produto) {\n\t\treturn null;\n\t}", "public VerInfoProd(Producto prod) {\n initComponents();\n \n Fabrica fabrica = Fabrica.getInstance();\n ICP = fabrica.getICtrlProducto();\n modelo = (DefaultTableModel) jTabla.getModel();\n this.txtNomProd.setText(prod.getNombre());\n this.txtDescProd.setText(prod.getDescripcion());\n String precio = Double.toString(prod.getPrecio());\n this.txtPrecioProd.setText(precio);\n p = prod;\n Promocional prom = (Promocional)p;\n if(prom.isActiva())\n this.txtEstadoPromo.setText(\"ACTIVA\");\n else\n this.txtEstadoPromo.setText(\"INACTIVA\");\n cargartabla();\n }", "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "public List<SalesItems> toListSalesItems(int vendaId){\n \n List<SalesItems> list = new ArrayList<>();\n String sql = \"select i.id, p.descricao, i.qtd, p.preco, \"\n + \"i.subtotal from tb_itensvendas as i \"\n + \"inner join tb_produtos as p on(i.produto_id = p.id) \"\n + \"where i.venda_id = ? \";\n \n try{\n \n PreparedStatement st = conn.prepareStatement(sql);\n \n st.setInt(1, vendaId);\n \n \n ResultSet rs = st.executeQuery();\n \n while(rs.next()){\n SalesItems item = new SalesItems();\n Product product = new Product();\n \n item.setId(rs.getInt(\"i.id\"));\n product.setDescricao(rs.getString(\"p.descricao\"));\n item.setQtd(rs.getInt(\"i.qtd\"));\n product.setPreco(rs.getDouble(\"p.preco\"));\n item.setSubtotal(rs.getDouble(\"i.subtotal\"));\n \n \n \n \n \n item.setProduto(product);\n \n list.add(item);\n \n }\n \n return list;\n \n }\n catch(SQLException error){\n JOptionPane.showMessageDialog(null, \"Erro: \" + error);\n return null;\n }\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public void AgregarVenta() {\r\n if (vista.jTcodigodebarras.equals(\"\")) {//C.P.M si el componete esta vacio es que no a insertado algun codigo a buscar\r\n JOptionPane.showMessageDialog(null, \"No has ingresado un codigo de barras\");//C.P.M se lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario es que inserto algo y ay que buscarlo\r\n try {\r\n modelo.setCodigobarras(vista.jTcodigodebarras.getText());//C.P.M le mandamos el codigo a buscar a el modelo\r\n rs = modelo.Buscarcodigobarras();//C.P.M cachamos el resultado de la consulta\r\n if (rs.next() == true) {//C.P.M preguntamos si trai datos si es asi \r\n String nombre = rs.getString(\"nombre_producto\");//C.P.M obtenemos el nombre de el resultado\r\n float precio = Float.parseFloat(rs.getString(\"precio\"));//C.P.M obtenemos el precio\r\n String precioformato = format.format(precio);//C.P.M le damos el formato adecuado esta variable la utilizamos para enviarla a la vista\r\n float totalPro = Float.parseFloat(precioformato);//C.P.M cambiamos a flotante ya el precio con el formato adecuado\r\n String cant = JOptionPane.showInputDialog(null, \"Cantidad: \");//C.P.M preguntamos la cantidad del prducto\r\n float cantidad = Float.parseFloat(cant);//C.P.M convertimos a flotante la cantidad\r\n totalPro = totalPro * cantidad;//C.P.M obtenemos el total de ese producto multiplicando al cantidad por el precio\r\n total = Float.parseFloat(vista.jTtotal.getText());//C.P.M obtenemos el total de la venta \r\n total = totalPro + total;//C.P.M le sumamos el total del producto ingresado al total ya de la venta\r\n String totalaenviar = format.format(total);//C.P.M le damos el formato adecuado para enviar el nuevo total\r\n vista.jTtotal.setText(totalaenviar);//C.P.M le enviamos el nuevo total a la vista\r\n DefaultTableModel temp = (DefaultTableModel) vista.Tlista.getModel();//C.P.M obtenemos el modelo de la tabla\r\n Object[] fila = new Object[3];//C.P.M creamos un areglo con el tamano de la nota\r\n fila[0] = cant;//C.P.M le agregamos la cantidad \r\n fila[1] = nombre;//C.P.M le agregamos el nombre\r\n fila[2] = precioformato;//C.P.M y el precio con el formato\r\n temp.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"No existe un artículo con dicho código\");\r\n }\r\n vista.jTcodigodebarras.setText(\"\");//C.P.M limpiamos el codigo de barras y le colocamos el foco\r\n vista.jTcodigodebarras.requestFocus();//C.P.M le colocamos el foco\r\n } catch (SQLException ex) {//C.P.M si ocurre un error le notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al consultar el codigo de barras\");\r\n }\r\n }\r\n }", "private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }", "public VVentasRecord(Integer idventa, String numerofactura, Date fecha, Integer idcliente, String nombre, String direccion, String telefono, String tipo, String tipodoc, BigDecimal total) {\n super(VVentas.V_VENTAS);\n\n set(0, idventa);\n set(1, numerofactura);\n set(2, fecha);\n set(3, idcliente);\n set(4, nombre);\n set(5, direccion);\n set(6, telefono);\n set(7, tipo);\n set(8, tipodoc);\n set(9, total);\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "private void salvarVenda(String nomeCliente, double precoFinal, double desconto ,String mesAnoAt,String dataCompra,String formaDePagamento) {\n\n\t\tFirebaseAuth autenticacion = configFireBase.getFireBaseAutenticacao();\n\n\t\tString idUsuario = Base64Custom.codificarBase64(autenticacion.getCurrentUser().getEmail());\n\t\tDatabaseReference VendaRef=mDatabase.child(\"vendas\");\n\n\n\t\tvenda.setIdVenda(VendaRef.push().getKey());\n\t\tvenda.setNomeCliente(nomeCliente);\n\t\tvenda.setValorTotal(precoFinal);\n\t\tvenda.setMesAno(mesAnoAt);\n\t\tvenda.setDesconto(desconto);\n\t\tvenda.setDataCompra(dataCompra);\n\t\tvenda.setLista(ListagemDeProdutosParaCompras.produtosSelecionados);\n\t\tvenda.setFormaDePagamento(formaDePagamento);\n\n\t\tmDatabase.child(\"armazenamento\").child(idUsuario).child(\"vendas\").child(venda.getIdVenda()).setValue(venda).addOnCompleteListener(new OnCompleteListener<Void>() {\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(@NonNull Task<Void> task) {\n\n\t\t\t}\n\n\t\t});\n\n\t\tToast.makeText(CadastrarVendaActivity.this, \"Venda Realizada\", Toast.LENGTH_SHORT).show();\n\t\tstartActivity(new Intent(getApplicationContext(), ListagemDeVendasRealizadas.class));\n\t\tvenda.subtrairVendas();\n\n\t\tthis.finish();\n\t}", "VentaJPA obtenerVenta(int comprobante);", "public IProduto getCodProd();", "public IVenda linhaToVenda(String linha, ICatCli catCli, ICatProd catProd);", "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroParcelas.setEnabled(false);\n jTextFieldValorVenda.setEnabled(false);\n jFormattedTextDataVenda.setEnabled(false);\n jTextFieldIDCliente.setEnabled(false);\n int idVenda1 = idVenda;\n buscarPressedEnter();\n\n if (idVenda != -1) {\n textFieldIDVenda.setText(\"\" + idVenda1);\n\n Connection connection;\n try {\n connection = new ConnectionFactory().getConnection();\n\n VendaDAO vendaDAO = new VendaDAO(connection);\n modeloVenda1 = vendaDAO.buscaPorId(Long.parseLong(String.valueOf(idVenda1)));\n\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ClienteDAO clienteDAO = new ClienteDAO(connection);\n ParcelaDAO parcelasDao = new ParcelaDAO(connection);\n List<ModeloParcela> modeloParcelas = new ArrayList<ModeloParcela>();\n\n if (null == pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())))) {\n\n } else {\n modeloPedido1 = pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())));\n\n idPedidoClasse = modeloPedido1.getId();\n viewProdutoPedidos = pedidoDAO.buscarPedidoproduto(Integer.parseInt(String.valueOf(idPedidoClasse)));\n modeloParcelas = parcelasDao.listaPorIdVenda(modeloVenda1.getId());\n listarParcelas(modeloParcelas);\n PreencherTabela();\n PreencherTabela2();\n }\n\n FuncionarioDAO funcionarioDAO = new FuncionarioDAO(connection);\n ModeloFuncionario modeloFuncionario = new ModeloFuncionario();\n\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n ModeloCliente modeloCliente = new ModeloCliente();\n modeloFuncionario = funcionarioDAO.buscaPorId(modeloVenda1.getIdfuncionario());\n modeloCliente = clienteDAO.buscaPorId(modeloVenda1.getIdcliente());\n System.out.println(modeloVenda1.getIdcliente());\n jTextFieldIDFuncionario.setText(\"\" + modeloFuncionario.getId());\n jTextFieldNomeFuncionario.setText(modeloFuncionario.getNome());\n jFormattedTextDataVenda.setText(format.format(modeloVenda1.getDataVenda()));\n\n jTextFieldIDCliente.setText(\"\" + modeloCliente.getId());\n jTextFieldNomeCliente.setText(\"\" + modeloCliente.getNome());\n jTextFieldNotaFiscal.setText(modeloVenda1.getNotaFiscal());\n\n jTextFieldValorVenda.setText(\"\" + modeloVenda1.getValorVenda());\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, ex);\n Logger.getLogger(VendaView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public ControleVendas() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) tabelaVendas.getModel();\n tabelaVendas.setRowSorter(new TableRowSorter(modelo));\n atualizarTabela();\n }", "public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }", "private TableModel getTabelaProduto() {\r\n\t\tString[] columnNames = { \"id_c\", \"nome\", \"telefone\", \"endereco\", \"cidade\", \"estado\", \"email\", \"genero\" };\r\n\r\n\t\tObject[][] dados = new Object[listacliente.size()][8];\r\n\t\tfor (int i = 0; i < listacliente.size(); i++) {\r\n\t\t\tint x = 0;\r\n\t\t\tdados[i][x++] = listacliente.get(i).getId();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getTelefone();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEndereco();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getCidade();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEstado().getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEmail();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getGenero().getNome();\r\n\t\t}\r\n\r\n\t\treturn new DefaultTableModel(dados, columnNames);\r\n\r\n\t}", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "private TableModel getTableModelProduto() {\n\t\tString[] columnNames = { \"cod_p\", \"cod_barra\", \"categoria\", \"descricao\", \"unidade\", \"custo\", \"marge_lucro\" };\n\n\t\tObject[][] data = new Object[listaP.size()][7];\n\t\tfor (int i = 0; i < listaP.size(); i++) {\n\t\t\tint j = 0;\n\t\t\tdata[i][j++] = Long.valueOf(listaP.get(i).getCod());\n\t\t\tdata[i][j++] = listaP.get(i).getCodBarra();\n\t\t\tdata[i][j++] = listaP.get(i).getCategoria();\n\t\t\tdata[i][j++] = listaP.get(i).getDescricao();\n\t\t\tdata[i][j++] = listaP.get(i).getUnidade();\n\t\t\tdata[i][j++] = listaP.get(i).getCusto();\n\t\t\tdata[i][j++] = listaP.get(i).getMargenLucro();\n\t\t}\n\t\treturn new DefaultTableModel(data, columnNames);\n\t}", "public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }", "public String getIdProduto() {\r\n\t\treturn idProduto;\r\n\t}", "public void verProcedimientos(JTable tabla) {\n System.out.println(\"controladores.ProcedimientoController.verProcedimientos()\");\n ResultSet procedimientos = null;\n IProcedimientoDao dao = new ProcedimientoDaoImpl();\n procedimientos = dao.obtenerProcedimientos();\n vista.verProcedimientos(procedimientos, tabla);\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public int getDtVenda() {\n return dtVenda;\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "public void salvaProduto(Produto produto){\n conecta = new Conecta();\n conecta.iniciaConexao();\n\n String sql = \"INSERT INTO `JoalheriaJoia`.`Produto` (`codigo`, `nome`, `valorCusto`, `valorVenda`, `idTipoJoia` , `quantidadeEstoque`) VALUES (?, ?, ?, ?, ?, ?);\";\n\n try {\n PreparedStatement pstm;\n pstm = conecta.getConexao().prepareStatement(sql); \n \n pstm.setString(1, produto.getCodigo());\n pstm.setString(2, produto.getNome());\n pstm.setFloat(3, produto.getValorCusto());\n pstm.setFloat(4, produto.getValorVenda());\n pstm.setInt(5, produto.getTipoJoia().getIdTipoJoia());\n pstm.setInt(6, produto.getQuantidadeEstoque());\n pstm.execute();\n } catch (SQLException ex) {\n Logger.getLogger(ProdutoDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n conecta.fechaConexao(); \n \n }", "public ArrayList listarDetalleVenta(int codVenta){\n ArrayList<DetalleVentaConsulta> lista=new ArrayList<>();\n try {\n PreparedStatement pst=cn.prepareStatement(\"select dv.idVenta,dv.cantidad,p.nombreProducto,dv.precioUnidad from detalleVenta dv \\n\" +\n\"inner join producto p on p.idProducto=dv.nombreProducto\\n\" +\n\"where dv.idVenta=?\");\n pst.setInt(1, codVenta);\n ResultSet rs=pst.executeQuery();\n while (rs.next()) { \n lista.add(new DetalleVentaConsulta(rs.getInt(\"idVenta\"),rs.getInt(\"cantidad\"),rs.getDouble(\"precioUnidad\"),rs.getString(\"cancelado\"),rs.getString(\"nombreProducto\")));\n }rs.close();pst.close();\n } catch (Exception e) {\n System.out.println(\"listar Venta: \"+e.getMessage());\n }return lista;\n }", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void carregarTableViewVendas() {\n\t\ttableColumnVendasCodigo.setCellValueFactory(new PropertyValueFactory<>(\"id_venda\"));\n\t\ttableColumnVendasData.setCellValueFactory(new PropertyValueFactory<>(\"data\"));\n\t\ttableColumnVendasVendedor.setCellValueFactory(new PropertyValueFactory<>(\"vendedor\"));\n\t\ttableColumnVendasTotal.setCellValueFactory(new PropertyValueFactory<>(\"total_venda\"));\n\n\t\tlistVendas = vendaDAO.listar();\n\n\t\tobservableListVendas = FXCollections.observableArrayList(listVendas);\n\t\ttableViewVendas.setItems(observableListVendas);\n\t}", "public String getIdVenta() {\n return idVenta;\n }", "public HashMap<String, Integer> getListaProdutoVenda(){\n\t\treturn this.listaProdutoVenda;\n\t}", "@Override\n\tpublic void salvar() {\n\t\t\n\t\tPedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\n\t\tPedidoCompra.setAtivo(true);\n//\t\tPedidoCompra.setNome(nome.getText());\n\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\tPedidoCompra.setSaldoinicial(\"0.00\");\n\t\t\n\t\tPedidoCompra.setData(new Date());\n\t\tPedidoCompra.setIspago(false);\n\t\tPedidoCompra.setData_criacao(new Date());\n\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\n\t\tgetservice().save(PedidoCompra);\n\t\tsaveAlert(PedidoCompra);\n\t\tclearFields();\n\t\tdesligarLuz();\n\t\tloadEntityDetails();\n\t\tatualizar.setDisable(true);\n\t\tsalvar.setDisable(false);\n\t\t\n\t\tsuper.salvar();\n\t}", "public int getIdProducto() {\n return idProducto;\n }", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws ProductosPuntoVentaDaoException {\r\n ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT\r\n + \" WHERE id_pdv = ? AND id_producto = ?\", new Object[] {\r\n idPuntoVenta, idProducto });\r\n return ret.length == 0 ? null : ret[0];\r\n }", "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "private Produtos_Adicionar() {\n initComponents();\n \n horaProdutoSpinner.setModel(new SpinnerDateModel());\n JSpinner.DateEditor editor = new JSpinner.DateEditor(horaProdutoSpinner, \"HH:mm\");\n horaProdutoSpinner.setEditor(editor);\n \n custoProdutoSpinner.setModel(new SpinnerNumberModel(0.0, -10000.0, 10000.0, 0.1));\n JSpinner.NumberEditor editorNumber = new JSpinner.NumberEditor(custoProdutoSpinner);\n custoProdutoSpinner.setEditor(editorNumber);\n \n dataProdutoDP.setDate(new Date());\n }", "public Produto(String descricao, double valor, Calendar anoFrabricacao) {\n\t\tthis.quantidadeEmUnidade = 1;\n\t\tsetDescricao(descricao);\n\t\tsetAnoFrabricacao(anoFrabricacao);\n\t\tsetValor(valor);\n\t}", "public static Posee insertPosee(Date fecha_inicio,ServicioAdicional serv_adicional,\n Producto producto){\n Posee miPosee = new Posee(fecha_inicio,serv_adicional,producto);\n miPosee.registrarPosee();\n \n return miPosee;\n }", "@Override\r\n\tpublic List<Producto> productosMasVendidos(@DateTimeFormat(pattern = \"dd-MM-yyyy\")Date fecha) {\n\t\treturn (List<Producto>)productoFacturaClienteDao.productosMasVendidos(fecha);\r\n\t}", "public VentanaEmpleado()\n\t{\n\t\tinitComponents();\n\t\tm = ( DefaultTableModel ) tblEmpleado.getModel();\n\n\t\tcargarTablaDesdeBD();\n\t}", "public Venda(String codigoVenda, int quantidadeTotalVenda, int valorFrete, double valorTotalVenda, String dataVenda, int idEndereco, int idUsuario, int idStatus, int idPagamento) {\r\n this.codigoVenda = codigoVenda;\r\n this.quantidadeTotalVenda = quantidadeTotalVenda;\r\n this.valorFrete = valorFrete;\r\n this.valorTotalVenda = valorTotalVenda;\r\n this.dataVenda = dataVenda;\r\n this.idEndereco = idEndereco;\r\n this.idUsuario = idUsuario;\r\n this.idStatus = idStatus;\r\n this.idPagamento = idPagamento;\r\n }", "@Override\n\tpublic Ingresso BuscarIngressoPelaVenda(Venda venda) throws DBException {\n\t\treturn null;\n\t}", "protected ArrayList efetuarCompra(ArrayList<Produto> produtosCtlg){\n for (int i=0; i<itens.size(); i++){\r\n for (int j=0; j<produtosCtlg.size(); j++){\r\n if (itens.get(i).getId() == produtosCtlg.get(j).getId()){\r\n produtosCtlg.get(j).setQuantidade(itens.get(i).getQtdPedida());\r\n }\r\n }\r\n }\r\n return itens;\r\n }", "public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public static Producto insertProducto(int codProd,String nomb_modelo,Cliente cliente){\n Producto prod = new Producto(codProd,nomb_modelo,cliente);\n try {\n prod.registrarProducto();\n } catch (SQLException ex) {\n // En caso de haber una excepcion se imprime el mensaje\n System.err.println(ex.getMessage());\n }\n return prod;\n }", "public ProduttoreDato(Semaforo pieno, Semaforo vuoto) {\n this.pieno = pieno;\n this.vuoto = vuoto;\n }", "public PessoaVO(Long pk){\r\n\t\tsuper(pk);\r\n\t}", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "public boolean salvar(Venda venda) {\n\t\treturn false;\n\t}", "public void listar_mais_pedidos(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisPedidos.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisPedidos(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getQtd_pedido()});\n }\n \n \n }", "public ControladorVentanaDatosOperador(Modelo modelo) throws SQLException {\n this.modelo = modelo;\n ventanaAgregarOperador = new VentanaDatosOperador();\n ventanaEditarOperador = new VentanaDatosOperador();\n registrarListeners();\n }", "public ObjetoVida getObjeto(){\r\n\t\treturn objeto;\r\n\t}", "public com.monitor.webService.VoProducto getProducto() {\r\n return producto;\r\n }", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void darDeAltaProducto(Producto producto) throws SQLException {\n\t\tDataProducto dp = new DataProducto();\n\t\tdp.updateBajaLogica(producto);\n\t}", "public agregarArticulo(String user, String password, String vend, String codigoVend) {\n initComponents();\n usu = user;\n contra = password;\n\n try {\n model = new ConnectionTableDB(usu, contra, \"adv_facturacion\", \"SELECT tipo_producto from tipo_producto\", false);\n\n for (int i = 0; i < model.getRowCount(); i++) {\n tipo.addItem(String.valueOf(model.getValueAt(i, 0)));\n }\n //this.getContentPane().setBackground(Color.white);\n } catch (SQLException ex) {\n Logger.getLogger(agregarArticulo.class.getName()).log(Level.SEVERE, null, ex);\n }\n model.desconectar();\n }", "public DefaultTableModel pedidosListado(){\r\n List<Pedido> lista =pedidos.listarPedidos();\r\n return Convertidor.PedidoToTableModelMin(lista);\r\n }", "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "public PedidoRecord(Integer idPedido, Integer cliente, Date fecha, Boolean iva, String observaciones, Double total) {\n super(Pedido.PEDIDO);\n\n set(0, idPedido);\n set(1, cliente);\n set(2, fecha);\n set(3, iva);\n set(4, observaciones);\n set(5, total);\n }", "@Override\n\tpublic SATipoVivienda generarSATipoVivienda() {\n\t\treturn new SATipoViviendaImp();\n\t}", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }", "public void buscaxnombre() {\r\n try {\r\n modelo.setNombre(vistabuscapro.jTvnombre.getText());//C.P.M le mandamos a el modelo el nombre para consultarlo\r\n rs = modelo.Buscarxnombre();//C.P.M ejecutamo el metodo del modelo y atrapamos el resultado\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M se establese el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M no sera editable\r\n return false;\r\n }\r\n };\r\n vistabuscapro.Tproductos.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"los encabeados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de el resultado\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un objeto con la cantidad de columnas obtenidas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos\r\n fila[i] = rs.getObject(i + 1);//C.P.M le agregamos la informacion obtenida\r\n }\r\n buscar.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por nombre\");\r\n }\r\n }", "public void atualizar(BeanProdutosJsp produto) {\n\n\t\ttry {\n\t\t\tString sql = \"update produtos set nome = ?, quantidade = ?, valor = ?, categoria_id = ? where id = \" + produto.getId();\n\t\t\t\n\t\t\tPreparedStatement preparedStatement;\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setString(1, produto.getNome());\n\t\t\tpreparedStatement.setDouble(2, produto.getQuantidade());\n\t\t\tpreparedStatement.setDouble(3, produto.getValor());\n\t\t\tpreparedStatement.setLong(4, produto.getCategoria_id());\n\n\t\t\tpreparedStatement.executeUpdate();\n\t\t\tconnection.commit();\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\ttry {\n\n\t\t\t\tconnection.rollback();\n\n\t\t\t} catch (SQLException e1) {\n\n\t\t\t\te1.printStackTrace();\n\n\t\t\t}\n\t\t}\n\t}", "public void setProducto(com.monitor.webService.VoProducto producto) {\r\n this.producto = producto;\r\n }", "public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }", "public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}", "public void setFecha_Venta(String fecha_Venta) {\n this.fecha_Venta = fecha_Venta;\n }", "@Override\r\n public ProductosPuntoVenta[] findByProducto(Integer idProducto)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_producto = ?\",\r\n new Object[] { idProducto });\r\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void CargarProveedores() {\n DefaultTableModel modelo = (DefaultTableModel) vista.Proveedores.jTable1.getModel();\n modelo.setRowCount(0);\n res = Conexion.Consulta(\"select * From proveedores\");\n try {\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getInt(1));\n v.add(res.getString(2));\n v.add(res.getString(3));\n v.add(res.getString(4));\n modelo.addRow(v);\n vista.Proveedores.jTable1.setModel(modelo);\n }\n } catch (SQLException e) {\n }\n }", "@Override\n\tpublic Produto pesquisar(Produto entidade) {\n\t\treturn null;\n\t}", "public List<ItemVenda> getItemVenda(Lancamento lancamento) {\r\n\r\n List<ItemVenda> resultado = new ArrayList<ItemVenda>();\r\n Connection con = pool.getConnection();\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n String sqlSelect = \"SELECT \\n\" +\r\n \" *\\n\" +\r\n \"FROM\\n\" +\r\n \" (SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PRODUTO AS CODIGO_PRODUTO,\\n\" +\r\n \" D.NOME_PRODUTO AS DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PRODUTO D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PRODUTO_CODIGO_PRODUTO = D.CODIGO_PRODUTO UNION ALL SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PACOTE_PROMOCIONAL AS CODIGO_PRODUTO,\\n\" +\r\n \" D.DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PACOTE_PROMOCIONAL D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PACOTE_PROMOCIONAL_CODIGO_PACOTE_PROMOCIONAL = D.CODIGO_PACOTE_PROMOCIONAL) AS CONSULTA\\n\" +\r\n \" WHERE CODIGO_LANCAMENTO = ?\";\r\n\r\n try {\r\n ps = con.prepareStatement(sqlSelect);\r\n ps.setInt(1, lancamento.getCodigo_lancamento());\r\n\r\n rs = ps.executeQuery();\r\n\r\n resultado = getListaItensVenda(rs);\r\n\r\n ps.close();\r\n } catch (ParseException ex) {\r\n return null;\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(LocacaoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n pool.liberarConnection(con);\r\n }\r\n return resultado;\r\n }", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n viewDateAtual = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel17 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabProdVen = new javax.swing.JTable();\n addProd = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n bPesquisa = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox<>();\n\n setClosable(true);\n setForeground(java.awt.Color.black);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Venda\");\n\n jLabel3.setText(\"Data:\");\n\n jLabel5.setText(\"Cliente:\");\n\n jTextField1.setText(\"Nome do cliente\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel15.setText(\"Valor Total:\");\n\n jTextField7.setText(\"R$:\");\n\n jButton1.setText(\"Salvar\");\n\n jButton2.setText(\"Limpar\");\n\n jButton3.setText(\"Cancelar\");\n\n jLabel17.setText(\"VENDA\");\n\n tabProdVen.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Produto\", \"Quantidade\", \"Unidade\", \"Valor\"\n }\n ));\n tabProdVen.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jScrollPane1.setViewportView(tabProdVen);\n\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n bPesquisa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bPesquisaActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Forma de pagamento:\");\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Dinheiro\", \"Crédito\", \"Débito\", \"Cheque\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel5))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addComponent(viewDateAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 314, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(176, 176, 176)\n .addComponent(jLabel17))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(addProd, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(viewDateAtual, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addComponent(bPesquisa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(addProd))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n );\n\n pack();\n }", "public void alerta() {\r\n try {\r\n rs = modelo.Alerta();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel alerta = new DefaultTableModel() {//C.P.M Creamos el modelo de nuestra tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M le decimos que no seran editables los componetnes\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(alerta);//C.P.M le mandamos el modelo a la tabla de la vista\r\n modelo.estructuraAlrta(alerta);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos la informacion obtenida\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con el tamano de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y insertamos los valores que trajo del modelo\r\n }\r\n alerta.addRow(fila);//C.P.M agregamos el arreglo como una nueva fila dentro de la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al consultar los producto con alerta\");\r\n }\r\n }", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "public void setCodProd(IProduto codigo);", "public void alertasexistencia() {\r\n try {\r\n rs = modelo.alertaexistenciapro();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel tabla = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(tabla);//C.P.M le mandamos el modelo\r\n modelo.estructuraAlrta(tabla);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de las columnas de la consulta\r\n while (rs.next()) {\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con la cantidad de columnas \r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y agregamos la informacion de la consulta\r\n }\r\n tabla.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio algun error al consultar las alertas\");\r\n }\r\n }", "@Override\r\n public int createDetalleventa(Detalleventa dv) {\r\n sql = \"INSERT INTO public.detalle_venta(id_venta, item, igv, sub_total, descuento, id_producto_stock, cantidad, precio_unit) \"\r\n + \"VALUES(\"+dv.getId_venta()+\",\"+dv.getItem()+\",\"+dv.getIgv()+\",\"+dv.getSub_total()+\",\"+dv.getDescuento()+\",\"+dv.getId_producto_stock()+\",\"+dv.getCantidad()+\", \"+dv.getPrecio_unit()+\")\";\r\n return cx.performKeys(sql);\r\n }" ]
[ "0.6774045", "0.6659908", "0.6575948", "0.65391904", "0.6538935", "0.6479089", "0.64679486", "0.6424482", "0.6368855", "0.6283101", "0.6227033", "0.62218213", "0.6191298", "0.6159226", "0.6154608", "0.61457914", "0.61373705", "0.61319697", "0.61222506", "0.6110135", "0.60989565", "0.60976404", "0.6095914", "0.60743016", "0.60741025", "0.6068154", "0.6065113", "0.6051162", "0.60443395", "0.60274214", "0.6024691", "0.6014392", "0.60092676", "0.6008237", "0.60041314", "0.60025364", "0.5992564", "0.5992393", "0.5983064", "0.5975626", "0.59707636", "0.59609586", "0.5952477", "0.5950198", "0.5946799", "0.59295017", "0.59251404", "0.59232986", "0.5911775", "0.5910639", "0.58966625", "0.58937156", "0.5893122", "0.5890214", "0.5887448", "0.58785987", "0.5877319", "0.58680546", "0.5866171", "0.5865383", "0.5858979", "0.5855326", "0.58504266", "0.5847362", "0.5847042", "0.5845877", "0.58387774", "0.5838411", "0.5836057", "0.58354604", "0.58318335", "0.58316326", "0.5825574", "0.58254796", "0.5823684", "0.58199036", "0.58118993", "0.58118683", "0.5811785", "0.5809754", "0.58062565", "0.5802043", "0.57993096", "0.57968223", "0.5794986", "0.57914454", "0.57904065", "0.5788191", "0.5787868", "0.5785477", "0.5784203", "0.57740474", "0.5773804", "0.57710993", "0.57682276", "0.57584244", "0.5755272", "0.57522", "0.5751725", "0.5747299" ]
0.6266095
10
Objeto salvo na tbl_venda
public Venda(String codigoVenda, int quantidadeTotalVenda, int valorFrete, double valorTotalVenda, String dataVenda, int idEndereco, int idUsuario, int idStatus, int idPagamento) { this.codigoVenda = codigoVenda; this.quantidadeTotalVenda = quantidadeTotalVenda; this.valorFrete = valorFrete; this.valorTotalVenda = valorTotalVenda; this.dataVenda = dataVenda; this.idEndereco = idEndereco; this.idUsuario = idUsuario; this.idStatus = idStatus; this.idPagamento = idPagamento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal_vendido()});\n }\n \n \n }", "public ControleVendas() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) tabelaVendas.getModel();\n tabelaVendas.setRowSorter(new TableRowSorter(modelo));\n atualizarTabela();\n }", "public void carregarTableViewVendas() {\n\t\ttableColumnVendasCodigo.setCellValueFactory(new PropertyValueFactory<>(\"id_venda\"));\n\t\ttableColumnVendasData.setCellValueFactory(new PropertyValueFactory<>(\"data\"));\n\t\ttableColumnVendasVendedor.setCellValueFactory(new PropertyValueFactory<>(\"vendedor\"));\n\t\ttableColumnVendasTotal.setCellValueFactory(new PropertyValueFactory<>(\"total_venda\"));\n\n\t\tlistVendas = vendaDAO.listar();\n\n\t\tobservableListVendas = FXCollections.observableArrayList(listVendas);\n\t\ttableViewVendas.setItems(observableListVendas);\n\t}", "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroParcelas.setEnabled(false);\n jTextFieldValorVenda.setEnabled(false);\n jFormattedTextDataVenda.setEnabled(false);\n jTextFieldIDCliente.setEnabled(false);\n int idVenda1 = idVenda;\n buscarPressedEnter();\n\n if (idVenda != -1) {\n textFieldIDVenda.setText(\"\" + idVenda1);\n\n Connection connection;\n try {\n connection = new ConnectionFactory().getConnection();\n\n VendaDAO vendaDAO = new VendaDAO(connection);\n modeloVenda1 = vendaDAO.buscaPorId(Long.parseLong(String.valueOf(idVenda1)));\n\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ClienteDAO clienteDAO = new ClienteDAO(connection);\n ParcelaDAO parcelasDao = new ParcelaDAO(connection);\n List<ModeloParcela> modeloParcelas = new ArrayList<ModeloParcela>();\n\n if (null == pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())))) {\n\n } else {\n modeloPedido1 = pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())));\n\n idPedidoClasse = modeloPedido1.getId();\n viewProdutoPedidos = pedidoDAO.buscarPedidoproduto(Integer.parseInt(String.valueOf(idPedidoClasse)));\n modeloParcelas = parcelasDao.listaPorIdVenda(modeloVenda1.getId());\n listarParcelas(modeloParcelas);\n PreencherTabela();\n PreencherTabela2();\n }\n\n FuncionarioDAO funcionarioDAO = new FuncionarioDAO(connection);\n ModeloFuncionario modeloFuncionario = new ModeloFuncionario();\n\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n ModeloCliente modeloCliente = new ModeloCliente();\n modeloFuncionario = funcionarioDAO.buscaPorId(modeloVenda1.getIdfuncionario());\n modeloCliente = clienteDAO.buscaPorId(modeloVenda1.getIdcliente());\n System.out.println(modeloVenda1.getIdcliente());\n jTextFieldIDFuncionario.setText(\"\" + modeloFuncionario.getId());\n jTextFieldNomeFuncionario.setText(modeloFuncionario.getNome());\n jFormattedTextDataVenda.setText(format.format(modeloVenda1.getDataVenda()));\n\n jTextFieldIDCliente.setText(\"\" + modeloCliente.getId());\n jTextFieldNomeCliente.setText(\"\" + modeloCliente.getNome());\n jTextFieldNotaFiscal.setText(modeloVenda1.getNotaFiscal());\n\n jTextFieldValorVenda.setText(\"\" + modeloVenda1.getValorVenda());\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, ex);\n Logger.getLogger(VendaView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "public Ventas() {\n setIdVenta(1);\n setIdCliente(1);\n setFecha(new Date());\n setEstado(0); \n }", "Tablero consultarTablero();", "public int getDtVenda() {\n return dtVenda;\n }", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "public VentanaEmpleado()\n\t{\n\t\tinitComponents();\n\t\tm = ( DefaultTableModel ) tblEmpleado.getModel();\n\n\t\tcargarTablaDesdeBD();\n\t}", "private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }", "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public VVentasRecord(Integer idventa, String numerofactura, Date fecha, Integer idcliente, String nombre, String direccion, String telefono, String tipo, String tipodoc, BigDecimal total) {\n super(VVentas.V_VENTAS);\n\n set(0, idventa);\n set(1, numerofactura);\n set(2, fecha);\n set(3, idcliente);\n set(4, nombre);\n set(5, direccion);\n set(6, telefono);\n set(7, tipo);\n set(8, tipodoc);\n set(9, total);\n }", "private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }", "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "@Override\n\tpublic Ingresso BuscarIngressoPelaVenda(Venda venda) throws DBException {\n\t\treturn null;\n\t}", "public void clicTable(View v) {\n try {\n conteoTab ct = clc.get(tb.getIdTabla() - 1);\n\n if(ct.getEstado().equals(\"0\")) {\n String variedad = ct.getVariedad();\n String bloque = ct.getBloque();\n Long idSiembra = ct.getIdSiembra();\n String idSiempar = String.valueOf(idSiembra);\n\n long idReg = ct.getIdConteo();\n int cuadro = ct.getCuadro();\n int conteo1 = ct.getConteo1();\n int conteo4 = ct.getConteo4();\n int total = ct.getTotal();\n\n txtidReg.setText(\"idReg:\" + idReg);\n txtCuadro.setText(\"Cuadro: \" + cuadro);\n cap_1.setText(String.valueOf(conteo1));\n cap_2.setText(String.valueOf(conteo4));\n cap_ct.setText(String.valueOf(total));\n txtId.setText(\"Siembra: \" + idSiempar);\n txtVariedad.setText(\"Variedad: \" + variedad);\n txtBloque.setText(\"Bloque: \" + bloque);\n }else{\n Toast.makeText(this, \"No se puede cargar el registro por que ya ha sido enviado\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (Exception E) {\n Toast.makeText(getApplicationContext(), \"No has seleccionado aún una fila \\n\" + E, Toast.LENGTH_LONG).show();\n }\n }", "private void datos() {\n int row;\n row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n vista.txtNombre.setText(String.valueOf(vista.tblClientes.getValueAt(row, 1)));\n vista.txtApellido.setText(String.valueOf(vista.tblClientes.getValueAt(row, 2)));\n vista.txtDireccion.setText(String.valueOf(vista.tblClientes.getValueAt(row, 3)));\n vista.txtCorreo.setText(String.valueOf(vista.tblClientes.getValueAt(row, 4)));\n vista.txtClave.setText(String.valueOf(vista.tblClientes.getValueAt(row, 5)));\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }", "private DefaultTableModel getDatos3(){\n String folio = String.valueOf(venta.ns);\n //consulta sql\n String SQL_SELECT = \"SELECT p.Nombres,dv.Cantidad,dv.PrecioVenta FROM ventas v JOIN detalle_ventas dv ON v.IdVentas=dv.IdVentas JOIN producto p ON p.IdProducto=dv.IdProducto WHERE v.NumeroSerie = \"+folio+\"\";\n try {\n setTitutlos3();\n ps = con.getConnection().prepareStatement(SQL_SELECT);\n RS = ps.executeQuery();\n Object[] fila = new Object[3];\n while (RS.next()){\n fila[0] = RS.getString(1);\n fila[1] = RS.getInt(2);\n fila[2] = RS.getDouble(3);\n DT.addRow(fila);\n }\n //System.out.println(\"si hizo el desmadre\");\n } catch (SQLException e) {\n System.out.println(\"error en la tabla de ticket\");\n }\n \n return DT;\n \n }", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public ArrayList<ModelVenda> getListaVendasDAO(){\n ArrayList<ModelVenda> listamodelVendas = new ArrayList();\n ModelVenda modelVendas = new ModelVenda();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"codigo_venda,\"\n + \"fk_cliente_venda,\"\n + \"data_venda,\"\n + \"valor_venda\"\n + \" FROM\"\n + \" venda\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelVendas = new ModelVenda();\n modelVendas.setCodigoVenda(this.getResultSet().getInt(1));\n modelVendas.setClienteVenda(this.getResultSet().getInt(2));\n modelVendas.setDataVenda(this.getResultSet().getDate(3));\n modelVendas.setValorVenda(this.getResultSet().getDouble(4));\n listamodelVendas.add(modelVendas);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelVendas;\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public IVenda linhaToVenda(String linha, ICatCli catCli, ICatProd catProd);", "@Override\n public Venda Buscar(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n\n// transaction.commit();\n return v;\n }", "public void myFunction(Vendeur v) {\n \n \n \n String dateFromDB = v.getDate_naissance();\n int year=Integer.parseInt(dateFromDB.split(\"-\")[0]); \n int mounth=Integer.parseInt(dateFromDB.split(\"-\")[1]); \n int day=Integer.parseInt(dateFromDB.split(\"-\")[2]); \n \n id.setText(String.valueOf(v.getId()));\n nom.setText(v.getNom());\n prenom.setText(v.getPrenom());\n datedenaissance.setValue(LocalDate.of(year, mounth, mounth));\n sexe.getSelectionModel().select(v.getSexe());\n adresse.setText(v.getAdresse());\n ville.setText(v.getVille());\n zip.setText(String.valueOf(v.getZip()));\n email.setText(v.getEmail());\n cemail.setText(v.getEmail());\n password.setText(v.getMdp());\n cpassword.setText(v.getMdp());\n numerodetelephone.setText(v.getNt());\n situationfiscal.getSelectionModel().select(v.getSexe());\n rib.setText(v.getNumero_bancaire());\n eemail=v.getEmail();\n \n \n \n \n }", "public void setDtVenda(int dtVenda) {\n this.dtVenda = dtVenda;\n }", "public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}", "public void alertasexistencia() {\r\n try {\r\n rs = modelo.alertaexistenciapro();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel tabla = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(tabla);//C.P.M le mandamos el modelo\r\n modelo.estructuraAlrta(tabla);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de las columnas de la consulta\r\n while (rs.next()) {\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con la cantidad de columnas \r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y agregamos la informacion de la consulta\r\n }\r\n tabla.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio algun error al consultar las alertas\");\r\n }\r\n }", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "TblSecuencia findByIdSecuencia(long idSecuencia );", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "private void mostrar() {\n //DefaultTableModel m = new DefaultTableModel();\n m = new DefaultTableModel(){\n @Override\n public boolean isCellEditable(int row, int column) {\n if (column==6) {\n return true;\n }else{\n return false;\n }\n }\n \n };\n tr = new TableRowSorter(m);\n m.setColumnCount(0);\n m.addColumn(\"Id\");\n m.addColumn(\"Nombre\");\n m.addColumn(\"Apellido\");\n m.addColumn(\"Direccion\");\n m.addColumn(\"Correo\");\n m.addColumn(\"Clave\");\n for (ClienteVO cvo : cdao.consultarTabla()) {\n m.addRow(new Object[]{cvo.getId_cliente(),cvo.getNombre_cliente(),cvo.getApellido_cliente(),cvo.getDireccion_cliente(),cvo.getCorreo_cliente(),cvo.getClave_cliente()});\n }\n vista.tblClientes.setModel(m);\n vista.tblClientes.setRowSorter(tr);\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public static void realizarVenda(Venda venda) throws VendaException, DataSourceException { \n ValidadorVenda.validar(venda);\n try {\n //MockVenda.inserir(venda);\n VendaDAO.criar(venda);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DataSourceException(\"Erro na fonte de dados\", e);\n }\n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "public Asistencia(Investigador inv ) throws SQLException{\r\n this.inv = inv;\r\n Calendar now = Calendar.getInstance(); //trae el calendario\r\n horaEntrada = new Timestamp(now.getTime().getTime());\r\n horaSalida = null;\r\n this.ps = null;\r\n doEntrada(); //setea la id\r\n\r\n }", "public void buscaxnombre() {\r\n try {\r\n modelo.setNombre(vistabuscapro.jTvnombre.getText());//C.P.M le mandamos a el modelo el nombre para consultarlo\r\n rs = modelo.Buscarxnombre();//C.P.M ejecutamo el metodo del modelo y atrapamos el resultado\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M se establese el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M no sera editable\r\n return false;\r\n }\r\n };\r\n vistabuscapro.Tproductos.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"los encabeados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de el resultado\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un objeto con la cantidad de columnas obtenidas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos\r\n fila[i] = rs.getObject(i + 1);//C.P.M le agregamos la informacion obtenida\r\n }\r\n buscar.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por nombre\");\r\n }\r\n }", "public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }", "private void salvarVenda(String nomeCliente, double precoFinal, double desconto ,String mesAnoAt,String dataCompra,String formaDePagamento) {\n\n\t\tFirebaseAuth autenticacion = configFireBase.getFireBaseAutenticacao();\n\n\t\tString idUsuario = Base64Custom.codificarBase64(autenticacion.getCurrentUser().getEmail());\n\t\tDatabaseReference VendaRef=mDatabase.child(\"vendas\");\n\n\n\t\tvenda.setIdVenda(VendaRef.push().getKey());\n\t\tvenda.setNomeCliente(nomeCliente);\n\t\tvenda.setValorTotal(precoFinal);\n\t\tvenda.setMesAno(mesAnoAt);\n\t\tvenda.setDesconto(desconto);\n\t\tvenda.setDataCompra(dataCompra);\n\t\tvenda.setLista(ListagemDeProdutosParaCompras.produtosSelecionados);\n\t\tvenda.setFormaDePagamento(formaDePagamento);\n\n\t\tmDatabase.child(\"armazenamento\").child(idUsuario).child(\"vendas\").child(venda.getIdVenda()).setValue(venda).addOnCompleteListener(new OnCompleteListener<Void>() {\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(@NonNull Task<Void> task) {\n\n\t\t\t}\n\n\t\t});\n\n\t\tToast.makeText(CadastrarVendaActivity.this, \"Venda Realizada\", Toast.LENGTH_SHORT).show();\n\t\tstartActivity(new Intent(getApplicationContext(), ListagemDeVendasRealizadas.class));\n\t\tvenda.subtrairVendas();\n\n\t\tthis.finish();\n\t}", "Vaisseau createVaisseau();", "public String getIdVenta() {\n return idVenta;\n }", "@Override\n\tpublic SATipoVivienda generarSATipoVivienda() {\n\t\treturn new SATipoViviendaImp();\n\t}", "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"VieSociale [idVieSociale=\" + idVieSociale + \", dateDebut=\" + dateDebut + \", dateFin=\" + dateFin\r\n\t\t\t\t+ \", montant=\" + montant + \", idAdherent=\" + idAdherent + \"]\";\r\n\t}", "public void listar_mais_pedidos(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisPedidos.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisPedidos(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getQtd_pedido()});\n }\n \n \n }", "public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }", "private ArrayList<FornecedorModelo> iniciaTabela() {\n int i;\n DefaultTableModel model=(DefaultTableModel)tblFornecedor.getModel();\n // atribui 0 linhas à coluna\n model.setNumRows(0);\n // atribui um tamanho fixo a coluna codigo\n tblFornecedor.getColumnModel().getColumn(0).setPreferredWidth(2);\n ArrayList<FornecedorModelo> listaFornecedores = new ArrayList<FornecedorModelo>();\n listaFornecedores = new FornecedorControle().listarFornecedor();\n //adiciona alunos as tabelas\n for (i=0;i<=listaFornecedores.size()-1;i++){\n model.addRow(\n new Object[]{\n listaFornecedores.get(i).getCodFornecedor(),\n listaFornecedores.get(i).getNomeFantasia(),\n listaFornecedores.get(i).getRazaoSocial(),\n listaFornecedores.get(i).getEndereco(),\n listaFornecedores.get(i).getEmail(),\n listaFornecedores.get(i).getTelefone(),\n listaFornecedores.get(i).getCnpj(),\n Boolean.FALSE\n }\n );\n }\n return listaFornecedores;\n }", "public ObjetoVida getObjeto(){\r\n\t\treturn objeto;\r\n\t}", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public void calendario4Dias(JTable tabla,String categoria, String f1,String f2,String f3,String f4)\n {String [] columna ={\"Cedula\",\"Nombres\",f1,f2,f3,f4};\n String [] pesos=new String [4];\n String [] fechas=new String [4];\n fechas[0]=f1;\n fechas[1]=f2;\n fechas[2]=f3;\n fechas[3]=f4;\n \n int filas;\n DefaultTableModel encabezado=new DefaultTableModel (null,columna);\n \n tabla.setModel(encabezado);\n String[] entrenadorDtos2 = new String[3];\n String sql = \"select * from federado \";\n PreparedStatement sentencia_sql = null;\n ResultSet rs = null;\n try {sentencia_sql = miConexion.prepareStatement(sql);\n rs = sentencia_sql.executeQuery(sql);\n while (rs.next()) {\n entrenadorDtos2[0]= rs.getString(\"idfederado\");\n entrenadorDtos2[1]= rs.getString(\"nombres\")+\"\"+rs.getString(\"apellidos\");\n encabezado.addRow(entrenadorDtos2);}\n rs.close();}\n catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error en obtener los datos \" + e.getMessage());}\n \n /// llenar con peso\n filas=encabezado.getRowCount();\n String cedula,peso;\n for (int i = 0; i < filas; i++) {\n cedula=String.valueOf(encabezado.getValueAt(i, 0));\n for (int j = 0; j <= 3; j++) {\n sql = \"SELECT cargas.peso, cargas.serie \"+\n \"from federado, cargas, entrenamiento\" +\n \" where federado.idfederado=cargas.identrena and entrenamiento.idEntreno=cargas.idfede and cargas.fecha='\"+fechas[j]+\"' and federado.idfederado='\"+cedula+\"' and entrenamiento.tipo='\"+categoria+\"'\";\n \n PreparedStatement sentencia_sql2 = null;\n ResultSet rs2 = null;\n try {sentencia_sql2 = miConexion.prepareStatement(sql);\n rs2 = sentencia_sql2.executeQuery(sql);\n while (rs2.next()) {\n peso= rs2.getString(\"peso\")+\" \"+rs2.getString(\"serie\");\n encabezado.setValueAt(peso, i, j+2);\n }\n rs2.close();}\n catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error en obtener los datos \" + e.getMessage());} \n } \n }}", "public void llenarTabla(int inicio, int limite) {\n DefaultTableModel dtm = (DefaultTableModel) jTableVerRondas.getModel();//se usa DefaultTableModel para manipular facilmente el Tablemodel\n dtm.setRowCount(0);//eliminando la s filas que ya hay. para agregar desde el principio.\n //los datos se agregan la defaultTableModel.\n ArrayList<Partido> llenar = miOpenAustralia.getPartidos();//sacando al informacion a agregar en la tabla.\n\n //como se va a llenar una tabla de 5 columnas, se crea un vector de 3 elementos.\n //se usa un arreglo de Object para poder agregar a la tabla cualquier tipo de datos.\n Object[] datos = new Object[5];\n for (int i = inicio; i < limite; i++) {\n\n Partido parti = llenar.get(i);\n //Se agrega este if para evitar que el extraiga datos en un campo null\n if (parti != null) {\n\n datos[0] = parti.getId();\n datos[1] = parti.getFechaHora();//el primer elemetno del arreglo va a ser el id,la primera col en la Tabla.\n datos[2] = parti.getJugador1().getNombre();\n datos[3] = parti.getJugador2().getNombre();\n datos[4] = parti.getPista().getNombre();\n\n //agrego al TableModleo ese arreglo\n dtm.addRow(datos);\n }\n }\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public void activarVista(){\r\n\tvista.getVerVistaAutorObra().addActionListener(r->{\r\n\t\tCrearVista.crearVIstaAutorObra(con);\r\n\t\tvista.getTable().removeAll();\r\n\t\tlistaArte= new ArrayList<ObraArte>();\r\n\t\tlistaArte.removeAll(listaArte);\r\n\t\tlistaArte=SeleccionarDatosVista.getTodosRegistros(con);\r\n\t\ttableModelArteVista= new TableModelArteVista(listaArte, CABECERA);\r\n\t\tvista.getTable().setModel(tableModelArteVista);\r\n\t\tvista.getTxtBarraStatus().setText(\"VISTA CREADA. DICHA VISTA NO ES EDITABLE.\");\r\n\t\tvista.getButton_Modificar().setEnabled(false);\r\n\t\tvista.getButtonBorrar().setEnabled(false);\r\n\t\tvista.getMntmBorrarFila().setEnabled(false);\r\n\t\tvista.getButtonInsertarNuevo().setEnabled(false);\r\n\t\tvista.getLabelSize().setText(vista.getTable().getRowCount()+\" elementos.\");\r\n\t\t\r\n\t});\r\n}", "public PedidoRecord(Integer idPedido, Integer cliente, Date fecha, Boolean iva, String observaciones, Double total) {\n super(Pedido.PEDIDO);\n\n set(0, idPedido);\n set(1, cliente);\n set(2, fecha);\n set(3, iva);\n set(4, observaciones);\n set(5, total);\n }", "public Cliente() {\n setUndecorated(true);\n initComponents();\n jLabel7.setText(\"Usted Cuenta con: \"+ connecion.dinero);\n llenarTablaReservaciones(jTableMostrarReserva,\"FK_Usuario\");\n// jTableMostrarReserva.removeColumn(jTableMostrarReserva.getColumn(\"Id\"));\n// jTableMostrarReserva.removeColumn(jTableMostrarReserva.getColumn(\"Id\"));\n connecion.MostarTEsta(\"ID_Estado\", \"1\");\n this.setSize(848, 512);\n this.setLocationRelativeTo(null);\n \n }", "public DefaultTableModel buscarlotes() {\n \n String encabezados[]= {\"Nombre\",\"Codigo\",\"Lote\",\"Vencimiento\",\"Dias Restantes\"};\n Control.ControlLote c = new Control.ControlLote();\n List<Modelo.Lotes> lotes = null;\n \n try {\n lotes = c.buscarlote();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AgregarStock.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n Long resta;//para saber cuanto queda de vencimiento\n java.util.Date fechaActual = new Date(); \n \n String [][] data = new String[lotes.size()][5];\n for (int i = 0; i < lotes.size(); i++) {\n \n resta=lotes.get(i).getVencimiento().getTime()-fechaActual.getTime();\n long dias = (resta / (1000 * 60 * 60 * 24))+1;\n \n \n data[i][0] = lotes.get(i).getNombre();\n data[i][1] = Long.toString(lotes.get(i).getCodigo());\n data[i][2] = lotes.get(i).getLote();\n data[i][3] = lotes.get(i).getVencimiento().toString();\n if(dias<1)\n data[i][4] = (\"Vencido\");\n else{\n data[i][4] = Long.toString(dias);\n }\n\n }\n\n jTable1.setDefaultRenderer (Object.class, new MiRender());\n \n return new DefaultTableModel(data,encabezados);\n }", "private void preencherTabelaVeiculoCarga() {\n\n ArrayList dados = new ArrayList();\n cargaDao = new CargaDao();\n Carga carga;\n String[] colunas = new String[]{\"ID\", \"DESCRICAO\", \"STATUS\"};\n\n try {\n final List<Object> listaCarga = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n\n if (listaCarga != null && listaCarga.size() > 0) {\n for (Object cargaAtual : listaCarga) {\n carga = (Carga) cargaAtual;\n dados.add(new Object[]{carga.getIdCarga(), carga.getDescricao(), carga.getStatus()});\n }\n }\n\n ModeloTabela modTabela = new ModeloTabela(dados, colunas);\n jTB_VeiculoCarga.setModel(modTabela);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setPreferredWidth(300);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setPreferredWidth(150);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setResizable(false);\n\n jTB_VeiculoCarga.getTableHeader().setReorderingAllowed(false);\n jTB_VeiculoCarga.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTB_VeiculoCarga.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n jTB_VeiculoCarga.addMouseListener(new MouseAdapter() {\n\n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n List<Object> lista = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n cargaSelecionada = (Carga) lista.\n get(jTB_VeiculoCarga.convertRowIndexToModel(jTB_VeiculoCarga.getSelectedRow()));\n\n // if (veiculoDao.listarVeiculosAtivos().size() > 0 && veiculoDao.listarVeiculosAtivos() != null) {}\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(FormVeiculoCargas.this, \"Erro genérico1: \" + ex.getMessage());\n ex.printStackTrace(System.err);\n }\n }\n\n });\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro genérico2: \" + e.getMessage());\n }\n }", "public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public IFilialAux vendaToFilial();", "public Venda(int idVenda, int idProduto, int quantidadeUnitarioProduto) {\r\n this.idVenda = idVenda;\r\n this.idProduto = idProduto;\r\n this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;\r\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}", "public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }", "Movimiento selectByPrimaryKey(Integer idMovCta);", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public DatosInvitado() {\n\t\tsuper(MensajesVentanas.ventanaActiva);\n\t\tinitialize();\n\n\t\tjButtonAceptar.addActionListener(this);\n\t\tjButtonAceptar.addKeyListener(this);\n\t\tjButtonCancelar.addActionListener(this);\n\t\tjButtonCancelar.addKeyListener(this);\n\t\tjTextField.addKeyListener(this);\n\t\tjTextPane.addKeyListener(this);\n\t\t\n\t\tif(CR.meVenta.getVenta() != null && CR.meVenta.getVenta().getCliente().getNombreCompleto() != null){\n\t\t\tgetJTextField().setText(CR.meVenta.getVenta().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}else if(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getCliente()!=null){\n\t\t\tgetJTextField().setText(CR.meServ.getListaRegalos().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}\n\t\t\n\t\tif(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getDedicatoria()!=null)\n\t\t\tjTextPane.setText(CR.meServ.getListaRegalos().getDedicatoria());\n\t}", "public void setFecha_Venta(String fecha_Venta) {\n this.fecha_Venta = fecha_Venta;\n }", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "public Vista() {\n initComponents();\n modelo = new DefaultTableModel();\n listamascota = new ArrayList<>();\n\n }", "public void ActaulizarTabla() {\n int id = Integer.parseInt(txtId.getText());\n int unidad = Integer.parseInt(txtUsuario.getText());\n String placa = txtCorreo.getText();\n\n try {\n PreparedStatement ps = null;\n ResultSet rs = null;\n Conexion obj_con = new Conexion();\n Connection con = obj_con.getConexion();\n String SQL = \"UPDATE `carros` SET `nro_unidad`=?,`placa`=?,`color`=?,`id_marca`=?,`id_modelo`=?,`cant_puestos`=?,`ano_unidad`=?,`estatus_table`=?,`id_estado_actual`=? WHERE `id_unidad`=?\";\n ps = con.prepareStatement(SQL);\n\n ps.setInt(1, unidad);////////////////////////////YA///////////////////////\n ps.setString(2, placa);\n ps.setInt(10, id);\n System.out.println(ps);\n ps.execute();\n JOptionPane.showMessageDialog(null, \"Registro Modificado Exitosamente\");\n //limpiar();\n this.dispose();\n tabla.setVisible(true);\n //tabla.cargarDatos(); \n \n int Fila = tabla.jTableVehiculos.getSelectedRow();\n /*obtener el nro de fila sellecioando*/\n System.out.println(Fila);\n Object[] filas = new Object[7]; //OBJETO PARA CREAR FILA NUEVA GUARDADA EN LA TABLA\n filas[0] = txtUsuario.getText();\n filas[1] = txtCorreo.getText();\n \n modelTable.addRow(filas);\n tabla.jTableVehiculos.setModel(modelTable);\n \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error al guardar registro\");\n System.err.println(e.toString());\n } \n }", "public void setCodigo_venda(int pCodigoVenda){\n this.codigoVenda = pCodigoVenda;\n }", "public void alerta() {\r\n try {\r\n rs = modelo.Alerta();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel alerta = new DefaultTableModel() {//C.P.M Creamos el modelo de nuestra tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M le decimos que no seran editables los componetnes\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(alerta);//C.P.M le mandamos el modelo a la tabla de la vista\r\n modelo.estructuraAlrta(alerta);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos la informacion obtenida\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con el tamano de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y insertamos los valores que trajo del modelo\r\n }\r\n alerta.addRow(fila);//C.P.M agregamos el arreglo como una nueva fila dentro de la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al consultar los producto con alerta\");\r\n }\r\n }", "Videogioco findVideogiocoById(int id);", "public Venda() {\n }", "public DefaultTableModel pedidosListado(){\r\n List<Pedido> lista =pedidos.listarPedidos();\r\n return Convertidor.PedidoToTableModelMin(lista);\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "public List<ItemVenda> getItemVenda(Lancamento lancamento) {\r\n\r\n List<ItemVenda> resultado = new ArrayList<ItemVenda>();\r\n Connection con = pool.getConnection();\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n String sqlSelect = \"SELECT \\n\" +\r\n \" *\\n\" +\r\n \"FROM\\n\" +\r\n \" (SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PRODUTO AS CODIGO_PRODUTO,\\n\" +\r\n \" D.NOME_PRODUTO AS DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PRODUTO D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PRODUTO_CODIGO_PRODUTO = D.CODIGO_PRODUTO UNION ALL SELECT \\n\" +\r\n \" A.CODIGO_LANCAMENTO,\\n\" +\r\n \" D.CODIGO_PACOTE_PROMOCIONAL AS CODIGO_PRODUTO,\\n\" +\r\n \" D.DESCRICAO,\\n\" +\r\n \" C.QUANTIDADE,\\n\" +\r\n \" C.PRECO_TOTAL,\\n\" +\r\n \" C.PRECO_UNITARIO,\\n\" +\r\n \" C.TYPE_PRODUCT\\n\" +\r\n \" FROM\\n\" +\r\n \" LANCAMENTO A, VENDA B, ITEM_VENDA C, PACOTE_PROMOCIONAL D\\n\" +\r\n \" WHERE\\n\" +\r\n \" A.VENDA_CODIGO_VENDA = B.CODIGO_VENDA\\n\" +\r\n \" AND B.CODIGO_VENDA = C.VENDA_CODIGO_VENDA\\n\" +\r\n \" AND C.PACOTE_PROMOCIONAL_CODIGO_PACOTE_PROMOCIONAL = D.CODIGO_PACOTE_PROMOCIONAL) AS CONSULTA\\n\" +\r\n \" WHERE CODIGO_LANCAMENTO = ?\";\r\n\r\n try {\r\n ps = con.prepareStatement(sqlSelect);\r\n ps.setInt(1, lancamento.getCodigo_lancamento());\r\n\r\n rs = ps.executeQuery();\r\n\r\n resultado = getListaItensVenda(rs);\r\n\r\n ps.close();\r\n } catch (ParseException ex) {\r\n return null;\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(LocacaoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n pool.liberarConnection(con);\r\n }\r\n return resultado;\r\n }", "public Venda(int idProduto, double valorUnitarioProduto, int quantidadeUnitarioProduto, double valorTotalProduto, int idEndereco, double valorFrete, int idPagamento) {\r\n this.idProduto = idProduto;\r\n this.valorUnitarioProduto = valorUnitarioProduto;\r\n this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;\r\n this.valorTotalProduto = valorTotalProduto;\r\n this.idEndereco = idEndereco;\r\n this.valorFrete = valorFrete;\r\n this.idPagamento = idPagamento;\r\n }", "public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public VentasGUI() {\n initComponents();\n btnEliminarVenta.setEnabled(false);\n tablaVentasDefault = (DefaultTableModel) tablaVentas.getModel();\n tablaProductosDefault = (DefaultTableModel) tablaProductos.getModel();\n\n \n \n txtDesde.setToolTipText(\"Ver ventas desde la fecha\");\n txtDesde.setDateFormatString(\"dd/MM/yyyy\");\n txtHasta.setToolTipText(\"Ver ventas hasta la fecha\");\n txtHasta.setDateFormatString(\"dd/MM/yyyy\");\n txtDesde.getDateEditor().setEnabled(false);\n txtHasta.getDateEditor().setEnabled(false);\n txtHasta.setDate(Calendar.getInstance().getTime());\n\n SimpleDateFormat formatoDelTexto = new SimpleDateFormat(\"dd/MM/yyyy\");\n String strFecha = \"01/01/2015\";\n Date fecha = null;\n try {\n\n fecha = formatoDelTexto.parse(strFecha);\n\n } catch (ParseException ex) {\n\n ex.printStackTrace();\n\n }\n txtDesde.setDate(fecha);\n }", "public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}", "public void listarutilizador() {\n \n \n List<Utilizador> cs =new UtilizadorJpaController().findUtilizadorEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeutilizador.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Utilizador c : cs) {\n tbm.addRow(new String[1]);\n listadeutilizador.setValueAt(c.getIdutilizador(), i, 0);\n listadeutilizador.setValueAt(c.getNome(), i, 1);\n listadeutilizador.setValueAt(c.getUtilizador(), i, 2);\n listadeutilizador.setValueAt(c.getIdprevilegio().getPrevilegio(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// Distrito di = new DistritoJpaController().getDistritoByLoc(f.getIdlocalidade());\n// Localidade lo = new LocalidadeJpaController().findLocalidade(f.getIdlocalidade());\n// listaderelatorio.setValueAt(di.getDistrito(), i, 0);//lo.getIdposto().getIddistrito().getDistrito(), i, 0);\n// listaderelatorio.setValueAt(lo.getLocalidade(), i, 1);\n \n//// listadeformando.setValueAt(f.getSexo(), i, 2);\n// listaderelatorio.setValueAt(f.getQhomem(), i, 2);\n// listaderelatorio.setValueAt(f.getQmulher(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// \n// \n i++;\n }\n \n \n \n }", "public void limpiarcarrito() {\r\n setTotal(0);//C.P.M limpiamos el total\r\n vista.jTtotal.setText(\"0.00\");//C.P.M limpiamos la caja de texto con el formato adecuado\r\n int x = vista.Tlista.getRowCount() - 1;//C.P.M inicializamos una variable con el numero de columnas\r\n {\r\n try {\r\n DefaultTableModel temp = (DefaultTableModel) vista.Tlista.getModel();//C.P.M obtenemos el modelo actual de la tabla\r\n while (x >= 0) {//C.P.M la recorremos\r\n temp.removeRow(x);//C.P.M vamos removiendo las filas de la tabla\r\n x--;//C.P.M y segimos disminuyendo para eliminar la siguiente \r\n }\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al limpiar la venta\");\r\n }\r\n }\r\n }" ]
[ "0.6953625", "0.68755054", "0.6816847", "0.6798281", "0.6794865", "0.6721765", "0.66080683", "0.657117", "0.6570226", "0.65419006", "0.6498764", "0.6473636", "0.64666885", "0.64042294", "0.6370643", "0.6360809", "0.63476896", "0.6341352", "0.6293113", "0.62902814", "0.628017", "0.6275366", "0.62733054", "0.62363476", "0.6235458", "0.62041336", "0.6202039", "0.6200891", "0.6193816", "0.61774105", "0.61657816", "0.6143567", "0.6137353", "0.6135709", "0.6134005", "0.61325383", "0.6130968", "0.61205894", "0.6120278", "0.61145294", "0.61129916", "0.61010945", "0.6097405", "0.6092373", "0.6086236", "0.6078042", "0.6076937", "0.6073444", "0.60733694", "0.6065411", "0.60646576", "0.6057475", "0.6049824", "0.6042925", "0.60403603", "0.6040217", "0.6036813", "0.60277694", "0.60154974", "0.600679", "0.60059404", "0.60059404", "0.60059404", "0.60059404", "0.6001953", "0.5998626", "0.5985089", "0.5980047", "0.59780836", "0.5977771", "0.5973987", "0.5971838", "0.5970845", "0.5963891", "0.59628606", "0.5955837", "0.59515256", "0.5949931", "0.59457874", "0.59375554", "0.5928341", "0.59279054", "0.59277093", "0.59205705", "0.5919596", "0.5919421", "0.59149027", "0.59126824", "0.59089416", "0.59070957", "0.59067273", "0.59066385", "0.5906408", "0.5904115", "0.59006476", "0.58923715", "0.58891845", "0.58806705", "0.58793545", "0.58770114" ]
0.6333164
18
add an applicationlevel listener to receive messages from the server (as in replies to requests).
public void addListener(CommListener listener) { comm.addListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMessageListener(SocketListener sl_arg){\n\t\tsl = sl_arg;\n\t}", "@Override\n\tpublic void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) {\n\n\t}", "public int addListener(Value listener) {\n\n IApplication adapter = new IApplication() {\n private boolean execute(Value jsObject, String memberName, Object... args) {\n if (jsObject == null)\n return true;\n Value member = jsObject.getMember(memberName);\n if (member == null) {\n return true;\n }\n Value result = plugin.executeInContext(member, app);\n return result != null && result.isBoolean() ? result.asBoolean() : true;\n }\n\n @Override\n public boolean appStart(IScope app) {\n return execute(listener, \"appStart\", app);\n }\n\n @Override\n public boolean appConnect(IConnection conn, Object[] params) {\n return execute(listener, \"appConnect\", conn, params);\n }\n\n @Override\n public boolean appJoin(IClient client, IScope app) {\n return execute(listener, \"appJoin\", client, app);\n }\n\n @Override\n public void appDisconnect(IConnection conn) {\n execute(listener, \"appDisconnect\", conn);\n }\n\n @Override\n public void appLeave(IClient client, IScope app) {\n execute(listener, \"appLeave\", client, app);\n }\n\n @Override\n public void appStop(IScope app) {\n execute(listener, \"appStop\", app);\n }\n\n @Override\n public boolean roomStart(IScope room) {\n return execute(listener, \"roomStart\", room);\n }\n\n @Override\n public boolean roomConnect(IConnection conn, Object[] params) {\n return execute(listener, \"roomConnect\", conn, params);\n }\n\n @Override\n public boolean roomJoin(IClient client, IScope room) {\n return execute(listener, \"roomJoin\", client, room);\n }\n\n @Override\n public void roomDisconnect(IConnection conn) {\n execute(listener, \"roomDisconnect\", conn);\n }\n\n @Override\n public void roomLeave(IClient client, IScope room) {\n execute(listener, \"roomLeave\", client, room);\n }\n\n @Override\n public void roomStop(IScope room) {\n execute(listener, \"roomStop\", room);\n }\n };\n this.app.addListener(adapter);\n this.listeners.add(adapter);\n return this.listeners.indexOf(adapter);\n }", "public void listen()\n {\n service = new BService (this.classroom, \"tcp\");\n service.register();\n service.setListener(this);\n }", "private void addMessageListener(TransportAddress localAddr, MessageTypeEventHandler<?> messageListener) {\n EventDispatcher child = children.get(localAddr);\n if (child == null) {\n child = new EventDispatcher();\n children.put(localAddr, child);\n }\n child.addMessageListener(messageListener);\n }", "public interface OnReceiveListener {\n\n /**\n * Called when client receives a message.\n * @param response received message.\n */\n void onReceive( String response );\n }", "@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }", "public void addAnalysisServerListener(AnalysisServerListener listener);", "void subscribeReceiveListener(IDataReceiveListener listener);", "public void addConnectionListener(ConnectionListener listener);", "private void createAndListen() {\n\n\t\t\n\t}", "public void addMessageReceivedEventListener(ILogCatMessageEventListener l) {\n mLogCatMessageListeners.add(l);\n }", "public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}", "public void startListening();", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "public void addRequestListener(RequestListener listener) {\n addMessageListener(new RequestListenerMessageEventHandler(listener));\n }", "public Client addListener(ClientListener listener);", "void onListeningStarted();", "public void addRequestListener(TransportAddress localAddr, RequestListener listener) {\n addMessageListener(localAddr, new RequestListenerMessageEventHandler(listener));\n }", "public void addGetMessagesListener(XMPPConnection connection){\n\t PacketFilter filter = new MessageTypeFilter(Message.Type.chat);\n connection.addPacketListener(new PacketListener() {\n @Override\n public void processPacket(Packet packet) {\n Message message = (Message) packet;\n if (message.getBody() != null) {\n String fromName = StringUtils.parseBareAddress(message.getFrom());\n Log.i(\"XMPPChatDemoActivity \", \" Text Recieved \" + message.getBody() + \" from \" + fromName);\n messages.add(fromName + \":\");\n messages.add(message.getBody());\n // Add the incoming message to the list view\n mHandler.post(new Runnable() {\n public void run() {\n setListAdapter();\n }\n });\n }\n }\n }, filter);\n }", "public void add(ConnectionListener connectionListener) throws ServerException;", "public interface Listener {\n\n public void onRecievedCustomBroadCast(String msg);\n}", "public interface ApplicationListener extends EventListener {\n\n /**\n * Handle an application event\n *\n * @param e event to respond to\n */\n void onApplicationEvent(ApplicationEvent e);\n\n}", "public void addMessageListener(final TidyMessageListener listener)\n {\n this.listener = listener;\n }", "boolean addConnectionListener(LWSConnectionListener lis);", "@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }", "public static void startServer() {\n clientListener.startListener();\n }", "public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param msg Command/message as String\n\t */\n\tpublic void OnMessageReceived(String msg);\n\t\n\t/**\n\t * Called when new file is incoming.\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileIncoming(int length);\n\t\n\t/**\n\t * Called when more data of a file has been transfered\n\t * @param data Byte array of data received\n\t * @param read The lenght of the data received as int\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileDataReceived(byte[] data,int read, int length, int downloaded);\n\t\n\t/**\n\t * Called when file transfer is complete\n\t * @param got\n\t * @param expected\n\t */\n\tpublic void OnFileComplete();\n\t\n\t/**\n\t * Called when an error occur\n\t */\n\tpublic void OnConnectionError();\n\t\n\t/**\n\t * Called when socket has connected to the server\n\t */\n\tpublic void OnConnectSuccess();\n}", "public void addMessageListener(MessageListener listener)\n {\n if(!messageListeners.contains(listener))\n messageListeners.add(listener);\n }", "void onReceive(Message message) throws IOException {\n server.onReceive(message);\n }", "public void addListener(MoocListener listener) {\n\n\t\ttry {\n\t\t\t logger.info(\"add listener in MoocChannel is called and its \"+handler);\n\t\t\thandler.addListener(listener);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"failed to add listener\", e);\n\t\t}\n\t}", "@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}", "void addListener(BotListener l);", "@Override\r\n\t\tpublic ApplicationListener createApplicationListener() {\n\t\t\treturn new FishchickenGame();\r\n\t\t}", "public TcpClient(OnMessageReceived listener) {\n\n messageListener = listener;\n }", "public void addConversationListener(ConversationListener<? super E> listener);", "public abstract void listen(ServiceConfig serviceConfig) throws IOException;", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "void initAndListen() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t// Startuje nowy watek z odbieraniem wiadomosci.\n\t\t\t\tnew ClientHandler(clientSocket, this);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Accept failed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "void subscribe(LogListener listener);", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "public static void addApplicationListener (I_ApplicationListener aApplicationListener)\n\t{\n\t\tif (!applicationListeners.contains (aApplicationListener))\n\t\t{\n\t\t\tapplicationListeners.addElement (aApplicationListener);\n\t\t\trebuildApplicationListeners = true;\n\t\t}\n\t}", "public void listen() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tDatagramPacket packet = new DatagramPacket(recieveData, MAX_SIZE);\n\t\t\tint available = 0;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//The 'receive(...)' method fills up the buffer of the packet we passed into it with the data received\n\t\t\t\tmainSocket.receive(packet);\n\t\t\t\t//available = packet.getLength();\n\t\t\t\tbyte[] data = packet.getData();\n\t\t\t\t\n\t\t\t\tif(data[0] == HEADER && data[1] == CONNECTION)\n\t\t\t\t\tif(askUser(packet, available))\n\t\t\t\t\t\tmakeClientThread();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(PortUnreachableException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"PortUnreachableException caught in server side.\\n Unable to recieve packet\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"1. IOException Caught in server side.\\n Unable to vertify user\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void listen() throws IOException {\n listen(Thread.currentThread());\n }", "Move listen(IListener ll);", "public void setMessageListener(BeaterMessageListener l) {\n\t\tthis.listener = l;\n\t}", "private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void subscribeToEvents(Listener listener);", "public void OnMessageReceived(String msg);", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "public void Listen() {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//reconstruct byte array for receiving\r\n\t\t\treceiveData = new byte[5192];\r\n\t\t\t\r\n\t\t\t//receive a packet!\r\n\t\t\tserverSocket.receive(packet = new DatagramPacket(receiveData, receiveData.length));\r\n\t\t\t\r\n\t\t\t//translate into a string and print to console\r\n\t\t\tString output = new String(packet.getData());\r\n\t\t\t//address = serverSocket.getInetAddress();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tNetConsole.window.addText(output, false);\r\n\t\t\t\r\n\t\t\t//deconstruct array so remnants of last commands don't get shown. \r\n\t\t\treceiveData = null;\r\n\t\t\tpacket = null;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t\t\r\n\t}", "public abstract void addServiceListener(PhiDiscoverListener listener);", "public void addListener(EventListener listener);", "void addListener(IEventChannelListener<K, V> listener);", "public void addListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;", "public interface IServerResponseListener {\n\n\t/**\n\t * Receive requested \n\t * \n\t * @param requestId the same id number as the request* method that caused\n\t * \tthis request returned\n\t * @param data raw data, allways a List<RequestedModelType>\n\t */\n\tpublic void onServerResponse(int requestId, Object data);\n\t\n}", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "private void addPresenceListener() {\n StanzaTypeFilter presenceFilter = new StanzaTypeFilter(Presence.class);\n\n connection.addAsyncStanzaListener(new StanzaListener() {\n @Override\n public void processPacket(Stanza packet) throws SmackException.NotConnectedException {\n Presence presence = (Presence) packet;\n String username = presence.getFrom();\n username = TextUtils.split(username, \"@\")[0];\n String status = Presence.Type.available.equals(((Presence) packet).getType())\n ? \"online\" : \"offline\";\n if (rosterListener != null) {\n rosterListener.presenceCallback(username, status);\n }\n }\n }, presenceFilter);\n }", "public void addMessageListener(AdHocChatRoomMessageListener listener)\n {\n synchronized (messageListeners)\n {\n if (!messageListeners.contains(listener))\n messageListeners.add(listener);\n }\n }", "public synchronized void addListener(PeerMessageListener ml)\n\t{\n\t\t_ml = ml;\n\t\tdequeueMessages();\n\t}", "public void listen() throws IOException {\n\t\twhile(true){\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString responseFromServer = serverReader.readLine();\n\t\t\tJOptionPane.showMessageDialog(null, responseFromServer);\n\t\t}\n\t}", "void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }", "protected void bindListener() {\n locationManager= TencentLocationManager.getInstance(this);\n int error = locationManager\n .requestLocationUpdates(\n TencentLocationRequest\n .create().setInterval(3000)\n .setRequestLevel(\n TencentLocationRequest.REQUEST_LEVEL_ADMIN_AREA), this);\n\n switch (error) {\n case 0:\n Log.e(\"location\", \"成功注册监听器\");\n break;\n case 1:\n Log.e(\"location\", \"设备缺少使用腾讯定位服务需要的基本条件\");\n break;\n case 2:\n Log.e(\"location\", \"manifest 中配置的 key 不正确\");\n break;\n case 3:\n Log.e(\"location\", \"自动加载libtencentloc.so失败\");\n break;\n\n default:\n break;\n }\n }", "public static void listen(HistoryListener hl) {\n\t\tlisteners.add(hl);\n\t}", "void addSessionListener(SessionListener listener);", "@Override\n\tpublic void getListener(){\n\t}", "private void runServer() {\n while(true) {\n try {\n SSLSocket socket = (SSLSocket)listener.accept();\n\n this.establishClient(socket);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public interface ClientListener {\n\t/**\n\t * Fired when client list should be updated\n\t * \n\t * @param clients Array of clients\n\t */\n void onClientsUpdated(String[] clients);\n \n /**\n * Fired when a message has been received\n * \n * @param message Message that was received\n */\n void onMessageReceived(Message message);\n \n /**\n * Fired when client has been disconnected from server\n */\n void onDisconnected();\n}", "public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}", "public void startListener() throws IOException {\n\t\tthis.listener = new ServerSocket(this.port);\n\n Runnable serverThread = new Runnable() {\n @Override\n public void run() {\n try {\n System.out.println(\"Waiting for clients to connect...\");\n\n while (true) {\n \t// Wait for connections\n Socket newSocket = listener.accept();\n\n // Init new peer and add it to our list\n PeerCommunicator newCommunication = new PeerCommunicator(id, \"\", newSocket);\n activePeers.add(newCommunication);\n\n // Span new thread\n Thread clientThread = new Thread(new ReceivedConnection(newCommunication, fm));\n clientThread.start();\n }\n } catch (Exception e) {\n System.err.println(\"Unable to process incoming client\");\n e.printStackTrace();\n }\n }\n };\n\n // Start it up\n (new Thread(serverThread)).start();\n\n // Once everything's good, mark server as running\n //this.status = Status.RUNNING;\n\t}", "private void setListener() {\n\t}", "public String listen(){\t\n\t\tSystem.out.println(\"Server lauscht.\");\n\t\treturn receiveString();\n\t}", "@FunctionalInterface\npublic interface ServerBecomesAvailableListener extends GloballyAttachableListener {\n\n /**\n * This method is called every time a server became unavailable.\n *\n * @param event The event.\n */\n void onServerBecomesAvailable(ServerBecomesAvailableEvent event);\n}", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "public void notifyServerListening() {\r\n nui.notifyHostListening();\r\n }", "public void onReceive();", "private void addMessageListener(MessageTypeEventHandler<?> messageListener) {\n if (!messageListeners.contains(messageListener)) {\n messageListeners.add(messageListener);\n }\n }", "public static void main(String[] args) {\n Runnable taskUDP = () -> {\n try {\n RMListener();\n } catch (Exception e) {\n e.printStackTrace();\n }\n };\n new Thread(taskUDP).start();\n System.out.println(\"Replica Manager3 is ready and listening\");\n }", "private Response handleAddNotificationListener(final RequestAddNotificationListener request) {\n // Listener\n final NotificationSender notificationSender = new NotificationSender(request.getNotificationListenerId(),\n request.getName());\n\n // Check access\n try {\n accessController.checkAccess(subject, \"addNotificationListener\", new Object[]{request.getName(), notificationSender, request.getFilter(), null});\n } catch (final SecurityException e) {\n LOGGER.log(Level.WARNING, \"No access to: addNotificationListener\", e);\n return new Response(request.getRequestId(), new SecurityException(\"Illegal access\"));\n }\n\n // Invoke\n try {\n mBeanServer.addNotificationListener(request.getName(), notificationSender, request.getFilter(), null);\n notificationSenders.add(notificationSender);\n return new Response(request.getRequestId(), null);\n } catch (final OperationsException e) {\n return new Response(request.getRequestId(), e);\n }\n }", "public void InitListener()\n {\n Intent listener = new Intent(this, SmsListener.class);\n listener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startService(listener);\n }", "@Override\n public void onMessage(Context context, Intent intent) {\n \tNoteApplication app = (NoteApplication) getApplication();\n \tapp.notifyListener(intent);\n }", "private void listen() {\n\t\ttry {\n\t\t\tServerSocket servSocket = new ServerSocket(PORT);\n\t\t\tSocket clientSocket;\n\t\t\twhile(true) {\n\t\t\t\tclientSocket = servSocket.accept();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error - Could not open connection\");\n\t\t}\n\t\t\n\t}", "void onMessageReceived(Message message);", "public ReplicationEventListener() {\n // connect to both the process and storage cluster\n this.hzClient = HazelcastClientFactory.getStorageClient();\n // get references to the system metadata map and events queue\n this.systemMetadata = this.hzClient.getMap(systemMetadataMap);\n // listen for changes on system metadata\n this.systemMetadata.addEntryListener(this, true);\n log.info(\"Added a listener to the \" + this.systemMetadata.getName() + \" map.\");\n this.replicationTaskRepository = ReplicationFactory.getReplicationTaskRepository();\n // start replication manager\n ReplicationFactory.getReplicationManager();\n }", "public void startListener() throws BindException, Exception{ // NOPMD by luke on 5/26/07 11:10 AM\n\t\tsynchronized (httpServerMutex){\n\t\t\t// 1 -- Shutdown the previous instances to prevent multiple listeners\n\t\t\tif( webServer != null )\n\t\t\t\twebServer.shutdownServer();\n\t\t\t\n\t\t\t// 2 -- Spawn the appropriate listener\n\t\t\twebServer = new HttpServer();\n\t\t\t\n\t\t\t// 3 -- Start the listener\n\t\t\twebServer.startServer( serverPort, sslEnabled);\n\t\t}\n\t}", "public void addChatListener(ChatListener listener){\r\n super.addChatListener(listener);\r\n\r\n if (listenerList.getListenerCount(ChatListener.class) == 1){\r\n setDGState(Datagram.DG_PERSONAL_TELL, true);\r\n setDGState(Datagram.DG_PERSONAL_QTELL, true);\r\n setDGState(Datagram.DG_SHOUT, true);\r\n setDGState(Datagram.DG_CHANNEL_TELL, true);\r\n setDGState(Datagram.DG_CHANNEL_QTELL, true);\r\n setDGState(Datagram.DG_KIBITZ, true);\r\n }\r\n }", "public interface CommunicationEventListener extends EventListener {\n // Ajoute un handler\n boolean handleServerResponse(String response);\n}", "void addListener(RosZeroconfListener listener);", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "void onNewMessage(String message);", "public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}", "public void addListener(@NotNull ReceiverListener listener) {\n myListeners.add(listener);\n }", "protected void installListeners() {\n\n\t}", "public interface MessageListener {\n\n\t/*\n\t *\tCalled on message reception after sending message\n\t *\tif a response is received\n\t *\n\t *\t@param message The message response\n\t *\t@param replyTo The replyTo destination (null for no reply)\n\t */\n\tpublic void onMessage(Message message, URI replyTo) throws MMPMessageException;\n}", "private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }", "public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}", "public void addReceiverMessageListener(String type, ReceiverMessageListener listener) {\n ReceiverMessageDispatcher.getInstance(receiver).addMessageListener(type, listener);\n }", "@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }", "public interface RecivMessageCallBack {\n\n\tpublic List<AppServerType> getServerType();\n\n\tpublic void onRecivMessage(Channel ctx, NettyMessage message, String tag, JsonParser parser)throws UnsupportedEncodingException;\n}" ]
[ "0.6770818", "0.66756076", "0.6518579", "0.6461353", "0.63458544", "0.6330864", "0.6325686", "0.62993973", "0.62214786", "0.6122037", "0.60794646", "0.60603696", "0.60456246", "0.60392547", "0.60312593", "0.6029598", "0.6022335", "0.60095316", "0.6000972", "0.5979026", "0.5978944", "0.59634054", "0.59423137", "0.5933372", "0.5922656", "0.5907785", "0.58885705", "0.5859934", "0.58410907", "0.5808322", "0.5807651", "0.58024853", "0.5800709", "0.5787794", "0.57722056", "0.5761968", "0.5758561", "0.57478094", "0.57325864", "0.57301116", "0.57226276", "0.5712636", "0.57106584", "0.5703665", "0.57018936", "0.5684145", "0.56780696", "0.56740904", "0.567064", "0.566456", "0.56504834", "0.56461", "0.5612274", "0.56120306", "0.5609625", "0.56004995", "0.5595426", "0.5589379", "0.5577384", "0.55765146", "0.5568356", "0.5565325", "0.5564913", "0.5554476", "0.5554453", "0.555151", "0.55443805", "0.5541113", "0.5533683", "0.55325127", "0.5523437", "0.55232704", "0.552088", "0.5520511", "0.55147463", "0.551068", "0.5509505", "0.5505428", "0.5504349", "0.5500303", "0.5498778", "0.54973155", "0.5488604", "0.5487039", "0.5483991", "0.54771453", "0.5472333", "0.54683363", "0.5466651", "0.5466396", "0.5466396", "0.54629403", "0.54615927", "0.54516363", "0.5450651", "0.5449548", "0.5448758", "0.544366", "0.54383975", "0.54379934", "0.54318565" ]
0.0
-1
Our network's equivalent to ping
public void poke(String tag, int num) { // data to send Ping.Builder f = eye.Comm.Ping.newBuilder(); f.setTag(tag); f.setNumber(num); // payload containing data Request.Builder r = Request.newBuilder(); eye.Comm.Payload.Builder p = Payload.newBuilder(); p.setPing(f.build()); r.setBody(p.build()); // header with routing info eye.Comm.Header.Builder h = Header.newBuilder(); h.setOriginator("client"); h.setTag("test finger"); h.setTime(System.currentTimeMillis()); h.setRoutingId(eye.Comm.Header.Routing.PING); r.setHeader(h.build()); eye.Comm.Request req = r.build(); try { comm.sendMessage(req); } catch (Exception e) { logger.warn("Unable to deliver message, queuing"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ping();", "public static void ping() {}", "public static void ping() {}", "@Override\n public String ping() {\n return super.ping();\n }", "public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }", "boolean ping(String asker);", "public Future<Boolean> ping() throws DynamicCallException, ExecutionException {\n return call(\"ping\");\n }", "public boolean ping() throws RemoteException;", "public boolean Ping() throws RemoteException;", "public void ping() {\n JsonNode rootNode = get(\"ping\");\n\n // TODO verify that the response was \"Pong!\"\n JsonNode dataNode = rootNode.get(\"data\");\n String pong = dataNode.asText();\n }", "public Boolean ping() throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"ping\").get();\n }", "public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean isOnline() {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean isNetworkReachable();", "public String getPing() {\r\n return ping;\r\n }", "public void ping() throws IOException {\r\n\t\t//Pings the server\r\n\t\tthis.send(\"!ping\");\r\n\t\t//Updates the time since the ping\r\n\t\ttimeSincePing = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Ping!\");\r\n\t}", "public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }", "@Override\n\tpublic String ping() {\n\t\treturn null;\n\t}", "public boolean isPing()\n {\n return _isPing;\n }", "public void\n ping() {\n }", "public long getPing()\n\t{\n\t\t\n\t\treturn clientPing;\n\t\t\n\t}", "@GET\n @Path(\"/ping\")\n\tpublic Response ping() {\n\t\tlog.debug(\"Ping check ok\");\n return Response.status(Response.Status.OK).entity(1).build();\n \n\t}", "public int getPing ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn extract ( handle -> getPing ( ) );\n\t}", "public void ping() throws RemoteException{\n return;\n }", "public int pingHost(String host, int timeout) throws IOException,\n InterruptedException {\n Runtime runtime = Runtime.getRuntime();\n timeout /= 1000;\n String cmd = \"ping -c 5 -W \" + timeout + \" \" + host;\n Process proc = runtime.exec(cmd);\n LibreLogger.d(this,\"Ping Result : \" + cmd);\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(proc.getInputStream()));\n int read;\n char[] buffer = new char[4096];\n StringBuffer output = new StringBuffer();\n while ((read = reader.read(buffer)) > 0) {\n output.append(buffer, 0, read);\n }\n reader.close();\n LibreLogger.d(this,\"Ping result\" + output.toString()+ \"For URL\" + host);\n proc.waitFor();\n int exit = proc.exitValue();\n return exit;\n }", "public String determinePing(String ip) {\r\n if(ip.isEmpty()) {\r\n System.out.println(\"PING NOT AVAILABLE\");\r\n ping = \"Not Available\";\r\n return ping;\r\n }\r\n \r\n String command = \"ping \" + ip;\r\n\r\n try{\r\n Process proc = Runtime.getRuntime().exec(command);\r\n BufferedReader input = new BufferedReader(new InputStreamReader(proc.getInputStream()));\r\n String line;\r\n while((line = input.readLine()) != null) {\r\n if(line.length() > 0 && line.contains(\"time=\")) {\r\n System.out.println(line);\r\n input.close();\r\n String timeString = line.substring(line.indexOf(\"time\"));\r\n String time = timeString.substring(timeString.indexOf(\"=\") + 1, timeString.indexOf(\"ms\") + 2);\r\n ping = time;\r\n return ping;\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n return \"SERVERS ON FIRE\";\r\n }", "private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}", "public static boolean pingIp(String ipAddress) throws IOException, InterruptedException{\n\t String cmd = \"ping \" + ipAddress;\n\t Runtime runTime = Runtime.getRuntime();\n\t Process process = runTime.exec(cmd);\n\t process.waitFor();\n\t return process.exitValue()==0;\n\t }", "private native String simplePing(int sessionId, String name, String pingStr);", "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "public void ping(){\r\n\t\t uSensor.ping();\r\n\t }", "public static ServerStatus ping(String address) {\n MCPingOptions options = getPingOptions(address);\n Instant timestamp = Instant.now();\n MCPingResponse ping = null;\n\n try {\n ping = MCPing.getPing(options);\n } catch (IOException e) {\n //TODO differentiate between different types of exceptions, i.e. UnknownHostException,\n log.error(\"Error while pinging Minecraft server\", e);\n }\n\n return new ServerStatus(address, ping, ping != null, timestamp);\n }", "public boolean pingServer() {\n WifiMouseApplication.KnownServer selected = WifiMouseApplication.getSelectedServer();\n if(this.server.name != selected.name || this.server.bluetooth != selected.bluetooth)\n return false;\n\n sendStringOverNetwork(\"PING\", true);\n //Log.d(\"Waiting for ping...\", \"count: \"+(++count) +\", sessionIv: \"+sessionIV);\n String response = readStringFromNetwork(true);\n //Log.d(\"PingResponse\", \" \"+response);\n\n return response.equals(\"PING\");\n }", "public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "public boolean isHostReachable(String sIPAddress) {\n try {\n\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping \" + sIPAddress);\n int iRetVal = p1.waitFor();\n if (iRetVal == 0) {\n return true;\n } else {\n return false;\n }\n\n //InetAddress inet = InetAddress.getByName(sIPAddress);\n //return (inet.isReachable(5000) ? true : false);\n } catch (Exception e) {\n return false;\n }\n }", "public String getPingQuery()\n {\n return _pingQuery;\n }", "public Thread asyncPing() {\n Gson gson = new Gson();\n PingMessage pingMessage = new PingMessage(\"ping\");\n return new Thread(() -> {\n try {\n while (!socket.isClosed() && !Command.checkError()) {\n Command.sendMessage(gson.toJson(new MessageEnvelope(MessageType.PING, gson.toJson(pingMessage, PingMessage.class)), MessageEnvelope.class));\n Thread.sleep(500);\n }\n } catch (InterruptedException e) {\n view.showError(\"Error ping thread interrupted\");\n }\n });\n }", "private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }", "public static void main(String[] args) throws Exception\n {\n if (args.length != 2)\n {\n System.out.println(\"You need to inform host and port. (PingClient host port)\");\n return;\n } else {\n System.out.println(\"\\nHost: \"+args[0]+\"\\nPort number: \"+args[1]+\"\\n\");\n }\n \n // Get host by his name\n InetAddress host = InetAddress.getByName(args[0]);\n \n // Get informed port\n int portNumber = Integer.parseInt(args[1]);\n \n // Create a datagram socket used for sending and recieving packets\n DatagramSocket socket = new DatagramSocket();\n socket.setSoTimeout(1000);\n\n // Start loop to send packets \n for (int i = 0; i < 20; i++)\n {\n // Create ping message \n long sent_time = System.currentTimeMillis();\n String ping_message = pingMessage(i);\n\n // Create send packet\n DatagramPacket send_packet =\n new DatagramPacket(ping_message.getBytes(), ping_message.length(), host, portNumber);\n\n //Send ping request\n socket.send(send_packet);\n System.out.print(ping_message);\n\n //Datagram packet for the server response\n DatagramPacket receive_packet =\n new DatagramPacket(new byte[1024], 1024);\n\n //Wait for ping response\n try\n {\n // Response received\n socket.receive(receive_packet);\n long received_time = System.currentTimeMillis();\n System.out.println(\"Response received from \"+\n receive_packet.getAddress().getHostAddress() + \" \"+\"(time=\" + (received_time - sent_time) + \"ms)\");\n }\n // Catch timeout exception\n catch (SocketTimeoutException e)\n {\n System.out.println(\"Timeout\");\n }\n // Catch other exceptions\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return;\n }\n\n }\n }", "private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }", "boolean isNetworkAvailable();", "public PingMessage receivePing()\n {\n Date date = new Date();\n String dateString = String.format(\"%tc\", date);\n byte recvBuf[] = new byte[PACKET_SIZE];\n DatagramPacket recvPacket = \n\t new DatagramPacket(recvBuf, PACKET_SIZE);\n PingMessage reply = null;\n try\n {\n socket.receive(recvPacket);\n System.out.println(\"Received packet from \" + recvPacket.getAddress()\n + \" \" + recvPacket.getPort() + \" \" + dateString);\n String recvMsg = new String(recvPacket.getData());\n\t reply = new PingMessage(recvPacket.getAddress(),\n recvPacket.getPort(), recvMsg);\n }\n catch (Exception ex)\n {\n System.out.println(\"receivePing...java.net.SocketTimeoutException: \" +\n \"Receive timed out\");\n }\n return reply;\n }", "@Override\n\tpublic void ping() {\n\t\t//respond to ping with pong\n\t\tlastPing = System.currentTimeMillis();\n\t\tthis.writeNow(\"type:pong;\");\n\t}", "public void ping(boolean lastPing) {\n\n\t\tSystem.out.println(\"Host is sending a ping...\");\n\t\t\n\t\ttry {\n\t\t\tDatagramSocket pingSocket = new DatagramSocket(Constants.Network.HOST_UDP_PORT);\n\n\t\t\tfor(ClientConnection cc : clients.values()) {\n\n\t\t\t\tInetAddress address = cc.addr;\n\t\t\t\tint port = cc.udpPort; \n\n\t\t\t\tSystem.out.println(\"Sending ping to \" + address.toString() + \":\" + port);\n\n\t\t\t\tlong currentTime = System.currentTimeMillis();\n\n\t\t\t\tbyte[] buf = new byte[9];\n\n\t\t\t\t//byte[] buf = Utils.longToBytes(currentTime);\n\n\t\t\t\tboolean successfulReceipt = false;\n\n\t\t\t\twhile(! successfulReceipt ) {\n\n\t\t\t\t\t// If this is the last ping, we set the last byte to be our LAST_PING flag, and \n\t\t\t\t\t// tell the client how much they should buffer before playing.\n\t\t\t\t\tif(lastPing) {\n\t\t\t\t\t\tbuf[8] = Constants.Network.STOP_WAITING_FOR_PINGS;\n\n\t\t\t\t\t\tlong bufferingAmount = calculateInitialBufferTimeForClient(cc, bufferTime);\n\n\t\t\t\t\t\tUtils.inPlaceLongToBytes(bufferingAmount, buf);\n\n\t\t\t\t\t\tSystem.out.println(\"Telling client to set initial buffering time to \" + bufferingAmount);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, port);\n\t\t\t\t\t\tpingSocket.send(packet);\n\n\n\t\t\t\t\t\tpingSocket.setSoTimeout((int) (cc.averageLatencyInMillis() + 1000));\n\t\t\t\t\t\tDatagramPacket receipt = new DatagramPacket(buf, buf.length);\n\t\t\t\t\t\tpingSocket.receive(receipt);\n\t\t\t\t\t\tsuccessfulReceipt = true;\n\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\tSystem.out.println(\"Did not receive a response in \" + (cc.averageLatencyInMillis() + 1000) + \" ms, trying again...\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tlong timeDifference = (System.currentTimeMillis() - currentTime) / 2;\n\n\t\t\t\tSystem.out.println(\"Host reported a time difference of \" + timeDifference + \" milliseconds from \" + cc.addr);\n\n\t\t\t\tcc.addLatencyNumber((System.currentTimeMillis() - currentTime) / 2);\n\t\t\t}\n\n\t\t\tpingSocket.close();\n\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif(lastPing)\n\t\t\tSystem.out.println(\"Host done sending pings.\");\n\n\t}", "public TestPing(boolean request) {\n\t\tthis.request = request;\n\t\tp = new Ping(request);\n\t}", "public static boolean ping(String... varargs) {\n\t\t// setting the default value when argument's value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\tsessionID = sessionId(sessionID);\n\t\tString url = apiUrl(sessionID, false) + \"Ping?sessionID=\" + PMA.pmaQ(sessionID);\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tcon.setRequestProperty(\"Accept\", \"application/json\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\treturn jsonString.equals(\"true\") ? true : false;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "public interface NetworkCallbacks {\n boolean pingResponse(boolean isUp);\n}", "public boolean getPingOnIdle()\n {\n return _isPing;\n }", "public interface IPingStratedy {\n\n boolean pingServer();\n}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.397 -0400\", hash_original_method = \"FC9A66B03EDC591DD9B38410E60AAA0B\", hash_generated_method = \"575EBCA96DF418DE2A7F2DFD0BCD9A9A\")\n \n public static boolean pingCommand(){\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }", "public Attributes getPingBytes() { return this.pingBytes; }", "@RequestMapping(value = \"/ping\", produces = \"text/plain\")\n public String ping() {\n return \"OK\";\n }", "public void checkNetworkStatus() {\n if (this.mCheckNetworkStateTask == null) {\n this.mCheckNetworkStateTask = new CheckNetworkStateTask(this);\n this.mCheckNetworkStateTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ArrayList[]{this.mServerList});\n }\n }", "public void run() {\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"before job: \" + PingServersEndpoint.status.get( usertoken ) );\r\n\t\tint count = 0;\r\n\t\t\r\n\t\t// grab the ip range\r\n\t\tlong startIp = PingThreadJob.ipToLong( ip_start );\r\n\t\tlong endIp = PingThreadJob.ipToLong( ip_end );\r\n\t\tlong currentIp = startIp;\r\n\t\t\r\n\t\t\r\n\t\twhile( PingServersEndpoint.status.get( usertoken ) && (currentIp <= endIp) ) {\r\n\t\t\tcount++;\r\n\t\t\r\n\t\t\t\r\n\t\t\t// find the range we want to \r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Loop count : \" + count );\r\n\t\t\tSystem.out.println(\"Found check : \" + PingServersEndpoint.status.get( usertoken ));\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString currentIp_string = PingThreadJob.longToIp( currentIp );\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tPingJob job = new PingJob();\r\n\r\n\t\t\tLong ping = job.ping( currentIp_string, port );\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tJSONObject resultPayload = new JSONObject();\r\n\t\t\t\t\r\n\t\t\t\tresultPayload.put(\"pingstatus\", \"good\" );\r\n\t\t\t\tresultPayload.put( \"ip\", currentIp_string );\r\n\t\t\t\tresultPayload.put( \"ip_num\", currentIp );\r\n\t\t\t\tresultPayload.put(\"port\", \"port\" );\r\n\t\t\t\t\r\n\t\t\t\tif( ping != null ) {\r\n\t\t\t\t\tresultPayload.put(\"accepting\", true );\r\n\t\t\t\t\tresultPayload.put( \"ping\", ping );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tresultPayload.put(\"accepting\", false );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsession.getBasicRemote().sendText( resultPayload.toString() );\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\ttry {\r\n//\t\t\t\tThread.sleep(2000);\r\n//\t\t\t} catch (InterruptedException e) {\r\n//\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\te.printStackTrace();\r\n//\t\t\t} \r\n\t\t\t\r\n\t\t\tcurrentIp++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Final count : \" + count );\r\n\t}", "public void ping(long timeout) {\n //prepearing test message\n \n writeRoutingLabel(sltm, 0,0,link.sls,dpc,opc);\n sltm[0] = (byte) 0xC1; // 1100 0001\n sltm[5] = 0x11;\n sltm[6] = (byte) (SLTM_PATTERN.length << 4);\n System.arraycopy(SLTM_PATTERN, 0, sltm, 7, SLTM_PATTERN.length);\n \n //sending test message\n link.queue(sltm);\n \n //incremeting number of tries.\n tryCount++;\n \n //scheduling timeout\n testFuture = mtpTimer.schedule(this, timeout, TimeUnit.SECONDS);\n if (logger.isDebugEnabled()) {\n \tlogger.debug(String.format(\"(%s) Test request, try number = %d\", link.name, tryCount));\n }\n }", "protected boolean pingFromMaster(String who) throws Throwable {\n Log.INFO(\"Attempting to ping \" + who + \" from the master node\");\n if (runSystemCommand(\n SSH_ROOT + adminVIP +\" \\\"\"+ PING + \" \" + who + \"\\\"\" ))\n {\n Log.INFO(who + \" is pingable\");\n return true;\n } else {\n Log.ERROR(who + \" is not pingable\");\n return false;\n }\n }", "public boolean IsReachable(Context context) {\n final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n final NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n boolean isReachable = false;\n\n if (netInfo != null && netInfo.isConnected()) {\n // Some sort of connection is open, check if server is reachable\n try {\n URL url = new URL(\"http://\"+ipAddress);\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setRequestProperty(\"User-Agent\", \"Android Application\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(10 * 2000);\n urlc.connect();\n isReachable = (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n //Log.e(TAG, e.getMessage());\n }\n }\n\n return isReachable;\n }", "public long getPingInterval()\n {\n return _pingInterval;\n }", "public interface PingHost {\n IcmpV4EchoReplyPacket ping(String host);\n}", "public void sendPing(PingMessage ping)\n {\n InetAddress host = ping.getIP();\n int port = ping.getPort();\n String msg = ping.getPayload();\n try\n {\n DatagramPacket packet = \n new DatagramPacket(msg.getBytes(), msg.length(), host, port);\n socket.send(packet);\n } \n catch (Exception ex)\n {\n System.out.println(\"UDPPinger Exception: \" + ex);\n }\n }", "public static String getWANIP() {\n URL whatismyip = null;\n BufferedReader in = null;\n try {\n \twhatismyip = new URL(\"http://checkip.amazonaws.com\");\n in = new BufferedReader(new InputStreamReader(whatismyip.openStream()));\n String ip = in.readLine();\n return ip;\n } catch (IOException e) {\n \treturn \"No internet.\";\n\t\t}\n }", "public void pingToClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n try {\n socketOut.writeObject(\"\");\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }\n });\n t.start();\n }", "private static boolean pingURL(String url, int timeout) {\n try {\n HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();\n connection.setConnectTimeout(timeout);\n connection.setReadTimeout(timeout);\n connection.setRequestMethod(\"HEAD\");\n int responseCode = connection.getResponseCode();\n return (200 <= responseCode && responseCode <= 399);\n } catch (IOException exception) {\n return false;\n }\n }", "public String status(String host, String port) {\n\t\tString target = \"\";\n\t\tSocket sock = null;\n\t\ttry {\n\t\t\tString tmp = \"\";\n\t\t\tif (port.contains(\"/\")) {\n\t\t\t\ttmp = port.split(\"/\")[0];\n\t\t\t} else {\n\t\t\t\ttmp = port;\n\t\t\t}\n\t\t\tsock = new Socket(host, Integer.parseInt(tmp));\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Socket[\" + host + \":\" + port + \"] connect refused\");\n\t\t\treturn \"death\";\n\t\t}\n\t\tBufferedReader reader = null;\n\t\tOutputStream outstream = null;\n\t\ttry {\n\t\t\toutstream = sock.getOutputStream();\n\t\t\toutstream.write(\"stat\".getBytes());\n\t\t\toutstream.flush();\n\t\t\tsock.shutdownOutput();\n\n\t\t\treader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tif (line.indexOf(\"Mode: \") != -1) {\n\t\t\t\t\ttarget = line.replaceAll(\"Mode: \", \"\").trim();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLOG.error(\"Read ZK buffer has error,msg is \" + ex.getMessage());\n\t\t\treturn \"death\";\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t\tif (reader != null) {\n\t\t\t\t\treader.close();\n\t\t\t\t}\n\t\t\t\tif (outstream != null) {\n\t\t\t\t\toutstream.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLOG.error(\"Close read has error,msg is \" + ex.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t}", "void nodeOnline();", "public boolean getPingOnReuse()\n {\n return _isPing;\n }", "@Test\r\n public void ipConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }", "@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();", "@Override\n\tpublic synchronized void ping() {\n\t\tDatagramPacket packet = table.toDatagramPacket();\n\t\tfor(Router routerSendingTo : listOfRouters){\n\t\t\tInetSocketAddress dstAddress = new InetSocketAddress(DEFAULT_DST_NODE, routerSendingTo.getPort());\n\t\t\tpacket.setSocketAddress(dstAddress);\n\t\t\ttry {\n\t\t\t\tsocket.send(packet);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"172.19.16.233\", 5056));\r\n \r\n\t\t// Now change port to 8081 and you should see failure\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"localhost\", 8080));\r\n \r\n\t\t// Connect to Crunchify.com on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.com\", 80));\r\n \r\n\t\t// Connection to crunchify.me on port 81\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 81));\r\n \r\n\t\t// Connection to crunchify.me on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 80));\r\n\r\n String ARP_GET_IP_HW = \"arp -a\";\r\n\r\n \r\n\r\n System.out.println(getARPTable(ARP_GET_IP_HW ));\r\n\r\n\t}", "public boolean isNetworkAvailable() {\n initNetwork();\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n}", "public boolean isNetworkUp() {\r\n return networkOK;\r\n }", "public final void mo6817a(String str) {\n HttpURLConnection httpURLConnection;\n try {\n String valueOf = String.valueOf(str);\n C0633h.m5664a(valueOf.length() == 0 ? new String(\"Pinging URL: \") : \"Pinging URL: \".concat(valueOf));\n httpURLConnection = (HttpURLConnection) new URL(str).openConnection();\n C0341h.m5274a();\n String str2 = this.f8968a;\n httpURLConnection.setConnectTimeout(Felica.MAX_TIMEOUT);\n httpURLConnection.setInstanceFollowRedirects(true);\n httpURLConnection.setReadTimeout(Felica.MAX_TIMEOUT);\n if (str2 != null) {\n httpURLConnection.setRequestProperty(\"User-Agent\", str2);\n }\n httpURLConnection.setUseCaches(false);\n C0632g gVar = new C0632g();\n gVar.mo6813a(httpURLConnection, (byte[]) null);\n int responseCode = httpURLConnection.getResponseCode();\n gVar.mo6812a(httpURLConnection, responseCode);\n if (responseCode < 200) {\n }\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 65);\n sb.append(\"Received non-success response code \");\n sb.append(responseCode);\n sb.append(\" from pinging URL: \");\n sb.append(str);\n C0633h.m5672d(sb.toString());\n httpURLConnection.disconnect();\n } catch (IndexOutOfBoundsException e) {\n String message = e.getMessage();\n StringBuilder sb2 = new StringBuilder(String.valueOf(str).length() + 32 + String.valueOf(message).length());\n sb2.append(\"Error while parsing ping URL: \");\n sb2.append(str);\n sb2.append(\". \");\n sb2.append(message);\n C0633h.m5672d(sb2.toString());\n } catch (IOException e2) {\n String message2 = e2.getMessage();\n StringBuilder sb3 = new StringBuilder(String.valueOf(str).length() + 27 + String.valueOf(message2).length());\n sb3.append(\"Error while pinging URL: \");\n sb3.append(str);\n sb3.append(\". \");\n sb3.append(message2);\n C0633h.m5672d(sb3.toString());\n } catch (RuntimeException e3) {\n String message3 = e3.getMessage();\n StringBuilder sb4 = new StringBuilder(String.valueOf(str).length() + 27 + String.valueOf(message3).length());\n sb4.append(\"Error while pinging URL: \");\n sb4.append(str);\n sb4.append(\". \");\n sb4.append(message3);\n C0633h.m5672d(sb4.toString());\n } catch (Throwable th) {\n httpURLConnection.disconnect();\n throw th;\n }\n }", "protected boolean NetworkAviable() {\n\t\t\tConnectivityManager cm =(ConnectivityManager)contextyeild.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t \t try{\n\t\t \t\t \n\t\t \t \t//new OnGetPondsdata().execute();\n\t\t \t }catch(Exception e){\n\t\t \t\t e.printStackTrace();\n\t\t \t }\n\t\t \t \t\n\t\t return true;\t\t \n\t\t }\n\t\t else{ \n\t\t \t\n\t\t \t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(contextyeild, \"No internet connection\", Toast.LENGTH_SHORT).show();\t\t\t\t\t\n\t\t }\n\t\t return false;\n\t\t\t}", "public int getNetworkPFOutputTraffic() { return networkPFOutputTraffic; }", "private static Pair<KademliaNode, Boolean> pingGRPC(KademliaNode myNode, KademliaNode node){\n// logger.log(Level.INFO, \"Sending PING RPC to \" + node);\n\n ManagedChannel channel = ManagedChannelBuilder.forTarget(node.getIpAddress() + \":\" + node.getPort()).usePlaintext().build();\n AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel);\n// AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel).withDeadlineAfter(KademliaUtils.networkTimeoutMsecs, TimeUnit.MILLISECONDS);\n\n KademliaNodeProto response;\n\n try {\n response = blockingStub.ping(KademliaUtils.KademliaNodeToKademliaNodeProto(myNode));\n } catch (StatusRuntimeException e) {\n// logger.log(Level.WARNING, \"PING RPC failed for \" + node.getIpAddress() + \":\" + node.getPort() + \" - \" + e.getStatus());\n logger.log(Level.WARNING, \"PING RPC failed for \" + node);\n closeChannel(channel);\n return new Pair(null, false);\n }\n\n\n KademliaNode nodeInResponse = KademliaUtils.KademliaNodeProtoToKademliaNode(response);\n\n if (!Arrays.equals(node.getNodeID(), nodeInResponse.getNodeID())) {\n logger.log(Level.WARNING, \"Response returned with different nodeID\");\n closeChannel(channel);\n return new Pair(nodeInResponse, false);\n }\n\n closeChannel(channel);\n\n// logger.log(Level.INFO, \"Successfully sent PING RPC to \" + node);\n return new Pair(nodeInResponse, true);\n }", "public ModelApiResponse ping() throws AuthenticationApiException {\n try {\n return authenticationApi.ping();\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error during keep alive ping\", e);\n }\n }", "ServiceResponse<String> acquireMostBusyServerIp();", "@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString deviceVersion = Build.VERSION.RELEASE;\n\t\t\tif (deviceVersion.contentEquals(\"4.3\")) {\n//\t\t\t\tLog.d(\"log\", \"Jelly Bean\");\n\t\t\t\tNetworkInfo localNetworkInfo = ((ConnectivityManager) getSystemService(\"connectivity\"))\n\t\t\t\t\t\t.getActiveNetworkInfo();\n\t\t\t\tif ((localNetworkInfo != null) && (localNetworkInfo.isConnectedOrConnecting())) {\n\t\t\t\t\treturn \"true\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n//\t\t\t\tLog.d(\"log\", \"No Jelly Bean\");\n\t\t\t\tString bool = \"false\";\n\t\t\t\ttry {\n\t\t\t\t\tProcess p1 = java.lang.Runtime.getRuntime().exec(\"/system/bin/ping -c 1 www.searchcarpools.com\");\n\t\t\t\t\tint returnVal = p1.waitFor();\n\t\t\t\t\tif (returnVal == 0) {\n\t\t\t\t\t\tbool = \"true\";\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Log.i(\"log\", \"Network Status after doInBackGround: \" +\n\t\t\t\t// netWorking);\n\t\t\t\treturn bool;\n\t\t\t}\n\t\t\treturn \"false\";\n\t\t}", "public SolrPingResponse ping() throws SolrServerException, IOException {\n return new SolrPing().process(this);\n }", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "boolean isReachable(byte[] target, byte[] source);", "public void sendPing(byte[] data) {\n final Payload payload = new Payload(OPCODE_PING, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }", "public void receiveResultping(\n com.xteam.tourismpay.PFTMXStub.PingResponse result) {\n }", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "@GetMapping(\"ping\")\n public String ping() {\n return \"pong\";\n }", "void asyncEventPing();", "public abstract void ping(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);", "public void ping(int moteID) {\n\t\tmote.ping(moteID);\n\t}", "private boolean ifNet() {\n \t\t\n \t\tConnectivityManager connectivity = (ConnectivityManager) this\n \t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tif (connectivity != null) {\n \t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n \t\t\tif (info != null)\n \t\t\t\tfor (int i = 0; i < info.length; i++)\n \t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n\n \t\t}\n \t\treturn false;\n \t}", "public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }", "public int g() {\n try {\n if (this.h == null) {\n this.h = (ConnectivityManager) this.b.getApplicationContext().getSystemService(\"connectivity\");\n }\n NetworkInfo activeNetworkInfo = this.h.getActiveNetworkInfo();\n if (activeNetworkInfo != null) {\n if (activeNetworkInfo.isConnected()) {\n return activeNetworkInfo.getType() == 1 ? 2 : 1;\n }\n }\n } catch (Exception unused) {\n }\n return 0;\n }", "public boolean getByName(String name){\n\t\t\n\t\ttry {\n\t\t\n\t\t\n\t\tInetAddress address = InetAddress.getByName(name);\n\t\t\n\t\treturn address.isReachable(3000);\n\t\t \n\t\t }\n\t catch (UnknownHostException e) {\n\t System.err.println(\"Unable to lookup \"+name);\n\t return false;\n\t }\n\t catch (IOException e) {\n\t System.err.println(\"Unable to reach \"+name);\n\t return false;\n\t }\n\t}", "protected boolean isValidPing(final String path) {\n return \"/ping\".equals(path);\n }", "public boolean checkServer() {\n boolean result = false;\n \n int url = 195885416; //Using www.vg.no for now. There might be a problem in the ip-format, but we'll know more after testing.\n if(isNetworkAvailable()) {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n \n if(cm.requestRouteToHost(ConnectivityManager.TYPE_WIFI, url)) {\n result = true;\n } else if(cm.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, url)) {\n result = true;\n }\n }\n \n return result;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }", "public PingToInternet(String ip)throws IllegalArgumentException, UnknownHostException, IOException {\r\n\t\tsetIp(ip);\r\n\t}" ]
[ "0.8182322", "0.7572776", "0.7572776", "0.74539006", "0.7396804", "0.7359288", "0.72047687", "0.7107047", "0.7003843", "0.695754", "0.6942168", "0.68713915", "0.68669355", "0.6816827", "0.6794988", "0.67769134", "0.67526186", "0.67232245", "0.6716543", "0.66833156", "0.659244", "0.6586763", "0.6534295", "0.649695", "0.64474463", "0.64076215", "0.6399684", "0.6391737", "0.6365664", "0.62986183", "0.62975025", "0.62841374", "0.62684125", "0.6242027", "0.62299645", "0.6193691", "0.6185659", "0.6126481", "0.60703194", "0.60230017", "0.6018685", "0.60178494", "0.59946287", "0.59855676", "0.5956867", "0.5934477", "0.5917299", "0.5911741", "0.5911159", "0.5866358", "0.58466506", "0.5838771", "0.58241814", "0.5812297", "0.579911", "0.5766942", "0.57447505", "0.57437056", "0.57302284", "0.57227206", "0.5716769", "0.57027435", "0.56928635", "0.56796634", "0.5676244", "0.56638557", "0.56491405", "0.5639783", "0.5623807", "0.5595583", "0.55936456", "0.55904055", "0.55794746", "0.55609715", "0.55601877", "0.55464476", "0.55180717", "0.55136585", "0.550759", "0.5504087", "0.54880357", "0.54777724", "0.54771936", "0.5476875", "0.546333", "0.54422355", "0.5441439", "0.54370904", "0.5432707", "0.5412525", "0.5387628", "0.5378874", "0.5374452", "0.53737277", "0.53727204", "0.53581166", "0.53545207", "0.5345264", "0.5341441", "0.5334929", "0.532883" ]
0.0
-1
Sign up data to be send
public void signup(String name, String uname, String passwd) { NameValueSet.Builder value = NameValueSet.newBuilder(); value.setName("SignUp_name"); value.setValue("SignUp_value"); JobDesc.Builder desc = JobDesc.newBuilder(); desc.setNameSpace("SignUp_namespace"); desc.setJobId("Zero"); desc.setOwnerId(0); desc.setStatus(JobCode.JOBUNKNOWN); desc.setOptions(value.build()); JobOperation.Builder j = eye.Comm.JobOperation.newBuilder(); j.setAction(JobAction.ADDJOB); j.setJobId("Zero"); j.setData( desc.build()); SignUp.Builder sb= eye.Comm.SignUp.newBuilder(); sb.setFullName(name); sb.setUserName(uname); sb.setPassword(passwd); // Payload containing data Request.Builder r = Request.newBuilder(); eye.Comm.Payload.Builder p = Payload.newBuilder(); p.setSignUp(sb.build()); p.setJobOp(j.build()); r.setBody(p.build()); // header with routing info eye.Comm.Header.Builder h = Header.newBuilder(); h.setOriginator("client"); h.setTag("Sign up"); h.setTime(System.currentTimeMillis()); h.setRoutingId(eye.Comm.Header.Routing.JOBS); r.setHeader(h.build()); eye.Comm.Request req = r.build(); try { comm.sendMessage(req); } catch (Exception e) { logger.warn("Unable to deliver message, queuing"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void signUp(SignUpRequest signupRequest);", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }", "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public void sendDataForSignUp(View view){\r\n //Prendo i dati dalla form:\r\n EditText nome = findViewById(R.id.nome);\r\n EditText cognome = findViewById(R.id.cognome);\r\n EditText dataDinascita = findViewById(R.id.data_nascita);\r\n EditText telefono = findViewById(R.id.telefono);\r\n EditText username = findViewById(R.id.username);\r\n EditText mail = findViewById(R.id.email);\r\n EditText password = findViewById(R.id.password);\r\n EditText passwordr = findViewById(R.id.repPass);\r\n\r\n //Converto i dati in stringa per inviarli al server\r\n String nomes = nome.getText().toString();\r\n String cognomes = cognome.getText().toString();\r\n String dataDinascitas = dataDinascita.getText().toString();\r\n String telefonos = telefono.getText().toString();\r\n String usernames = username.getText().toString();\r\n String mails = mail.getText().toString();\r\n String passwords = password.getText().toString();\r\n String passwordrs = passwordr.getText().toString();\r\n\r\n if (passwords.compareTo(passwordrs) != 0 || passwords.length() < 1)\r\n {\r\n Toast.makeText(this, \"ERRORE:\\nLe password non corrispondenti.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n else\r\n if (nomes.length() < 1 || cognomes.length() < 1 || dataDinascitas.length() < 1 || telefonos.length() < 1 || usernames.length() < 1 || mails.length() < 1)\r\n {\r\n Toast.makeText(this, \"ERRORE:\\nDevi compilare tutti i campi.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n try {\r\n passwords = SHA1(passwords);\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n } catch (UnsupportedEncodingException e) {\r\n Toast.makeText(this, \"ERRORE:\\nimpossibile hashare la password da inviare.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n JSONObject postData = new JSONObject();\r\n JSONObject autista = new JSONObject();\r\n\r\n try {\r\n autista.put(\"username\", usernames);\r\n autista.put(\"password\", passwords);\r\n autista.put(\"email\", mails);\r\n autista.put(\"nome\", nomes);\r\n autista.put(\"cognome\", cognomes);\r\n autista.put(\"dataDiNascita\", dataDinascitas);\r\n autista.put(\"telefono\", telefonos);\r\n postData.put(\"autista\", autista);\r\n }catch (Exception e){\r\n Toast.makeText(this, \"ERRORE:\\nimpossibile leggere i campi appena compilati.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n\r\n // Avverto l'utente del tentativo di invio dei dati di login al server\r\n caricamento = ProgressDialog.show(SignUpActivity.this, \"\",\r\n \"Connessione con il server in corso...\", true);\r\n Connessione conn = new Connessione(postData, \"POST\");\r\n conn.addListener(this);\r\n conn.execute(Parametri.IP + \"/signup\");\r\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}", "private void SignUp(String email, String password) {\n if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password) ) {\n\n }else {\n msignInDialog.setTitle(\"Creating New User\");\n msignInDialog.setMessage(\"Please wait while DevChat creates your new Account...\");\n msignInDialog.setCanceledOnTouchOutside(false);\n msignInDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ActivityRegister.this, \"User Account Created!\", Toast.LENGTH_SHORT).show();\n createUser(et_username.getText().toString());\n msignInDialog.dismiss();\n Intent chatBoxIntent = new Intent(ActivityRegister.this, Chatbox_Activity.class);\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"values\", values);\n chatBoxIntent.putExtras(bundle);\n startActivity(chatBoxIntent);\n } else {\n msignInDialog.dismiss();\n Toast.makeText(ActivityRegister.this, \"Error Creating New User Account!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void signUpNew(String mail,String password){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n String dateTime = simpleDateFormat.format(Calendar.getInstance().getTime());\n\n //device ID\n String deviceId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n headers = new HashMap<>();\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"subscriptionDateTime\",dateTime);\n headers.put(\"deviceId\",deviceId);\n\n String url = serverUrl + \"/sign_up\";\n sendRequestNew(url,headers);\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "private void sendUserData() {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference myref = firebaseDatabase.getReference(Objects.requireNonNull(firebaseAuth.getUid()));\n UserProfile userProfile = new UserProfile(name, email, post, 0);\n myref.setValue(userProfile);\n }", "protected void createRegistrationInfo() {\n registrationInfo.put(\"email\", email.getText().toString());\n registrationInfo.put(\"password\", password.getText().toString());\n }", "private void doSignup(RoutingContext ctx){\n // Get Data from view\n JsonObject req = ctx.getBodyAsJson();\n String username = req.getString(\"username\");\n String password = req.getString(\"password\");\n\n GoogleAuthenticator authenticator = new GoogleAuthenticator();\n\n //Get Generate Key\n System.out.println(\" Calling Google Authenticator to generate AuthKey\");\n GoogleAuthenticatorKey authKey = authenticator.createCredentials();\n String key = authKey.getKey();\n System.out.println(\" Google Authenticator generated AuthKey\");\n\n //Store Data from Repository\n User user = new User(username,password,key);\n\n //send response to the user\n JsonObject res = new JsonObject().put(\"key\",key);\n ctx.response().setStatusCode(200).end(res.encode());\n }", "@Override\n public void onClick(View v) {\n\n String name = fullname.getText().toString();\n String emailx = email.getText().toString();\n String password1 = password.getText().toString();\n String password2 = password_conf.getText().toString();\n progressDialog.setMessage(\"sign up your data\");\n showDialog();\n\n\n userdata = new UserData(name,emailx,password1,password2);\n Call<UserData> call = createUser.createUser(userdata);\n call.enqueue(new Callback<UserData>() {\n @Override\n public void onResponse(Call<UserData> call, Response<UserData> response) {\n if(response.isSuccessful()){\n Toast.makeText(RegisterActivity.this,\"Sign Up Success\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n finish();\n hideDialog();\n } else {\n Toast.makeText(getApplicationContext(),response.message(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }\n\n @Override\n public void onFailure(Call<UserData> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"Error Connection\", Toast.LENGTH_LONG).show();\n hideDialog();\n }\n });\n }", "@Override\n public void onClick(View view) {\n final String username = usernameInput.getText().toString();\n final String password = passwordInput.getText().toString();\n final String email = emailInput.getText().toString();\n final String handle = handleInput.getText().toString();\n signup(username, password, email, handle);\n }", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "public void sendMail(RegistrationData d) {}", "public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }", "void onSignUpEmailRegistered();", "public void signup() {\n Log.d(TAG, \"Signup\");\n\n if (!validate()) {\n onSignupFailed();\n return;\n }\n\n createProgressDialog(R.string.creating_account);\n\n final String name = _nameText.getText().toString();\n final String email = _emailText.getText().toString();\n final String password = _passwordText.getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n createToast(R.string.authentication_failed, Toast.LENGTH_SHORT);\n } else {\n progressDialog.dismiss();\n final FirebaseUser user = mAuth.getCurrentUser();\n mDatabase.child(\"users\").child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null) {\n createUserInFirebase(name, email, user.getUid());\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n sendToTrivia();\n }\n\n }\n });\n\n\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run() {\n // On complete call either onSignupSuccess or onSignupFailed\n // depending on success\n progressDialog.dismiss();\n }\n }, 3000);\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "private void RegisterFacebookSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\tasName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\tasValue.add(data.GetS(LocalData.LINK));\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\n\t\t\tString sURL = StringURLs.FACEBOOK_LOGIN;\n\t\t\t// getQuery(StringURLs.FACEBOOK_LOGIN, asName, asValue);\n\n\t\t\tConnectServerParam connectServer = new ConnectServerParam();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setParams(asName, asValue);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private McSignUp(Builder builder) {\n super(builder);\n }", "public void senddata(View g)\r\n\t{\n\t\tnew CreateUsers().execute();\r\n\t}", "public SignUp() {\n PageFactory.initElements(webDriver, this);\n }", "private void sign_up() {\n final String name = nameET.getText().toString().trim();\n final String cell = cellET.getText().toString().trim();\n final String division = divisionET.getText().toString().trim();\n final String address = addressEt.getText().toString().trim();\n final String password = passwordET.getText().toString().trim();\n final String account_type = accouttypeET.getText().toString().trim();\n final String status=\"Pending\";\n\n\n //Checking field/validation\n if (name.isEmpty()) {\n nameET.setError(\"Please enter name !\");\n requestFocus(nameET);\n }\n else if (cell.length()!=11) {\n\n cellET.setError(\"Please enter valid phone number !\");\n requestFocus(cellET);\n\n }\n\n else if (division.isEmpty()) {\n\n divisionET.setError(\"Please select division !\");\n requestFocus(divisionET);\n Toasty.error(this, \"Please select division !\", Toast.LENGTH_SHORT).show();\n }\n else if (address.isEmpty()) {\n\n addressEt.setError(\"Please enter full address !\");\n requestFocus(addressEt);\n }\n else if (account_type.isEmpty()) {\n\n accouttypeET.setError(\"Please select account type !\");\n requestFocus(accouttypeET);\n Toasty.error(this, \"Please select account type !\", Toast.LENGTH_SHORT).show();\n }\n else if (password.isEmpty()) {\n\n passwordET.setError(\"Please enter password !\");\n requestFocus(passwordET);\n }\n else if (password.length() < 4) {\n\n passwordET.setError(\"Password should be more than 3 characters!\");\n requestFocus(passwordET);\n }\n\n else\n {\n loading = new ProgressDialog(this);\n loading.setIcon(R.drawable.wait_icon);\n loading.setTitle(\"Sign up\");\n loading.setMessage(\"Please wait....\");\n loading.show();\n\n\n StringRequest stringRequest=new StringRequest(Request.Method.POST, Constant.SIGNUP_URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //for track response in logcat\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n Toasty.error(RegisterActivity.this, \"No Internet Connection or \\nThere is an error !!!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n }\n }\n\n ){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n //Adding parameters to request\n\n params.put(Constant.KEY_NAME, name);\n params.put(Constant.KEY_CELL, cell);\n params.put(Constant.KEY_DIV, division);\n params.put(Constant.KEY_ADDRESS, address);\n params.put(Constant.KEY_AC_TYPE, account_type);\n params.put(Constant.KEY_PASSWORD, password);\n params.put(Constant.KEY_STATUS, status);\n\n Log.d(\"url_info\",Constant.SIGNUP_URL);\n\n //returning parameter\n return params;\n }\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n }\n }", "public void signup(View view){\r\n if(editText1.getText().toString().isEmpty()||editText2.getText().toString().isEmpty()||editText3.getText().toString().isEmpty()\r\n ||editText4.getText().toString().isEmpty()||editText5.getText().toString().isEmpty()){\r\n Toast.makeText(this, \"Παρακαλώ εισάγετε όλα τα απαραίτητα πεδία προκειμένου να εγγραφείτε.\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n mAuth.createUserWithEmailAndPassword(editText1.getText().toString(), editText2.getText().toString())\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n\r\n if (task.isSuccessful()) {\r\n new_user = mAuth.getCurrentUser();\r\n create_users_list(new_user.getUid());\r\n String userid=new_user.getUid();\r\n String firstname=editText3.getText().toString();\r\n String lastname=editText4.getText().toString();\r\n String address=editText5.getText().toString();\r\n SharedPreferences.Editor editor=pref.edit();\r\n editor.putString(userid+\"firstname\",firstname);\r\n editor.putString(userid+\"lastname\",lastname);\r\n editor.putString(userid+\"address\",address);\r\n editor.apply();\r\n Intent intent = new Intent(getApplicationContext(), MainActivity3.class);\r\n intent.putExtra(\"userid\", new_user.getUid());\r\n\r\n startActivity(intent);\r\n\r\n\r\n } else {\r\n Toast.makeText(getApplicationContext(), task.getException().getMessage(),\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n }\r\n );}}", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "public void UserSignUp(View view)\n {\n // get the data from text fields\n inputName = ((EditText) findViewById(R.id.signUpEditTextName)).getText().toString();\n inputEmail = ((EditText) findViewById(R.id.signUpEditTextEmail)).getText().toString();\n inputPhoneNumber = ((EditText) findViewById(R.id.signUpEditTextPhoneNumber)).getText().toString();\n inputPassword = ((EditText) findViewById(R.id.signUpEditTextPassword)).getText().toString();\n inputRepeatPassword = ((EditText) (findViewById(R.id.signUpEditTextRepeatPassword))).getText().toString();\n\n // If some text fields are empty\n if(inputName.equals(\"\") || inputEmail.equals(\"\") || inputPhoneNumber.equals(\"\")\n || inputPassword.equals(\"\") || inputRepeatPassword.equals(\"\")) {\n Toast.makeText(SignUpActivity.this, \"All fields are required!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n // if password and repeat password are matched\n else if(inputPassword.compareTo(inputRepeatPassword) == 0) {\n // if there is internet connection\n if (CheckNetworkConnection.checknetwork(getApplicationContext()))\n new CreateNewUser().execute();\n else\n Toast.makeText(SignUpActivity.this, \"No Internet Connection!\", Toast.LENGTH_LONG).show();\n }\n // if password and repeat password do not matched\n else {\n Toast.makeText(SignUpActivity.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n\n }", "private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(Signup.this, gso);\n\n\n }", "private void doRegister(){\n Map<String, String> mParams = new HashMap<>();\n mParams.put(\"account\", etPhone.getText().toString());\n mParams.put(\"password\", etPwd.getText().toString());\n mParams.put(\"code\", etValid.getText().toString());\n\n x.http().post(HttpUtils.getRequestParams(\"/teacher/v1/register\", mParams),\n\n new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n\n CustomProgress.hideDialog();\n LogUtil.d(\"\"+result);\n Response response = CommonUtil.checkResponse(result);\n if (response.isStatus()) {\n SharedPreferences shareAutoLogin = MyApplication.getInstance().getShareAutoLogin();\n SharedPreferences.Editor editor = shareAutoLogin.edit();\n editor.putBoolean(MyApplication.getInstance().AUTOLOGIN, true);\n editor.commit();\n MyApplication.getInstance().setShareApp(etPhone.getText().toString(), etPwd.getText().toString());\n User user = User.getUserFromJsonObj(response.getData().optJSONObject(\"data\"));\n User.setCurrentUser(user);\n MobclickAgent.onProfileSignIn(user.getNickName());\n\n // 登录环信\n if (!StringUtils.isEmpty(user.hxId) && !StringUtils.isEmpty(user.hxPwd))\n AppUtils.loginEmmobAndSaveInfo(user);\n\n // 极光推送设置别名\n JPushInterface.setAlias(RegisterActivity.this, user.getId() + \"\", new TagAliasCallback() {\n @Override\n public void gotResult(int i, String s, Set<String> set) {\n if (i == 0) {\n LogUtil.i(\"极光推送别名设置成功,别名:\" + s);\n }\n }\n });\n\n socketLogin(user.getToken());\n\n Intent intent = new Intent(RegisterActivity.this, CodeActivity.class);\n startActivity(intent);\n finish();\n } else {\n Toast.makeText(x.app(), response.getData().optString(\"message\"), Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n\n CustomProgress.hideDialog();\n\n if (ex instanceof HttpException) { // 网络错误\n HttpException httpEx = (HttpException) ex;\n int responseCode = httpEx.getCode();\n String responseMsg = httpEx.getMessage();\n String errorResult = httpEx.getResult();\n LogUtil.d(responseCode + \":\" + responseMsg);\n Toast.makeText(x.app(), x.app().getResources().getString(R.string.net_error), Toast.LENGTH_SHORT).show();\n } else { // 其他错误\n // ...\n }\n //Toast.makeText(x.app(), ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n Toast.makeText(x.app(), \"cancelled\", Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFinished() {\n\n }\n });\n\n }", "public void signUp(UserSignUpRequest userSignUpRequest) {\n apiInterface.signUp(\n userSignUpRequest\n )\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n new Observer<Response<ResponseBody>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Response<ResponseBody> responseBodyResponse) {\n if (responseBodyResponse.code() == 201) {\n try {\n //noinspection ConstantConditions\n saveUserData(\n new Gson().fromJson(\n responseBodyResponse.body().string(),\n UserData.class\n )\n );\n } catch (IOException e) {\n e.printStackTrace();\n }\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.SUCCESS, \"\"\n )\n )\n );\n } else {\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.FAIL,\n getErrorMessage(responseBodyResponse.errorBody())\n )\n )\n );\n }\n }\n\n @Override\n public void onError(Throwable e) {\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.FAIL,\n getErrorMessage(e)\n )\n )\n );\n }\n\n @Override\n public void onComplete() {\n\n }\n }\n );\n }", "private MsSignUp(Builder builder) {\n super(builder);\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void confirmRegistration(RegistrationData d) {}", "Task<Void> signUp(String email, String password);", "public void signUp(View v) {\n attemptRegistration();\n }", "@OnClick(R.id.register_email_register_button)\n void onClickRegister(){\n if(isInfoValidate()){\n //Call Register Http, first put the information into bundle\n// Bundle bundle = new Bundle();\n// bundle.putString(Constant.REGISTER_PHONE_NUM, mEmailAddress.getText().toString());\n// bundle.putString(Constant.REGISTER_PASSWORD, mPassword.getText().toString());\n// bundle.putInt(Constant.REGISTER_REGION, mRegionSpinner.getSelectedItemPosition());\n//\n// callRegisterHttp(mEmailAddress.getText().toString(),\n// mRegionSpinner.getSelectedItemPosition(),\n// bundle);\n\n //\n\n\n JSONObject jsonParams = new JSONObject();\n JSONObject outerJsonParams = new JSONObject();\n try {\n// jsonParams.put(\"username\", \"michael_firebasechat_1\");\n // String userNameString = mEmailAddress.getText().toString().split(\"@\")[0];\n jsonParams.put(\"username\", mUsername.getText().toString());\n jsonParams.put(\"email\", mEmailAddress.getText().toString());\n jsonParams.put(\"password\", mPassword.getText().toString());\n outerJsonParams.put(\"user\",jsonParams);\n StringEntity entity = new StringEntity(outerJsonParams.toString());\n callRegisterByEmailHttp(entity);\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n else {\n //Show the warning text\n new SweetAlertDialog(getContext(), SweetAlertDialog.WARNING_TYPE)\n .setTitleText(getString(R.string.warning_title))\n .setContentText(errorText)\n .setConfirmText(getString(R.string.warning_confirm))\n .show();\n }\n }", "public signup() {\n initComponents();\n }", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "private void signup(final String email, String password) {\n firebaseAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n databaseRef.child(firebaseAuth.getCurrentUser().getUid()).child(\"email\").setValue(email);\n startActivity(new Intent(getBaseContext(), ShoppingActivity.class));\n setResult(1);\n finish();\n } else {\n alert(task.getException().getMessage());\n }\n }\n });\n }", "private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }", "public void onClick_AGSU_signUp(View view) {\n AnimationTools.startLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING, this, signUpButton_rootLayout, R.style.AGSU_loading_progress_bar);\n\n FirestoreManager.saveUserData(SecondarySignUpManager.getDatabaseUser());\n\n //add a password-email auth method\n AuthCredential credential = EmailAuthProvider.getCredential(SecondarySignUpManager.getDatabaseUser().getEmail(), SecondarySignUpManager.getDatabaseUser().getPassword());\n AuthenticationManager.getCurrentUser().linkWithCredential(credential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n System.out.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: link with email credential SUCCESSFUL! User uid = \" + task.getResult().getUser().getDisplayName());\n Constants.isSignUpInProcess = false; //sign up is now finished\n\n //in AGSU user is always new --> send verification email\n EmailVerification.sendVerificationEmail();\n\n Constants.isSecondarySignUpInProcess = false; //end of secondary sign up process\n\n ActivityTools.startNewActivity(activityContext, MainActivity.class);\n } else {\n System.err.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: ERROR: link with email credential FAILED! \" + task.getException().getMessage());\n }\n\n AnimationTools.stopLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING);\n }\n });\n\n }", "private void send(){\n String n = name.getText().toString();\n String b = bg.getText().toString();\n String d = dob.getText().toString();\n String l = loc.getText().toString();\n String i = id.getText().toString();\n String m = mob.getText().toString();\n\n if(TextUtils.isEmpty(n) || TextUtils.isEmpty(b) || TextUtils.isEmpty(d) || TextUtils.isEmpty(l) || TextUtils.isEmpty(i)\n || TextUtils.isEmpty(m)){\n //if any of the field remains empty, no data will be send\n Toast.makeText(this, \"Details incomplete!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n //sending data\n String id = root.push().getKey();//key given by the firebase itself\n \n //creating new person object for each data\n Person person = new Person(b,d,i,l,m,n);\n root.child(id).setValue(person);//sending data\n }\n }", "@Test(dataProvider=\"getData\")\n\t public void signUp(String Firstname, \n String Lastname,\n String Email,\n String JobTitle,\n String Phone,\n String Company) {\n\t\t\tHomePageObjects hp = new HomePageObjects(driver);\n\t\t\thp.FreeTrial().click();\n\t\t\t\n\t\t\t\t\n\t\t \t//*****Maximize the window and wait*****//\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t //*****Actions on Login Page*****//\n\t\t\tLoginObjectPage logpg = new LoginObjectPage(driver);\n\t \tlogpg.Firstname().sendKeys(Firstname);\n\t \tlogpg.Lastname().sendKeys(Lastname);\n\t \tlogpg.Email().sendKeys(Email);\n\t \tlogpg.JobTitle().sendKeys(JobTitle);\n\t \tlogpg.Phone().sendKeys(Phone);\n\t \tlogpg.Company().sendKeys(Company);\n\t \tlogpg.NoofEmployees().click();\n\t \tlogpg.employeedropdown(3);\n\t \tlogpg.checkBox().click();\n\t \tlogpg.Enroll().click();\t \n\t System.out.println(driver.getTitle());\n\t \n\t }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "public static void signUp() {\n\t\t//donor's full name\n\t\tboolean flag = true;\n \tdo {\n \t\ttry{\n \t\t\tfullname = JOptionPane.showInputDialog(null,\"Enter your full name: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (fullname.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\t\tflag = false;\n \t\t} catch (InputMismatchException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t}\n\t\t}while (flag);\n\t\t\n //donor's username\n \tflag = true;\n \tdo {\n \t\ttry {\n \t\t\tusername = JOptionPane.showInputDialog(null,\"Enter your username: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (username.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t }\n \t\t\tflag = false;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a username.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t flag = true;\n \t\t}\t\n \t}while (flag);\n \t\n\t\t//donor's email\n \t \tflag = true;\n \t \tdo {\n \t \t\ttry {\n \t \t\t\temail = JOptionPane.showInputDialog(null,\"Enter your email: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t \t\t\tif (email.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\tflag = false;\n \t \t\t} catch (NullPointerException e) {\n \t \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your email\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t \t\t}\t\n \t}while (flag);\n\n\t \t//donor's gender\n \t \tflag = false;\n \t \tObject[] opt = {\"Male\", \"Female\"};\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tint g = JOptionPane.showOptionDialog(null,\"Choose your gender: \", \"SIGN UP\", JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE, null, opt, null);\n\t\t\t\tif (g == 0) {\n\t\t\t\t\tgender = \"male\";\n\t\t\t\t} else if (g == 1){\n\t\t\t\t\tgender = \"female\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tflag = true;\n\t\t\t} catch (NullPointerException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your gender\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}while (flag == false);\n\t\t\t\n\t\t//donor's bloodtype\n\t\tflag = true;\n\t\twhile (flag) {\n\t\t\tbloodtype = (String) JOptionPane.showInputDialog(null, \"Choose your blood type\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, bloodtypes, \"O+\" );\n\t\t\ttry {\n\t\t\t\tif (bloodtype.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your blood type.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//donor's SSN\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSSN = JOptionPane.showInputDialog(null,\"Enter your SSN: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (SSN.length() == 11) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Please enter a valid SSN (11 digits)\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (SSN.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your SSN\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}while (flag);\n\t\t\t\n\t\t//donor's region\n\t\tflag = true;\n\t\tObject[] possibilities = {\"Attica\",\"South Aegean Sea\",\"North Aegean Sea\",\"Central Greece\",\"West Greece\",\n\t\t\t \"Ionian Islands\",\"Thessaly\",\"Peloponnese\",\"Epirus\",\"Eastern Macedonia and Thrace\",\n\t\t\t \"Central Macedonia\",\"West Macedonia\",\"Crete\"};\n\t\twhile (flag) {\n\t\t\tregion = (String)JOptionPane.showInputDialog(null, \"Choose your region\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, possibilities, \"Attica\" );\n\t\t\ttry {\n\t\t\t\tif (region.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your region.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t} \n\t\t}\n\t\t\n\t\t//donor's password\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tpassword = JOptionPane.showInputDialog(null,\"Enter your password: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (password.matches(\"^.*(?=.{4,10})(?=.*\\\\d)(?=.*[a-zA-Z]).*$\")) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your password must contain both numbers and letters.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (password.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your password\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t}while(flag);\n\n\t\t//insert user's data into data base\n\t\ttry {\n\t\t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO BloodDonor (B_Name, B_Username, B_email, B_password, Gender, BloodType, SSN, Region)\" + \n\t\t\t\t\"VALUES ('\" + fullname + \"', '\" + username + \"', '\" + email + \"', '\" + password + \"', '\" + gender + \"', '\" + bloodtype + \"', '\" + SSN + \"', '\" + region + \"')\");\n\t\t\tMessages.connect().close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t//insertAnswers(username);\n\t}", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "public void signUp(String email, String password) {\n\n headers = new HashMap<>();\n //headers.put(\"req_type\", \"signUp\");\n headers.put(\"mail\", email.toString());\n headers.put(\"password\", password.toString());\n headers.put(\"enterpriseName\", \"\");\n headers.put(\"propritor\", \"\");\n headers.put(\"contactNo\", \"0\");\n headers.put(\"profilePhoto\", \"\");\n headers.put(\"retailerId\",\"1675\");\n headers.put(\"latLocation\", \"0.0\");\n headers.put(\"longLocation\", \"0.0\");\n headers.put(\"address\", \"\");\n headers.put(\"city\", \"\");\n headers.put(\"state\", \"\");\n headers.put(\"country\", \"\");\n headers.put(\"membership\", \"0\");\n headers.put(\"subDate\", \"2010-01-01\");\n headers.put(\"openCloseIsManual\", \"0\");\n headers.put(\"shopOpenTime\", \"00:00:00\");\n headers.put(\"shopCloseTime\", \"00:00:00\");\n headers.put(\"shopOpenTime2\", \"00:00:00\");\n headers.put(\"shopCloseTime2\", \"00:00:00\");\n headers.put(\"shopPhoto\", \"\");\n headers.put(\"shopActLicense\", \"\");\n headers.put(\"currentState\", \"0\");\n headers.put(\"Content-Type\", \"application/json\");\n\n try {\n\n jsonObject = new JSONObject();\n //jsonObject.put(\"req_type\", \"signUp\");\n jsonObject.put(\"mail\", email.toString());\n jsonObject.put(\"password\", password.toString());\n jsonObject.put(\"enterpriseName\", \"\");\n jsonObject.put(\"propritor\", \"\");\n jsonObject.put(\"retailerId\",\"1001\");\n jsonObject.put(\"contactNo\", \"0\");\n jsonObject.put(\"profilePhoto\", \"\");\n jsonObject.put(\"latLocation\", \"0.0\");\n jsonObject.put(\"longLocation\", \"0.0\");\n jsonObject.put(\"address\", \"\");\n jsonObject.put(\"city\", \"\");\n jsonObject.put(\"state\", \"\");\n jsonObject.put(\"country\", \"\");\n jsonObject.put(\"membership\", \"0\");\n jsonObject.put(\"subDate\", \"2010-01-01\");\n jsonObject.put(\"openCloseIsManual\", \"0\");\n jsonObject.put(\"shopOpenTime\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime\", \"00:00:00\");\n jsonObject.put(\"shopOpenTime2\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime2\", \"00:00:00\");\n jsonObject.put(\"shopPhoto\", \"\");\n jsonObject.put(\"shopActLicense\", \"\");\n jsonObject.put(\"currentState\", \"0\");\n reqBody = jsonObject.toString();\n\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/add_retailer_info_temp\";\n sendRequest(databaseURL);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }", "private void sentRequestGG(FirebaseAuth firebaseAuth) {\n if (firebaseAuth.getCurrentUser() != null) {\n SharedPref.instance.putName(firebaseAuth.getCurrentUser().getDisplayName());\n SharedPref.instance.putPassword(firebaseAuth.getCurrentUser().getUid());\n SharedPref.instance.putUrlAvatar(String.valueOf(firebaseAuth.getCurrentUser().getPhotoUrl()));\n SharedPref.instance.putUser(firebaseAuth.getCurrentUser().getDisplayName());\n SharedPref.instance.putEmail(firebaseAuth.getCurrentUser().getEmail());\n username = firebaseAuth.getCurrentUser().getEmail();\n password = firebaseAuth.getCurrentUser().getUid();\n\n UserService userService = NetContext.instance.create(UserService.class);\n MediaType jsonType = MediaType.parse(\"application/json\");\n String loginJson = (new Gson().toJson(new UserRegisterResponseJson(username, password)));\n final RequestBody loginBody = RequestBody.create(jsonType, loginJson);\n // create call\n Call<Token> loginCall = userService.postNewAccount(loginBody);\n loginCall.enqueue(new Callback<Token>() {\n @Override\n public void onResponse(Call<Token> call, Response<Token> response) {\n DBContext.instance.cleanCart();\n SharedPref.instance.putCount(0);\n //EventBus.getDefault().postSticky(new SentUserIdEvent(u.getId().get$oid()));\n //Dang nhap 1 tai khoan moi hay tai khoan cu deu tra ve 307\n if (response.code() == 307){\n login(username, password);\n } else {\n Toast.makeText(LoginActivity.this, \"Could not parse body\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Token> call, Throwable t) {\n Toast.makeText(LoginActivity.this, \"Lỗi xác minh tài khoản google!\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }\n });\n }\n }", "private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }", "void signUpAttempt(String email, String password, String firstName, String lastName);", "private void configureSignup() {\n\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(this.getResources().getString(R.string.web_client_id))\n .requestEmail().build();\n\n // Build a GoogleApiClient with access to GoogleSignIn.API and the options above.\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n\n mGoogleApiClient.connect();\n }", "private void sendGuideRegDataToFireBase(){\n }", "public void registration() {\n\t\tSystem.out.print(\"Enter Name : \");\r\n\t\tthis.name=scan.nextLine();\r\n\t\tSystem.out.print(\"Enter Age : \");\r\n\t\tthis.age=scan.nextInt();\r\n\t\tSystem.out.print(\"Enter Gender : \");\r\n\t\tthis.gender=scan.next().charAt(0);\r\n\t\tscan.nextLine();\r\n\t\tSystem.out.print(\"Enter Price : \");\r\n\t\tthis.price=scan.nextDouble();\r\n\t\tSystem.out.print(\"Enter Quantity : \");\r\n\t\tthis.quantity=scan.nextInt();\t\r\n\t\tSystem.out.println(\"Register Successfully\");\r\n\t}", "String signUp(String userName, String password) throws RemoteException, InterruptedException;", "public void registerUser(View view) {\n if(!validateName() | !validatePassword() | !validatePhoneNo() | !validateEmail()){\n return;\n }\n String phoneNo = regPhoneNo.getEditText().getText().toString();\n String name = regName.getEditText().getText().toString();\n String email = regEmail.getEditText().getText().toString();\n String password = regPassword.getEditText().getText().toString();\n\n //Call the next activity and pass phone no with it\n Intent intent = new Intent(getApplicationContext(), otpVerify.class);\n intent.putExtra(\"phoneNo\", phoneNo);\n intent.putExtra(\"password\", password);\n intent.putExtra(\"email\", email);\n intent.putExtra(\"name\", name);\n startActivity(intent);\n }", "private void userSignup(String email, String password) {\n String url = \"https://7e69edce-af20-4c49-9ad9-5697df4e8a20.mock.pstmn.io\";\n StringRequest request = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n// Log.i(\"LOG\", \"onResponse: \" + response);\n onSignupClicked.onClicked(response);\n dismiss();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// Toast.makeText(getContext(), error.toString(), Toast.LENGTH_SHORT).show();\n Log.i(\"LOG\", \"onErrorResponse: \" + error.toString());\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"username\", email);\n params.put(\"password\", password);\n return params;\n }\n };\n\n request.setRetryPolicy(new DefaultRetryPolicy(15000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n RequestQueue requestQueue = Volley.newRequestQueue(getContext());\n requestQueue.add(request);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }", "@Override\n public void onClick(View v) {\n firstNameText = capitalizeFirstLetter(firstNameET.getText().toString());\n lastNameText = capitalizeFirstLetter(lastNameET.getText().toString());\n emailText = (emailET.getText().toString()).toLowerCase();\n passwordText = passwordET.getText().toString();\n reEnterPasswordText = reEnterPasswordET.getText().toString();\n\n // Using the user-inputted information to register the user via this method\n registerUser(firstNameText, lastNameText, emailText, passwordText, reEnterPasswordText);\n }", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "public static void signUp(String username, String password, String alternativeEmail, String firstName, String lastName) {\n click(REGISTRATION_LINK);\n type(REG_FLOW_USERNAME_FIELD, username);\n click(REG_FLOW_CHECK_BUTTON);\n// if (!REG_FLOW_USERNAME_FREE_MESSAGE.toString().contains(\"Потребителското име е свободно\")) {\n// System.out.println(\"Try another username - the entered one is already in use\");\n// }\n type(REG_FLOW_PASSWORD_FIELD, password);\n type(REG_FLOW_PASSWORD_REENTER_FIELD, password);\n WebElement phoneCheckbox = Browser.driver.findElement(REG_FLOW_PHONE_CHECKBOX);\n if (phoneCheckbox.isEnabled()) {\n phoneCheckbox.click(); //that's how we disable it\n }\n type(REG_FLOW_ALTERNATIVE_EMAIL_FIELD, alternativeEmail);\n type(REG_FLOW_QUESTION_FIELD, \"To be or not to be?\");\n type(REG_FLOW_ANSWER_FIELD, \"To beeee.\");\n type(REG_FLOW_FNAME_FIELD, firstName);\n type(REG_FLOW_LNAME_FIELD, lastName);\n Browser.driver.switchTo().frame(\"abv-GDPR-frame\").manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n // Manually to tap ACCEPT on the GDPR window\n Browser.driver.switchTo().defaultContent();\n click(REG_FLOW_GENDER_RADIOBUTTON); //to choose male\n click(REG_FLOW_DAY_DROPDOWN);\n click(REG_FLOW_DAY_3); // to choose 3th\n click(REG_FLOW_MONTH_DROPDOWN);\n click(REG_FLOW_MONTH_5); // to choose May\n click(REG_FLOW_YEAR_DROPDOWN);\n click(REG_FLOW_YEAR_1998); // to choose 1998\n\n findElement(REG_FLOW_CAPTCHA_FIELD);\n click(REG_FLOW_CAPTCHA_FIELD);\n // Timeout to enter the CAPTCHA manually\n // EXPLICIT WAIT DA MU TURYA\n click(REG_FLOW_CREATE_BUTTON);\n String successfulRegMessage = Browser.driver.findElement(REG_SUCCESS_MESSAGE).getText().trim();\n assertTrue(successfulRegMessage.contains(\"Успешна регистрация.\"), \"No SUCCESS message\");\n click(LOGIN_TO_YOUR_EMAIL_BUTTON);\n }", "void handle_signup(LinkedList<Object> args) {\n try {\n String user = (String) args.get(1);\n String passwd = (String) args.get(2);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT id FROM users WHERE username=?\");\n pst.setString(1, user);\n rsl = pst.executeQuery();\n if(rsl.next()) { //查询到结果表明该用户已经存在\n args.set(1, \"no\");\n args.set(2, \"该用户名已经注册\");\n return;\n }\n pst = con.prepareStatement(\"INSERT INTO users\" +\n \"(username, password) VALUES (?,?)\");\n pst.setString(1, user);\n pst.setString(2, passwd);\n pst.executeUpdate();\n args.set(1, \"yes\");\n System.out.println(\"New user signup:\" + user);\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@Test(groups = { \"android\", \"ios\", \"web\", \"BVT01\" })\n\tpublic void P0Pass_1_testSignUpAsATeacher_GirlScout() throws Exception {\n\t\tSystem.out.println(\"P0Pass_1_testSignUpAsATeacher_BoysScout\");\n\t\tString sEmail = \"test_GirlScouts\" + getTimeStamp().replaceAll(\"-\", \"_\") + \"@test.com\";\n\t\tSystem.out.println(sEmail);\n\t\tLandingPage.getLandingPage(browser).clickOnCreateAccount().clickOnCreateNewClassGroup().clickOnGirlScoutsGroup()\n\t\t.enterFirstName(\"test\").enterLastName(\"Girl Scouts\")\n\t\t.enterEmailId(sEmail).enterPassword(\"bloomz999\")\n\t\t.clickOnSignUpButton().thenVerifyCreateButtonShouldBeDisplayed().thenVerifyProfileName(\"test Girl Scouts\")\n\t\t.thenVerifyWelcomeScreenTroop(\"Create a Troop\").clickOnSettingButton().clickOnAccountSettingsButton()\n\t\t.clickOnDeleteAccountButton().selectReasonForDeleteButton().selectReasonAsOthersButton()\n\t\t.enterPassword().clickDeletePermanentButton().clickOnYesButton().thenVerifyConfirmMessage().clickOnOkButton()\n\t\t.thenVerifySignInAndCreateButtonsShouldBeDisplayed();\n\t}", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "private void sendRegisterMessage() {\n Message initMessage = new Message(\"register\");\n initMessage.name = name;\n sendMessage(initMessage);\n\n log(\"sent init. message:\" + initMessage);\n }", "@Override\n public void onClick(View view) {\n\n int genderselecter = signupgenderbuttongroup.getCheckedRadioButtonId();\n genderbutton = (RadioButton) findViewById(genderselecter);\n\n\n // UserType radio button selector\n\n int usertypeselector = signupusertypebuttongroup.getCheckedRadioButtonId();\n usertypebutton = (RadioButton) findViewById(usertypeselector);\n\n\n if (validate()){\n // cloud upload data into database\n\n final String fullname = signupfullnameet.getText().toString().trim();\n final String emailid = signupemailet.getText().toString().trim();\n final String mobileno = signupmobilenoet.getText().toString().trim();\n final String mfgender = genderbutton.getText().toString();\n final String hpassword = signuppasswordet.getText().toString().trim();\n final String usertype = usertypebutton.getText().toString();\n\n\n mAuth.createUserWithEmailAndPassword(emailid,hpassword)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n // Send Verification Link\n\n final FirebaseUser emailverify = mAuth.getCurrentUser();\n emailverify.sendEmailVerification().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(SignUpActivity.this, \"Varification Email has been send\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.e(\"Email not send !\", \"===>\" + e.getMessage());\n }\n\n });\n Toast.makeText(SignUpActivity.this, \"Registered Succesfully\", Toast.LENGTH_SHORT).show();\n\n // Store Realtime database storedata\n\n rootNode = FirebaseDatabase.getInstance();\n reference = rootNode.getReference(\"User\");\n\n String user_id = null;\n UserHalper userHalper = new UserHalper(fullname, emailid, mobileno, mfgender, hpassword, usertype, user_id);\n reference.child(mobileno).setValue(userHalper);\n\n // Store in Cloude Database\n user_id = FirebaseAuth.getInstance().getCurrentUser().getUid();\n\n Map<String, String> userinfo = new HashMap<>();\n userinfo.put(\"Email ID\", emailid);\n userinfo.put(\"Full Name\", fullname);\n userinfo.put(\"Mobile Number\", mobileno);\n userinfo.put(\"Gender\", mfgender);\n userinfo.put(\"User-Type\", usertype);\n userinfo.put(\"Password\", hpassword);\n userinfo.put(\"User_ID\", user_id);\n\n database = FirebaseFirestore.getInstance();\n database.collection(\"User\").document(user_id)\n .set(userinfo)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n finish();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(), \"Something went's Wrong !\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n });\n mprogress.setMessage(\"Please wait...\");\n mprogress.show();\n }\n }", "public void signupPressed(View view) {\n // fetch the values\n usernameSignup = (EditText) findViewById(R.id.usernameSignupFragment);\n emailSignup = (EditText) findViewById(R.id.emailSignupFragment);\n passwordSignup = (EditText) findViewById(R.id.passwordSignupFragment);\n reenterPasswordSignup = (EditText) findViewById(R.id.reenterPasswordSignupFragment);\n\n String username = usernameSignup.getText().toString();\n String email = emailSignup.getText().toString();\n String password1 = passwordSignup.getText().toString();\n String password2 = reenterPasswordSignup.getText().toString();\n\n // input validation\n if (username.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a username.\", Toast.LENGTH_SHORT).show();\n } else if (password1.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a password.\", Toast.LENGTH_SHORT).show();\n } else if (!validatePassword(password1, password2)) {\n Toast.makeText(getApplicationContext(), \"Passwords do not match, try again.\", Toast.LENGTH_SHORT).show();\n } else if (!passwordLongEnough(password1)) {\n Toast.makeText(getApplicationContext(), \"Password too short - must be minimum 8 characters.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (emailAlreadyExists(email)) {\n Toast.makeText(getApplicationContext(), \"Account already exists with this email.\", Toast.LENGTH_SHORT).show();\n } else if (!validateEmail(email)) {\n Toast.makeText(getApplicationContext(), \"Please enter a valid email.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (!usernameAvailable(username)) {\n Toast.makeText(getApplicationContext(), \"Sorry, username already taken.\", Toast.LENGTH_SHORT).show();\n } else {\n // setup a user object with the given attributes, save and enter the app\n final TipperUser user = new TipperUser();\n user.setUsername(username);\n\n // hash password with salt\n String hashed = BCrypt.hashpw(password1, BCrypt.gensalt());\n user.setPassword(hashed);\n\n user.setEmail(email);\n user.setGoogleUser(false);\n user.setFacebookUser(false);\n user.setUuidString();\n\n user.save();\n app.setCurrentUser(user);\n user.pinInBackground();\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == ProtocolConst.CMD_REGISTER_SUCESS) {\n\t\t\tString NAME = data.getStringExtra(\"name\");\n\t\t\tString PWD = data.getStringExtra(\"pwd\");\n\t\t\taccount_input.setText(NAME);\n\t\t\tpassword_input.setText(PWD);\n\t\t}\n\t}", "public void storeGlucose(){\n String HBA1C = hba1c.getText().toString();\n String date = glucose_date.getText().toString();\n String medication = String.valueOf(medication_spinner.getSelectedItem());\n UserData userdata = new UserData(\"rjgalleg\", date, glucose_number, tag, medication, HBA1C);\n Log.i(\"Authorize\", \"date: \"+date +\", medication: \"+medication+\", HBA1C: \"+HBA1C+\", glucose number: \"+glucose_number +\"tag: \"+tag);\n ServerRequests serverRequests = new ServerRequests(this);\n serverRequests.storeUserGlucoseInBackground(userdata, new GetUserCallback() {\n @Override\n public void done(User returnedUser) {\n startActivity(new Intent(GlucoseActivity.this, GlucoseActivity.class));\n }\n });\n\n\n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "public void onClickSignUp(View view) {\r\n\t\tcheckRegistationValidation();\r\n\t}", "public Signup() {\n initComponents();\n }", "public void signUp() throws ExecutionException, InterruptedException {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mPasswordView.setError(null);\n usernameView.setError(null);\n lname.setError(null);\n mEmailView.setError(null);\n cPassword.setError(null);\n age.setError(null);\n fname.setError(null);\n\n // Store values at the time of the login attempt.\n String username = usernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n String email = mEmailView.getText().toString();\n String lnameS = lname.getText().toString();\n String fnameS = fname.getText().toString();\n String conPass = cPassword.getText().toString();\n String ageS = age.getText().toString();\n String gender = spinner.getSelectedItem().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n //showProgress(true);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"userName\", username);\n map.put(\"pass\", password);\n map.put(\"age\", ageS);\n map.put(\"email\", email);\n map.put(\"fName\", fnameS);\n map.put(\"lName\", lnameS);\n map.put(\"sex\", gender);\n map.put(\"cPass\", conPass);\n\n mAuthTask = new httpUrlConn(map, \"http://hive.sewanee.edu/evansdb0/android1/scripts/hotPartySignUp.php\");\n\n mAuthTask.execute();\n // if php inserted credentials into the database\n Log.i(\"mAuthTask.get is:\", mAuthTask.get());\n try {\n // if the user succesfully logged in\n if(mAuthTask.get().contains(\"true\")) {\n String r = mAuthTask.get().replace(\"true // \",\"\");\n // tell them they are registered\n Toast.makeText(getApplicationContext(),r,Toast.LENGTH_SHORT).show();\n Intent i = new Intent(this,loginActivity2.class);\n // take them back to log in part of this activity\n startActivity(i);\n\n }\n else {\n String[] resp = response.split(\",\");\n for(String i: resp)\n Toast.makeText(getApplicationContext(),i,Toast.LENGTH_SHORT).show();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mAuthTask == null || mAuthTask.getStatus().equals(AsyncTask.Status.FINISHED))\n mAuthTask = null;\n }\n }", "public static void signup() throws Exception{\n\t\trender();\n\t}", "@Test(priority=2)\n\tpublic void completeSignUpProcess(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterFirstName(\"Manish Kumar\");\n\t\tsignup.enterLastName(\"Vuttunoori\");\n\t\tsignup.enterPassword(\"qwerty126\");\n\t\tsignup.reenterPassword(\"qwerty126\");\n\t\tsignup.clickSubmit();\n\t\t// must go to home page but wont as the mail id used here is already registered for an account, \n\t\t//so just checking for single error i.e. Email is already registered.\n\t\tAssert.assertEquals(1, signup.getErrors().size());\n\t}", "public void signUpUser(RegistrationRequest request) {\n String requestEmail = request.getEmail();\n\n // sign up user through user service and get token UUID\n String token = applicationUserService.signUpUser(\n // convert request to client user\n convertRegistrationRequestToApplicationUser(request));\n\n // create confirmation link\n String host = \"localhost:8080\";\n String link = \"http://\" + host + \"/registration/confirm?token=\" + token;\n\n // send email with link to the user's email address\n emailSender.send(requestEmail,\n // build email message\n EmailMessageHelper.buildEmailMessage(request.getUsername(), link));\n\n }", "public boolean manualRegistration(String[] data) {\n EndUser customer = new EndUser(data[1], data[3]);\n User user = new User();\n user.setPassword(passwordEncoder.encode(\"w7$Q.R[xB8\"));\n user.setEnabled(true);\n user.setEmail(data[2]);\n user.setUsername(data[4]);\n Set<Role> auth = authorityService.findByname(\"ROLE_CUSTOMER\");\n user.setRoles(auth);\n user.setActivated(true);\n customer.setFirstLogin(true);\n customer.setCanComment(true);\n customer.setCanReserve(true);\n customer.setNumberCanceledRequest(0);\n customer.setNumberRefusedComments(0);\n customer.setUser(user.escapeParameters(user));\n\n endUserRepository.save(customer.escapeParameters(customer));\n return true;\n }", "@Override\n public void onValidationSucceeded() {\n String email = mEmailField.getText().toString();\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n mSignUpInterface.onSignup(email, firstName, lastName, password);\n }", "public void sendregisteruser(registerDTO register) {\n MimeMessagePreparator preparator = new MimeMessagePreparator()\n {\n public void prepare(MimeMessage mimeMessage) throws Exception\n {\n mimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(register.getEmail()));\n mimeMessage.setSubject(\"Welcome to The Indian Bus Service\");\n\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);\n\n helper.setText(\"<html><body>\"\n + \"<br>\"\n + \"<h2>Hello \"+register.getFirstname()+\" \"+register.getLastname()+\"</h2>\"\n + \"<p>Welcome to <b>Indian Bus Service</b></p>\"\n + \"<br>\"\n + \"<p>Username:- \"+register.getEmail()+\"</p>\"\n + \"<p>Hope you are doing well in this lockdown.</b></p>\"\n + \"<p>Date your login : </p>'\"+new Date()+\"'</body></html>\", true);\n }\n };\n\n try {\n mailSender.send(preparator);\n }\n catch (MailException ex) {\n // simply log it and go on...\n System.err.println(ex.getMessage());\n }\n }", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "private void addemail() {\n //get email address entered by user.\n String emailaddress = email.getText().toString().trim();\n //get password entered by user.\n String pass = password.getText().toString().trim();\n //Create new child of user in db if both email and password is not empty.\n if (!(emailaddress.isEmpty() || pass.isEmpty())) {\n String id = emailaddress.split(\"@\")[0];\n User useremail = new User(id, emailaddress, pass, \"\",\"\");\n dblogin.child(id).setValue(useremail);\n Toast.makeText(this, \"User Registered\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Please enter a valid email address to sign up\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), SignupActivity.class);\n intent.putExtra(SignupActivity.EXTRA_TYPEUSER, Constants.flowSignupUser);\n User u = new User(); u.setEmail(text_email.getText().toString()); u.setPassword(text_password.getText().toString());\n intent.putExtra(SignupActivity.LOGIN_PARAMS,u );\n startActivityForResult(intent, Constants.REQUEST_SIGNUP);\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "public F.Promise<Result> handleSignUp() {\n final Form<SignUp> filledForm = signUpForm.bindFromRequest();\n if(customerService().isLoggedIn()) {\n return asPromise(redirectToReturnUrl());\n } else if (filledForm.hasErrors()) {\n return asPromise(badRequest(signupView.render(data().build(), filledForm)));\n } else {\n return handleSignUpWithValidForm(filledForm);\n }\n }", "public Sign_up() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }" ]
[ "0.71086025", "0.692406", "0.6819431", "0.67457986", "0.6708956", "0.6707951", "0.6650367", "0.6646354", "0.66016954", "0.6526932", "0.64834934", "0.64468783", "0.64234793", "0.64019126", "0.6358378", "0.63528407", "0.6324773", "0.6283275", "0.62740576", "0.6269697", "0.62488645", "0.6242284", "0.6189488", "0.61843747", "0.61588037", "0.6145516", "0.61405325", "0.61404157", "0.6109901", "0.61069876", "0.61023974", "0.61019516", "0.60951275", "0.60829324", "0.6077338", "0.6073945", "0.6071666", "0.6047887", "0.60395765", "0.6034363", "0.6026359", "0.60256386", "0.6022454", "0.60198927", "0.60023165", "0.59957194", "0.5995405", "0.59928536", "0.59884834", "0.59828687", "0.5982009", "0.5979254", "0.59683543", "0.5967422", "0.5960195", "0.59597415", "0.59569705", "0.5931803", "0.59300506", "0.59235054", "0.591362", "0.5905446", "0.5898428", "0.58926", "0.5867062", "0.58608127", "0.585839", "0.5857962", "0.5848963", "0.5848107", "0.58382386", "0.5837522", "0.5831639", "0.5826382", "0.582614", "0.5825337", "0.5819582", "0.581549", "0.58115584", "0.5804915", "0.5804324", "0.5804281", "0.5792868", "0.57924354", "0.5792305", "0.5787849", "0.577659", "0.5775371", "0.5773835", "0.5767897", "0.576186", "0.5757702", "0.5756423", "0.5755888", "0.57553345", "0.5748651", "0.5736622", "0.5734911", "0.5734741", "0.5729783" ]
0.6408304
13
Sign up data to be send
public void reqlist() { NameValueSet.Builder value = NameValueSet.newBuilder(); value.setName("ReqCourseList_Name"); value.setValue("ReqCourseList_value"); JobDesc.Builder desc = JobDesc.newBuilder(); desc.setNameSpace("ReqCourseList_namespace"); desc.setJobId("Zero"); desc.setOwnerId(0); desc.setStatus(JobCode.JOBUNKNOWN); desc.setOptions(value.build()); JobOperation.Builder j = eye.Comm.JobOperation.newBuilder(); j.setAction(JobAction.ADDJOB); j.setJobId("Zero"); j.setData( desc.build()); GetCourse.Builder gb=eye.Comm.GetCourse.newBuilder(); gb.setCourseId(-1); RequestList.Builder sb= eye.Comm.RequestList.newBuilder(); sb.addCourseList(gb.build()); // Payload containing data Request.Builder r = Request.newBuilder(); eye.Comm.Payload.Builder p = Payload.newBuilder(); p.setReqList(sb.build()); p.setJobOp(j.build()); r.setBody(p.build()); // header with routing info eye.Comm.Header.Builder h = Header.newBuilder(); h.setOriginator("client"); h.setTag("ReqCourseList"); h.setTime(System.currentTimeMillis()); h.setRoutingId(eye.Comm.Header.Routing.JOBS); r.setHeader(h.build()); eye.Comm.Request req = r.build(); try { comm.sendMessage(req); } catch (Exception e) { logger.warn("Unable to deliver message, queuing"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void signUp(SignUpRequest signupRequest);", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }", "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public void sendDataForSignUp(View view){\r\n //Prendo i dati dalla form:\r\n EditText nome = findViewById(R.id.nome);\r\n EditText cognome = findViewById(R.id.cognome);\r\n EditText dataDinascita = findViewById(R.id.data_nascita);\r\n EditText telefono = findViewById(R.id.telefono);\r\n EditText username = findViewById(R.id.username);\r\n EditText mail = findViewById(R.id.email);\r\n EditText password = findViewById(R.id.password);\r\n EditText passwordr = findViewById(R.id.repPass);\r\n\r\n //Converto i dati in stringa per inviarli al server\r\n String nomes = nome.getText().toString();\r\n String cognomes = cognome.getText().toString();\r\n String dataDinascitas = dataDinascita.getText().toString();\r\n String telefonos = telefono.getText().toString();\r\n String usernames = username.getText().toString();\r\n String mails = mail.getText().toString();\r\n String passwords = password.getText().toString();\r\n String passwordrs = passwordr.getText().toString();\r\n\r\n if (passwords.compareTo(passwordrs) != 0 || passwords.length() < 1)\r\n {\r\n Toast.makeText(this, \"ERRORE:\\nLe password non corrispondenti.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n else\r\n if (nomes.length() < 1 || cognomes.length() < 1 || dataDinascitas.length() < 1 || telefonos.length() < 1 || usernames.length() < 1 || mails.length() < 1)\r\n {\r\n Toast.makeText(this, \"ERRORE:\\nDevi compilare tutti i campi.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n try {\r\n passwords = SHA1(passwords);\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n } catch (UnsupportedEncodingException e) {\r\n Toast.makeText(this, \"ERRORE:\\nimpossibile hashare la password da inviare.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n JSONObject postData = new JSONObject();\r\n JSONObject autista = new JSONObject();\r\n\r\n try {\r\n autista.put(\"username\", usernames);\r\n autista.put(\"password\", passwords);\r\n autista.put(\"email\", mails);\r\n autista.put(\"nome\", nomes);\r\n autista.put(\"cognome\", cognomes);\r\n autista.put(\"dataDiNascita\", dataDinascitas);\r\n autista.put(\"telefono\", telefonos);\r\n postData.put(\"autista\", autista);\r\n }catch (Exception e){\r\n Toast.makeText(this, \"ERRORE:\\nimpossibile leggere i campi appena compilati.\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n\r\n // Avverto l'utente del tentativo di invio dei dati di login al server\r\n caricamento = ProgressDialog.show(SignUpActivity.this, \"\",\r\n \"Connessione con il server in corso...\", true);\r\n Connessione conn = new Connessione(postData, \"POST\");\r\n conn.addListener(this);\r\n conn.execute(Parametri.IP + \"/signup\");\r\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}", "private void SignUp(String email, String password) {\n if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password) ) {\n\n }else {\n msignInDialog.setTitle(\"Creating New User\");\n msignInDialog.setMessage(\"Please wait while DevChat creates your new Account...\");\n msignInDialog.setCanceledOnTouchOutside(false);\n msignInDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ActivityRegister.this, \"User Account Created!\", Toast.LENGTH_SHORT).show();\n createUser(et_username.getText().toString());\n msignInDialog.dismiss();\n Intent chatBoxIntent = new Intent(ActivityRegister.this, Chatbox_Activity.class);\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"values\", values);\n chatBoxIntent.putExtras(bundle);\n startActivity(chatBoxIntent);\n } else {\n msignInDialog.dismiss();\n Toast.makeText(ActivityRegister.this, \"Error Creating New User Account!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void signUpNew(String mail,String password){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n String dateTime = simpleDateFormat.format(Calendar.getInstance().getTime());\n\n //device ID\n String deviceId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n headers = new HashMap<>();\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"subscriptionDateTime\",dateTime);\n headers.put(\"deviceId\",deviceId);\n\n String url = serverUrl + \"/sign_up\";\n sendRequestNew(url,headers);\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "private void sendUserData() {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference myref = firebaseDatabase.getReference(Objects.requireNonNull(firebaseAuth.getUid()));\n UserProfile userProfile = new UserProfile(name, email, post, 0);\n myref.setValue(userProfile);\n }", "protected void createRegistrationInfo() {\n registrationInfo.put(\"email\", email.getText().toString());\n registrationInfo.put(\"password\", password.getText().toString());\n }", "public void signup(String name, String uname, String passwd) {\n\t\t\n\t\tNameValueSet.Builder value = NameValueSet.newBuilder();\n\t\tvalue.setName(\"SignUp_name\");\n\t\tvalue.setValue(\"SignUp_value\");\n\t\t\n\t\tJobDesc.Builder desc = JobDesc.newBuilder();\n\t\tdesc.setNameSpace(\"SignUp_namespace\");\n\t\tdesc.setJobId(\"Zero\");\n\t\tdesc.setOwnerId(0);\n\t\tdesc.setStatus(JobCode.JOBUNKNOWN);\n\t\tdesc.setOptions(value.build());\n\t\t\n\t\tJobOperation.Builder j = eye.Comm.JobOperation.newBuilder();\n\t\tj.setAction(JobAction.ADDJOB);\n\t\tj.setJobId(\"Zero\");\n\t\tj.setData( desc.build());\n\n\t\t\t\n\t\tSignUp.Builder sb= eye.Comm.SignUp.newBuilder();\n\t\tsb.setFullName(name);\n\t\tsb.setUserName(uname);\n\t\tsb.setPassword(passwd);\n\t\t \n\n\t\t// Payload containing data\n\t\tRequest.Builder r = Request.newBuilder();\n\t\teye.Comm.Payload.Builder p = Payload.newBuilder();\n\t\tp.setSignUp(sb.build());\n\t\tp.setJobOp(j.build());\n\t\tr.setBody(p.build());\n\n\t\t// header with routing info\n\t\teye.Comm.Header.Builder h = Header.newBuilder();\n\t\th.setOriginator(\"client\");\n\t\th.setTag(\"Sign up\");\n\t\th.setTime(System.currentTimeMillis());\n\t\th.setRoutingId(eye.Comm.Header.Routing.JOBS);\n\t\tr.setHeader(h.build());\n\n\t\teye.Comm.Request req = r.build();\n\n\t\ttry {\n\t\t\tcomm.sendMessage(req);\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"Unable to deliver message, queuing\");\n\t\t}\n\t}", "private void doSignup(RoutingContext ctx){\n // Get Data from view\n JsonObject req = ctx.getBodyAsJson();\n String username = req.getString(\"username\");\n String password = req.getString(\"password\");\n\n GoogleAuthenticator authenticator = new GoogleAuthenticator();\n\n //Get Generate Key\n System.out.println(\" Calling Google Authenticator to generate AuthKey\");\n GoogleAuthenticatorKey authKey = authenticator.createCredentials();\n String key = authKey.getKey();\n System.out.println(\" Google Authenticator generated AuthKey\");\n\n //Store Data from Repository\n User user = new User(username,password,key);\n\n //send response to the user\n JsonObject res = new JsonObject().put(\"key\",key);\n ctx.response().setStatusCode(200).end(res.encode());\n }", "@Override\n public void onClick(View v) {\n\n String name = fullname.getText().toString();\n String emailx = email.getText().toString();\n String password1 = password.getText().toString();\n String password2 = password_conf.getText().toString();\n progressDialog.setMessage(\"sign up your data\");\n showDialog();\n\n\n userdata = new UserData(name,emailx,password1,password2);\n Call<UserData> call = createUser.createUser(userdata);\n call.enqueue(new Callback<UserData>() {\n @Override\n public void onResponse(Call<UserData> call, Response<UserData> response) {\n if(response.isSuccessful()){\n Toast.makeText(RegisterActivity.this,\"Sign Up Success\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n finish();\n hideDialog();\n } else {\n Toast.makeText(getApplicationContext(),response.message(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }\n\n @Override\n public void onFailure(Call<UserData> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"Error Connection\", Toast.LENGTH_LONG).show();\n hideDialog();\n }\n });\n }", "@Override\n public void onClick(View view) {\n final String username = usernameInput.getText().toString();\n final String password = passwordInput.getText().toString();\n final String email = emailInput.getText().toString();\n final String handle = handleInput.getText().toString();\n signup(username, password, email, handle);\n }", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "public void sendMail(RegistrationData d) {}", "public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }", "void onSignUpEmailRegistered();", "public void signup() {\n Log.d(TAG, \"Signup\");\n\n if (!validate()) {\n onSignupFailed();\n return;\n }\n\n createProgressDialog(R.string.creating_account);\n\n final String name = _nameText.getText().toString();\n final String email = _emailText.getText().toString();\n final String password = _passwordText.getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n createToast(R.string.authentication_failed, Toast.LENGTH_SHORT);\n } else {\n progressDialog.dismiss();\n final FirebaseUser user = mAuth.getCurrentUser();\n mDatabase.child(\"users\").child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null) {\n createUserInFirebase(name, email, user.getUid());\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n sendToTrivia();\n }\n\n }\n });\n\n\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run() {\n // On complete call either onSignupSuccess or onSignupFailed\n // depending on success\n progressDialog.dismiss();\n }\n }, 3000);\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "private void RegisterFacebookSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\tasName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\tasValue.add(data.GetS(LocalData.LINK));\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\n\t\t\tString sURL = StringURLs.FACEBOOK_LOGIN;\n\t\t\t// getQuery(StringURLs.FACEBOOK_LOGIN, asName, asValue);\n\n\t\t\tConnectServerParam connectServer = new ConnectServerParam();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setParams(asName, asValue);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private McSignUp(Builder builder) {\n super(builder);\n }", "public void senddata(View g)\r\n\t{\n\t\tnew CreateUsers().execute();\r\n\t}", "public SignUp() {\n PageFactory.initElements(webDriver, this);\n }", "private void sign_up() {\n final String name = nameET.getText().toString().trim();\n final String cell = cellET.getText().toString().trim();\n final String division = divisionET.getText().toString().trim();\n final String address = addressEt.getText().toString().trim();\n final String password = passwordET.getText().toString().trim();\n final String account_type = accouttypeET.getText().toString().trim();\n final String status=\"Pending\";\n\n\n //Checking field/validation\n if (name.isEmpty()) {\n nameET.setError(\"Please enter name !\");\n requestFocus(nameET);\n }\n else if (cell.length()!=11) {\n\n cellET.setError(\"Please enter valid phone number !\");\n requestFocus(cellET);\n\n }\n\n else if (division.isEmpty()) {\n\n divisionET.setError(\"Please select division !\");\n requestFocus(divisionET);\n Toasty.error(this, \"Please select division !\", Toast.LENGTH_SHORT).show();\n }\n else if (address.isEmpty()) {\n\n addressEt.setError(\"Please enter full address !\");\n requestFocus(addressEt);\n }\n else if (account_type.isEmpty()) {\n\n accouttypeET.setError(\"Please select account type !\");\n requestFocus(accouttypeET);\n Toasty.error(this, \"Please select account type !\", Toast.LENGTH_SHORT).show();\n }\n else if (password.isEmpty()) {\n\n passwordET.setError(\"Please enter password !\");\n requestFocus(passwordET);\n }\n else if (password.length() < 4) {\n\n passwordET.setError(\"Password should be more than 3 characters!\");\n requestFocus(passwordET);\n }\n\n else\n {\n loading = new ProgressDialog(this);\n loading.setIcon(R.drawable.wait_icon);\n loading.setTitle(\"Sign up\");\n loading.setMessage(\"Please wait....\");\n loading.show();\n\n\n StringRequest stringRequest=new StringRequest(Request.Method.POST, Constant.SIGNUP_URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //for track response in logcat\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n Toasty.error(RegisterActivity.this, \"No Internet Connection or \\nThere is an error !!!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n }\n }\n\n ){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n //Adding parameters to request\n\n params.put(Constant.KEY_NAME, name);\n params.put(Constant.KEY_CELL, cell);\n params.put(Constant.KEY_DIV, division);\n params.put(Constant.KEY_ADDRESS, address);\n params.put(Constant.KEY_AC_TYPE, account_type);\n params.put(Constant.KEY_PASSWORD, password);\n params.put(Constant.KEY_STATUS, status);\n\n Log.d(\"url_info\",Constant.SIGNUP_URL);\n\n //returning parameter\n return params;\n }\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n }\n }", "public void signup(View view){\r\n if(editText1.getText().toString().isEmpty()||editText2.getText().toString().isEmpty()||editText3.getText().toString().isEmpty()\r\n ||editText4.getText().toString().isEmpty()||editText5.getText().toString().isEmpty()){\r\n Toast.makeText(this, \"Παρακαλώ εισάγετε όλα τα απαραίτητα πεδία προκειμένου να εγγραφείτε.\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n mAuth.createUserWithEmailAndPassword(editText1.getText().toString(), editText2.getText().toString())\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n\r\n if (task.isSuccessful()) {\r\n new_user = mAuth.getCurrentUser();\r\n create_users_list(new_user.getUid());\r\n String userid=new_user.getUid();\r\n String firstname=editText3.getText().toString();\r\n String lastname=editText4.getText().toString();\r\n String address=editText5.getText().toString();\r\n SharedPreferences.Editor editor=pref.edit();\r\n editor.putString(userid+\"firstname\",firstname);\r\n editor.putString(userid+\"lastname\",lastname);\r\n editor.putString(userid+\"address\",address);\r\n editor.apply();\r\n Intent intent = new Intent(getApplicationContext(), MainActivity3.class);\r\n intent.putExtra(\"userid\", new_user.getUid());\r\n\r\n startActivity(intent);\r\n\r\n\r\n } else {\r\n Toast.makeText(getApplicationContext(), task.getException().getMessage(),\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n }\r\n );}}", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "public void UserSignUp(View view)\n {\n // get the data from text fields\n inputName = ((EditText) findViewById(R.id.signUpEditTextName)).getText().toString();\n inputEmail = ((EditText) findViewById(R.id.signUpEditTextEmail)).getText().toString();\n inputPhoneNumber = ((EditText) findViewById(R.id.signUpEditTextPhoneNumber)).getText().toString();\n inputPassword = ((EditText) findViewById(R.id.signUpEditTextPassword)).getText().toString();\n inputRepeatPassword = ((EditText) (findViewById(R.id.signUpEditTextRepeatPassword))).getText().toString();\n\n // If some text fields are empty\n if(inputName.equals(\"\") || inputEmail.equals(\"\") || inputPhoneNumber.equals(\"\")\n || inputPassword.equals(\"\") || inputRepeatPassword.equals(\"\")) {\n Toast.makeText(SignUpActivity.this, \"All fields are required!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n // if password and repeat password are matched\n else if(inputPassword.compareTo(inputRepeatPassword) == 0) {\n // if there is internet connection\n if (CheckNetworkConnection.checknetwork(getApplicationContext()))\n new CreateNewUser().execute();\n else\n Toast.makeText(SignUpActivity.this, \"No Internet Connection!\", Toast.LENGTH_LONG).show();\n }\n // if password and repeat password do not matched\n else {\n Toast.makeText(SignUpActivity.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n\n }", "private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(Signup.this, gso);\n\n\n }", "private void doRegister(){\n Map<String, String> mParams = new HashMap<>();\n mParams.put(\"account\", etPhone.getText().toString());\n mParams.put(\"password\", etPwd.getText().toString());\n mParams.put(\"code\", etValid.getText().toString());\n\n x.http().post(HttpUtils.getRequestParams(\"/teacher/v1/register\", mParams),\n\n new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n\n CustomProgress.hideDialog();\n LogUtil.d(\"\"+result);\n Response response = CommonUtil.checkResponse(result);\n if (response.isStatus()) {\n SharedPreferences shareAutoLogin = MyApplication.getInstance().getShareAutoLogin();\n SharedPreferences.Editor editor = shareAutoLogin.edit();\n editor.putBoolean(MyApplication.getInstance().AUTOLOGIN, true);\n editor.commit();\n MyApplication.getInstance().setShareApp(etPhone.getText().toString(), etPwd.getText().toString());\n User user = User.getUserFromJsonObj(response.getData().optJSONObject(\"data\"));\n User.setCurrentUser(user);\n MobclickAgent.onProfileSignIn(user.getNickName());\n\n // 登录环信\n if (!StringUtils.isEmpty(user.hxId) && !StringUtils.isEmpty(user.hxPwd))\n AppUtils.loginEmmobAndSaveInfo(user);\n\n // 极光推送设置别名\n JPushInterface.setAlias(RegisterActivity.this, user.getId() + \"\", new TagAliasCallback() {\n @Override\n public void gotResult(int i, String s, Set<String> set) {\n if (i == 0) {\n LogUtil.i(\"极光推送别名设置成功,别名:\" + s);\n }\n }\n });\n\n socketLogin(user.getToken());\n\n Intent intent = new Intent(RegisterActivity.this, CodeActivity.class);\n startActivity(intent);\n finish();\n } else {\n Toast.makeText(x.app(), response.getData().optString(\"message\"), Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n\n CustomProgress.hideDialog();\n\n if (ex instanceof HttpException) { // 网络错误\n HttpException httpEx = (HttpException) ex;\n int responseCode = httpEx.getCode();\n String responseMsg = httpEx.getMessage();\n String errorResult = httpEx.getResult();\n LogUtil.d(responseCode + \":\" + responseMsg);\n Toast.makeText(x.app(), x.app().getResources().getString(R.string.net_error), Toast.LENGTH_SHORT).show();\n } else { // 其他错误\n // ...\n }\n //Toast.makeText(x.app(), ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n Toast.makeText(x.app(), \"cancelled\", Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onFinished() {\n\n }\n });\n\n }", "public void signUp(UserSignUpRequest userSignUpRequest) {\n apiInterface.signUp(\n userSignUpRequest\n )\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n new Observer<Response<ResponseBody>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Response<ResponseBody> responseBodyResponse) {\n if (responseBodyResponse.code() == 201) {\n try {\n //noinspection ConstantConditions\n saveUserData(\n new Gson().fromJson(\n responseBodyResponse.body().string(),\n UserData.class\n )\n );\n } catch (IOException e) {\n e.printStackTrace();\n }\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.SUCCESS, \"\"\n )\n )\n );\n } else {\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.FAIL,\n getErrorMessage(responseBodyResponse.errorBody())\n )\n )\n );\n }\n }\n\n @Override\n public void onError(Throwable e) {\n mutableLiveDataSignUpResult.postValue(\n new Event<>(\n new Result(\n Enums.Result.FAIL,\n getErrorMessage(e)\n )\n )\n );\n }\n\n @Override\n public void onComplete() {\n\n }\n }\n );\n }", "private MsSignUp(Builder builder) {\n super(builder);\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void confirmRegistration(RegistrationData d) {}", "Task<Void> signUp(String email, String password);", "public void signUp(View v) {\n attemptRegistration();\n }", "@OnClick(R.id.register_email_register_button)\n void onClickRegister(){\n if(isInfoValidate()){\n //Call Register Http, first put the information into bundle\n// Bundle bundle = new Bundle();\n// bundle.putString(Constant.REGISTER_PHONE_NUM, mEmailAddress.getText().toString());\n// bundle.putString(Constant.REGISTER_PASSWORD, mPassword.getText().toString());\n// bundle.putInt(Constant.REGISTER_REGION, mRegionSpinner.getSelectedItemPosition());\n//\n// callRegisterHttp(mEmailAddress.getText().toString(),\n// mRegionSpinner.getSelectedItemPosition(),\n// bundle);\n\n //\n\n\n JSONObject jsonParams = new JSONObject();\n JSONObject outerJsonParams = new JSONObject();\n try {\n// jsonParams.put(\"username\", \"michael_firebasechat_1\");\n // String userNameString = mEmailAddress.getText().toString().split(\"@\")[0];\n jsonParams.put(\"username\", mUsername.getText().toString());\n jsonParams.put(\"email\", mEmailAddress.getText().toString());\n jsonParams.put(\"password\", mPassword.getText().toString());\n outerJsonParams.put(\"user\",jsonParams);\n StringEntity entity = new StringEntity(outerJsonParams.toString());\n callRegisterByEmailHttp(entity);\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n else {\n //Show the warning text\n new SweetAlertDialog(getContext(), SweetAlertDialog.WARNING_TYPE)\n .setTitleText(getString(R.string.warning_title))\n .setContentText(errorText)\n .setConfirmText(getString(R.string.warning_confirm))\n .show();\n }\n }", "public signup() {\n initComponents();\n }", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "private void signup(final String email, String password) {\n firebaseAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n databaseRef.child(firebaseAuth.getCurrentUser().getUid()).child(\"email\").setValue(email);\n startActivity(new Intent(getBaseContext(), ShoppingActivity.class));\n setResult(1);\n finish();\n } else {\n alert(task.getException().getMessage());\n }\n }\n });\n }", "private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }", "public void onClick_AGSU_signUp(View view) {\n AnimationTools.startLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING, this, signUpButton_rootLayout, R.style.AGSU_loading_progress_bar);\n\n FirestoreManager.saveUserData(SecondarySignUpManager.getDatabaseUser());\n\n //add a password-email auth method\n AuthCredential credential = EmailAuthProvider.getCredential(SecondarySignUpManager.getDatabaseUser().getEmail(), SecondarySignUpManager.getDatabaseUser().getPassword());\n AuthenticationManager.getCurrentUser().linkWithCredential(credential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n System.out.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: link with email credential SUCCESSFUL! User uid = \" + task.getResult().getUser().getDisplayName());\n Constants.isSignUpInProcess = false; //sign up is now finished\n\n //in AGSU user is always new --> send verification email\n EmailVerification.sendVerificationEmail();\n\n Constants.isSecondarySignUpInProcess = false; //end of secondary sign up process\n\n ActivityTools.startNewActivity(activityContext, MainActivity.class);\n } else {\n System.err.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: ERROR: link with email credential FAILED! \" + task.getException().getMessage());\n }\n\n AnimationTools.stopLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING);\n }\n });\n\n }", "private void send(){\n String n = name.getText().toString();\n String b = bg.getText().toString();\n String d = dob.getText().toString();\n String l = loc.getText().toString();\n String i = id.getText().toString();\n String m = mob.getText().toString();\n\n if(TextUtils.isEmpty(n) || TextUtils.isEmpty(b) || TextUtils.isEmpty(d) || TextUtils.isEmpty(l) || TextUtils.isEmpty(i)\n || TextUtils.isEmpty(m)){\n //if any of the field remains empty, no data will be send\n Toast.makeText(this, \"Details incomplete!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n //sending data\n String id = root.push().getKey();//key given by the firebase itself\n \n //creating new person object for each data\n Person person = new Person(b,d,i,l,m,n);\n root.child(id).setValue(person);//sending data\n }\n }", "@Test(dataProvider=\"getData\")\n\t public void signUp(String Firstname, \n String Lastname,\n String Email,\n String JobTitle,\n String Phone,\n String Company) {\n\t\t\tHomePageObjects hp = new HomePageObjects(driver);\n\t\t\thp.FreeTrial().click();\n\t\t\t\n\t\t\t\t\n\t\t \t//*****Maximize the window and wait*****//\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t //*****Actions on Login Page*****//\n\t\t\tLoginObjectPage logpg = new LoginObjectPage(driver);\n\t \tlogpg.Firstname().sendKeys(Firstname);\n\t \tlogpg.Lastname().sendKeys(Lastname);\n\t \tlogpg.Email().sendKeys(Email);\n\t \tlogpg.JobTitle().sendKeys(JobTitle);\n\t \tlogpg.Phone().sendKeys(Phone);\n\t \tlogpg.Company().sendKeys(Company);\n\t \tlogpg.NoofEmployees().click();\n\t \tlogpg.employeedropdown(3);\n\t \tlogpg.checkBox().click();\n\t \tlogpg.Enroll().click();\t \n\t System.out.println(driver.getTitle());\n\t \n\t }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "public static void signUp() {\n\t\t//donor's full name\n\t\tboolean flag = true;\n \tdo {\n \t\ttry{\n \t\t\tfullname = JOptionPane.showInputDialog(null,\"Enter your full name: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (fullname.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\t\tflag = false;\n \t\t} catch (InputMismatchException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t}\n\t\t}while (flag);\n\t\t\n //donor's username\n \tflag = true;\n \tdo {\n \t\ttry {\n \t\t\tusername = JOptionPane.showInputDialog(null,\"Enter your username: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (username.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t }\n \t\t\tflag = false;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a username.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t flag = true;\n \t\t}\t\n \t}while (flag);\n \t\n\t\t//donor's email\n \t \tflag = true;\n \t \tdo {\n \t \t\ttry {\n \t \t\t\temail = JOptionPane.showInputDialog(null,\"Enter your email: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t \t\t\tif (email.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\tflag = false;\n \t \t\t} catch (NullPointerException e) {\n \t \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your email\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t \t\t}\t\n \t}while (flag);\n\n\t \t//donor's gender\n \t \tflag = false;\n \t \tObject[] opt = {\"Male\", \"Female\"};\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tint g = JOptionPane.showOptionDialog(null,\"Choose your gender: \", \"SIGN UP\", JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE, null, opt, null);\n\t\t\t\tif (g == 0) {\n\t\t\t\t\tgender = \"male\";\n\t\t\t\t} else if (g == 1){\n\t\t\t\t\tgender = \"female\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tflag = true;\n\t\t\t} catch (NullPointerException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your gender\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}while (flag == false);\n\t\t\t\n\t\t//donor's bloodtype\n\t\tflag = true;\n\t\twhile (flag) {\n\t\t\tbloodtype = (String) JOptionPane.showInputDialog(null, \"Choose your blood type\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, bloodtypes, \"O+\" );\n\t\t\ttry {\n\t\t\t\tif (bloodtype.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your blood type.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//donor's SSN\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSSN = JOptionPane.showInputDialog(null,\"Enter your SSN: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (SSN.length() == 11) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Please enter a valid SSN (11 digits)\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (SSN.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your SSN\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}while (flag);\n\t\t\t\n\t\t//donor's region\n\t\tflag = true;\n\t\tObject[] possibilities = {\"Attica\",\"South Aegean Sea\",\"North Aegean Sea\",\"Central Greece\",\"West Greece\",\n\t\t\t \"Ionian Islands\",\"Thessaly\",\"Peloponnese\",\"Epirus\",\"Eastern Macedonia and Thrace\",\n\t\t\t \"Central Macedonia\",\"West Macedonia\",\"Crete\"};\n\t\twhile (flag) {\n\t\t\tregion = (String)JOptionPane.showInputDialog(null, \"Choose your region\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, possibilities, \"Attica\" );\n\t\t\ttry {\n\t\t\t\tif (region.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your region.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t} \n\t\t}\n\t\t\n\t\t//donor's password\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tpassword = JOptionPane.showInputDialog(null,\"Enter your password: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (password.matches(\"^.*(?=.{4,10})(?=.*\\\\d)(?=.*[a-zA-Z]).*$\")) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your password must contain both numbers and letters.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (password.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your password\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t}while(flag);\n\n\t\t//insert user's data into data base\n\t\ttry {\n\t\t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO BloodDonor (B_Name, B_Username, B_email, B_password, Gender, BloodType, SSN, Region)\" + \n\t\t\t\t\"VALUES ('\" + fullname + \"', '\" + username + \"', '\" + email + \"', '\" + password + \"', '\" + gender + \"', '\" + bloodtype + \"', '\" + SSN + \"', '\" + region + \"')\");\n\t\t\tMessages.connect().close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t//insertAnswers(username);\n\t}", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "private void charge_up() throws GB_Exception {\n try{\n if(PersonalDataController.getInstance().existRegistry(username)){\n putPersonalInformation();\n }else{\n putDefaultInformation();\n }\n } catch (SQLException | IOException ex) {\n LOG.error(ex);\n throw new GB_Exception(\"Error al carga informacion de usuario. Comuniquese con su administrador.\");\n }\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "public void signUp(String email, String password) {\n\n headers = new HashMap<>();\n //headers.put(\"req_type\", \"signUp\");\n headers.put(\"mail\", email.toString());\n headers.put(\"password\", password.toString());\n headers.put(\"enterpriseName\", \"\");\n headers.put(\"propritor\", \"\");\n headers.put(\"contactNo\", \"0\");\n headers.put(\"profilePhoto\", \"\");\n headers.put(\"retailerId\",\"1675\");\n headers.put(\"latLocation\", \"0.0\");\n headers.put(\"longLocation\", \"0.0\");\n headers.put(\"address\", \"\");\n headers.put(\"city\", \"\");\n headers.put(\"state\", \"\");\n headers.put(\"country\", \"\");\n headers.put(\"membership\", \"0\");\n headers.put(\"subDate\", \"2010-01-01\");\n headers.put(\"openCloseIsManual\", \"0\");\n headers.put(\"shopOpenTime\", \"00:00:00\");\n headers.put(\"shopCloseTime\", \"00:00:00\");\n headers.put(\"shopOpenTime2\", \"00:00:00\");\n headers.put(\"shopCloseTime2\", \"00:00:00\");\n headers.put(\"shopPhoto\", \"\");\n headers.put(\"shopActLicense\", \"\");\n headers.put(\"currentState\", \"0\");\n headers.put(\"Content-Type\", \"application/json\");\n\n try {\n\n jsonObject = new JSONObject();\n //jsonObject.put(\"req_type\", \"signUp\");\n jsonObject.put(\"mail\", email.toString());\n jsonObject.put(\"password\", password.toString());\n jsonObject.put(\"enterpriseName\", \"\");\n jsonObject.put(\"propritor\", \"\");\n jsonObject.put(\"retailerId\",\"1001\");\n jsonObject.put(\"contactNo\", \"0\");\n jsonObject.put(\"profilePhoto\", \"\");\n jsonObject.put(\"latLocation\", \"0.0\");\n jsonObject.put(\"longLocation\", \"0.0\");\n jsonObject.put(\"address\", \"\");\n jsonObject.put(\"city\", \"\");\n jsonObject.put(\"state\", \"\");\n jsonObject.put(\"country\", \"\");\n jsonObject.put(\"membership\", \"0\");\n jsonObject.put(\"subDate\", \"2010-01-01\");\n jsonObject.put(\"openCloseIsManual\", \"0\");\n jsonObject.put(\"shopOpenTime\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime\", \"00:00:00\");\n jsonObject.put(\"shopOpenTime2\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime2\", \"00:00:00\");\n jsonObject.put(\"shopPhoto\", \"\");\n jsonObject.put(\"shopActLicense\", \"\");\n jsonObject.put(\"currentState\", \"0\");\n reqBody = jsonObject.toString();\n\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/add_retailer_info_temp\";\n sendRequest(databaseURL);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }", "private void sentRequestGG(FirebaseAuth firebaseAuth) {\n if (firebaseAuth.getCurrentUser() != null) {\n SharedPref.instance.putName(firebaseAuth.getCurrentUser().getDisplayName());\n SharedPref.instance.putPassword(firebaseAuth.getCurrentUser().getUid());\n SharedPref.instance.putUrlAvatar(String.valueOf(firebaseAuth.getCurrentUser().getPhotoUrl()));\n SharedPref.instance.putUser(firebaseAuth.getCurrentUser().getDisplayName());\n SharedPref.instance.putEmail(firebaseAuth.getCurrentUser().getEmail());\n username = firebaseAuth.getCurrentUser().getEmail();\n password = firebaseAuth.getCurrentUser().getUid();\n\n UserService userService = NetContext.instance.create(UserService.class);\n MediaType jsonType = MediaType.parse(\"application/json\");\n String loginJson = (new Gson().toJson(new UserRegisterResponseJson(username, password)));\n final RequestBody loginBody = RequestBody.create(jsonType, loginJson);\n // create call\n Call<Token> loginCall = userService.postNewAccount(loginBody);\n loginCall.enqueue(new Callback<Token>() {\n @Override\n public void onResponse(Call<Token> call, Response<Token> response) {\n DBContext.instance.cleanCart();\n SharedPref.instance.putCount(0);\n //EventBus.getDefault().postSticky(new SentUserIdEvent(u.getId().get$oid()));\n //Dang nhap 1 tai khoan moi hay tai khoan cu deu tra ve 307\n if (response.code() == 307){\n login(username, password);\n } else {\n Toast.makeText(LoginActivity.this, \"Could not parse body\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Token> call, Throwable t) {\n Toast.makeText(LoginActivity.this, \"Lỗi xác minh tài khoản google!\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }\n });\n }\n }", "private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }", "void signUpAttempt(String email, String password, String firstName, String lastName);", "private void configureSignup() {\n\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(this.getResources().getString(R.string.web_client_id))\n .requestEmail().build();\n\n // Build a GoogleApiClient with access to GoogleSignIn.API and the options above.\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n\n mGoogleApiClient.connect();\n }", "private void sendGuideRegDataToFireBase(){\n }", "public void registration() {\n\t\tSystem.out.print(\"Enter Name : \");\r\n\t\tthis.name=scan.nextLine();\r\n\t\tSystem.out.print(\"Enter Age : \");\r\n\t\tthis.age=scan.nextInt();\r\n\t\tSystem.out.print(\"Enter Gender : \");\r\n\t\tthis.gender=scan.next().charAt(0);\r\n\t\tscan.nextLine();\r\n\t\tSystem.out.print(\"Enter Price : \");\r\n\t\tthis.price=scan.nextDouble();\r\n\t\tSystem.out.print(\"Enter Quantity : \");\r\n\t\tthis.quantity=scan.nextInt();\t\r\n\t\tSystem.out.println(\"Register Successfully\");\r\n\t}", "String signUp(String userName, String password) throws RemoteException, InterruptedException;", "public void registerUser(View view) {\n if(!validateName() | !validatePassword() | !validatePhoneNo() | !validateEmail()){\n return;\n }\n String phoneNo = regPhoneNo.getEditText().getText().toString();\n String name = regName.getEditText().getText().toString();\n String email = regEmail.getEditText().getText().toString();\n String password = regPassword.getEditText().getText().toString();\n\n //Call the next activity and pass phone no with it\n Intent intent = new Intent(getApplicationContext(), otpVerify.class);\n intent.putExtra(\"phoneNo\", phoneNo);\n intent.putExtra(\"password\", password);\n intent.putExtra(\"email\", email);\n intent.putExtra(\"name\", name);\n startActivity(intent);\n }", "private void userSignup(String email, String password) {\n String url = \"https://7e69edce-af20-4c49-9ad9-5697df4e8a20.mock.pstmn.io\";\n StringRequest request = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n// Log.i(\"LOG\", \"onResponse: \" + response);\n onSignupClicked.onClicked(response);\n dismiss();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// Toast.makeText(getContext(), error.toString(), Toast.LENGTH_SHORT).show();\n Log.i(\"LOG\", \"onErrorResponse: \" + error.toString());\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"username\", email);\n params.put(\"password\", password);\n return params;\n }\n };\n\n request.setRetryPolicy(new DefaultRetryPolicy(15000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n RequestQueue requestQueue = Volley.newRequestQueue(getContext());\n requestQueue.add(request);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }", "@Override\n public void onClick(View v) {\n firstNameText = capitalizeFirstLetter(firstNameET.getText().toString());\n lastNameText = capitalizeFirstLetter(lastNameET.getText().toString());\n emailText = (emailET.getText().toString()).toLowerCase();\n passwordText = passwordET.getText().toString();\n reEnterPasswordText = reEnterPasswordET.getText().toString();\n\n // Using the user-inputted information to register the user via this method\n registerUser(firstNameText, lastNameText, emailText, passwordText, reEnterPasswordText);\n }", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "public static void signUp(String username, String password, String alternativeEmail, String firstName, String lastName) {\n click(REGISTRATION_LINK);\n type(REG_FLOW_USERNAME_FIELD, username);\n click(REG_FLOW_CHECK_BUTTON);\n// if (!REG_FLOW_USERNAME_FREE_MESSAGE.toString().contains(\"Потребителското име е свободно\")) {\n// System.out.println(\"Try another username - the entered one is already in use\");\n// }\n type(REG_FLOW_PASSWORD_FIELD, password);\n type(REG_FLOW_PASSWORD_REENTER_FIELD, password);\n WebElement phoneCheckbox = Browser.driver.findElement(REG_FLOW_PHONE_CHECKBOX);\n if (phoneCheckbox.isEnabled()) {\n phoneCheckbox.click(); //that's how we disable it\n }\n type(REG_FLOW_ALTERNATIVE_EMAIL_FIELD, alternativeEmail);\n type(REG_FLOW_QUESTION_FIELD, \"To be or not to be?\");\n type(REG_FLOW_ANSWER_FIELD, \"To beeee.\");\n type(REG_FLOW_FNAME_FIELD, firstName);\n type(REG_FLOW_LNAME_FIELD, lastName);\n Browser.driver.switchTo().frame(\"abv-GDPR-frame\").manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n // Manually to tap ACCEPT on the GDPR window\n Browser.driver.switchTo().defaultContent();\n click(REG_FLOW_GENDER_RADIOBUTTON); //to choose male\n click(REG_FLOW_DAY_DROPDOWN);\n click(REG_FLOW_DAY_3); // to choose 3th\n click(REG_FLOW_MONTH_DROPDOWN);\n click(REG_FLOW_MONTH_5); // to choose May\n click(REG_FLOW_YEAR_DROPDOWN);\n click(REG_FLOW_YEAR_1998); // to choose 1998\n\n findElement(REG_FLOW_CAPTCHA_FIELD);\n click(REG_FLOW_CAPTCHA_FIELD);\n // Timeout to enter the CAPTCHA manually\n // EXPLICIT WAIT DA MU TURYA\n click(REG_FLOW_CREATE_BUTTON);\n String successfulRegMessage = Browser.driver.findElement(REG_SUCCESS_MESSAGE).getText().trim();\n assertTrue(successfulRegMessage.contains(\"Успешна регистрация.\"), \"No SUCCESS message\");\n click(LOGIN_TO_YOUR_EMAIL_BUTTON);\n }", "void handle_signup(LinkedList<Object> args) {\n try {\n String user = (String) args.get(1);\n String passwd = (String) args.get(2);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT id FROM users WHERE username=?\");\n pst.setString(1, user);\n rsl = pst.executeQuery();\n if(rsl.next()) { //查询到结果表明该用户已经存在\n args.set(1, \"no\");\n args.set(2, \"该用户名已经注册\");\n return;\n }\n pst = con.prepareStatement(\"INSERT INTO users\" +\n \"(username, password) VALUES (?,?)\");\n pst.setString(1, user);\n pst.setString(2, passwd);\n pst.executeUpdate();\n args.set(1, \"yes\");\n System.out.println(\"New user signup:\" + user);\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@Test(groups = { \"android\", \"ios\", \"web\", \"BVT01\" })\n\tpublic void P0Pass_1_testSignUpAsATeacher_GirlScout() throws Exception {\n\t\tSystem.out.println(\"P0Pass_1_testSignUpAsATeacher_BoysScout\");\n\t\tString sEmail = \"test_GirlScouts\" + getTimeStamp().replaceAll(\"-\", \"_\") + \"@test.com\";\n\t\tSystem.out.println(sEmail);\n\t\tLandingPage.getLandingPage(browser).clickOnCreateAccount().clickOnCreateNewClassGroup().clickOnGirlScoutsGroup()\n\t\t.enterFirstName(\"test\").enterLastName(\"Girl Scouts\")\n\t\t.enterEmailId(sEmail).enterPassword(\"bloomz999\")\n\t\t.clickOnSignUpButton().thenVerifyCreateButtonShouldBeDisplayed().thenVerifyProfileName(\"test Girl Scouts\")\n\t\t.thenVerifyWelcomeScreenTroop(\"Create a Troop\").clickOnSettingButton().clickOnAccountSettingsButton()\n\t\t.clickOnDeleteAccountButton().selectReasonForDeleteButton().selectReasonAsOthersButton()\n\t\t.enterPassword().clickDeletePermanentButton().clickOnYesButton().thenVerifyConfirmMessage().clickOnOkButton()\n\t\t.thenVerifySignInAndCreateButtonsShouldBeDisplayed();\n\t}", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "private void sendRegisterMessage() {\n Message initMessage = new Message(\"register\");\n initMessage.name = name;\n sendMessage(initMessage);\n\n log(\"sent init. message:\" + initMessage);\n }", "@Override\n public void onClick(View view) {\n\n int genderselecter = signupgenderbuttongroup.getCheckedRadioButtonId();\n genderbutton = (RadioButton) findViewById(genderselecter);\n\n\n // UserType radio button selector\n\n int usertypeselector = signupusertypebuttongroup.getCheckedRadioButtonId();\n usertypebutton = (RadioButton) findViewById(usertypeselector);\n\n\n if (validate()){\n // cloud upload data into database\n\n final String fullname = signupfullnameet.getText().toString().trim();\n final String emailid = signupemailet.getText().toString().trim();\n final String mobileno = signupmobilenoet.getText().toString().trim();\n final String mfgender = genderbutton.getText().toString();\n final String hpassword = signuppasswordet.getText().toString().trim();\n final String usertype = usertypebutton.getText().toString();\n\n\n mAuth.createUserWithEmailAndPassword(emailid,hpassword)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n // Send Verification Link\n\n final FirebaseUser emailverify = mAuth.getCurrentUser();\n emailverify.sendEmailVerification().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(SignUpActivity.this, \"Varification Email has been send\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.e(\"Email not send !\", \"===>\" + e.getMessage());\n }\n\n });\n Toast.makeText(SignUpActivity.this, \"Registered Succesfully\", Toast.LENGTH_SHORT).show();\n\n // Store Realtime database storedata\n\n rootNode = FirebaseDatabase.getInstance();\n reference = rootNode.getReference(\"User\");\n\n String user_id = null;\n UserHalper userHalper = new UserHalper(fullname, emailid, mobileno, mfgender, hpassword, usertype, user_id);\n reference.child(mobileno).setValue(userHalper);\n\n // Store in Cloude Database\n user_id = FirebaseAuth.getInstance().getCurrentUser().getUid();\n\n Map<String, String> userinfo = new HashMap<>();\n userinfo.put(\"Email ID\", emailid);\n userinfo.put(\"Full Name\", fullname);\n userinfo.put(\"Mobile Number\", mobileno);\n userinfo.put(\"Gender\", mfgender);\n userinfo.put(\"User-Type\", usertype);\n userinfo.put(\"Password\", hpassword);\n userinfo.put(\"User_ID\", user_id);\n\n database = FirebaseFirestore.getInstance();\n database.collection(\"User\").document(user_id)\n .set(userinfo)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n finish();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(), \"Something went's Wrong !\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n });\n mprogress.setMessage(\"Please wait...\");\n mprogress.show();\n }\n }", "public void signupPressed(View view) {\n // fetch the values\n usernameSignup = (EditText) findViewById(R.id.usernameSignupFragment);\n emailSignup = (EditText) findViewById(R.id.emailSignupFragment);\n passwordSignup = (EditText) findViewById(R.id.passwordSignupFragment);\n reenterPasswordSignup = (EditText) findViewById(R.id.reenterPasswordSignupFragment);\n\n String username = usernameSignup.getText().toString();\n String email = emailSignup.getText().toString();\n String password1 = passwordSignup.getText().toString();\n String password2 = reenterPasswordSignup.getText().toString();\n\n // input validation\n if (username.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a username.\", Toast.LENGTH_SHORT).show();\n } else if (password1.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a password.\", Toast.LENGTH_SHORT).show();\n } else if (!validatePassword(password1, password2)) {\n Toast.makeText(getApplicationContext(), \"Passwords do not match, try again.\", Toast.LENGTH_SHORT).show();\n } else if (!passwordLongEnough(password1)) {\n Toast.makeText(getApplicationContext(), \"Password too short - must be minimum 8 characters.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (emailAlreadyExists(email)) {\n Toast.makeText(getApplicationContext(), \"Account already exists with this email.\", Toast.LENGTH_SHORT).show();\n } else if (!validateEmail(email)) {\n Toast.makeText(getApplicationContext(), \"Please enter a valid email.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (!usernameAvailable(username)) {\n Toast.makeText(getApplicationContext(), \"Sorry, username already taken.\", Toast.LENGTH_SHORT).show();\n } else {\n // setup a user object with the given attributes, save and enter the app\n final TipperUser user = new TipperUser();\n user.setUsername(username);\n\n // hash password with salt\n String hashed = BCrypt.hashpw(password1, BCrypt.gensalt());\n user.setPassword(hashed);\n\n user.setEmail(email);\n user.setGoogleUser(false);\n user.setFacebookUser(false);\n user.setUuidString();\n\n user.save();\n app.setCurrentUser(user);\n user.pinInBackground();\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == ProtocolConst.CMD_REGISTER_SUCESS) {\n\t\t\tString NAME = data.getStringExtra(\"name\");\n\t\t\tString PWD = data.getStringExtra(\"pwd\");\n\t\t\taccount_input.setText(NAME);\n\t\t\tpassword_input.setText(PWD);\n\t\t}\n\t}", "public void storeGlucose(){\n String HBA1C = hba1c.getText().toString();\n String date = glucose_date.getText().toString();\n String medication = String.valueOf(medication_spinner.getSelectedItem());\n UserData userdata = new UserData(\"rjgalleg\", date, glucose_number, tag, medication, HBA1C);\n Log.i(\"Authorize\", \"date: \"+date +\", medication: \"+medication+\", HBA1C: \"+HBA1C+\", glucose number: \"+glucose_number +\"tag: \"+tag);\n ServerRequests serverRequests = new ServerRequests(this);\n serverRequests.storeUserGlucoseInBackground(userdata, new GetUserCallback() {\n @Override\n public void done(User returnedUser) {\n startActivity(new Intent(GlucoseActivity.this, GlucoseActivity.class));\n }\n });\n\n\n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "public void onClickSignUp(View view) {\r\n\t\tcheckRegistationValidation();\r\n\t}", "public Signup() {\n initComponents();\n }", "public void signUp() throws ExecutionException, InterruptedException {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mPasswordView.setError(null);\n usernameView.setError(null);\n lname.setError(null);\n mEmailView.setError(null);\n cPassword.setError(null);\n age.setError(null);\n fname.setError(null);\n\n // Store values at the time of the login attempt.\n String username = usernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n String email = mEmailView.getText().toString();\n String lnameS = lname.getText().toString();\n String fnameS = fname.getText().toString();\n String conPass = cPassword.getText().toString();\n String ageS = age.getText().toString();\n String gender = spinner.getSelectedItem().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n //showProgress(true);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"userName\", username);\n map.put(\"pass\", password);\n map.put(\"age\", ageS);\n map.put(\"email\", email);\n map.put(\"fName\", fnameS);\n map.put(\"lName\", lnameS);\n map.put(\"sex\", gender);\n map.put(\"cPass\", conPass);\n\n mAuthTask = new httpUrlConn(map, \"http://hive.sewanee.edu/evansdb0/android1/scripts/hotPartySignUp.php\");\n\n mAuthTask.execute();\n // if php inserted credentials into the database\n Log.i(\"mAuthTask.get is:\", mAuthTask.get());\n try {\n // if the user succesfully logged in\n if(mAuthTask.get().contains(\"true\")) {\n String r = mAuthTask.get().replace(\"true // \",\"\");\n // tell them they are registered\n Toast.makeText(getApplicationContext(),r,Toast.LENGTH_SHORT).show();\n Intent i = new Intent(this,loginActivity2.class);\n // take them back to log in part of this activity\n startActivity(i);\n\n }\n else {\n String[] resp = response.split(\",\");\n for(String i: resp)\n Toast.makeText(getApplicationContext(),i,Toast.LENGTH_SHORT).show();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(mAuthTask == null || mAuthTask.getStatus().equals(AsyncTask.Status.FINISHED))\n mAuthTask = null;\n }\n }", "public static void signup() throws Exception{\n\t\trender();\n\t}", "@Test(priority=2)\n\tpublic void completeSignUpProcess(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterFirstName(\"Manish Kumar\");\n\t\tsignup.enterLastName(\"Vuttunoori\");\n\t\tsignup.enterPassword(\"qwerty126\");\n\t\tsignup.reenterPassword(\"qwerty126\");\n\t\tsignup.clickSubmit();\n\t\t// must go to home page but wont as the mail id used here is already registered for an account, \n\t\t//so just checking for single error i.e. Email is already registered.\n\t\tAssert.assertEquals(1, signup.getErrors().size());\n\t}", "public void signUpUser(RegistrationRequest request) {\n String requestEmail = request.getEmail();\n\n // sign up user through user service and get token UUID\n String token = applicationUserService.signUpUser(\n // convert request to client user\n convertRegistrationRequestToApplicationUser(request));\n\n // create confirmation link\n String host = \"localhost:8080\";\n String link = \"http://\" + host + \"/registration/confirm?token=\" + token;\n\n // send email with link to the user's email address\n emailSender.send(requestEmail,\n // build email message\n EmailMessageHelper.buildEmailMessage(request.getUsername(), link));\n\n }", "public boolean manualRegistration(String[] data) {\n EndUser customer = new EndUser(data[1], data[3]);\n User user = new User();\n user.setPassword(passwordEncoder.encode(\"w7$Q.R[xB8\"));\n user.setEnabled(true);\n user.setEmail(data[2]);\n user.setUsername(data[4]);\n Set<Role> auth = authorityService.findByname(\"ROLE_CUSTOMER\");\n user.setRoles(auth);\n user.setActivated(true);\n customer.setFirstLogin(true);\n customer.setCanComment(true);\n customer.setCanReserve(true);\n customer.setNumberCanceledRequest(0);\n customer.setNumberRefusedComments(0);\n customer.setUser(user.escapeParameters(user));\n\n endUserRepository.save(customer.escapeParameters(customer));\n return true;\n }", "@Override\n public void onValidationSucceeded() {\n String email = mEmailField.getText().toString();\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n mSignUpInterface.onSignup(email, firstName, lastName, password);\n }", "public void sendregisteruser(registerDTO register) {\n MimeMessagePreparator preparator = new MimeMessagePreparator()\n {\n public void prepare(MimeMessage mimeMessage) throws Exception\n {\n mimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(register.getEmail()));\n mimeMessage.setSubject(\"Welcome to The Indian Bus Service\");\n\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);\n\n helper.setText(\"<html><body>\"\n + \"<br>\"\n + \"<h2>Hello \"+register.getFirstname()+\" \"+register.getLastname()+\"</h2>\"\n + \"<p>Welcome to <b>Indian Bus Service</b></p>\"\n + \"<br>\"\n + \"<p>Username:- \"+register.getEmail()+\"</p>\"\n + \"<p>Hope you are doing well in this lockdown.</b></p>\"\n + \"<p>Date your login : </p>'\"+new Date()+\"'</body></html>\", true);\n }\n };\n\n try {\n mailSender.send(preparator);\n }\n catch (MailException ex) {\n // simply log it and go on...\n System.err.println(ex.getMessage());\n }\n }", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "private void addemail() {\n //get email address entered by user.\n String emailaddress = email.getText().toString().trim();\n //get password entered by user.\n String pass = password.getText().toString().trim();\n //Create new child of user in db if both email and password is not empty.\n if (!(emailaddress.isEmpty() || pass.isEmpty())) {\n String id = emailaddress.split(\"@\")[0];\n User useremail = new User(id, emailaddress, pass, \"\",\"\");\n dblogin.child(id).setValue(useremail);\n Toast.makeText(this, \"User Registered\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Please enter a valid email address to sign up\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), SignupActivity.class);\n intent.putExtra(SignupActivity.EXTRA_TYPEUSER, Constants.flowSignupUser);\n User u = new User(); u.setEmail(text_email.getText().toString()); u.setPassword(text_password.getText().toString());\n intent.putExtra(SignupActivity.LOGIN_PARAMS,u );\n startActivityForResult(intent, Constants.REQUEST_SIGNUP);\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "public F.Promise<Result> handleSignUp() {\n final Form<SignUp> filledForm = signUpForm.bindFromRequest();\n if(customerService().isLoggedIn()) {\n return asPromise(redirectToReturnUrl());\n } else if (filledForm.hasErrors()) {\n return asPromise(badRequest(signupView.render(data().build(), filledForm)));\n } else {\n return handleSignUpWithValidForm(filledForm);\n }\n }", "public Sign_up() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }" ]
[ "0.71086025", "0.692406", "0.6819431", "0.67457986", "0.6708956", "0.6707951", "0.6650367", "0.6646354", "0.66016954", "0.6526932", "0.64834934", "0.64468783", "0.64234793", "0.6408304", "0.64019126", "0.6358378", "0.63528407", "0.6324773", "0.6283275", "0.62740576", "0.6269697", "0.62488645", "0.6242284", "0.6189488", "0.61843747", "0.61588037", "0.6145516", "0.61405325", "0.61404157", "0.6109901", "0.61069876", "0.61023974", "0.61019516", "0.60951275", "0.60829324", "0.6077338", "0.6073945", "0.6071666", "0.6047887", "0.60395765", "0.6034363", "0.6026359", "0.60256386", "0.6022454", "0.60198927", "0.60023165", "0.59957194", "0.5995405", "0.59928536", "0.59884834", "0.59828687", "0.5982009", "0.5979254", "0.59683543", "0.5967422", "0.5960195", "0.59597415", "0.59569705", "0.5931803", "0.59300506", "0.59235054", "0.591362", "0.5905446", "0.5898428", "0.58926", "0.5867062", "0.58608127", "0.585839", "0.5857962", "0.5848963", "0.5848107", "0.58382386", "0.5837522", "0.5831639", "0.5826382", "0.582614", "0.5825337", "0.5819582", "0.581549", "0.58115584", "0.5804915", "0.5804324", "0.5804281", "0.5792868", "0.57924354", "0.5792305", "0.5787849", "0.577659", "0.5775371", "0.5773835", "0.5767897", "0.576186", "0.5757702", "0.5756423", "0.5755888", "0.57553345", "0.5748651", "0.5736622", "0.5734911", "0.5734741", "0.5729783" ]
0.0
-1
METHODS PrePersist method for adding two fields (createdOn, createdBy) automatically before each time Notification object is created into database. For evidence of creation in future investigations.
@PrePersist public void prePersist() { createdOn = LocalDateTime.now(); createdBy = ApplicationUtils.getUserName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "@PreUpdate\n public void preUpdate() {\n updatedOn = LocalDateTime.now();\n updatedBy = ApplicationUtils.getUserName();\n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "@PrePersist\n void beforeInsert() {\n System.out.println(\"SETTING DEFAULT VALUES FOR USER\");\n emailConfirmed = false;\n deleted = false;\n _2FaEnabled = false;\n verificationToken = VerificationTokenGenerator.generateVerificationToken();\n }", "public void setCreatedOn(Timestamp createdOn) {\r\n\t\tthis.createdOn = createdOn;\r\n\t}", "@PrePersist\r\n public void prePersist() {\r\n this.username = UUID.randomUUID().toString();\r\n }", "@PreInsert\n public void onBeforeInsert() {\n if (this.key == null) {\n this.key = UUID.randomUUID();\n }\n onBeforeUpdate();\n }", "public void setCreatedOn(DateTime createdOn);", "public void prePersist(Configuration configuration) {\r\n prePersist();\r\n this.username = UUID.randomUUID().toString();\r\n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "@PrePersist @Restrict\n public void prePersist() {}", "protected void beforeCreate(RoutingContext event, JsonObject json){\n\t\tUser u = getUser(event);\n\t\tjson.put(\"userID\", u.getId());\n\t\tjson.put(\"appID\", getId(event, \"appID\"));\n\t\tjson.put(\"created\", System.currentTimeMillis());\n\t}", "public void setCreatedOn(Date createdOn)\n {\n _model.setCreatedOn(createdOn);\n }", "public Date getCreateBy() {\n return createBy;\n }", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "@Override\r\n\tpublic void postCreate(User u) {\n\t\tthis.created = LocalDateTime.now();\r\n\t\tthis.createdBy = (FaqUser) u;\r\n\t\t\r\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n\n // initialize helper class\n notificationHelper = new NotificationHelper(this);\n formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n }", "@PrePersist\n public void startLog(){\n logger.info(\"creation du place en cours \" + this.name);\n }", "public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}", "@PrePersist\n void preInsert() {\n this.isActive = true;\n }", "public void createDelayNotification (Invite inv) {\n Notification notification = new Notification();\n notification.setRelatedEvent(inv.getEvent());\n notification.setNotificatedUser(inv.getUser());\n notification.setSeen(false);\n notification.setType(NotificationType.delayedEvent);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n \n \n }", "void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }", "public void setCreateBy(Date createBy) {\n this.createBy = createBy;\n }", "void beforeInsert(PreferenceBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeInsert(pObject);\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "public void setCreateAt(Long createAt) {\n this.createAt = createAt;\n }", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "@Override\n public void createNotification(Notification notification) {\n Player p = Bukkit.getPlayer(notification.getPlayer()); //TODO uuid\n if (p != null && p.isOnline()) {\n showNotification(notification, false);\n }\n try {\n notificationIntegerDao.createIfNotExists(notification);\n } catch (SQLException e) {\n logSQLError(e);\n }\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "void setCreateby(final U createdBy);", "public Long getCreateAt() {\n return createAt;\n }", "public String getCreateBy() {\r\n return createBy;\r\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "public void setCreateDate(LocalDateTime createDate) {\n this.createDate = createDate;\n }", "public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public void setCreateDate(Timestamp createDate) {\n this.createDate = createDate;\n }", "void setUserCreated(final Long userCreated);", "@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }", "public void setCreateBy(String createBy) {\r\n\t\tthis.createBy = createBy;\r\n\t}", "public void setCreateDateTime(LocalDateTime createDateTime) {\n\t\tthis.createDateTime = createDateTime;\n\t}", "public synchronized void addNotification(ClientNotification clientNotification) {\n if (clientNotification != null) {\n SQLiteDatabase db = databaseSQLHelper.getWritableDatabase();\n addClientNotification(db, clientNotification);\n }\n }", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "@java.lang.Override\n public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {\n return getCreatedAt();\n }", "@java.lang.Override\n public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {\n return getCreatedAt();\n }", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setDateCreated(Date dateCreated);", "@Override\n\tpublic void onApplicationEvent(BeforeStoreEvent event) {\n\t\tList<? extends DomainObject<?>> domainObjects = event.getStoreContext().getDomainObjects();\n\n\t\tdomainObjects.forEach(domainObject -> {\n\t\t\tif (!domainObject.isNew() && (domainObject instanceof Task)) {\n\t\t\t\tTask task = (Task) domainObject;\n\n\t\t\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tString author = principal.getUsername();\n\t\t\t\ttask.setLastEditor(principal.getUser());\n\n\t\t\t\tif (!task.getStatus().equals(Status.CLOSED)) {\n\t\t\t\t\tPeriod period = Period.between(LocalDateTime.now().toLocalDate(),\n\t\t\t\t\t\t\ttask.getStartline().toLocalDate());\n\t\t\t\t\ttask.setWastedTime(period.getYears() + \"y \" + period.getMonths() + \"m \" + period.getDays() + \"d\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "public void setCreationDate(Date creationDate) {\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedDate(Date createdDate);", "public LocalDateTime getCreateDateTime() {\n\t\treturn createDateTime;\n\t}", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreatedAt(Long createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification> fetchByCreateBy(String... values) {\n return fetch(TaskDefNotification.TASK_DEF_NOTIFICATION.CREATE_BY, values);\n }", "public DateTime getCreatedOn();", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }" ]
[ "0.75416315", "0.7395089", "0.7299612", "0.68871826", "0.66076833", "0.6365053", "0.62408495", "0.61896974", "0.6159285", "0.6118618", "0.6004161", "0.59798753", "0.5958723", "0.5881812", "0.58809745", "0.58271", "0.58176357", "0.5807924", "0.5767105", "0.5733952", "0.5658791", "0.5647487", "0.56360775", "0.5627373", "0.5602222", "0.5599729", "0.55920327", "0.55413324", "0.55011714", "0.54878926", "0.5452578", "0.545093", "0.5441078", "0.5431371", "0.5395177", "0.53871304", "0.5375767", "0.5375767", "0.53750134", "0.53750134", "0.53684866", "0.5362912", "0.5336843", "0.5326303", "0.53176546", "0.5317166", "0.5317166", "0.5317166", "0.5317166", "0.5314471", "0.5314471", "0.5314141", "0.53130746", "0.5309492", "0.52957773", "0.52957773", "0.52957773", "0.52957773", "0.52957773", "0.52957773", "0.52957773", "0.5288857", "0.5288857", "0.5288857", "0.5288857", "0.5280992", "0.52725124", "0.5257105", "0.5257105", "0.5252451", "0.52523553", "0.5251729", "0.52476716", "0.52386093", "0.523492", "0.5231533", "0.5216881", "0.5215683", "0.5215683", "0.5211935", "0.5208889", "0.5208889", "0.5208889", "0.5208889", "0.5204119", "0.5199555", "0.5193196", "0.5193173", "0.5193173", "0.5187969", "0.5186409", "0.5184812", "0.5182738", "0.5177881", "0.51707274", "0.5169884", "0.5169882", "0.51696783", "0.51696783", "0.51696783" ]
0.8147038
0
PreUpdate method for adding two fields (updatedOn, updatedBy) automatically before each time Notification object is changed in database. For evidence of creation in future investigations.
@PreUpdate public void preUpdate() { updatedOn = LocalDateTime.now(); updatedBy = ApplicationUtils.getUserName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }", "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "@PreUpdate\r\n public void preUpdate() {\r\n\r\n }", "@DISPID(-2147412091)\n @PropGet\n java.lang.Object onbeforeupdate();", "@PrePersist\n public void prePersist() {\n createdOn = LocalDateTime.now();\n createdBy = ApplicationUtils.getUserName();\n }", "void beforeUpdate(PreferenceBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "private void handleAccountUpdateOnPre() {\n }", "@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "@Override\n\tpublic void preUpdate() {\n\n\t}", "void beforeUpdate(SampletypeBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "public void setUpdatedOn(Date updatedOn);", "@DISPID(-2147412091)\n @PropPut\n void onbeforeupdate(\n java.lang.Object rhs);", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "public void beforeUpdate(VLabtestInstBean pObject) throws SQLException;", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "void beforeUpdate(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "private void prePreTickUpdates() {\n\t\t// <- LOGGING\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Pre PreTick\\t\\t (DefaultSchedule ID \" + id + \")\");\n\t\t}\n\t\t// LOGGING ->\n\n\t\t// copy to prevent concurrent modifications:\n\t\tList<PrePreTickAction> prePreTickActionsCopy = new ArrayList<PrePreTickAction>(\n\t\t\t\tprePreTickActions);\n\n\t\tfor (PrePreTickAction p : prePreTickActionsCopy) {\n\t\t\t// <- LOGGING\n\t\t\tif (logger.isTraceEnabled()) {\n\t\t\t\tlogger.trace(\"Do PrePreTick action \" + p);\n\t\t\t}\n\t\t\t// LOGGING ->\n\n\t\t\tp.prePreTick();\n\t\t}\n\t}", "@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}", "protected abstract void trace_pre_updates();", "public void preCommitChanges() {\n if (onEditListener != null)\n onEditListener.onPreEdit();\n }", "public Date getUpdatedOn();", "public void beforeUpdate(RoomstatusBean pObject) throws SQLException;", "@PreInsert\n public void onBeforeInsert() {\n if (this.key == null) {\n this.key = UUID.randomUUID();\n }\n onBeforeUpdate();\n }", "public void setUpdatedon( Date updatedon )\n {\n this.updatedon = updatedon;\n }", "public void beforeUpdate(VLabAnsByContragentBean pObject) throws SQLException;", "void beforeInsert(PreferenceBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeInsert(pObject);\n }", "@DISPID(-2147412090)\n @PropGet\n java.lang.Object onafterupdate();", "public void preUpdate(Configuration configuration) {\r\n preUpdate();\r\n }", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@PreUpdate\n private void albumPreUpdate(Album a) {\n eventSubject = a;\n Album.CALLBACK_LOG.add(new CallbackLogEntry(this, PreUpdate.class));\n }", "@Override\n public void onPre() {\n }", "protected abstract void trace_update_pre(final AtomicComponent<T> c);", "private void addBeforeRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t\t\r\n\t processer.addBeforeRule(new BDPKLockSuperVORule());\r\n\t processer.addBeforeRule(new BizLockRule());\r\n\t processer.addBeforeRule(new VersionValidateRule());\r\n\t processer.addBeforeRule(new BDReferenceCheckerRule());\r\n\t processer.addBeforeRule(new FireEventRule(\"1005\"));\r\n\t processer.addBeforeRule(new NotifyVersionChangeWhenDataDeletedRule());\r\n }", "public void setUpdateBy( String updateBy ) {\n this.updateBy = updateBy;\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "Update createUpdate();", "@Override\n\tpublic void beforeSave(Collection<R> rows) {\n\t\ttable//\n\t\t\t.getTransactionAttribute()\n\t\t\t.ifPresent(attribute -> attribute.updateTransactionFields(rows));\n\n\t\t// track which fields where changed\n\t\tDbConnections//\n\t\t\t.getOrPutTransactionData(EmfChangeTracker.class, EmfChangeTracker::new)\n\t\t\t.ifPresent(tracker -> tracker.trackChanges(rows));\n\n\t\texecuteSaveHooks(hook -> hook.beforeSave(rows));\n\t}", "public void updateDate(){\n\t duedate_priority++;\n\t}", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "Date getDateUpdated();", "public void postProcess() {\n if (foreignColumnName != null) {\n foreignAutoRefresh = true;\n }\n if (foreignAutoRefresh && maxForeignAutoRefreshLevel == NO_MAX_FOREIGN_AUTO_REFRESH_LEVEL_SPECIFIED) {\n maxForeignAutoRefreshLevel = DatabaseField.DEFAULT_MAX_FOREIGN_AUTO_REFRESH_LEVEL;\n }\n }", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "@PrePersist\n void beforeInsert() {\n System.out.println(\"SETTING DEFAULT VALUES FOR USER\");\n emailConfirmed = false;\n deleted = false;\n _2FaEnabled = false;\n verificationToken = VerificationTokenGenerator.generateVerificationToken();\n }", "public void onUpdatePropertiesEveryEvent(NodeRef nodeRef, Map<QName, Serializable> before,\n Map<QName, Serializable> after)\n {\n // Only process this node if its name property has changed.\n String nameBefore = (String) before.get(ContentModel.PROP_NAME);\n String nameAfter = (String) after.get(ContentModel.PROP_NAME);\n if ((nameBefore != null && !nameBefore.equals(nameAfter)))\n {\n SiteInfo siteInfo = siteHelper.getRelevantShareSite(nodeRef);\n if (siteInfo != null)\n {\n NodeRef feedbackList = siteHelper.getFeedbackList(nameBefore, siteInfo.getShortName(), false);\n if (feedbackList != null)\n {\n siteHelper.renameFeedbackList(feedbackList, nameAfter);\n }\n }\n }\n }", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "protected void onUpdate() {\r\n\r\n\t}", "@DISPID(-2147412090)\n @PropPut\n void onafterupdate(\n java.lang.Object rhs);", "@Override\n public boolean update(EmailNotification entity) {\n return false;\n }", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "@Override\n\tpublic void insertUpdate(DocumentEvent de) {\n\n\t}", "protected void beforeUpdateEmployeeProperties(\n RetailscmUserContext userContext,\n Employee item,\n String retailStoreCountryCenterId,\n String id,\n String title,\n String familyName,\n String givenName,\n String email,\n String city,\n String address,\n String cellPhone,\n String salaryAccount,\n String[] tokensExpr)\n throws Exception {\n }", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }", "void setUpdateby(final U lastModifiedBy);", "public void setUpdateBy(String updateBy) {\r\n this.updateBy = updateBy == null ? null : updateBy.trim();\r\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "void setUpdatedDate(Date updatedDate);", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "public void setUpdateDatetime(Date updateDatetime);", "public void setLastModifiedOn(Timestamp lastModifiedOn) {\r\n\t\tthis.lastModifiedOn = lastModifiedOn;\r\n\t}", "public Update() {\n super(OcNotify.NAMESPACE, \"update\");\n }", "public void setUpdateBy(String updateBy) {\n\t\tthis.updateBy = updateBy == null ? null : updateBy.trim();\n\t}", "public void insertUpdate(DocumentEvent e)\n {\n performFlags();\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "private void addCreateUpdateAttributes(Context _context) throws EFapsException {\r\n Iterator iter = getType().getAttributes().entrySet().iterator();\r\n while (iter.hasNext()) {\r\n Map.Entry entry = (Map.Entry)iter.next();\r\n Attribute attr = (Attribute)entry.getValue();\r\n AttributeType attrType = attr.getAttributeType();\r\n if (attrType.isCreateUpdate()) {\r\n add(_context, attr, null);\r\n }\r\n }\r\n }", "public void willbeUpdated() {\n\t\t\n\t}", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();" ]
[ "0.70130235", "0.6606864", "0.64810133", "0.6352893", "0.6186673", "0.6150234", "0.61186635", "0.60431784", "0.5907362", "0.5883234", "0.5875438", "0.58668256", "0.58640116", "0.5806887", "0.57912683", "0.5736375", "0.56452775", "0.5624949", "0.5515747", "0.5509396", "0.54840857", "0.54617876", "0.5454727", "0.54533345", "0.5400741", "0.5386669", "0.5331235", "0.5327078", "0.5299117", "0.52060735", "0.51867616", "0.5175376", "0.5071786", "0.506708", "0.5050766", "0.50066906", "0.49859276", "0.49838144", "0.49791276", "0.49655843", "0.49579906", "0.49551287", "0.49393243", "0.4938367", "0.49284765", "0.4917215", "0.4901235", "0.48966926", "0.4892868", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.48863298", "0.4881198", "0.48792365", "0.48574707", "0.48559618", "0.4853587", "0.4846075", "0.48264152", "0.4825745", "0.48130938", "0.48121852", "0.48108283", "0.48108283", "0.48108283", "0.48100507", "0.48079804", "0.48062122", "0.48057055", "0.4805135", "0.48043272", "0.4783743", "0.4770174", "0.4770174", "0.4770174", "0.4770174", "0.47670296", "0.476673", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133", "0.47662133" ]
0.79021865
0
Method for adding Employee to the instance and in other way after adding to the Notification addint to voter list.
public void addVoter(Employee voter) { voters.add(voter); voter.getVotes().add(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(Employee emp) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void addEmployee(Employee employee) {\n\t\temployees.add(employee);\r\n\t\t\r\n\t}", "@Override\n\tpublic void addEmployee(Employee employee) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(employee);\n\t\tem.getTransaction().commit();\n\t\tSystem.out.println(\"Data Added successfully\");\n\t\tlogger.log(Level.INFO, \"Data Added successfully\");\n\n\t}", "@Override\n\tpublic void add(Employee employee) {\n\t\temployeeDao.save(employee);\t\t\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee addNewEmployee()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().add_element_user(EMPLOYEE$0);\r\n return target;\r\n }\r\n }", "@Override\n public Employee addNewEmployee(Employee employee) {\n return null;\n }", "@Override\r\n\tpublic Employee add(Employee entity) {\n\t\treturn entity;\r\n\t}", "public void createEmployee(Employee newEmployee) {\n\t\tif(false == this.employee.contains(newEmployee)) {\n\t\t\tthis.employee.add(newEmployee);\n\t\t}\n\t}", "public boolean addEmp(Employee e) {\n\t\treturn edao.create(e);\n\t\t\n\t}", "@Transactional\n\t@CacheEvict(cacheNames = {\"allEmployeesCache\"}, allEntries = true)\n\tpublic void addEmployee(Employee employee) throws Exception {\n\t\tString password = passwordService.createPassword();\n\t\tString passwordEncode = passwordEncoder.encode(password);\n\t\tUser user = employee.getUser();\n\t\tuser.setEnabled(true);\n\t\tuser.setPassword(passwordEncode);\n\t\tOptional<Role> role1 = roleRepository.findById(1L);\n\t\tOptional<Role> role4 = roleRepository.findById(4L);\n List<Role> roles = new ArrayList<>();\n roles.add(role1.get());\n roles.add(role4.get());\n user.setRoles(roles);\n employee.setRegisterDateTime(LocalDateTime.now());\n final User userFromRequest = getUserFromRequest();\n employee.setUserRegister(userFromRequest);\n\t\temployeeRepository.save(employee);\n\t\tsendEmailForAddAdminEmployee(employee, password);\n\t}", "@Override\r\n\tpublic Employee addEmployeeData(Employee emp) {\n\t\treturn employeeDAO.addEmployee(emp);\r\n\t}", "public void add(Employee emp)\n\t{\n\t\tHRProtocol envelop = null;\n\t\tenvelop = new HRProtocol(HRPROTOCOL_ADD_EMPLOYEE_REQUEST, emp, null);\n\t\tsendEnvelop(envelop);\n\t\tenvelop = receiveEnvelop();\n\t\tif(envelop.getPassingCode() == HRPROTOCOL_ADD_EMPLOYEE_RESPONSE)\n\t\t{\t//Success in transition\n\t\t}else\n\t\t{\n\t\t\t//Error in transition. or other error codes.\n\t\t}\n\t}", "public static void addEmployee(Employee employee) {\n try {\n if (employeeRepository.insert(dataSource, employee) == 1) {\n LOGGER.warn(\"The employee \" + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" is already in the list\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"in-list\") + \"\\n\");\n } else {\n LOGGER.info(\"The employee \" + employee.getFirstName() + \" \"\n + employee.getLastName() + \" \" + employee.getBirthday() + \" was successfully added to the list of employees\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + \" \" + employee.getFirstName() + \" \"\n + employee.getLastName() + \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"success.add\") + \"\\n\");\n }\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n }", "public void addEmployee(final Employee employee) {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\r\n\t\tsession.save(employee);\r\n\t}", "public String addEmployee() {\n\t\t\t//logger.info(\"addEmployee method called\");\n\t\t\t//userGroupBO.save(userGroup);;\n\t\t\treturn SUCCESS;\n\t\t}", "@PostMapping(value = \"/addEmployee\")\n\tpublic void addEmployee() {\n\t\tEmployee e = new Employee(\"Iftekhar Khan\");\n\t\tdataServiceImpl.add(e);\n\t}", "public void addEmployee(Employee employee) {\n employeeRepository.save(employee);\n }", "@Override\n\tpublic Result add(Employer employer) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Result add(Employees employees) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String AddEmployeeDetails(EmployeeEntity employee) throws CustomException {\n\t\tString strMessage=\"\";\r\n\t\trepository.save(employee);\r\n\t\tstrMessage=\"Employee data has been saved\";\r\n\t\treturn strMessage;\r\n\t}", "void addEmployee(Employee emp){\n\t\tEntityManager em = emf.createEntityManager();\n\t\tEntityTransaction tx = em.getTransaction();\n\t\ttx.begin();\n\t\tem.persist(emp);\n\t\ttx.commit();\n\t\tem.close();\n\t}", "public static void registerEmployee(RequestHandler handler) {\n\n\t\tEmployee e = new Employee();\n\t\te.setId(-1);\n\n\t\tStringBuilder sb;\n\t\tsb = new StringBuilder();\n\t\tsb.append(\"\\nPlease enter employee email: \");\n\t\thandler.sendMessage(sb);\n\t\tString eEmail = handler.getMessage();\n\n\t\tif (eEmail != null) {\n\t\t\thandler.sendMessage(\"RECEIVED: \" + eEmail);\n\t\t\tif (Utils.isValidEmailAddress(eEmail)) {\n\t\t\t\tif (!EmployeeData.emailExists(eEmail)) {\n\t\t\t\t\t// we have a valid, unique email address\n\t\t\t\t\te.setEmail(eEmail);\n\t\t\t\t\thandler.sendMessage(\"Please enter employee name: \");\n\t\t\t\t\teEmail = null;\n\n\t\t\t\t\tString eName = handler.getMessage();\n\t\t\t\t\tif (eName != null && eName.length() > 0) {\n\n\t\t\t\t\t\te.setName(eName);\n\t\t\t\t\t\thandler.sendMessage(\"Please enter department name: \");\n\t\t\t\t\t\teName = null;\n\n\t\t\t\t\t\tString eDept = handler.getMessage();\n\t\t\t\t\t\tif (eDept != null && eDept.length() > 0) {\n\t\t\t\t\t\t\te.setDepartment(eDept);\n\n\t\t\t\t\t\t\tif (EmployeeData.addEmployee(e)) {\n\t\t\t\t\t\t\t\thandler.sendMessage(\"Employee \" + e.getEmail() + \" successfully added with ID \" + e.getId());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandler.sendMessage(\"Failed to add employee \" + e.getEmail() + \", reason unknown\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thandler.sendMessage(\"User with email \" + eEmail + \" already exists on system - ABORTING\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thandler.sendMessage(\"Invalid email address format for: \" + eEmail + \" - ABORTING\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic int addEmployee(Employee employee) {\n\t\tint added = 0;\r\n\t\tString insertData = \"insert into employee values(?,?,?,?)\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(insertData);\r\n\t\t\tps.setString(1, employee.getName());\r\n\t\t\tps.setInt(2, employee.getEmpId());\r\n\t\t\tps.setString(3, employee.getTechnoogy());\r\n\t\t\tps.setInt(4, employee.getSalary());\r\n\r\n\t\t\tadded = ps.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn added;\r\n\t}", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "@Override\n\tpublic Integer addEmployee(EmployeeBean employeeBean) throws Exception {\n\t\treturn employeeDao.addEmployee(employeeBean);\n\t}", "@Override\n\tpublic void updateEmployee() {\n\n\t}", "@Override\n\tpublic void addReportingEmployee(Employee employee) {\n\t\tthrow new IllegalStateException(\"Cannot add \" + employee.getClass().getSimpleName() + \" to \" + this.getClass().getSimpleName());\n\t}", "public boolean addEmployee(Employee e) {\n\t\treturn list.add(e);\n\t}", "@PostMapping(\"/employees\")\r\n\tpublic Employee addEmployee(@RequestBody Employee theEmployee) {\r\n\t\t\r\n\t\t// also just in case the pass an id in JSON... set id to 0\r\n\t\t// this force a save of new item...instead of update\r\n\t\ttheEmployee.setId(0);\r\n\t\t\r\n\t\temployeeService.saveEmployee(theEmployee);\r\n\t\t\r\n\t\treturn theEmployee;\r\n\t\t\r\n\t}", "@Override\n\tpublic Integer insertEmp(Employee e) {\n\t\treturn null;\n\t}", "public void saveEmployee(Employe employee) {\n\t\t\n\t}", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "public void addEmployee(EmployeeInfo theEmployee) {\n int targetBucket = calcBucket(theEmployee.getEmployeeNum());\n buckets[targetBucket].add(theEmployee);\n numInTable++;\n }", "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(\"Mail:\");\n\t\t\tString mail = reader.nextLine();\n\t\t\tEmployee toAdd = new Employee(name, position, mail);\n\t\t\tSystem.out.println(theHolding.addEmployee(selected, toAdd));\n\t\t}\n\t}", "@Override\r\n\tpublic int insertEmployee(Employee employee) {\n\t\treturn employeedao.insertEmployee(employee);\r\n\t}", "public void addEmployee(Map<String, String> employee) {\r\n\t\tEmployee employees = new Employee(Integer.parseInt(employee.get(\"id\")), employee.get(\"name\"));\r\n\t\temployee1.put(Integer.parseInt(employee.get(\"id\")), employees);\r\n\t}", "public EmployeeBoarding addEmployee(RetailscmUserContext userContext, String employeeBoardingId, String companyId, String title, String departmentId, String familyName, String givenName, String email, String city, String address, String cellPhone, String occupationId, String responsibleForId, String currentSalaryGradeId, String salaryAccount , String [] tokensExpr) throws Exception;", "@Override\r\n\tpublic void saveEmployee(Employee employee) {\n\t\t\r\n\t}", "@Override\n\tpublic Employee registerEmployee(Employee employee) {\n\t\tEmployee updatedEmployee = null;\n\t\ttry {\n\t\t\tlogger.info(\"saving employee = {}\", employee);\n\t\t\tupdatedEmployee = employeeDao.registerEmployee(employee);\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn updatedEmployee;\n\t}", "@PostMapping(\"/employees\")\n\tpublic Employee addEmployee(@RequestBody Employee theEmployee) {\n\t\t theEmployee.setId(0);\n\t\t employeeService.save(theEmployee);\n\t\t \n\t return theEmployee;\n\t}", "@Override\r\n\tpublic int addEmployee1(Employee employee) throws SQLException {\n\t\tint added = 0;\r\n\t\tString insertData = \"insert into employee values(?,?,?,?)\";\r\n\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(insertData);\r\n\t\t\tps.setString(1, employee.getName());\r\n\t\t\tps.setInt(2, employee.getEmpId());\r\n\t\t\tps.setString(3, employee.getTechnoogy());\r\n\t\t\tps.setInt(4, employee.getSalary());\r\n\r\n\t\t\tadded = ps.executeUpdate();\r\n\t\treturn added;\r\n\t}", "@Override\n public Mechanic addEmployee(Mechanic mechanic) {\n LOGGER.info(\"Create new Mechanic in the database\");\n return mechanicRepository.save(mechanic);\n }", "@Test\r\n\tpublic void addEmployeeTestCase2() {\n\t\tEmployee employee2 = new Employee();\r\n\t\temployee2.name = \"JD\";\r\n\t\temployee2.role = \"Technical Consultant\";\r\n\t\temployee2.email = \"[email protected]\";\r\n\t\temployee2.employeeID = \"Jd2655\";\r\n\t\temployee2.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee2.gender = \"Male\";\r\n\t\temployee2.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee2.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee2);\r\n\t}", "public void add(Employee a)\n\t{\n\t\tif(a == null)\n\t\t\tSystem.out.println(\"ERROR: Object parameter must not be null!\");\n\t\t\t//throw new IllegalArgumentException(\"ERROR: Object parameter must not be null!\");\n\t\telse \n\t\t{\n\t\t\tif(employeeData.length == numOfEmployees)\n\t\t\t{\n\t\t\t\tensureCapacity(numOfEmployees * 2);\n\t\t\t}\n\t\t\t\n\t\t\temployeeData[numOfEmployees] = a;\n\t\t\tnumOfEmployees++;\t\n\t\t}\n\t}", "public void addEmployee(Employee employee)\n {\n try\n {\n InputStream is = employee.getPicture().getInputStream();\n \n while (is.read() != -1);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n \n \n \n System.out.println(\"Added \" + employee.getName() + \" in division \" + employee.getDivision()\n + \" with a picture \" + employee.getPicture());\n employees.add(employee);\n invocationCount++;\n }", "public void employeeServiceApprove() {\n\t\t\n\t\tEmployee employee = new Employee();\n\t\t employee.approve();\n\t}", "private static void newEmployee(UserType employeeType) {\n\n\t\tString username = null, password;\n\n\t\tboolean valid = false;\n\n\t\t// make sure that the username is not already taken\n\t\twhile (!valid) {\n\t\t\tSystem.out.print(\"What username would you like for your account? \");\n\t\t\tusername = input.nextLine();\n\t\t\tif (nameIsTaken(username, customerList)) {\n\t\t\t\tSystem.out.println(\"Sorry but that username has already been taken.\");\n\t\t\t} else\n\t\t\t\tvalid = true;\n\t\t}\n\t\t// set valid to false after each entry\n\t\tvalid = false;\n\n\t\tSystem.out.print(\"What password would you like for your account? \");\n\t\tpassword = input.nextLine();\n\n\t\tEmployee e = new Employee(username, password);\n\n\t\te.setType(employeeType);\n\t\temployeeList.add(e);\n\t\tcurrentUser = e;\n\t\twriteObject(employeeFile, employeeList);\n\t\temployeeDao.create(e);\n\t}", "public Employee addEmployee(Employee emp) throws SQLException {\n\t\t\treturn employeeDAO.addEmployee(emp);\n\t\t}", "public Employee addEmployee(Employee employee) {\n\t\tif(employee != null) {\n\t\t\treturn employeeDao.save(employee);\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Employe addEmploye(Employe e, Long codeSup) {\n\t\treturn dao.addEmploye(e, codeSup);\r\n\t}", "@Override\r\n\tpublic void post(Employee employee) {\n\t\t empdao.save(employee);\r\n\t}", "@Override\r\n\tpublic boolean registerEmployee(EmployeeEO employeeEORef) {\n\t\temployeeDAORepoRef.save(employeeEORef);\r\n\t\treturn true;\r\n\t}", "public void addEmployee(Employee employee) throws SQLException {\n\t\tConnection connection = DatabaseConnection.getConnection();\n\t\tString query = \"INSERT INTO EMPLOYEE VALUES(?,?)\";\n\t\tPreparedStatement pStatement = connection.prepareStatement(query);\n\t\tpStatement.setString(1, employee.getEmpId());\n\t\tpStatement.setString(2, employee.getEname());\n\t\tpStatement.executeUpdate();\n\n\t}", "private void saveEmployee(Employee employee) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_KEY, employee.getKey());\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_VALUE, employee.getValue());\n\n getContext().getContentResolver().insert(\n ReportContract.EmployeeEntry.CONTENT_URI,\n contentValues\n );\n\n }", "@RequestMapping(value = \"/employee\", method = RequestMethod.POST)\r\n\tpublic Employee addEmployee(@RequestBody Employee employee) throws EmployeeMaintainceException {\r\n\r\n\t\ttry {\r\n\t\t\treturn eService.addEmp(employee);\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(400, e.getMessage());\r\n\t\t}\r\n\r\n\t}", "private Employee addEmployee(int id, String name, String address) {\r\n\t\treturn new Employee(id, name, address);\r\n\t}", "public void addEmployee(ActionRequest request, ActionResponse response)\n\t\t\tthrows SystemException, IOException, PortalException {\n\t\tlong employeeId = CounterLocalServiceUtil.increment(Employee.class.getName());\n\t\tEmployee employee = null;\n\t\temployee = EmployeeLocalServiceUtil.createEmployee(employeeId);\n\t\temployee.setEmployeeName(ParamUtil.getString(request, \"employeeName\"));\n\t\temployee.setEmployeeDesignation(ParamUtil.getString(request, \"employeeDesignation\"));\n\t\temployee.setAddress(ParamUtil.getString(request, \"address\"));\n\t\temployee.setEmail(ParamUtil.getString(request, \"email\"));\n\t\temployee.setPhoneNumber(ParamUtil.getString(request, \"phoneNumber\"));\n\t\t/* Uploading employee documents */\n\t\tThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);\n\t\t// Checking permission for ADD_EMPLOYEE\n//\t\tEmployeePermission.insertPermission(themeDisplay);\n\t\tcreateFolder(request, themeDisplay);\n\t\tlong fileEntryId = fileUpload(employee, themeDisplay, request);\n\t\temployee.setFileEntryId(fileEntryId);\n\t\t// setting groupId\n\t\temployee.setGroupId(themeDisplay.getScopeGroupId());\n\t\tEmployeeLocalServiceUtil.addEmployee(employee);\n\t\tResourceLocalServiceUtil.addResources(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId(),\n\t\t\t\tthemeDisplay.getUserId(), Employee.class.getName(), employeeId, false, true, true);\n\t}", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "@Override\r\n\tpublic int insertEmployee(Connection con, Employee employee) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void save(Employee theEmployee) {\n\t\t\n\t}", "@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"[email protected]\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}", "@Override\n\tpublic void updateEmployee(Employee e) {\n\t\t\n\t}", "@Override\n\tpublic int addNewEmployee(String firstName, String lastName, String email, String designation, String location,\n\t\t\tint salary) {\n\t\treturn template.update(\n\t\t\t\t\"insert into employee(fname, lname, email, desig, location, salary) values(?, ?, ?, ?, ?, ?)\",\n\t\t\t\tfirstName, lastName, email, designation, location, salary);\n\t}", "@Override\r\n\tpublic void updateEmployee(Employee t) {\n\t\t\r\n\t}", "@Override\n\tpublic Employee saveEmployee(Employee emp) {\n\t\tlog.debug(\"EmplyeeService.saveEmployee(Employee emp) save Employee object\");\n\t\treturn repositary.save(emp);\n\t}", "@Override\n\tpublic Employee create(Employee emp) {\n\t\tlog.debug(\"Welcome to logging\");\n\t\tSystem.out.println(\"Server logs \");\n\t\temployeeDAO.create(emp);\n\t\treturn null;\n\t}", "public addEmployee() {\n initComponents();\n \n conn = db.java_db();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width / 2 - getWidth() / 2, size.height / 2 - getHeight() / 2);\n }", "public String addEmployee(EmployeeDetails employeeDetails) throws NullPointerException;", "@PostMapping(\"/employee\")\r\n\tpublic void add(@RequestBody Employee employee) {\r\n\t\tempService.save(employee);\r\n\t}", "private void addEmployee(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString firstName = request.getParameter(\"firstName\");\r\n\t\tString lastName = request.getParameter(\"lastName\");\r\n\t\tString gender = request.getParameter(\"gender\");\r\n\t\tint age = Integer.parseInt(request.getParameter(\"age\"));\r\n\t\tString email = request.getParameter(\"email\");\t\t\r\n\t\t\r\n\t\t// create a new employee object\r\n\t\tEmployee theEmployee = new Employee (firstName, lastName,gender,age, email);\r\n\t\t\r\n\t\t// add the employee to the database\r\n\t\temployeeDAO.addEmployee(theEmployee);\r\n\t\t\t\t\r\n\t\t// send back to main page (the student list)\r\n\t\tlistEmployees(request, response);\r\n\t}", "@Override\n\tpublic void store() {\n\n\t\tSystem.out.println(\"store() in Employee Dao\");\n\t}", "@Override\n\tpublic int saveEmployee() {\n\t\tEmployeeDao dao= new EmployeeDao();\n\t\tint result=dao.saveEmployee(new Employee(101349, \"Deevanshu\", 50000));\n\t\treturn result;\n\t}", "@FXML\r\n\tprivate void saveEmployee(ActionEvent event) {\r\n\t\tif (validateFields()) {\r\n\t\t\tEmployee e;\r\n\t\t\tif (newEmployee) {\r\n\t\t\t\te = new Employee();\r\n\t\t\t\tlistaStaff.getItems().add(e);\r\n\t\t\t} else {\r\n\t\t\t\te = listaStaff.getSelectionModel().getSelectedItem();\r\n\t\t\t}\r\n\t\t\te.setUsername(txUsuario.getText());\r\n\t\t\te.setPassword(txPassword.getText());\r\n\t\t\tif (checkAdmin.isSelected())\r\n\t\t\t\te.setIsAdmin(1);\r\n\t\t\telse\r\n\t\t\t\te.setIsAdmin(0);\r\n\t\t\tif (checkTPV.isSelected())\r\n\t\t\t\te.setTpvPrivilege(1);\r\n\t\t\telse\r\n\t\t\t\te.setTpvPrivilege(0);\r\n\t\t\tif (newEmployee) {\r\n\t\t\t\tservice.saveEmployee(e);\r\n\t\t\t\tnewEmployee = false;\r\n\t\t\t} else\r\n\t\t\t\tservice.updateEmployee(e);\r\n\t\t\tbtGuardar.setDisable(true);\r\n\t\t\tbtEditar.setDisable(false);\r\n\t\t\tconmuteFields();\r\n\t\t\tupdateList();\r\n\t\t}\r\n\t}", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee insertNewEmployee(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().insert_element_user(EMPLOYEE$0, i);\r\n return target;\r\n }\r\n }", "public void insertEmp(Emp emp) {\n\t\t\n\t}", "public void updateEmployee(Employe employee) {\n\t\t\n\t}", "@Override\n\tpublic void save(Employee employee) {\n\t\temployeeDao.save(employee);\n\t\t\n\t}", "@Override\n\tpublic Employee createEmployee(Employee employee) {\n\t\tSession sess = sessionFactory.openSession();\n\t\tTransaction tx = sess.beginTransaction();\n\t\tsess.save(employee);\n\t\ttx.commit();\n\t\tsess.close();\n\n\t\treturn employee;\n\t}", "public Employeedetails addEmployee(Employeedetails employeeDetail,\n\t\t\tConnection connection) {\n\t\ttry {\n\t\t\tint flag = 0;\n\t\t\tString employeeId = employeeDetail.getEmployeeId();\n\t\t\tString employeeName = employeeDetail.getEmployeeName();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet rs = statement\n\t\t\t\t\t.executeQuery(\"select employeeid from employeeregister\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tif (employeeId.equalsIgnoreCase(rs.getString(1))) {\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == 0) {\n\t\t\t\tString squery = \"insert into employeeregister values('\"\n\t\t\t\t\t\t+ employeeId + \"', '\" + employeeName + \"');\";\n\t\t\t\tint a = statement.executeUpdate(squery);\n\t\t\t\treturn employeeDetail;\n\t\t\t} else {\n\t\t\t\treturn employeeDetail;\n\t\t\t}\n\n\t\t} catch (SQLException sqle) {\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn employeeDetail;\n\t}", "public void addEmployee(int noOfEmployee) {\r\n\t\tint id = 0;\r\n\t\tString name = null;\r\n\t\tString address = null;\r\n\t\t\r\n\t\tfor (int index = 0; index < noOfEmployee; index++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee id :\");\r\n\t\t\tid = input.nextInt();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee name : \");\r\n\t\t\tinput.nextLine();\r\n\t\t\tname = input.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee address :\");\r\n\t\t\taddress = input.nextLine();\r\n\t\t\t\r\n\t\t\tif (empId.contains(id)) {\r\n\t\t\t\tSystem.out.println(\"Emp ID : \"+ id +\" employee ID already exists !!!!!\");\r\n\t\t\t} else {\r\n\t\t\t\tempId.add(id);\r\n\t\t\t\temp.add(addEmployee(id, name, address));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int pushEmployee(boolean override) {\n\t\t// Can't push invalid data\n\t\tif (!this.validateEmployeePackage())\n\t\t\treturn this.validateEmployeePackageResult();\n\t\t// Manual if's are easier\n\t\tif (this.employeeExists()) {\n\t\t\tif (override) {\n\t\t\t\tint e = super.update(\"UPDATE \" + C.TABLE_EMPLOYEE + \" SET \"\n\t\t\t\t\t\t+ C.COLUMN_FIRST_NAME + \"='\" + this.getFirstName() + \"'\"\n\t\t\t\t\t\t+ C.COLUMN_LAST_NAME + \"='\" + this.getLastName() + \"' WHERE \"\n\t\t\t\t\t\t+ C.COLUMN_ID + \"=\" + this.getID());\n\t\t\t\treturn e > 0 ? EmployeeConnection.SUCCESS :\n\t\t\t\t\t\te < 0 ? EmployeeConnection.SQL_ERROR :\n\t\t\t\t\t\t\t\tEmployeeConnection.DRIVER_ERROR;\n\t\t\t} else\n\t\t\t\treturn EmployeeConnection.DUPLICATE_EMPLOYEE;\n\t\t} else {\n\t\t\tint e = super.update(\"INSERT INTO \" + C.TABLE_EMPLOYEE + \" (\" + C.COLUMN_ID\n\t\t\t\t\t+ \", \" + C.COLUMN_FIRST_NAME + \", \" + C.COLUMN_LAST_NAME\n\t\t\t\t\t+ \") VALUES (\" + this.getID() + \", '\" + this.getFirstName()\n\t\t\t\t\t+ \"', '\" + this.getLastName() + \"'\");\n\t\t\treturn e > 0 ? EmployeeConnection.SUCCESS :\n\t\t\t\t\te < 0 ? EmployeeConnection.SQL_ERROR :\n\t\t\t\t\t\t\tEmployeeConnection.DRIVER_ERROR;\n\t\t}\n\t}", "public void update(Employee e) {\n\t\t\r\n\t}", "@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }", "public static void addShiftSupervisor(Scanner input, ArrayList<Employee> newEmployee){\n \n ShiftSupervisor newSupervisor = new ShiftSupervisor();\n String empNumber, empHireDate, salary, bonus;\n \n System.out.print(\"Please enter the employee's first and last name: \");\n newSupervisor.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newSupervisor.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newSupervisor.setDate(verifyHireDate(input, empHireDate));\n System.out.print(\"Please enter the salary the new Supervisor will be paid as a double: \");\n salary = input.nextLine();\n newSupervisor.setSalary(UtilityMethods.verifyDouble(input, salary));\n System.out.print(\"Please enter the bonus the new Supervisor could be paid as a double: \");\n bonus = input.nextLine();\n newSupervisor.setBonus(UtilityMethods.verifyDouble(input, bonus));\n \n newEmployee.add(newSupervisor);\n }", "public void add(Employee emp) throws InvalidOperationException {\n if (employeeArray[emp.getId()] != null) {\n throw new InvalidOperationException(\"Error adding employee , employee id already exists \" + emp.getId());\n }\n try {\n employeeArray[emp.getId()] = emp;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new InvalidOperationException(\"Error adding employee , id must be less than \" + employeeArray.length);\n }\n }", "@Transactional\n\t\tpublic void saveEmployee(EmployeeEntity employeeEntity) {\n\t\t\temployeedao.saveEmployee(employeeEntity);\n\t\t}", "protected void notify(Employee e) {\n\t}", "@POST\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response addEmployee(EmployeeVO emVo) throws SQLException {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\t\tboolean result = employeeFacade.save(emVo);\n\t\tif (result)\n\t\t\treturn Response.status(200).build();\n\t\telse\n\t\t\treturn Response.status(409).build();\n\t}", "@Test\n\tpublic void testingAddNewEmployee() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"emailAddress\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tWebElement newEmployee = driver.findElement(By.linkText(\"FirstName LastName\"));\n\t\tassertNotNull(newEmployee);\n\t\t\n\t}", "@Override\n\tpublic void updateEmployee(List<Employee> employees) {\n\t\t\n\t}", "public void registerNewEmployee(Administrator user, List<Employee> employees, UserType userType){\n boolean flag;\n String dni;\n do{\n System.out.print(\"\\t Ingrese el dni: \");\n dni = new Scanner(System.in).nextLine();\n flag = user.verifyEmployeeDni(dni,employees);\n if(flag){\n System.out.println(\"El DNI ingresado ya pertenece a un empleado. Vuelva a Intentar...\");\n }\n } while (flag);\n System.out.print(\"\\t Ingrese el nombre: \");\n String name = new Scanner(System.in).nextLine();\n System.out.print(\"\\t Ingrese el apellido: \");\n String surname = new Scanner(System.in).nextLine();\n int age = this.enterNumber(\"la edad\");\n String username;\n do{\n System.out.print(\"\\t Ingrese el username: \");\n username = new Scanner(System.in).nextLine();\n flag = user.verifySystemUsername(username,employees);\n if(flag){\n System.out.println(\"Ese usuario ya esta registrado. Vuelva a Intentar...\");\n }\n } while (flag);\n System.out.print(\"\\t Ingrese el password: \");\n String password = new Scanner(System.in).nextLine();\n\n Employee employee = user.createEmployee(userType,name,surname,dni,age,username,password);\n employees.add(employee);\n }", "@RequestMapping(params = \"saveEmployee\", method = RequestMethod.POST)\n\tpublic ModelAndView addEmployee(\n\t\t\t@ModelAttribute(\"employee\") Employee employee,\n\t\t\tBindingResult result, Model m) {\n\n\t\temployee.setCreateddate(new Timestamp(new Date().getTime()));\n\t\temployee.setModifieddate(new Timestamp(new Date().getTime()));\n\t\tint empId = empServiceimpl.addUsers(employee);\n\t\tSystem.out.println(\"Employee id after save is \" + empId);\n\t\tString message = \"Employee: \" + empId + \" has been added successfully\";\n\t\t/*\n\t\t * @SuppressWarnings(\"unchecked\") List<Employee> lists =\n\t\t * service.fetchAllDetails(); m.addAttribute(\"lists\", lists);\n\t\t */\n\t\treturn new ModelAndView(\"index\", \"message\", message);\n\t}", "@PostMapping(\"/register\")\n\tpublic ResponseEntity<Employee> saveEmployee(@RequestBody Employee emp){\n\t\tEmployee addedEmployee = employeeService.saveEmployee(emp);\n\t\treturn new ResponseEntity<Employee>(addedEmployee, HttpStatus.OK);\n\t}", "@PostMapping(\"addEmployee\")\r\n\tpublic String addEmployee(@ModelAttribute(\"employee\") Employee employee) {\r\n\r\n\t\temployeeDao.addEmployee(employee);\r\n\t\t\r\n\t\treturn \"EmployeeDetails\";\r\n\t}", "public Builder setEmployee(grpc.messages.Messages.Employee value) {\n if (employeeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n employee_ = value;\n onChanged();\n } else {\n employeeBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setEmployee(grpc.messages.Messages.Employee value) {\n if (employeeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n employee_ = value;\n onChanged();\n } else {\n employeeBuilder_.setMessage(value);\n }\n\n return this;\n }", "public static void addEmployee(Scanner input, ArrayList<Employee> newEmployee){\n Employee newEmp = new Employee();\n String empNumber, empHireDate;\n System.out.print(\"Please enter the employee's first and last name: \");\n newEmp.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newEmp.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1,J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newEmp.setDate(verifyHireDate(input, empHireDate));\n \n newEmployee.add(newEmp);\n \n }", "@Override\n\tpublic void create(Empleado e) {\n\t\tSystem.out.println(\"Graba el empleado \" + e + \" en la BBDD.\");\n\t}", "public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }" ]
[ "0.7694234", "0.76637274", "0.7160193", "0.7136346", "0.7006233", "0.6955079", "0.69480866", "0.69132084", "0.6912665", "0.68417877", "0.68328685", "0.6827033", "0.67954254", "0.6782504", "0.6779839", "0.67770994", "0.67681074", "0.6748279", "0.67381173", "0.6717754", "0.66519624", "0.6598222", "0.6593495", "0.65760785", "0.65623546", "0.6553414", "0.6550343", "0.654166", "0.65013117", "0.6488646", "0.6483149", "0.6465914", "0.64640236", "0.64635783", "0.64462316", "0.6435432", "0.6411591", "0.6408758", "0.6405427", "0.63957685", "0.6378119", "0.6366511", "0.63347185", "0.6331627", "0.6328644", "0.6315317", "0.6313623", "0.62944365", "0.6278929", "0.6273543", "0.62724924", "0.62565565", "0.6247889", "0.6241775", "0.6237321", "0.62252027", "0.6217076", "0.62162876", "0.6215209", "0.62116164", "0.62007064", "0.6181283", "0.61787236", "0.6157691", "0.61477363", "0.6135519", "0.6131056", "0.6128969", "0.61036474", "0.60587066", "0.6058581", "0.605584", "0.60554844", "0.6046967", "0.6028836", "0.6023875", "0.6020587", "0.59943604", "0.5988266", "0.5975047", "0.59676844", "0.59596133", "0.59584355", "0.59422594", "0.5935893", "0.5929165", "0.5919166", "0.5912299", "0.58952045", "0.5891753", "0.58879656", "0.5884662", "0.58656025", "0.5858644", "0.5856605", "0.585142", "0.585142", "0.5820157", "0.5813982", "0.5804598" ]
0.6929402
7
ONLY GETTERS FOR FIELDS THAT SHOULDN'T BE CHANGED
public long getNotification_id() { return notification_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1025();", "public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }", "java.lang.String getField1821();", "java.lang.String getField1542();", "java.lang.String getField1587();", "java.lang.String getField1721();", "java.lang.String getField1822();", "java.lang.String getField1015();", "java.lang.String getField1215();", "java.lang.String getField1521();", "java.lang.String getField1887();", "java.lang.String getField1529();", "java.lang.String getField1246();", "@Override\r\n protected Object[] getFieldValues ()\r\n {\n return null;\r\n }", "java.lang.String getField1221();", "java.lang.String getField1021();", "java.lang.String getField1543();", "java.lang.String getField1522();", "java.lang.String getField1229();", "java.lang.String getField1213();", "java.lang.String getField1527();", "java.lang.String getField1217();", "java.lang.String getField1722();", "java.lang.String getField1218();", "java.lang.String getField1823();", "java.lang.String getField1273();", "java.lang.String getField1829();", "java.lang.String getField1342();", "java.lang.String getField1885();", "java.lang.String getField1269();", "java.lang.String getField1585();", "java.lang.String getField1573();", "java.lang.String getField1220();", "java.lang.String getField1241();", "java.lang.String getField1242();", "java.lang.String getField1287();", "java.lang.String getField1512();", "java.lang.String getField1243();", "java.lang.String getField1869();", "java.lang.String getField1610();", "java.lang.String getField1859();", "java.lang.String getField1276();", "java.lang.String getField1222();", "java.lang.String getField1546();", "java.lang.String getField1584();", "java.lang.String getField1235();", "@Override\n public Function<String, Predicate<String>> getFieldFilter() {\n return index -> field -> true;\n }", "java.lang.String getField1518();", "java.lang.String getField1820();", "java.lang.String getField1519();", "java.lang.String getField1517();", "java.lang.String getField1421();", "java.lang.String getField1569();", "java.lang.String getField1219();", "java.lang.String getField1861();", "java.lang.String getField1826();", "java.lang.String getField1719();", "java.lang.String getField1846();", "java.lang.String getField1592();", "java.lang.String getField1202();", "java.lang.String getField1742();", "java.lang.String getField1211();", "java.lang.String getField1223();", "java.lang.String getField1285();", "java.lang.String getField1581();", "java.lang.String getField1877();", "java.lang.String getField1026();", "java.lang.String getField1545();", "java.lang.String getField1817();", "java.lang.String getField1552();", "java.lang.String getField1274();", "java.lang.String getField1787();", "java.lang.String getField1835();", "java.lang.String getField1576();", "java.lang.String getField1873();", "java.lang.String getField1720();", "java.lang.String getField1227();", "java.lang.String getField1142();", "java.lang.String getField1718();", "java.lang.String getField1589();", "java.lang.String getField1261();", "java.lang.String getField1881();", "java.lang.String getField1031();", "java.lang.String getField1845();", "java.lang.String getField1520();", "java.lang.String getField1245();", "java.lang.String getField1201();", "java.lang.String getField1288();", "java.lang.String getField1210();", "java.lang.String getField1917();", "java.lang.String getField1244();", "public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }", "java.lang.String getField1216();", "java.lang.String getField1547();", "java.lang.String getField1702();", "java.lang.String getField1929();", "java.lang.String getField1312();", "java.lang.String getField1540();", "java.lang.String getField1729();", "java.lang.String getField1561();", "java.lang.String getField1805();" ]
[ "0.6585515", "0.6484378", "0.6458279", "0.64292526", "0.6425943", "0.6414225", "0.6411225", "0.64058024", "0.638828", "0.6388231", "0.63810533", "0.63802004", "0.63761944", "0.6372455", "0.6368205", "0.6367944", "0.6367409", "0.6366079", "0.6364837", "0.6358458", "0.6357492", "0.63572395", "0.63555425", "0.63553476", "0.63499415", "0.6349474", "0.6346073", "0.6345713", "0.63448656", "0.6341899", "0.6339489", "0.6339144", "0.63387924", "0.6337821", "0.6336027", "0.63335216", "0.6332208", "0.633021", "0.63294", "0.6326841", "0.6323366", "0.6323057", "0.6321868", "0.6319902", "0.631961", "0.63193786", "0.63180715", "0.63152754", "0.6313639", "0.6313507", "0.6313087", "0.63129705", "0.6312507", "0.631167", "0.6311321", "0.6310838", "0.63093555", "0.63084", "0.6308223", "0.63070935", "0.6306519", "0.6306176", "0.63061094", "0.6305778", "0.6305608", "0.6305158", "0.63032895", "0.63030505", "0.6302984", "0.63014364", "0.63014054", "0.63011616", "0.63009924", "0.62991154", "0.6299013", "0.6297501", "0.62965804", "0.6295979", "0.62952816", "0.6293963", "0.6293917", "0.62936586", "0.6293511", "0.6292221", "0.62919086", "0.62915945", "0.6291263", "0.62905973", "0.6289266", "0.62863153", "0.6284559", "0.6282488", "0.6281816", "0.6280653", "0.6280553", "0.6278748", "0.6278719", "0.62765", "0.62764335", "0.62763596", "0.627465" ]
0.0
-1
/ renamed from: a
public final boolean mo88313a() { if (this.f90938h == null || this.f90934d.getVisibility() == 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: c
public final C29296g mo88396c() { if (this.f90933c == null) { return C35563c.f93224F.mo70097l().mo74949b().mo74962a(0); } return this.f90933c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public abstract void mo70710a(String str, C24343db c24343db);", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public interface C9223b {\n }", "public abstract String mo11611b();", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "void mo1749a(C0288c cVar);", "public interface C0764b {\n}", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723", "0.60513836", "0.6049069", "0.6030368", "0.60263443", "0.60089093", "0.59970635", "0.59756917", "0.5956231", "0.5949343", "0.5937446", "0.5911776", "0.59034705", "0.5901311", "0.5883238", "0.5871533", "0.5865361", "0.5851141", "0.581793", "0.5815705", "0.58012", "0.578891", "0.57870495", "0.5775621", "0.57608724", "0.5734331", "0.5731584", "0.5728505", "0.57239383", "0.57130504", "0.57094604", "0.570793", "0.5697671", "0.56975955", "0.56911296", "0.5684489", "0.5684489", "0.56768984", "0.56749034", "0.5659463", "0.56589085", "0.56573", "0.56537443", "0.5651912", "0.5648272", "0.5641736", "0.5639226", "0.5638583", "0.56299245", "0.56297386", "0.56186295", "0.5615729", "0.56117755", "0.5596015", "0.55905765", "0.55816257", "0.55813104", "0.55723965", "0.5572061", "0.55696625", "0.5566985", "0.55633485", "0.555888", "0.5555646", "0.55525774", "0.5549722", "0.5548184", "0.55460495", "0.5539394", "0.5535825", "0.55300397", "0.5527975", "0.55183905", "0.5517322", "0.5517183", "0.55152744", "0.5514932", "0.55128884", "0.5509501", "0.55044043", "0.54984957" ]
0.0
-1
/ renamed from: b
public final void mo88395b() { if (this.f90938h == null) { this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() { /* renamed from: a */ public final void mo74759a(C29296g gVar) { } /* renamed from: a */ public final void mo74760a(C29296g gVar, int i) { } /* renamed from: d */ public final void mo74763d(C29296g gVar) { } /* renamed from: b */ public final void mo74761b(C29296g gVar) { C34867a.this.f90934d.setVisibility(0); if (!C39805en.m127445a()) { C23487o.m77136a((Activity) C34867a.this.f90931a); } C6907h.m21519a((Context) C34867a.this.f90931a, "filter_confirm", "mid_page", "0", 0, C34867a.this.f90936f); } /* renamed from: c */ public final void mo74762c(C29296g gVar) { String str; C34867a.this.f90933c = gVar; C34867a.this.f90932b.mo88467a(gVar.f77273h); if (C34867a.this.f90935e != null) { C34867a.this.f90935e.mo98958a(gVar); } EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c); if (b == null) { str = ""; } else { str = b.name; } C6907h.m21524a("select_filter", (Map) C38511bc.m123103a().mo96485a("creation_id", C34867a.this.f90932b.mo88460a().creationId).mo96485a("shoot_way", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a("draft_id", C34867a.this.f90932b.mo88460a().draftId).mo96485a("enter_method", "click").mo96485a("filter_name", C34867a.this.f90933c.f77268c).mo96483a("filter_id", C34867a.this.f90933c.f77266a).mo96485a("tab_name", str).mo96485a("content_source", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a("content_type", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a("enter_from", "video_edit_page").f100112a); } }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a(); if (this.f90933c != null) { this.f90938h.mo74751a(this.f90933c); } } this.f90938h.mo74749a(); this.f90934d.setVisibility(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: a
public final void mo74759a(C29296g gVar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public final void mo74760a(C29296g gVar, int i) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: d
public final void mo74763d(C29296g gVar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1
/ renamed from: b
public final void mo74761b(C29296g gVar) { C34867a.this.f90934d.setVisibility(0); if (!C39805en.m127445a()) { C23487o.m77136a((Activity) C34867a.this.f90931a); } C6907h.m21519a((Context) C34867a.this.f90931a, "filter_confirm", "mid_page", "0", 0, C34867a.this.f90936f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: c
public final void mo74762c(C29296g gVar) { String str; C34867a.this.f90933c = gVar; C34867a.this.f90932b.mo88467a(gVar.f77273h); if (C34867a.this.f90935e != null) { C34867a.this.f90935e.mo98958a(gVar); } EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c); if (b == null) { str = ""; } else { str = b.name; } C6907h.m21524a("select_filter", (Map) C38511bc.m123103a().mo96485a("creation_id", C34867a.this.f90932b.mo88460a().creationId).mo96485a("shoot_way", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a("draft_id", C34867a.this.f90932b.mo88460a().draftId).mo96485a("enter_method", "click").mo96485a("filter_name", C34867a.this.f90933c.f77268c).mo96483a("filter_id", C34867a.this.f90933c.f77266a).mo96485a("tab_name", str).mo96485a("content_source", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a("content_type", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a("enter_from", "video_edit_page").f100112a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public abstract void mo70710a(String str, C24343db c24343db);", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public interface C9223b {\n }", "public abstract String mo11611b();", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "void mo1749a(C0288c cVar);", "public interface C0764b {\n}", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723", "0.60513836", "0.6049069", "0.6030368", "0.60263443", "0.60089093", "0.59970635", "0.59756917", "0.5956231", "0.5949343", "0.5937446", "0.5911776", "0.59034705", "0.5901311", "0.5883238", "0.5871533", "0.5865361", "0.5851141", "0.581793", "0.5815705", "0.58012", "0.578891", "0.57870495", "0.5775621", "0.57608724", "0.5734331", "0.5731584", "0.5728505", "0.57239383", "0.57130504", "0.57094604", "0.570793", "0.5697671", "0.56975955", "0.56911296", "0.5684489", "0.5684489", "0.56768984", "0.56749034", "0.5659463", "0.56589085", "0.56573", "0.56537443", "0.5651912", "0.5648272", "0.5641736", "0.5639226", "0.5638583", "0.56299245", "0.56297386", "0.56186295", "0.5615729", "0.56117755", "0.5596015", "0.55905765", "0.55816257", "0.55813104", "0.55723965", "0.5572061", "0.55696625", "0.5566985", "0.55633485", "0.555888", "0.5555646", "0.55525774", "0.5549722", "0.5548184", "0.55460495", "0.5539394", "0.5535825", "0.55300397", "0.5527975", "0.55183905", "0.5517322", "0.5517183", "0.55152744", "0.5514932", "0.55128884", "0.5509501", "0.55044043", "0.54984957" ]
0.0
-1
/ renamed from: a
public final void mo88393a(C39677l lVar) { this.f90935e = lVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public final void mo88394a(JSONObject jSONObject) { this.f90936f = jSONObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public final void mo88392a(C29296g gVar) { this.f90933c = gVar; if (this.f90938h != null) { this.f90938h.mo74751a(this.f90933c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
Identifier for this type of defect.
String getDefectType() { return "Hash Mismatch"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "@Override\n public String identifier() {\n return this.identifier;\n }", "private String getDefectOID() {\r\n\t\treturn defectOID;\r\n\t}", "public String getId() {\n return typeDeclaration.getId();\n }", "public String getID() {\n\t\treturn \"org.osgi.test.cases.metatype.ocd\";\n\t}", "java.lang.String getIdentifier();", "public String getIdentifier();", "public String getIdentifier();", "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "@NonNull String identifier();", "public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}", "Identifier getId();", "public int getIdentifier();", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "@Override\n\tpublic String getIdentifier() {\n\t\treturn null;\n\t}", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Schema(description = \"Unique identifier for this index type\")\n\tpublic String getId() {\n\t\treturn id;\n\t}", "@Override\n public String getID() {\n return \"MyEllipse@\" + this.createDate.getTime();\n }", "public int numericName()\n {\n return Factory.getID(this);\n }", "public String id() {\n return definition.getString(ID);\n }", "public String getIdentifierString();", "@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }", "protected abstract String getIdentifier();", "@Override\r\n\tpublic int id() {\n\t\treturn 4;\r\n\t}", "int getIdentifier();", "public int getId() {\n\t\treturn this.ordinal();\n\t}", "@Override\r\n public int identifier() {\r\n return 100;\r\n }", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "public String getIdentifier() {\n return identifier;\n }", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\r\n public String getId() {\r\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public int identifier();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "public String getIdentifier()\n {\n return identifier;\n }", "public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}", "@UML(identifier=\"issueIdentification\", obligation=OPTIONAL, specification=ISO_19115)\n String getIssueIdentification();", "public TypeIdentifierSnippet getTypeIdentifier() {\n return typeIdentifier;\r\n }", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}" ]
[ "0.6885511", "0.6727317", "0.6721863", "0.6720081", "0.6680703", "0.6663904", "0.6660994", "0.6660994", "0.6654985", "0.65871257", "0.65524244", "0.65523523", "0.6548649", "0.6534543", "0.65203315", "0.65199167", "0.65199167", "0.65199167", "0.65199167", "0.65199167", "0.65199167", "0.65199167", "0.65166223", "0.6501492", "0.6493823", "0.6478278", "0.6468605", "0.64674807", "0.64649904", "0.64358777", "0.6401826", "0.6395972", "0.63743675", "0.635283", "0.6351581", "0.6350826", "0.6348701", "0.6348701", "0.6348701", "0.63401127", "0.6337921", "0.6337921", "0.633049", "0.63133806", "0.6305122", "0.6305122", "0.6305122", "0.6305122", "0.6305122", "0.6305122", "0.6305122", "0.6305122", "0.62908995", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.6290833", "0.62880665", "0.62784344", "0.62746954", "0.6266564", "0.62633604" ]
0.0
-1
main is where the program gets called first, in here it will make a new web server and run it
public static void main(String[] args) { Webserver server = new Webserver(); server.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] argv)\n {\n int p = determinePort(argv, 10000);\n XmlRpc.setKeepAlive (true);\n SecureWebServer webserver = new SecureWebServer (p);\n\n try\n {\n webserver.addDefaultHandlers();\n webserver.start();\n }\n catch (Exception e)\n {\n System.err.println(\"Error running secure web server\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "public static void main(final String[] args) {\n\t\tServer server = new Server();\n\t\tSocketConnector connector = new SocketConnector();\n\t\tconnector.setPort(9090);\n\t\tserver.setConnectors(new Connector[] {connector});\n\n\t\tWebAppContext context = new WebAppContext();\n\t\tcontext.setServer(server);\n\t\tcontext.setContextPath(\"/biomedcalib\");\n\t\tcontext.setWar(\"src/main/webapp\");\n\n\t\tserver.addHandler(context);\n\t\ttry {\n\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n URL webRootLocation = MainView.class.getResource(\"/webapp/\"); //src/masin\n URI webRootUri = webRootLocation.toURI();\n\n WebAppContext context = new WebAppContext();\n context.setBaseResource(Resource.newResource(webRootUri));\n context.setContextPath(\"/\");\n context.setAttribute(\"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern\", \".*\");\n context.setConfigurationDiscovered(true);\n context.setConfigurations(new Configuration[]{\n new AnnotationConfiguration(),\n new WebInfConfiguration(),\n new WebXmlConfiguration(),\n new MetaInfConfiguration()\n });\n context.getServletContext().setExtendedListenerTypes(true);\n context.addEventListener(new ServletContextListeners());\n\n Server server = new Server(8080);\n server.setHandler(context);\n server.start();\n server.join();\n }", "public static void main(String[] args) {\n\t\tif (args != null && args.length > 0) {\n\t\t\tport = Integer.parseInt(args[0]);\n\t\t}\n\t\tlog.info(\"i am the main for JServer\");\n\t\tlog.info(\"Server will use port: \" + port);\n\t\ttry {\n\t\t\twebServer = new WebServer(port);\n\t\t\t\n\t\t\tjsystem = new JSystemServer();\n\t\t\t\n\t\t\t//create the instances of handlers in server\n\t\t\tapplicationHandler = new JApplicationHandler();\n\t\t\tscenarioHandler = new JScenarioHandler();\n\t\t\t\n\t\t\t\n\t\t\tlogsHandler = new JReporterHandler();\n\t\t\t//register handlers in server\n\t\t\twebServer.addHandler(JServerHandlers.SCENARIO.getHandlerClassName(),scenarioHandler);\n\t\t\twebServer.addHandler(JServerHandlers.APPLICATION.getHandlerClassName(),applicationHandler);\n\t\t\twebServer.addHandler(\"jsystem\", jsystem);\n\t\t\twebServer.addHandler(JServerHandlers.REPORTER.getHandlerClassName(), logsHandler);\n\t\t\twebServer.start();\n\t\t\tSystem.out.println(\"webserver successfully started!!! + listening on port \" + port);\n\t\t} catch (Exception e) {\n\t\t\tlog.warning(\"failed in webserver handler adding or creation on port= \"+port + \"\\n\\n\"+StringUtils.getStackTrace(e));\n\t\t}\n\t}", "private void startWebApp(Handler<AsyncResult<HttpServer>> next) {\n Router router = Router.router(vertx);\n\n router.route(\"/assets/*\").handler(StaticHandler.create(\"assets\"));\n router.route(\"/api/*\").handler(BodyHandler.create());\n\n router.route(\"/\").handler(this::handleRoot);\n router.get(\"/api/timer\").handler(this::timer);\n router.post(\"/api/c\").handler(this::_create);\n router.get(\"/api/r/:id\").handler(this::_read);\n router.put(\"/api/u/:id\").handler(this::_update);\n router.delete(\"/api/d/:id\").handler(this::_delete);\n\n // Create the HTTP server and pass the \"accept\" method to the request handler.\n vertx.createHttpServer().requestHandler(router).listen(8888, next);\n }", "public static void main(String[] args) {\n new HttpService(getHttpServiceDefinition(8080)).start();\n }", "public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}", "public void run() {\n final Server server = new Server(8081);\n\n // Setup the basic RestApplication \"context\" at \"/\".\n // This is also known as the handler tree (in Jetty speak).\n final ServletContextHandler context = new ServletContextHandler(\n server, CONTEXT_ROOT);\n final ServletHolder restEasyServlet = new ServletHolder(\n new HttpServletDispatcher());\n restEasyServlet.setInitParameter(\"resteasy.servlet.mapping.prefix\",\n APPLICATION_PATH);\n restEasyServlet.setInitParameter(\"javax.ws.rs.Application\",\n \"de.kad.intech4.djservice.RestApplication\");\n context.addServlet(restEasyServlet, CONTEXT_ROOT);\n\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) throws IOException, URISyntaxException {\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (Exception e) { \r\n \tSystem.out.println(\"algo no jalo\"); \t\r\n }\r\n\t\t\r\n \tHost host=new Host();\r\n \t \t \t\r\n \thttpServer = HttpServer.create(new InetSocketAddress(puerto), 0);\r\n \t\r\n \thttpServer.createContext(\"/\", new Principal());\t\t//esta es la pagina principal\r\n \thttpServer.createContext(\"/apagado\", new Apagado());\r\n \thttpServer.createContext(\"/descarga\", new Descarga());// llama a la pagina como video1.mp4\r\n \thttpServer.createContext(\"/openFileDialog\", new OpenFileDialog());\r\n \r\n \thttpServer.setExecutor(null);\r\n \thttpServer.start();\r\n \t\r\n\r\n \thost.abreLocalHost();\r\n \thost.cargaGPIO();\r\n\t}", "public static void main(String[] args) {\n loadServer();\n\n }", "public static void main(String[] args) {\n\n\t\tint port = 8080;\n\t\t\n\t\tif(args.length == 1)\n\t\t{\n\t\t\ttry {\n\t\t\t\tport = Integer.parseInt(args[0]);\n\t\t\t}\n\t\t\tcatch (NumberFormatException nfe)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"[SERVER REPLY]> Integer Port is not provided. Server will start at default port.\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"[SERVER REPLY]> Using Server Port : \" + port);\n\t\t\n\t\tWeb_Server Server = new Web_Server(port);\n\t\t\n\t\tnew Thread(Server).start(); //starts a new thread\n\t}", "public static void main(String[] args) throws IOException {\n ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\n context.setContextPath(\"/\");\n\n // Establish DB connection first\n\n // now start the server\n System.out.println(\"=== Initializing server on port \" + PORT);\n\n Server jettyServer = new Server(PORT);\n jettyServer.setHandler(context);\n\n if (LOG_REQUESTS) {\n RequestLog requestLog = new RipLogger();\n jettyServer.setRequestLog(requestLog);\n }\n\n ServletHolder jerseyServlet = context.addServlet(ServletContainer.class, \"/sudoku/*\");\n jerseyServlet.setInitOrder(0);\n jerseyServlet.setInitParameter(\"jersey.config.server.provider.packages\", \"com.shadedreality.rest\");\n\n try {\n jettyServer.start();\n jettyServer.dumpStdErr();\n jettyServer.join();\n } catch (Exception e) {\n System.err.println(\"Uncaught Exception in server: \"+e);\n }\n finally {\n jettyServer.destroy();\n }\n }", "public void run() {\n\t\tport(8080);\n\n\t\t// Main Page, welcome\n\t\tget(\"/\", (request, response) -> \"Welcome!\");\n\n\t\t// Date\n\t\tget(\"/date\", (request, response) -> {\n\t\t\tDate d = new Date(\"frida.org\", Calendar.getInstance().get(Calendar.YEAR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DAY_OF_MONTH));\n\t\t\treturn om.writeValueAsString(d);\n\t\t});\n\n\t\t// Time\n\t\tget(\"/time\", (request, response) -> {\n\t\t\tTime t = new Time(\"frida.org\", Calendar.getInstance().get(Calendar.HOUR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MINUTE), Calendar.getInstance().get(Calendar.SECOND));\n\t\t\treturn om.writeValueAsString(t);\n\t\t});\n\t}", "public static void main(String... args) throws IOException {\r\n\r\n checkDatabaseConnectivity();\r\n checkServerProperties();\r\n checkSchedulerProperties();\r\n server = new Server(port);\r\n\r\n try {\r\n ServletContextHandler context = new ServletContextHandler(\r\n ServletContextHandler.SESSIONS\r\n | ServletContextHandler.SECURITY);\r\n\r\n context.setInitParameter(\r\n \"org.eclipse.jetty.servlet.SessionIdPathParameterName\",\r\n \"none\");\r\n\r\n context.setContextPath(\"/\");\r\n context.setSecurityHandler(setUpSecurityHandler());\r\n AppServlet.getInstance().setLoginService(\r\n (HashLoginService) context.getSecurityHandler()\r\n .getLoginService());\r\n\r\n context.addServlet(new ServletHolder(AppServlet.getInstance()),\r\n \"/*\");\r\n context.addServlet(new ServletHolder(UserServlet.getInstance()),\r\n \"/users/*\");\r\n context.addServlet(new ServletHolder(ModuleServlet.getInstance()),\r\n \"/modules/*\");\r\n context.addServlet(new ServletHolder(RoomServlet.getInstance()),\r\n \"/rooms/*\");\r\n context.addServlet(\r\n new ServletHolder(EquipmentServlet.getInstance()),\r\n \"/equipment/*\");\r\n context.addServlet(\r\n new ServletHolder(TimeframeServlet.getInstance()),\r\n \"/timeframe/*\");\r\n context.addServlet(\r\n new ServletHolder(SchedulerServlet.getInstance()),\r\n \"/scheduler/*\");\r\n\r\n ContextHandler fileHandler = new ContextHandler();\r\n fileHandler.setContextPath(\"/resources\");\r\n ResourceHandler resourceHandler = new ResourceHandler();\r\n resourceHandler.setResourceBase(\"site/resources\");\r\n fileHandler.setHandler(resourceHandler);\r\n\r\n ContextHandlerCollection contexts = new ContextHandlerCollection();\r\n contexts.setHandlers(new Handler[] { context, fileHandler });\r\n server.setHandler(contexts);\r\n\r\n server.start();\r\n\r\n } catch (Exception e) {\r\n System.err.println(\"Server failed to start.\");\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "public static void main(String[] args) {\n\t\ttry { NetworkServerControl server = new NetworkServerControl(InetAddress.getByName(\"localhost\"),1527);\n\t\tserver.start(null);\n\t\tSystem.out.println(\"DB Server Started!\");\n\t\t//server.shutdown();\n\t\t//cn = DriverManager.getConnection(dbURL);\n\t\t} catch(Exception e) {System.out.println(\"Cannot Start DB Server!\"); }\n\t\t\n\t\tfinal JettyServer jettyServer = new JettyServer();\n\t\tString jetty_home = System.getProperty(\"jetty.home\",\".\");\n Server server = new Server(8080);\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/\");\n //webapp.setWar(jetty_home+\"/target/vrscloud-1.war\");\n webapp.setWar(\"ROOT.war\");\n server.setHandler(webapp);\n // server.start();\t\n\t\t\n\t\t\n jettyServer.setHandler(webapp);\t\n\t\t\n\t\tRunnable runner = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew ServerRunner(jettyServer);\n\t\t\t}\n\t\t};\n\t\tEventQueue.invokeLater(runner);\n\t}", "public static void main(String[] args) throws Exception{\n\n\t\tHttpServer server = HttpServerFactory.create(\"http://localhost:8080/\");\n\t\tserver.start();\n\n\t\tThread.sleep(1000000);\n\t\tJOptionPane.showMessageDialog(null, \"Ende\");\n\t\tserver.stop(0);\n\n\t}", "public static void main(String[] args) throws Exception {\n Application app = new Application();\r\n\r\n // Plug the server resource.\r\n app.setInboundRoot(HelloServerResource.class);\r\n\r\n // Instantiating the HTTP server and listening on port 8111\r\n new Server(Protocol.HTTP, 8111, app).start();\r\n }", "public static void main(String... args) {\n HttpServer httpServer = httpServerBuilder()\n .setPort(8080).build();\n\n /* Setting up a request Consumer with Java 8 Lambda expression. */\n httpServer.setHttpRequestConsumer(httpRequest -> {\n\n Map<String, Object> results = new HashMap<>();\n results.put(\"method\", httpRequest.getMethod());\n results.put(\"uri\", httpRequest.getUri());\n results.put(\"body\", httpRequest.getBodyAsString());\n results.put(\"headers\", httpRequest.getHeaders());\n results.put(\"params\", httpRequest.getParams());\n httpRequest.getReceiver().response(200, \"application/json\", toJson(results));\n });\n\n /* Start the server. */\n httpServer.start();\n\n\n /* Setup an httpClient. */\n HttpClient httpClient = httpClientBuilder().setHost(\"localhost\").setPort(8080).build();\n httpClient.startClient();\n\n sendGets(httpClient);\n sendPosts(httpClient);\n sendPuts(httpClient);\n\n\n Sys.sleep(1000);\n\n httpServer.stop();\n httpClient.stop();\n }", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\r\n int port = 5000;\r\n Server server = new Server(port);\r\n\r\n //Start the server thread:\r\n server.start();\r\n }", "public static void main(String[] args) throws Exception {\n\n\t\tServer server = new Server(8080);\n\n\t\tWebAppContext bb = new WebAppContext();\n\t\tbb.setServer(server);\n\n\t\tbb.addFilter(GuiceFilter.class, \"/*\", EnumSet.allOf(DispatcherType.class));\n\n\t\tServletHolder holder = bb.addServlet(ServletContainer.class, \"/*\");\n\t\tholder.setInitParameter(\"javax.ws.rs.Application\", \"net.ludeke.rest.jersey.MyApplication\");\n\n\t\tbb.addServlet(holder, \"/*\");\n\t\tbb.setContextPath(\"/\");\n\t\tbb.setWar(\"src/main/webapp\");\n\n\t\tserver.setHandler(bb);\n\n\t\ttry {\n\t\t\tSystem.out.println(\">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP\");\n\t\t\tserver.start();\n\t\t\twhile (System.in.available() == 0) {\n\t\t\t\tThread.sleep(5000);\n\t\t\t}\n\t\t\tserver.stop();\n\t\t\tserver.join();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(100);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n Set<Users> likedSet = new HashSet<>();\n new Server(8080){{\n setHandler(new ServletContextHandler() {{\n addServlet(new ServletHolder(new ServletUsers(likedSet)) ,\"/users\");\n addServlet(new ServletHolder(new ServletsLiked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new StaticServlet()),\"/assets/*\");\n /* addServlet(new ServletHolder(new ServletsLinked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new ServletMessages()) ,\"/messages\");*/\n }}\n );\n start();\n join();\n }};\n\n }", "public static void main(String[] args) {\n\t\tnew sever();\n\t}", "public static void main(String[] args) throws Exception {\n\n String context = System.getProperty(\"rjrcontext\");\n String webAppDir = System.getProperty(\"rjrwebapp\");\n Integer port = Integer.getInteger(\"rjrport\");\n Integer sslport = Integer.getInteger(\"rjrsslport\");\n String webAppClassPath = System.getProperty(\"rjrclasspath\");\n String keystore = System.getProperty(\"rjrkeystore\");\n String password = System.getProperty(\"rjrpassword\");\n String keyPassword = System.getProperty(\"rjrkeypassword\");\n\n if (context == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrcontext\");\n }\n if (webAppDir == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrwebapp\");\n }\n if (port == null && sslport == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrport and/or -Drjrsslport\");\n }\n\n Server server = new Server();\n\n if (port != null) {\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.setPort(port);\n\n if (sslport != null) {\n connector.setConfidentialPort(sslport);\n }\n\n server.addConnector(connector);\n }\n\n if (sslport != null) {\n if (keystore == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeystore with -Drjrsslport\");\n }\n if (password == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrpassword with -Drjrsslport\");\n }\n if (keyPassword == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeypassword with -Drjrsslport\");\n }\n\n SslSocketConnector sslConnector = new SslSocketConnector();\n sslConnector.setKeystore(keystore);\n sslConnector.setPassword(password);\n sslConnector.setKeyPassword(keyPassword);\n\n sslConnector.setMaxIdleTime(30000);\n sslConnector.setPort(sslport);\n\n server.addConnector(sslConnector);\n }\n\n WebAppContext web = new WebAppContext();\n web.setContextPath(context);\n web.setWar(webAppDir);\n\n // Fix issue 7, File locking on windows/Disable Jetty's locking of static files\n // http://code.google.com/p/run-jetty-run/issues/detail?id=7\n // by disabling the use of the file mapped buffers. The default Jetty behavior is\n // intended to provide a performance boost, but run-jetty-run is focused on\n // development (especially debugging) of web apps, not high-performance production\n // serving of static content. Therefore, I'm not worried about the performance\n // degradation of this change. My only concern is that there might be a need to\n // test this feature that I'm disabling.\n web.setInitParams(Collections.singletonMap(\"org.mortbay.jetty.servlet.Default.useFileMappedBuffer\", \"false\"));\n\n if (webAppClassPath != null) {\n ProjectClassLoader loader = new ProjectClassLoader(web, webAppClassPath);\n web.setClassLoader(loader);\n }\n\n server.addHandler(web);\n\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\n MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);\n server.getContainer().addEventListener(mBeanContainer);\n mBeanContainer.start();\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(100);\n }\n return;\n }", "public static void main(String[] args) {\n\t\tServer.Serv();\n\t}", "public static void main(String[] args)\n\t{\n\t\tnew Server().runServer();\n\t}", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "public static void main(String[] args) throws IOException {\n ResourceConfig rc = new PackagesResourceConfig(\"rest\");\n HttpServer server = GrizzlyServerFactory.createHttpServer(\n \"http://localhost:8080\", rc);\n try {\n server.start();\n System.out.println(\"Press any key to stop the server...\");\n System.in.read();\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\"); // Static files\n get(\"/hello\", (req, res) -> \"Hello World\");\n System.out.println(\"http://localhost:4567/hello\");\n }", "public static void main(String[] args) throws Exception {\n WebServer webServer = new WebServer(8080);\n \n // Create a xmlRpc server using the web server\n XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();\n \n // Create classes manager and add the classes which offer services (methods)\n PropertyHandlerMapping phm = new PropertyHandlerMapping();\n phm.addHandler(\"Test\", chat.server.Test.class);\n \n // Add classes manager to xmlRpc server \n xmlRpcServer.setHandlerMapping(phm);\n \n // Setup xmlRpc server\n XmlRpcServerConfigImpl serverConfig = (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();\n serverConfig.setEnabledForExtensions(true);\n serverConfig.setContentLengthOptional(false);\n\n // Start web server\n webServer.start(); \n }", "public static void main(String[] args) throws IOException\n {\n ServerSocket listener = new ServerSocket(8080);\n try\n {\n while (true)\n {\n Socket clientSocket = listener.accept();\n new Thread(new JavaServer(clientSocket)).start();\n }\n }\n finally\n {\n listener.close();\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tServer server = new Server();\n\n\t\tServerConnector http = new ServerConnector(server);\n\n\t\thttp.setHost(\"127.0.0.1\");\n\n\t\thttp.setPort(8080);\n\n\t\tserver.addConnector(http);\n\n\t\tServletHandler servletHandler = new ServletHandler();\n\n\t\tservletHandler.addServletWithMapping(CreateServlet.class, \"/CREATE/*\");\n\t\tservletHandler.addServletWithMapping(MyServlet.class, \"/*\");\n\n\t\tserver.setHandler(servletHandler);\n\n\t\tserver.start();\n\t\tserver.join();\n\t}", "public static void main(String[] args) {\n\n Server server = new Server();\n \n\n }", "public static void main(String[] args) {\n\t\tnew Server();\n\t}", "public static void main(String[] argv) throws Exception {\n int port = 7777;\n if (argv.length > 0) {\n port = Integer.parseInt(argv[0]);\n }\n HttpsServer server = HttpsServerFactory.createServer(\"localhost\", port);\n server.createContext(\"/\", new LogHandler());\n server.start();\n while (true) {\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tRunnable server = new ServerWorker(3000);\n\t\tnew Thread(server).start();\n\n\t\ttry {\n\t\t Thread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public static void main(String[] args)\n\t{\n\t\t\n\t\tif(args.length <= 0)\n\t\t{\n\t\t\tSystem.out.println(\"usage:java -server -Xms1024m -Xmx1024m -jar mofang-chat-frontend.jar configpath\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tString configpath = args[0];\n\t\t\n\t\ttry\n\t\t{\n\t\t\t///服务器初始化\n\t\t\tSystem.out.println(\"prepare to initializing config......\");\n\t\t\tInitializer initializer = new MainInitializer(configpath);\n\t\t\tinitializer.init();\n\t\t\tSystem.out.println(\"initialize config completed!\");\n\t\t\t\n\t\t\t///启动服务器\n\t\t\tActionResolve websocketActionResolve = new WebSocketActionResolve();\n\t\t\tActionResolve httpActionResolve = new HttpActionResolve();\n\t\t\tint port = GlobalConfig.SERVER_PORT;\n\t\t\tWebServer server = new WebServer(port, PostDataParserType.Json);\n\t\t\t\n\t\t\t///channel 配置\n\t\t\tChannelConfig channelConfig = new ChannelConfig();\n\t\t\tchannelConfig.setConnTimeout(GlobalConfig.CONN_TIMEOUT);\n\t\t\tchannelConfig.setSoTimeout(GlobalConfig.READ_TIMEOUT);\n\t\t\t\n\t\t\t///Idle 配置\n\t\t\tIdleConfig idleConfig = new IdleConfig();\n\t\t\tidleConfig.setReadIdleTime(GlobalConfig.READ_IDLE_TIME);\n\t\t\tidleConfig.setWriteIdleTime(GlobalConfig.WRITE_IDLE_TIME);\n\t\t\tidleConfig.setAllIdleTime(GlobalConfig.ALL_IDLE_TIME);\n\t\t\t\n\t\t\t///webserver logger\n\t\t\tFrameworkLogger serverLogger = new FrameworkLogger();\n\t\t\tserver.setWebServerLogger(serverLogger);\n\t\t\t\n\t\t\tserver.setChannelConfig(channelConfig);\n\t\t\tserver.setIdleConfig(idleConfig);\n\t\t\tserver.setScanPackagePath(GlobalConfig.SCAN_PACKAGE_PATH);\n\t\t\tserver.setWebSocketActionResolve(websocketActionResolve);\n\t\t\tserver.setHttpActionResolve(httpActionResolve);\n\t\t\tserver.setWebSocketCloseHandlerClass(WebSocketCloseHandlerImpl.class);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Frontend Server Start on \" + GlobalConfig.SERVER_PORT);\n\t\t\t\tserver.start();\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"frontend server start error. message:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\r\n new Server();\r\n }", "public static void main(final String[] args) throws IOException {\n startServer();\n }", "public static void main(String[] args) {\r\n\t\t// create a server object and start it\r\n\t\tServer server = new Server(1500);\r\n\t\tserver.start();\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\tServerSocket serverSocket = new ServerSocket(2011);\n\t\t\tnew MainFrame();\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(final String[] args) throws Exception {\n\t\tServer server = new Server(8181);\n\n\t\t// Register and map the dispatcher servlet\n\t\tfinal ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n\t\tfinal ServletContextHandler context = new ServletContextHandler();\n\t\tcontext.setContextPath(\"/\");\n\t\tcontext.addServlet(servletHolder, \"/rest/*\");\n\t\tcontext.addEventListener(new ContextLoaderListener());\n\t\tcontext.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n\t\tcontext.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n\n\t\tfinal ResourceHandler resource_handler = new ResourceHandler();\n\t\tresource_handler.setDirectoriesListed(true);\n\t\tresource_handler.setWelcomeFiles(new String[] { \"index.html\" });\n\n\t\t// Try to find the webapp files in source\n\t\tFile basePath = new File(\"./src/main/webapp/logiclodge-webapp/\");\n\t\tif (basePath.exists()) {\n\t\t\tresource_handler.setBaseResource(new PathResource(basePath));\n\t\t} else {\n\t\t\t// Otherwise grab them from the classpath (usually inside the jar)\n\t\t\tresource_handler.setResourceBase(new ClassPathResource(\"logiclodge-webapp\").getURI().toString());\n\t\t}\n\n\t\tfinal HandlerList handlers = new HandlerList();\n\t\thandlers.setHandlers(new Handler[] { resource_handler, context });\n\t\tserver.setHandler(handlers);\n\t\tserver.start();\n\t\tserver.join();\n\t}", "public static void main(String[] args) {\n\t\t\t// Defaults\n\t\t\tint port = 8080;\n\n\t\t\tString host = null; // bind to all interfaces by default\n\t\t\tList<File> rootDirs = new ArrayList<File>();\n\t\t\tboolean quiet = false;\n\t\t\tString cors = null;\n\t\t\tMap<String, String> options = new HashMap<String, String>();\n\n\t\t\t// Parse command-line, with short and long versions of the options.\n\t\t\tfor (int i = 0; i < args.length; ++i) {\n\t\t\t\tif (\"-h\".equalsIgnoreCase(args[i]) || \"--host\".equalsIgnoreCase(args[i])) {\n\t\t\t\t\thost = args[i + 1];\n\t\t\t\t} else if (\"-p\".equalsIgnoreCase(args[i]) || \"--port\".equalsIgnoreCase(args[i])) {\n\t\t\t\t\tport = Integer.parseInt(args[i + 1]);\n\t\t\t\t} else if (\"-q\".equalsIgnoreCase(args[i]) || \"--quiet\".equalsIgnoreCase(args[i])) {\n\t\t\t\t\tquiet = true;\n\t\t\t\t} else if (\"-d\".equalsIgnoreCase(args[i]) || \"--dir\".equalsIgnoreCase(args[i])) {\n\t\t\t\t\trootDirs.add(new File(args[i + 1]).getAbsoluteFile());\n\t\t\t\t} else if (args[i].startsWith(\"--cors\")) {\n\t\t\t\t\tcors = \"*\";\n\t\t\t\t\tint equalIdx = args[i].indexOf('=');\n\t\t\t\t\tif (equalIdx > 0) {\n\t\t\t\t\t\tcors = args[i].substring(equalIdx + 1);\n\t\t\t\t\t}\n\t\t\t\t} else if (\"--licence\".equalsIgnoreCase(args[i])) {\n\t\t\t\t\tSystem.out.println(SimpleWebServer.LICENCE + \"\\n\");\n\t\t\t\t} else if (args[i].startsWith(\"-X:\")) {\n\t\t\t\t\tint dot = args[i].indexOf('=');\n\t\t\t\t\tif (dot > 0) {\n\t\t\t\t\t\tString name = args[i].substring(0, dot);\n\t\t\t\t\t\tString value = args[i].substring(dot + 1, args[i].length());\n\t\t\t\t\t\toptions.put(name, value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (rootDirs.isEmpty()) {\n\t\t\t\trootDirs.add(new File(\".\").getAbsoluteFile());\n\t\t\t}\n\t\t\toptions.put(\"host\", host);\n\t\t\toptions.put(\"port\", \"\" + port);\n\t\t\toptions.put(\"quiet\", String.valueOf(quiet));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (File dir : rootDirs) {\n\t\t\t\tif (sb.length() > 0) {\n\t\t\t\t\tsb.append(\":\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tsb.append(dir.getCanonicalPath());\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t\t}\n\t\t\toptions.put(\"home\", sb.toString());\n\t\t\tServiceLoader<WebServerPluginInfo> serviceLoader = ServiceLoader\n\t\t\t\t\t.load(WebServerPluginInfo.class);\n\t\t\tfor (WebServerPluginInfo info : serviceLoader) {\n\t\t\t\tString[] mimeTypes = info.getMimeTypes();\n\t\t\t\tfor (String mime : mimeTypes) {\n\t\t\t\t\tString[] indexFiles = info.getIndexFilesForMimeType(mime);\n\t\t\t\t\tif (!quiet) {\n\t\t\t\t\t\tSystem.out.print(\"# Found plugin for Mime type: \\\"\" + mime + \"\\\"\");\n\t\t\t\t\t\tif (indexFiles != null) {\n\t\t\t\t\t\t\tSystem.out.print(\" (serving index files: \");\n\t\t\t\t\t\t\tfor (String indexFile : indexFiles) {\n\t\t\t\t\t\t\t\tSystem.out.print(indexFile + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\").\");\n\t\t\t\t\t}\n\t\t\t\t\tregisterPluginForMimeType(indexFiles, mime, info.getWebServerPlugin(mime),\n\t\t\t\t\t\t\toptions);\n\t\t\t\t}\n\t\t\t}\n\t\t\tServerRunner.executeInstance(new SimpleWebServer(host, port, rootDirs, quiet, cors));\n\t\t}", "public static void main(String[] args){\n\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n System.out.println(\"Starting\");\n new ScheduleExecutor();\n }\n });\n\n new Server(5821, 10).launch();\n\n }", "public static void main(String[] args){\n //WebFactory.setLoaderFactory(() -> new HelperLoader());\n launch(args);\n }", "public static void main(String argv[]) throws Exception\n {\n int port = 1111;\n // Establish the listen socket.\n ServerSocket listen = new ServerSocket(port);\n while(true) {\n // Listens for and accepts requests\n // Also constructs an object to process the HTTP request message.\n HttpRequestA request = new HttpRequestA(listen.accept());\n\n // Create a new thread to process the request.\n Thread thread = new Thread(request);\n\n // Start the thread.\n thread.start();\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tint port = 3030;\n\t\tServerSocket serverSocket = null;\n\n\t\t// Establish the listen socket\n\t\ttry {\n\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t\tSystem.out.println(\"TCP server created on port =\" + port);\n\n\n\t\t// Process HTTP service requests in an infinite loop.\n\t\twhile (true) {\n\t\t\tSocket clientSocket = null;\n\n\t\t\tclientSocket = serverSocket.accept();\n\n\t\t\t// Construct an object process the HTTP request message\n\t\t\tHttpRequest request = new HttpRequest(clientSocket);\n\t\t\t// create a new thread to process the request\n\t\t\tThread thread = new Thread(request);\n\t\t\t// Start the thread\n\t\t\tthread.start();\n\n\t\t}\n\t\t}\n\t\t catch (IOException ex) {\n\t\t\t\tSystem.out.println(\"Error : The server with port=\" + port + \"cannot be created\");\n\t\t\t}\n\t\t// Closing the socket\n\t\tfinally {\n\t\t try { \n\t\t \tserverSocket.close();\n\t\t } catch(Exception e) {\n\t\t // If you really want to know why you can't close the ServerSocket, like whether it's null or not\n\t\t }\n\t\t}\n\n\t}", "public static void main(String[] args) \n {\n int port = DEFAULT_PORT; //Port to listen on\n\n\n ServerGui serverGui = new ServerGui();\n serverGui.setVisible(true);\n serverGui.setSize(450, 300);\n \n \n //----------------------------------\n // EchoServer sv = new EchoServer(port);\n \n }", "public static void main(String[] args) {\n\n HttpConnector connector = new HttpConnector();\n Wrapper wrapper = new SimpleWrapper();\n wrapper.setServletClass(\"ModernServlet\");\n Loader loader = new SimpleLoader();\n Valve valve1 = new HeaderLoggerValve();\n Valve valve2 = new ClientIPLoggerValve();// 在这里显示IP\n\n wrapper.setLoader(loader);\n ((Pipeline) wrapper).addValve(valve1);\n ((Pipeline) wrapper).addValve(valve2);\n\n connector.setContainer(wrapper);\n\n try {\n connector.initialize();\n connector.start();\n\n // make the application wait until we press a key.\n System.in.read();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String [] args) throws IOException {\n Main main = new Main();\n Map stockList = main.createStockList();\n\n Server server = new Server(2000); \n server.setMap(main.stockList);\n server.server_loop(); // run server\n\n }", "public static void main(String[] args) {\n Server se = new Server();\n }", "public static void main(String[] args) {\n\t\tSettingUI serverUI = new SettingUI(\"server\");\n\n\t\t//System.out.print(\"Port(eg.1111): \");\n\t\t// int portNumber = 1111;\n\t\t// int portNumber = console.nextInt();\n\t\t// GameServer gameServer = new GameServer(portNumber);\n\t\t// gameServer.setUpChat();\n\t\t// gameServer.start();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tsetDebug(true);\n\t\t\n\t\tWebSocket webSocket = new WebSocket(\"main ws\", 1200); // TODO - not yet fully functional, sometimes fails\n\t\twebSocket.handshake();\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n\t\tif(args.length != 2)\n\t\t{\n\t\t\tusage();\n\t\t\treturn;\n\t\t}\n\t\tHttpServer server = new HttpServer(Integer.parseInt(args[0]), new FileServer(args[1]));\n\t\tserver.setAllowedMethods(new String[] { \"GET\", \"HEAD\" });\n\t\tserver.setName(\"info.ziyan.net.httpserver.example.FileServer/1.0\");\n\t\tserver.start();\n\t}", "public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }", "public static void main (String[] args) throws Exception{\n try {\n parse_args(args);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n if( is_server ){\n run_server();\n } else {\n run_client();\n }\n\n }", "public static void main(String[] args) {\n\t\tEndpoint.publish(\"http://127.0.0.1:1111/cs\", new Calculator());\r\n\t\tSystem.out.println(\"Server has started\");\r\n\r\n\t}", "public static void main(String[] args) {\n startServer();\n Application.launch(GUI.class, args);\n }", "public static void main(String[] args) throws Exception\r\n\t{\r\n\t\tSystem.out.println(\"The server is running.\");\r\n\t\tint clientNumber = 0;\r\n\t\tServerSocket listener = new ServerSocket(9898);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (true)\r\n\t\t\t{\r\n\t\t\t\tnew RequestHandler(listener.accept(), clientNumber++).start();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tSystem.out.println(\"closed server\");\r\n\t\t\tlistener.close();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tserverManager = new ServerManager(8031);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tinitialiseServer(args[0]);\n\t\t\twhile (running == true) {\n\t\t\t\tif (((numLiveThreads.get()) == 0) && (running == false)) {\n\t\t\t\t\tshutdown();\n\t\t\t\t}\n\t\t\t\thandleIncomingConnection();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\toutputServiceErrorMessageToConsole(e.getMessage());\n\t\t} finally {\n\t\t\tshutdown();\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\t\tnew ServerFrame().setVisible(true);\r\n\t}", "public static void main(String[] args) {\n\t\tServer server = new Server();\n\t\tnew Thread(server).start();\n\n\t}", "public static void main(String[] args) {\n try {\n Thread t = new GreetingServer(4445);\n System.out.println(\"started\");\n t.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tJavalin app = Javalin.create(config -> {\n\t\t\t//This hosts the static html file on the server\n\t\t\tconfig.addStaticFiles(\"/\", Location.CLASSPATH);\n\t\t});\n\t\t\n\t\tControllerException ctrl = new ControllerException(new ServiceException());\n\t\tctrl.registerEndpoint(app);\n\t\t\n\t\tapp.start(8080);\n\t}", "public static void main(String[] args) {\n \tEmbeddedServers.add(EmbeddedServers.Identifiers.JETTY, (Routes routeMatcher, StaticFilesConfiguration staticFilesConfiguration, boolean hasMultipleHandler) -> {\r\n JettyHandler handler = setupHandler(routeMatcher, staticFilesConfiguration, hasMultipleHandler);\r\n customJettyServerFactory serv = new customJettyServerFactory();\r\n return new EmbeddedJettyServer(serv, handler);\r\n });\r\n \t\r\n \tport(80);\r\n \t\r\n \tOptions op = new Options();\r\n \top.setOptions(args);\r\n \t//LabelCreator labels = new LabelCreator(op);\r\n\r\n \t\r\n \tstaticFiles.location(\"/public\"); // Static (web accessible) files (e.g. CSS files etc.) can be placed in src/main/resources/public \r\n \tstaticFiles.header(\"Access-Control-Allow-Origin\", \"*\"); // static files can be accessed from anywhere\r\n \tstaticFiles.header(\"Access-Control-Allow-Headers\", \"*\"); // static files can be accessed from anywhere\r\n \t\r\n \t// any empty action will be redirected to the API documentation\r\n \tredirect.any(\"/\", \"/labels/\"+API_VERSION+\"/\");\r\n \tredirect.any(\"/labels\", \"/labels/\"+API_VERSION+\"/\");\r\n \tredirect.any(\"/labels/\", \"/labels/\"+API_VERSION+\"/\");\t\r\n \tredirect.any(\"/labels/\"+API_VERSION, \"/labels/\"+API_VERSION+\"/\");\r\n \t\r\n \toptions(\"/*\", (req, res) -> {\r\n \t\tString accessControlRequestHeaders = req.headers(\"Access-Control-Request-Headers\");\r\n \t\tif (accessControlRequestHeaders != null) {\r\n \t\t\tres.header(\"Access-Control-Allow-Headers\", accessControlRequestHeaders);\r\n \t\t}\r\n\r\n \t\tString accessControlRequestMethod = req.headers(\"Access-Control-Request-Method\");\r\n \t\tif (accessControlRequestMethod != null) {\r\n \t\t\tres.header(\"Access-Control-Allow-Methods\", accessControlRequestMethod);\r\n \t\t}\r\n\r\n return \"OK\";\r\n \t});\r\n \t\r\n \ttry {\r\n\t\t\t// Build swagger json description\r\n\t\t\tfinal String swaggerJson = SwaggerParser.getSwaggerJson(APP_PACKAGE);\r\n\t\t\tget(\"/labels/\"+API_VERSION+\"/\", (req, res) -> { // TODO: redirect the Swagger JSON to a Swagger UI instance instead of returning it e.g. redirect.any(\"/test\", \"http://petstore.swagger.io\");\r\n\t\t\t\tres.header(\"Content-Type\", \"application/json\");\r\n\t\t\t\treturn swaggerJson;//.replace(oldChar, newChar);\r\n\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \t\r\n \t// Routes other than default Swagger documentation\r\n \tpath(\"/labels\", () -> {\r\n \t\tpath(\"/\"+API_VERSION, () -> {\r\n\t \t\t\r\n \t\t\tget(\"/static/*\", (req, res) -> {\r\n \t \t\t\r\n \t\t\t\t AccessStatic c = new AccessStatic(op, req, res);\r\n \t\t return c.result();\r\n \t\t\t});\r\n \t\t\t\r\n \t\t\tpost(\"/\", (req, res) -> {\r\n \t\t\t\t\r\n \t\t\t\tif(req.queryParams(\"template\")==null || req.queryParams(\"template\").isEmpty())\r\n \t\t\t\t{\t\r\n \t\t\t\t\t//res.redirect(\"/labels/\"+API_VERSION+\"/template/choose\", 303);\r\n \t\t\t\t\tTemplateCreator tmpl = new TemplateCreator(op);\r\n\t\t\t \t//tmpl.baseURL = \"http://\"+req.host();\r\n\t\t\t \ttmpl.target = tmpl.baseURL+ req.pathInfo();\r\n\t\t\t \ttmpl.origReq = req;\r\n\t\t\t \t\r\n\t\t\t \treturn tmpl.chooseTemplateForm();\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tString format = req.queryParams(\"format\");\r\n \t\t\t\t\tString data = req.queryParams(\"data\");\r\n \t\t\t\t\t//op.baseURL = \"http://\"+req.host() + req.pathInfo();\r\n \t\t\t\t\t//op.baseURL = op.baseURL + req.pathInfo();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(format==null || format.isEmpty())\r\n \t\t\t\t\t\tformat=\"html\";\r\n \t\t\t\t\t\r\n\t \t\t\t\tif(format.equalsIgnoreCase(\"html\"))\r\n\t \t\t\t\t\ttry {\r\n\t \t\t\t\t\t\t CreateHTML c = new CreateHTML(op, req, res);\r\n\t \t\t\t\t String re = c.result();\r\n\t \t\t\t\t return re;\r\n\t \t\t\t\t\t} catch (Exception e) {\r\n\t \t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t \r\n\t \t\t\t\tif(format.equalsIgnoreCase(\"pdf\"))\r\n\t \t\t\t\t\ttry {\r\n\t \t\t\t\t\t\tCreatePDF c = new CreatePDF(op, req, res);\r\n\t \t\t\t\t return c.result();\r\n\t \t\t\t\t\t} catch (Exception e) {\r\n\t \t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\treturn \"3rror\";\r\n \t\t\t});\r\n \t\t\t\r\n \t\t\tget(\"/tmp\", (req, res) -> {\r\n \t \t\t\r\n \t\t\t\t AccessTmp c = new AccessTmp(op, req, res);\r\n \t\t return c.result();\r\n \t\t });\r\n \t\t\t\r\n \t\t\ttry {\r\n\t\t\t\t\tCreatePDFRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n \t\t\ttry {\r\n\t\t\t\t\tCreateHTMLRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n \t\t\ttry {\r\n\t\t\t\t\tAccessTmpRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t // TODO: Metadata about existing templates\r\n\t\t // @route /templates/ \t\t=> get a list of all existing templates\r\n\t\t // @route /template/{id} \t\t=> get a specific template with unique list of included placeholders and path to html file\r\n\t\t \r\n \t\t\tpath(\"/template\", () -> {\r\n\t\t\t get(\"/show\", (req, res) -> {\r\n\t\t\t\t\t \r\n\t\t\t \tres.header(\"Content-Type\", \"text/html\");\r\n\t\t\t \t\r\n\t\t\t if(req.queryParams(\"template\")!=null)\r\n\t\t\t\t\t\t\top.templateFile = op.templateDir+\"/\"+req.queryParams(\"template\");\r\n\t\t\t \r\n\t\t\t String html = \"\";\r\n\t\t\t File file = new File(op.templateFile);\r\n\t\t\t\t\t FileInputStream fis;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t if(file.exists()) {\r\n\t\t\t\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\t\t\t byte[] data = new byte[(int) file.length()];\r\n\t\t\t\t\t\t\tfis.read(data);\r\n\t\t\t\t\t\t fis.close();\r\n\t\t\t\t\t\t html = new String(data, \"UTF-8\");\r\n\t\t\t\t\t };\r\n\t\t\t\t\t res.body(html);\r\n\t\t\t\t\t \r\n\t\t\t\t\t return res.body();\r\n\t\t\t });\r\n\t\t\t \r\n\t\t\t get(\"/show/all\", (req, res) -> {\r\n\t\t\t \t\r\n\t\t\t \tres.header(\"Content-Type\", \"application/json\");\r\n\t\t\t \tres.body(new TemplateCreator(op).getTemplates().toString());\r\n\t\t\t \treturn res.body();\r\n\t\t\t });\r\n\t\t\t \r\n\t\t\t \r\n \t\t\t});\r\n\t\t \r\n\t\t get(\"/check\", (req, res)-> {\r\n\t\t \t\r\n\t\t \t byte[] bytes = Files.readAllBytes(Paths.get(\"templates/submit.html\")); \r\n\t\t\t HttpServletResponse raw = res.raw();\r\n\t\t\t\r\n\t\t\t raw.getOutputStream().write(bytes);\r\n\t\t\t raw.getOutputStream().flush();\r\n\t\t\t raw.getOutputStream().close();\r\n\t\t\t \r\n\t\t\t return res.raw();\r\n\t\t \t\r\n\t\t });\r\n\t\t \r\n\t\t // TODO: set option for configuring Allow-Origin through config.ini\r\n\t\t\t\tbefore((req, res) -> {\r\n\t\t\t\t\tres.header(\"Access-Control-Allow-Origin\", \"*\");\r\n\t\t\t\t\tres.header(\"Access-Control-Allow-Headers\", \"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin,\");\r\n\t\t\t\t});\r\n\t\t \r\n\t\t // TODO: make template editable (e.g. with (static) implementation of WYSIWYG Aloha Editor (http://alohoeditor.org))\r\n\t\t // get(\"/template/edit\", (req, res) -> {\r\n\t\t //\t\t@param Sting template: name of the template\r\n\t\t // }\r\n\t\t \r\n\t\t // TODO: save template (e.g. by sending the (full) DOM of the template edited by Aloha Editor (http://alohoeditor.org))\r\n\t\t // get(\"/template/save\", (req, res) -> {\r\n\t\t //\t\t@param String template: name of the (new) template\r\n\t\t //\t\t@param Boolean overwrite: what to do if template name already exists \r\n\t\t // }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t /* get(\"/json\", (req, res) -> {\r\n\t\t \r\n\t\t byte[] bytes = Files.readAllBytes(Paths.get(\"templates/data.json\")); \r\n\t\t HttpServletResponse raw = res.raw();\r\n\t\t\r\n\t\t raw.addHeader(\"Content-Type\", \"application/json\");\r\n\t\t raw.getOutputStream().write(bytes);\r\n\t\t raw.getOutputStream().flush();\r\n\t\t raw.getOutputStream().close();\r\n\t\t\r\n\t\t return res.raw();\r\n\t\t \r\n\t\t \t });\r\n\t\t */\r\n\t \t});\r\n \t});\r\n \t\r\n \tif(op.debug)\r\n \t\tenableDebugScreen(); \r\n }", "public static void main(String args[]) throws Exception {\n SLF4JBridgeHandler.install();\n\n try {\n JettyServer server = new JettyServer(8080);\n server.start();\n log.info(\"Server started\");\n server.join();\n } catch (Exception e) {\n log.error(\"Failed to start server.\", e);\n }\n }", "public static void main (String[] args) {\n\t\tAbstractServer as = new FirstServer();\n\t\tString ip = \"localhost\";\n\t\tas.connect(ip);\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\t\t\t\n\t\t\n\t\tSystem.out.println(\"Starting server...\");\n\t\tGameServer gameServer = new GameServer(4321);\n\t\tgameServer.serve();\n\n\t}", "public static void main(String[] args) {\n\t\tServer s = new Server(args);\n\t\ttry {\n\t\t\ts.runServer();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Cannot accept client\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }", "public static void main(String[] args) {\n\t\tAddTivoliServer as = new AddTivoliServer();\n\t\tas.start();\n\t}", "public void run(){\n\t\tstartServer();\n\t}", "public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }", "public static void main(String[] args) {\n int port = 8899;\n ServerBootstrap serverBootstrap = new ServerBootstrap();\n EventLoopGroup boss = new NioEventLoopGroup();\n EventLoopGroup work = new NioEventLoopGroup();\n\n try {\n serverBootstrap.group(boss, work)\n .channel(NioServerSocketChannel.class)\n .localAddress(new InetSocketAddress(port))\n .childHandler(new ChannelInitializer() {\n\n @Override\n protected void initChannel(Channel ch) throws Exception {\n ch.pipeline()\n .addLast(\"codec\", new HttpServerCodec()) // HTTP 编解码\n .addLast(\"compressor\", new HttpContentCompressor()) // HttpContent 压缩\n .addLast(\"aggregator\", new HttpObjectAggregator(65536)) // HTTP 消息聚合\n .addLast(\"handler\", new HttpServerHandler());\n }\n })\n .childOption(ChannelOption.SO_KEEPALIVE, true);\n\n ChannelFuture f = serverBootstrap.bind().sync();\n System.out.println(\"Http Server started, Listening on \" + port);\n f.channel().closeFuture().sync();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n work.shutdownGracefully();\n boss.shutdownGracefully();\n }\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model\", (req, res) -> newModel());\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:row/:col\", (req, res) -> fireAt(req));\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:id/:row/:col/:orientation\", (req, res) -> placeShip(req));\n }", "public static void main(String[] args) {\n Runner.runExample(Server.class);\n }", "public static void main(String[] args) throws IOException {\n log.info(\"The ticket to ride server is running.\");\n\n try (ServerSocket listener = new ServerSocket(9001)) {\n while (true) {\n Socket socket = listener.accept();\n\n MiniServer h = new MiniServer(socket);\n\n new Thread(h::go).start();\n }\n } catch (BindException be) {\n log.error(\"Cannot start server\", be);\n JOptionPane.showMessageDialog(null, \"Cannot start server\",\n be.getMessage(), JOptionPane.ERROR_MESSAGE);\n System.exit(1);\n }\n }", "public void run()\n {\n Utilities.debugLine(\"WebServer.run(): Runing Web Server\", DEBUG);\n\n running = true;\n\n ServerSocketConnection ssc;\n try\n {\n ssc = (ServerSocketConnection) Connector.open(\"socket://:\" + PORT);\n\n do\n {\n Utilities.debugLine(\"WebServer.run(): Socket Opened, Waiting for Connection...\", DEBUG);\n SocketConnection sc = null;\n sc = (SocketConnection) ssc.acceptAndOpen();\n Thread t = new Thread(new ConnectionHandler(sc));\n t.setPriority(Thread.MIN_PRIORITY);\n t.start();\n\n//--------------------------------------- DEBUG THREAD NUMBER ---------------------------------\n try\n {\n System.out.println(\"Active Threads: \" + Thread.activeCount());\n }\n catch (Exception e)\n {\n System.out.println(\"There was an eror getting the thread count.\");\n }\n//--------------------------------------- DEBUG THREAD NUMBER ---------------------------------\n\n }\n while (running);\n ssc.close();\n }\n\n catch (Exception e)\n {\n Utilities.debugLine(e.toString() + e.getMessage(), true);\n }\n }", "public static void main(String[] args) {\n\t\tnew ServerFrame();\n\t}", "public static void main(String[] args) {\n\t\tThread t = new Thread(new Server());\n\t\tt.start();\n\t\ttry {\n\t\t\tt.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model/:Version\", (req, res) -> newModel( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:Version/:row/:col/:hard\", (req, res) -> fireAt( req ));\n //This will handle the scan feature\n post(\"/scan/:Version/:row/:col/:hard\", (req, res) -> scan( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:Version/:id/:row/:col/:orientation/:hard\", (req, res) -> placeShip( req ));\n }", "public static void main(String[] args){\n\t\t/**************************************************\n\t\t * \t\t\tProcess command line arguments\n\t\t * ************************************************/\n\t\tboolean server = false;\n\t\tint nclients = 1;\n\t\tString url = null; \n\t\tint broadcastClock = DEFAULT_BROADCAST_CLK_PERIOD;\n\t\tint port = DEFAULT_PORT;\n\t\t\n\t\tfor (int i = 0; i != args.length; ++i) {\n\t\t\tif (args[i].startsWith(\"-\")) {\n\t\t\t\tString arg = args[i];\n\t\t\t\tif(arg.equals(\"-server\")) {\n\t\t\t\t\tserver = true;\n\t\t\t\t\tnclients = Integer.parseInt(args[++i]);\n\t\t\t\t} else if(arg.equals(\"-connect\")) {\n\t\t\t\t\turl = args[++i];\n\t\t\t\t}else if(arg.equals(\"-port\")) {\n\t\t\t\t\tport = Integer.parseInt(args[++i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tInetAddress address;\n\t\ttry {\n\t\t\taddress = InetAddress.getByName(DEFAULT_HOST);\n\t\t\tGame game = new Game();\n\t\t\tParser p = new Parser(game);\n\t\t\tgame = p.createGameFromFiles(1);\n\t\t\trunServer(address, DEFAULT_PORT, 1, DEFAULT_BROADCAST_CLK_PERIOD, PLAYER_UID++, game, 1);\n\t\t} catch (UnknownHostException e) {\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n int port = 7788;\n Server server = new Server(port);\n server.listen();\n }", "public static void main(String[] args)\n {\n if(args.length < 2){\n System.out.println(\"Missing Arguments. Please Try Again\");\n System.exit(0);\n }\n else if(args.length > 2){\n System.out.println(\"Too many Arguments. Please Try Again\");\n System.exit(0);\n }\n\n serverIp = args[0];\n try {\n serverPort = Integer.parseInt(args[1]);\n }\n catch(NumberFormatException e){\n System.out.println(\"The port number must be an integer.\");\n System.exit(0);\n }\n\n try{\n Socket socket = new Socket(serverIp, serverPort);\n // Open GUI\n window = new MainWindow(socket);\n window.run();\n } catch (UnknownHostException e) {\n System.out.println(\"Unknown Host.\");\n System.exit(0);\n } catch (IOException e) {\n System.out.println(\"Connection Refused.\");\n System.exit(0);\n }\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\t// get the command line argument\r\n\t\t\r\n\t\tif (args.length < 1) {\r\n\t\t\tSystem.out.println(\"Error: expected 1 argument containing directory in 'files/'.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString path = args[0];\r\n\t\t\r\n\t\tint port = 8000;\r\n\t\t\r\n\t\tif (args.length > 1) {\r\n\t\t\tport = Integer.parseInt(args[1]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// setup the server and listen for incoming connections\r\n\t\t\r\n\t\tServerSocket serverSocket = new ServerSocket(port);\r\n\t\tSystem.out.println(\"Listening on port \" + port + \"...\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\t\t\t\tSocket socket = serverSocket.accept();\r\n\t\t\t\tnew Thread(new HttpConnection(socket, path)).start();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tserverSocket.close();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n PingPongServerFactory factory = new RealFactory();\n Skeleton<PingPongServerFactory> skeleton = null;\n\n\n try {\n // take the localHost's hostname and create the skeleton at port 80\n InetSocketAddress inet = new InetSocketAddress(InetAddress.getLocalHost().getHostName(), 80);\n\n skeleton = new Skeleton<PingPongServerFactory>(PingPongServerFactory.class, factory, inet);\n // start the skeleton and wait for requests\n skeleton.start();\n\n } catch (Exception e) {\n e.printStackTrace();\n try {\n skeleton.stop();\n } catch (NullPointerException e1) {\n e1.printStackTrace();\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tNewItretor it = new NewItretor();\n\t\tit.invokeBrowser();\n\t\t\t\n\n\t}", "final public static void main(String[] args)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tServerSocket test = new ServerSocket(9999);\r\n\t\t\ttest.close();\r\n\t\t\ttest = null;\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tCommonMethods.displayErrorMessage(Text.MAIN.PORT9999_TAKEN_ERROR);\r\n\t\t\tCommonMethods.terminate();\r\n\t\t}\r\n\t\t//start the program\r\n\t\tStartUp startUp = new StartUp();\r\n\t\tstartUp.addStartUpListener(new StartUpListener(startUp));\r\n\t}", "public static void main(String[] args) throws Exception {\n HelloWorldServer server = new HelloWorldServer(8980);\n server.start();\n server.blockUntilShutdown();\n }", "public static void main(String[] args) {\n\t\tDMMainServer server = new DMMainServer();\n\t}", "public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tServerSocket serverSocket = new ServerSocket(8989);\n\t\t\tApplication app = new Application();\n\t\t\tapp.startServer(serverSocket);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"服务器端口已经被占用!!!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tmappingLibs.put(\"java.\", \"./lib/rt8.jar\");\n\t\tmappingLibs.put(\"org.apache.commons.codec.\", \"./lib/org.apache.commons.codec-1.9.0.jar\");\n\t\tmappingLibs.put(\"javax.crypto.\", \"./lib/javax-crypto.jar\");\n//\t\tallLibs = new ArrayList<String>(Arrays.asList(\"./lib/rt8.jar\", \"./lib/org.apache.commons.codec-1.9.0.jar\",\n//\t\t\t\t\"./lib/javax-crypto.jar\", \"./lib/symail.jar\", \"./lib/greenmail-standalone-1.5.8.jar\",\n//\t\t\t\t\"./lib/javax.mail.jar\", \"./lib/simple-java-mail-5.0.3.jar\", \"./lib/emailaddress-rfc2822-1.1.0.jar\"));\n\t\tallLibs = new ArrayList<String>(Arrays.asList(\"./lib/rt8.jar\", \"./lib/org.apache.commons.codec-1.9.0.jar\",\n\t\t\t\t\"./lib/javax-crypto.jar\", \"./lib/symail.jar\"));\n\t\tServerRunner.run(HttpServer.class);\n\t}", "public static void main(String... args) throws Exception {\n final Component component = new Component();\n component.getServers().add(Protocol.HTTP, 8585);\n component.getClients().add(Protocol.FILE);\n component.getClients().add(Protocol.CLAP);\n component.getClients().add(Protocol.HTTP);\n // Attach the application to the default host and start it\n component.getDefaultHost().attach(\"/rmep\", new Application());\n component.start();\n }", "public static void main(String args[]) throws Exception {\n\t\t// Get the port to listen on\n\t\tint port = Integer.parseInt(args[0]);\n\t\t// Create a ServerSocket to listen on that port.\n\t\tServerSocket ss = new ServerSocket(port);\n\t\tSystem.out.println(\"Listening\");\n\t\t// Now enter an infinite loop, waiting for & handling connections.\n\t\twhile (true) {\n\t\t\t// Wait for a client to connect. The method will block;\n\t\t\t// when it returns the socket will be connected to the client\n\t\t\tSocket client = ss.accept();\n\t\t\tSystem.out.println(\"Connected\");\n\t\t\tnew Thread(new HttpMultiThreadServer(client)).start();\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\n List<RequestHandle> requestHandleList = new ArrayList<RequestHandle>();\n requestHandleList.add(new LsfRequestServerHandle());\n\n final Server server = new Server(new DefaultServerRoute(),new ServerHandler(requestHandleList), GlobalManager.serverPort);\n Thread t= new Thread(new Runnable() {\n public void run() {\n //start server\n try {\n server.run();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n t.start();\n\n ServerConfig serverBean = new ServerConfig();\n serverBean.setAlias(\"test\");\n serverBean.setInterfaceId(IService.class.getCanonicalName());\n serverBean.setImpl(new IServerImpl());\n server.registerServer(serverBean);\n\n\n }", "@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }", "public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}" ]
[ "0.76578265", "0.75234145", "0.7468387", "0.7422404", "0.73105896", "0.72933036", "0.72369397", "0.72275025", "0.72158957", "0.71929806", "0.71880215", "0.71674204", "0.7144758", "0.7138669", "0.7121004", "0.7117881", "0.71140575", "0.7067236", "0.70476097", "0.70225596", "0.6986647", "0.6976391", "0.69541055", "0.6953069", "0.69441736", "0.6917459", "0.69040394", "0.6899508", "0.6894971", "0.6894598", "0.6880798", "0.68724746", "0.6865884", "0.6854197", "0.68424356", "0.68381", "0.6822738", "0.6820693", "0.6797342", "0.679044", "0.6786704", "0.6778898", "0.6769737", "0.67399246", "0.67343616", "0.67196745", "0.6711553", "0.66783404", "0.66726595", "0.66653603", "0.6646838", "0.6644774", "0.6642145", "0.6631249", "0.66298616", "0.6629227", "0.662406", "0.6612628", "0.6608959", "0.65985006", "0.6582363", "0.65785944", "0.65758044", "0.6572849", "0.6552698", "0.65522987", "0.654689", "0.6543454", "0.65343064", "0.6531087", "0.6530818", "0.65210676", "0.65182173", "0.6513074", "0.6510564", "0.6499108", "0.64955306", "0.6491553", "0.6486569", "0.6485615", "0.6477568", "0.6473671", "0.6465601", "0.6460877", "0.6458047", "0.64563924", "0.64549255", "0.6451859", "0.6448115", "0.64455223", "0.644537", "0.64276797", "0.6420665", "0.6400371", "0.63989455", "0.6392012", "0.6387193", "0.63866997", "0.6362714", "0.63582873" ]
0.811573
0
Modifeis: this Effects: Adds a schedule to the schedule list
public void add(Schedulorinator schedule) { if (!scheduleList.contains(schedule)) { scheduleList.add(schedule); schedule.addPerson(this); addObserver(schedule); notifyObservers(schedule); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void schedule(String id, String[] schedule) {\n\t}", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "Schedule createSchedule();", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "void setSchedule(java.lang.String schedule);", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "@Override\n\tpublic void addSchedule(TeacherCourse tc) {\n\t\tcd.addTeacherCourse(tc);\n\t}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void setTimes(FerriesScheduleTimes Times) {\n this.Times.add(Times);\n }", "public void setSchedule(CanaryScheduleOutput schedule) {\n this.schedule = schedule;\n }", "public void buildSchedule() {\n class SimulationStep extends BasicAction {\n public void execute() {\n SimUtilities.shuffle(rabbitList);\n for (int i = 0; i < rabbitList.size(); i++) {\n RabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n rabbit.step();\n }\n\n reapDeadRabbits();\n\n displaySurf.updateDisplay();\n }\n }\n schedule.scheduleActionBeginning(0, new SimulationStep());\n\n class GrassGrowth extends BasicAction {\n public void execute() {\n space.spreadGrass(grassGrowthRate);\n }\n }\n schedule.scheduleActionBeginning(0, new GrassGrowth());\n\n class UpdatePopulationPlot extends BasicAction {\n public void execute() {\n populationPlot.step();\n }\n }\n schedule.scheduleActionAtInterval(5, new UpdatePopulationPlot());\n }", "public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}", "@Test\n\tpublic void modifyingScheduleWorks() throws Exception {\n\t\tResource floatRes = new Resource();\n\t\tfloatRes.setName(\"scheduleTest\");\n\t\tfloatRes.setType(FloatResource.class);\n\t\t// floatRes.setDecorating(Boolean.TRUE);\n\t\tFloatSchedule schedule = createTestSchedule();\n\n\t\tfloatRes.getSubresources().add(schedule);\n\t\tResource meter1 = unmarshal(sman.toXml(meter), Resource.class);\n\t\tmeter1.getSubresources().add(floatRes);\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tschedule.getEntry().clear();\n\t\tschedule.setStart(2L);\n\t\tschedule.setEnd(3L);\n\n\t\tSampledValue v = new SampledFloat();\n\t\tv.setQuality(Quality.GOOD);\n\t\tv.setTime(2);\n\t\tv.setValue(new FloatValue(2));\n\t\tschedule.getEntry().add(v);\n\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tSchedule ogemaSchedule = (Schedule) meter.getSubResource(\"scheduleTest\").getSubResource(\"data\");\n\n\t\tassertEquals(3, ogemaSchedule.getValues(0).size());\n\t\tassertEquals(2, ogemaSchedule.getValues(0).get(1).getValue().getFloatValue(), 0);\n\t}", "public Schedule(List<Integer> SprinklerIDs,int timeOfDay, int minute, int duration, List<Integer> daysOfWeek) {\n\t\tsuper();\n\t\tTimeOfDay = timeOfDay;\n\t\tMinute = minute;\n\t\tDuration = duration;\n\t\tDaysOfWeek = daysOfWeek;\n\t\tSprinklerIDs = SprinklerIDs;\n\t\tType=ScheduleType.TIMED;\n\t}", "public static void addScheduleToCart(Cart cart, Schedule schedule) {\n\n cart.setSchedule(schedule);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void addScheduleChangeListener(ScheduleChangeListener lst) {\r\n\t\tlisteners.add(lst);\r\n\t}", "public abstract void schedule();", "private void buildSchedule() {\n\t\tclass RabbitsGrassSimulationStep extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\tSimUtilities.shuffle(rabbitList);\n\t\t\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\t\t\trabbit.step();\n\t\t\t\t}\n\n\t\t\t\treapDeadRabbits();\n\t\t\t\tgiveBirthToRabbits();\n\n\t\t\t\trabbitSpace.spreadGrass(growthRateGrass);\n\n\t\t\t\tdisplaySurf.updateDisplay();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionBeginning(0, new RabbitsGrassSimulationStep());\n\n\t\tclass UpdateNumberOfRabbitsInSpace extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\trabbitsAndGrassInSpace.step();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionAtInterval(1, new UpdateNumberOfRabbitsInSpace());\n\n\t}", "public void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public Schedule() {\r\n }", "TimerSchedule createTimerSchedule();", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "public Schedule getSchedule() {\n\n return schedule;\n }", "boolean saveSchedule(Schedule schedule);", "public String getSchedule() {\n return schedule;\n }", "abstract public void computeSchedule();", "public Schedule() {\n this(DataManager.readAll());\n }", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public static void createSchedule(Realm realm, ScheduleType selectedSchedule, LanguageType selectedLanguage, String title) {\n\t\tString[][] scheduleStrings = selectedSchedule.getSchedule();\n\t\t// save schedule into db\n\t\trealm.executeTransaction(r -> {\n\t\t\t// create schedule object\n\t\t\tSchedule schedule = r.createObject(Schedule.class, UUID.randomUUID().toString());\n\t\t\tschedule.setTitle(title);\n\t\t\tschedule.setLanguage(selectedLanguage.getName());\n\t\t\t// add all days to the schedule\n\t\t\tint dayNumber = 1;\n\t\t\tfor (String[] dayItems : scheduleStrings) {\n\t\t\t\tDay day = r.createObject(Day.class, UUID.randomUUID().toString());\n\t\t\t\tday.setDayNumber(dayNumber++);\n\t\t\t\t// each day has a set of files to listen to\n\t\t\t\tfor (String dayItem : dayItems) {\n\t\t\t\t\tStudyItem studyItem = r.createObject(StudyItem.class, UUID.randomUUID().toString());\n\t\t\t\t\tstudyItem.setTitle(dayItem);\n\t\t\t\t\tstudyItem.setCompleted(false);\n\t\t\t\t\tday.getStudyItems().add(studyItem);\n\t\t\t\t}\n\t\t\t\tschedule.getSchedule().add(day);\n\t\t\t}\n\t\t});\n\t}", "private void storeSchedules(List<Schedule> schedules, Instantiator instantiator) {\n for (Schedule schedule : schedules) {\n String connectorName = schedule.getConnectorName();\n String connectorSchedule = schedule.toString();\n try {\n instantiator.setConnectorSchedule(connectorName, connectorSchedule);\n } catch (ConnectorNotFoundException e) {\n fail(\"Connector \" + connectorName + \" Not Found: \" + e.toString());\n }\n }\n }", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "int insert(Schedule record);", "public void update(Schedule arg0) {\n\t\t\n\t}", "public void addToStopList(Stop s){ this.stopList.add(s); }", "java.lang.String getSchedule();", "@ApiModelProperty(value = \"Schedule that this filter refers to. Output is a Schedule Summary Object. Input must be a Schedule Lookup Object. Required.\")\n public ScheduleSummary getSchedule() {\n return schedule;\n }", "static void addMondayOnly(Schedules schedules) throws RBEConfigObjectException\n {\n\t\t// Create a new inclusion period\n\t\tPeriod ip = new Period();\n\n\t\t// Include minutes between 8:00am to 5:59pm.\n\t\t// Note: 8:00am = 480 and 6:00pm = 1080\n\t\t// By default a new period includes minutes from\n\t\t// 9:00am to 5:00pm. However, all minutes are\n\t\t// between 8:00am to 5:59pm explicitely included here.\n\t\tfor (int i = 480; i < 1080; i++)\n\t\t\tip.include(Period.MINUTES_IN_DAY, i);\n\n\t\t// Change days in week to include only monday\n\t\t// Note: sunday = 0, saturday = 6.\n\t\tip.excludeAll(Period.WEEKDAYS_IN_MONTH);\n\t\tip.include(Period.WEEKDAYS_IN_MONTH, Period.MONDAY);\n\n\t\t// Note: By default a new period includes all Period.DAYS_IN_MONTH.\n\t\t// So there no need to explicitely include them here.\n\n\t\t// create a new schedule and add the inclusion period to it.\n\t\tSchedule schedule = new Schedule(\"MondayOnly\");\n\t\tschedule.addInclusionPeriod(ip);\n\n\t\t// add the schedule to the list of schedule\n\t\tschedules.addSchedule(schedule);\n\t\tprintln(\"Schedule added: (\"+schedule+\")\");\n }", "public void applyToSchedule(Schedule sched) {\n String repeat = m_repeatCombo.getSelectedItem().toString();\n for (Schedule.Repeat r : Schedule.Repeat.values()) {\n if (r.toString().equals(repeat)) {\n sched.setRepeatUnit(r);\n break;\n }\n }\n if (m_intervalField.getText() != null\n && m_intervalField.getText().length() > 0) {\n sched.setRepeatValue(Integer.parseInt(m_intervalField.getText()));\n } else if (sched.getRepeatUnit() == Schedule.Repeat.MINUTES\n || sched.getRepeatUnit() == Schedule.Repeat.HOURS\n || sched.getRepeatUnit() == Schedule.Repeat.DAYS) {\n // set a default value of 5\n sched.setRepeatValue(5);\n m_intervalField.setText(\"5\");\n }\n\n java.util.List<Integer> dow = new java.util.ArrayList<Integer>();\n if (m_sunCheck.isSelected()) {\n dow.add(Calendar.SUNDAY);\n }\n if (m_monCheck.isSelected()) {\n dow.add(Calendar.MONDAY);\n }\n if (m_tueCheck.isSelected()) {\n dow.add(Calendar.TUESDAY);\n }\n if (m_wedCheck.isSelected()) {\n dow.add(Calendar.WEDNESDAY);\n }\n if (m_thuCheck.isSelected()) {\n dow.add(Calendar.THURSDAY);\n }\n if (m_friCheck.isSelected()) {\n dow.add(Calendar.FRIDAY);\n }\n if (m_satCheck.isSelected()) {\n dow.add(Calendar.SATURDAY);\n }\n sched.setDayOfTheWeek(dow);\n\n if (sched.getRepeatUnit() == Schedule.Repeat.MONTHLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched.setDayOfTheMonth(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n }\n }\n\n if (sched.getRepeatUnit() == Schedule.Repeat.YEARLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched\n .setRepeatValue(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n // day of the week is already set\n\n sched.setMonthOfTheYear(m_month.getSelectedIndex());\n }\n }\n }", "public final void setSchedule(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date schedule)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Schedule.toString(), schedule);\n\t}", "private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }", "public void setScheduletime(Date scheduletime) {\r\n this.scheduletime = scheduletime;\r\n }", "public boolean haveSchedule() {\r\n return haveSchedule;\r\n }", "protected void listSchedules(Calendar calendar) {\n List<Schedule> schedules = calendar.getSchedules();\n List<String> list = new ArrayList<>();\n\n for (Schedule schedule : schedules) {\n list.add(schedule.getName());\n }\n listItem(list);\n }", "public final void rule__AstSchedule__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11829:1: ( ( 'schedule' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11830:1: ( 'schedule' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11830:1: ( 'schedule' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11831:1: 'schedule'\n {\n before(grammarAccess.getAstScheduleAccess().getScheduleKeyword_0()); \n match(input,75,FOLLOW_75_in_rule__AstSchedule__Group__0__Impl24043); \n after(grammarAccess.getAstScheduleAccess().getScheduleKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public Canary withSchedule(CanaryScheduleOutput schedule) {\n setSchedule(schedule);\n return this;\n }", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "public final void setSchedule(java.util.Date schedule)\n\t{\n\t\tsetSchedule(getContext(), schedule);\n\t}", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "@Override\r\n\tpublic void add(Seasoning s) {\n\t\t\r\n\t}", "void schedule(ScheduledJob job);", "public void setBuddeisSchedules(ArrayList<Schedule> newBuddies) {\n\n buddies = new ArrayList<Schedule>();\n\n buddies.addAll(newBuddies);\n }", "public boolean\r\n scheduleEmployee(int gasStationID, int employeeId, Date date, int shift){\r\n Schedule schedule = new Schedule(gasStationID, employeeId, date, shift);\r\n schedule.create();\r\n return true;\r\n }", "private void initialize(){\n// Schedule initializeList1, initializeList2, initializeList3, initializeList4,initializeList5,\n// initializeList6,initializeList7,initializeList8,initializeList9,\n// initializeList10,initializeList11,initializeList12,initializeList13,\n// initializeList14,initializeList15,initializeList16,initializeList17,\n// initializeList18,initializeList19,initializeList20,initializeList21,initializeList22;\n// initializeList1= new Schedule(\"A001\",\"LimKH\", 1629,\"A01\", \"pewdiepie\", \"0162313212\", \"Delivering\",\"5min\");\n// initializeList2= new Schedule(\"A002\",\"LimKW\", 1111,\"A02\", \"MsTingTT\", \"012432434\", \"Delivering\",\"5min\");\n// initializeList3= new Schedule(\"A003\",\"LowSK\",3456, \"A03\", \"AhLiao\", \"01312321213\", \"Delivering\",\"5min\");\n// initializeList4= new Schedule(\"A004\",\"NgWD\",9909, \"A04\", \"Kazuma\", \"015213797\", \"Delivering\",\"5min\"); \n// initializeList5= new Schedule(\"A005\",\"LooJW\",1233,\"A05\",\"Kalima\",\"01124356\",\"Delivering\",\"5min\");\n// initializeList6= new Schedule(\"A006\",\"LimJJ\",1012,\"A06\", \"LeongFoei\", \"01239909\", \"Delivering\",\"5min\");\n// initializeList7= new Schedule(\"A007\",\"MahHW\",3757,\"A07\",\"KongKong\",\"012283747\",\"Delivering\",\"5min\");\n// initializeList8= new Schedule(\"A008\",\"LoiKH\",9610,\"A08\",\"MigMing\",\"012636383\",\"Delivering\",\"5min\"); \n// initializeList9= new Schedule(\"A009\",\"LimNF\",5566,\"A09\",\"MsTing\",\"0192726363\",\"Delivering\",\"5min\");\n// initializeList10= new Schedule(\"A010\",\"LohKC\",6969,\"A10\",\"KitKat\",\"017265353\",\"Delivering\",\"5min\");\n// \n// initializeList11= new Schedule(\"A011\",\"LimKH\", 1629,\"A11\", \"Kari\", \"012213778\", \"Delivering\",\"5min\");\n// initializeList12= new Schedule(\"A012\",\"LimKW\", 1111,\"A12\", \"Yolo\", \"0162328212\", \"Delivering\",\"5min\");\n// initializeList13= new Schedule(\"A013\",\"LowSK\", 3456,\"A13\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList14= new Schedule(\"A015\",\"LowSK\", 3456,\"A14\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList15= new Schedule(\"A016\",\"LooJW\", 1233,\"A15\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList16= new Schedule(\"A017\",\"LimJJ\", 1012,\"A16\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList17= new Schedule(\"A018\",\"LimJJ\", 1012,\"A17\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList18= new Schedule(\"A019\",\"LoiKH\", 9610,\"A18\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList19= new Schedule(\"A020\",\"LimNF\", 5566,\"A19\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList20= new Schedule(\"A021\",\"LimNF\", 5566,\"A20\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// \n// //completed jobs\n// initializeList21= new Schedule(\"A022\",\"LimKH\", 1629,\"A21\", \"Doggo\", \"0198377213\", \"Completed\",\"5min\");\n// initializeList22= new Schedule(\"A023\",\"LimKH\", 1629,\"A22\", \"Cloud\", \"0198377213\", \"Completed\",\"5min\");\n// scheduleList.addSchedule(initializeList1);\n// scheduleList.addSchedule(initializeList2);\n// scheduleList.addSchedule(initializeList3);\n// scheduleList.addSchedule(initializeList4);\n// scheduleList.addSchedule(initializeList5);\n// scheduleList.addSchedule(initializeList6);\n// scheduleList.addSchedule(initializeList7);\n// scheduleList.addSchedule(initializeList8);\n// scheduleList.addSchedule(initializeList9);\n// scheduleList.addSchedule(initializeList10);\n// scheduleList.addSchedule(initializeList11);\n// scheduleList.addSchedule(initializeList12);\n// scheduleList.addSchedule(initializeList13);\n// scheduleList.addSchedule(initializeList14);\n// scheduleList.addSchedule(initializeList15);\n// scheduleList.addSchedule(initializeList16);\n// scheduleList.addSchedule(initializeList17); \n// scheduleList.addSchedule(initializeList18);\n// scheduleList.addSchedule(initializeList19);\n// scheduleList.addSchedule(initializeList20);\n// scheduleList.addSchedule(initializeList21);\n// scheduleList.addSchedule(initializeList22);\n \n \n\n for(int i = 0; i<scheduleList.getNumberOfSchedule();i++){\n int staff = scheduleList.getSchedule(i).getStaffID();\n jcbDeliveryman.addItem(staff);\n \n String order = scheduleList.getSchedule(i).getOrderID();\n jcbOrderNo.addItem(order);\n\n }\n \n \n// jcbDeliveryman.addActionListener(jcbOrderNo);\n// for(int i = 0; i<scheduleList.getNumberOfSchedule();i++){\n// jcbOrderNo.addItem(scheduleList.getSchedule(i).getOrderID());\n// }\n }", "public abstract void maintenanceSchedule() ;", "private void saveGeneratedSchedules() {\n if (yesNoQuestion(\"(y) Do you want to save all of them? (n) Or just a few? \")) {\n scheduleList.addSchedulesToList(activeScheduleList);\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n return;\n }\n\n System.out.println(\"How many of the schedules to add? (The rest will be cleared afterwards)\");\n int numSchedulesToAdd = obtainIntSafely(0, activeScheduleList.size(), \"That is out of bounds\");\n if (numSchedulesToAdd == activeScheduleList.size()) {\n System.out.println(\"Selected maximum Amount, adding all\");\n }\n\n for (int i = 0; i < numSchedulesToAdd; i++) {\n System.out.println(\"What is the number of the schedule to save?\");\n int schedToAdd = obtainIntSafely(1, activeScheduleList.size(), \"That is out of bounds\");\n scheduleList.addScheduleToList(activeScheduleList.get(schedToAdd - 1));\n System.out.println(\"Done\");\n }\n\n activeScheduleList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public void setScheduleExpression(String scheduleExpression) {\n this.scheduleExpression = scheduleExpression;\n }", "public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "private void addScheduleEntry(String startString, String endString, String tempString, Boolean noHeating) {\n int start = Integer.valueOf(startString.split(\":\")[0]);\n int end = Integer.valueOf(endString.split(\":\")[0]);\n double temperature = Utility.NO_HEATING_TEMPERATURE;\n\n if (!noHeating) {\n temperature = Double.valueOf(tempString.substring(0, tempString.length() - 1));\n }\n\n // Add to local database.\n ContentValues values = new ContentValues();\n values.put(Schedules.COLUMN_NAME_START_TIME, start);\n values.put(Schedules.COLUMN_NAME_END_TIME, end);\n values.put(Schedules.COLUMN_NAME_TEMPERATURE, temperature);\n values.put(Schedules.COLUMN_NAME_ROOM_ID, mRoomID);\n values.put(Schedules.COLUMN_NAME_DAY, mSelectedDay);\n\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n db.insert(Schedules.TABLE_NAME, null, values);\n db.close();\n mScheduleView.notifyDatasetChanged();\n\n // Add to server. The entry must be added to every thermostat in the room.\n Request mRequest = new Request(this);\n for (String RFID : thermostatRFIDs) {\n mRequest.addScheduleEntry(new ScheduleEntry(temperature, start, end, mSelectedDay), mRoomID, RFID);\n }\n }", "@Transactional\n public List<Schedule> saveSchedules(List<ScheduleDTO> schedules) {\n return schedules.stream()\n .map((schedule) -> saveSchedule(schedule.getId(),\n\t\t\t\t\t\tschedule.getParentId(),\n\t\t\t\t\t\tschedule.getscheduleName(),\n\t\t\t\t\t\tschedule.getscheduleDetails(),\n\t\t\t\t\t\tschedule.getscheduleTime()\n\t\t\t\t\t ))\n .collect(Collectors.toList());\n }", "public Schedule() {\r\n\t\tschedule = new boolean[WEEK_DAYS][];\r\n\t\tfor(int i = 0; i < WEEK_DAYS; i++)\r\n\t\t\tschedule[i] = new boolean[SEGMENTS_PER_DAY];\r\n\t\tlisteners = new ArrayList<ScheduleChangeListener>();\r\n\t}", "public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "private void handleSchedule(ToDoSchedule todoSchedule)\r\n throws ToDoServiceDelegateException {\r\n\r\n if (todoSchedule.getInitiationDate().before(new Date())) {\r\n\r\n ToDo basis = todoSchedule.getToDo();\r\n\r\n ToDo scheduledTodo = null;\r\n scheduledTodo = (ToDo) basis.clone();\r\n scheduledTodo.setDeadlineTimestamp(new Date());\r\n scheduledTodo.setComplete(false);\r\n scheduledTodo.setId(null);\r\n\r\n this.getTodoServiceDelegate().save(scheduledTodo);\r\n\r\n }\r\n }", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "private List<Schedule> getSchedules(String traverserName, int delay) {\n List<ScheduleTimeInterval> intervals =\n new ArrayList<ScheduleTimeInterval>();\n intervals.add(new ScheduleTimeInterval(\n new ScheduleTime(0),\n new ScheduleTime(0)));\n \n List<Schedule> schedules = new ArrayList<Schedule>();\n Schedule schedule = new Schedule(traverserName, false, 60, delay, intervals);\n schedules.add(schedule);\n return schedules;\n }", "public Schedule(int timeOfDay, int minute, int duration, List<Integer> daysOfWeek, List<SprinklerGroup> sprinklerGroups) {\n\t\tsuper();\n\t\t\n\t\t\tTimeOfDay = timeOfDay;\n\t\t\tMinute = minute;\n\t\t\tDuration = duration;\n\t\t\tDaysOfWeek = daysOfWeek;\n\t\t\tSprinklerGroups = sprinklerGroups;\n\t\t\tType=ScheduleType.TIMED;\t\n\t\t\n\t}", "public void scheduleItem(IItem itemToSchedule, BankFusionEnvironment env) {\n }", "@Override\n\tpublic void UpdateTableSchedule(Schedule current) {\n\t\tif (current == null)\n\t\t\treturn;\n\t\tCurrFitness = current.fitness;\n\t\tmyLabelSchedule.setText(\"Current Schedule Fitness: \" + CurrFitness);\n\t\tfor (int station = 1; station <= current.stations.size(); station++) {\n\t\t\tfor (int i = 0; i < dtm.getRowCount(); i++) {\n\t\t\t\tdtm.setValueAt(\"\", i, station);\n\t\t\t}\n\t\t\t// @Debug System.out.println(\"TableLength: \"+tableLength);\n\t\t\tStationSlot currentStation = current.stations.get(station - 1);\n\t\t\tif (currentStation.registeredCars.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tLinkedList<CarSlot> cars = currentStation.registeredCars;\n\t\t\t\tfor (int i = 0; i < cars.size(); i++) {\n\t\t\t\t\tCarSlot car = cars.get(i);\n\t\t\t\t\tfloat start = car.startTime;\n\t\t\t\t\tfloat duration = car.duration;\n\t\t\t\t\tint rowNum = (int) (start * (60 / interval));\n\t\t\t\t\t// System.out.println(\"ColumNum: \"+rowNum);\n\t\t\t\t\twhile (duration > 0) {\n\t\t\t\t\t\tdtm.setValueAt(\"Car \" + car.name + \" [\" + car.priority + \"]\" + \" - \" + car.type, rowNum, station);\n\t\t\t\t\t\trowNum++;\n\t\t\t\t\t\tduration = (float) (duration - interval / 60f);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@PostMapping(\"/Scheduling/addAppointment\")\r\n\tpublic String addAppointment(Scheduling scheduling) {\r\n\t\tschedulingService.createAppointment(scheduling);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "public void scheduleJobs();", "boolean newWorkingSchedule(WorkingScheduleRequest workingSchedule);", "private void updateNonRecurringSchedule() {\n int pos = scheduleSpinner.getSelectedItemPosition();\n PHSchedule schedule = nonRecurringSchedules.get(pos);\n\n String timerName = editTvScheduleName.getText().toString().trim();\n if (timerName.length() != 0) {\n schedule.setName(timerName);\n }\n\n if (timeToSend == null) {\n PHWizardAlertDialog.showErrorDialog(\n PHUpdateNonRecurringScheduleActivity.this, getResources()\n .getString(R.string.txt_empty_time),\n R.string.btn_ok);\n return;\n } else {\n schedule.setDate(timeToSend);\n\n }\n\n String lightIdentifier = null;\n String groupIdentifier = null;\n if (rbLightForSchedule.isChecked()) {\n int lightPos = lightSpinner.getSelectedItemPosition();\n PHLight light = lights.get(lightPos);\n lightIdentifier = light.getIdentifier();\n schedule.setLightIdentifier(lightIdentifier);\n schedule.setGroupIdentifier(null);\n\n } else if (rbGroupForSchedule.isChecked()) {\n int groupPos = groupSpinner.getSelectedItemPosition();\n PHGroup group = groups.get(groupPos);\n groupIdentifier = group.getIdentifier();\n schedule.setGroupIdentifier(groupIdentifier);\n schedule.setLightIdentifier(null);\n }\n\n if (stateToSend != null) {\n schedule.setLightState(stateToSend);\n }\n\n String timerDescription = editTvScheduleDescriptor.getText().toString()\n .trim();\n\n if (timerDescription.length() != 0) {\n schedule.setDescription(timerDescription);\n }\n\n String timerRandomTime = editTvScheduleRandomTime.getText().toString()\n .trim();\n if (timerRandomTime.length() != 0) {\n schedule.setRandomTime(Integer.parseInt(timerRandomTime));\n }\n\n final PHWizardAlertDialog dialogManager = PHWizardAlertDialog\n .getInstance();\n dialogManager.showProgressDialog(R.string.sending_progress,\n PHUpdateNonRecurringScheduleActivity.this);\n\n bridge.updateSchedule(schedule, new PHScheduleListener() {\n\n @Override\n public void onSuccess() {\n\n dialogManager.closeProgressDialog();\n PHUpdateNonRecurringScheduleActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n if (isCurrentActivity()) { \n PHWizardAlertDialog.showResultDialog(PHUpdateNonRecurringScheduleActivity.this, getString(R.string.txt_timer_updated), R.string.btn_ok, R.string.txt_result);\n }\n }\n });\n \n }\n\n @Override\n public void onStateUpdate(\n Hashtable<String, String> successAttribute,\n List<PHHueError> errorAttribute) {\n // TODO Auto-generated method stub\n }\n\n @Override\n public void onError(int code, final String msg) {\n dialogManager.closeProgressDialog();\n Log.v(TAG, \"onError : \" + code + \" : \" + msg);\n PHUpdateNonRecurringScheduleActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n if (isCurrentActivity()) { \n PHWizardAlertDialog.showErrorDialog(PHUpdateNonRecurringScheduleActivity.this, msg,R.string.btn_ok);\n }\n }\n });\n \n }\n });\n }", "public FacultySchedule getSchedule() {\n\t\treturn schedule;\n\t}", "public PurchaseSchedule(String shoeType, int tick) {\r\n\t\tthis.shoeType = shoeType;\r\n\t\tthis.tick = tick;\r\n\t}", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "public void addShift(Shift shift){shifts_dao.addShift(shift);}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public CanaryScheduleOutput getSchedule() {\n return this.schedule;\n }", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public Schedule(Schedule other) {\n __isset_bitfield = other.__isset_bitfield;\n this.begTime = other.begTime;\n this.endTime = other.endTime;\n this.date = other.date;\n if (other.isSetOffice()) {\n this.office = other.office;\n }\n this.plan = other.plan;\n if (other.isSetTickets()) {\n List<TTicket> __this__tickets = new ArrayList<TTicket>();\n for (TTicket other_element : other.tickets) {\n __this__tickets.add(new TTicket(other_element));\n }\n this.tickets = __this__tickets;\n }\n this.available = other.available;\n }" ]
[ "0.68346196", "0.67738837", "0.67360646", "0.6702387", "0.6549676", "0.65488714", "0.6541564", "0.6536093", "0.6490678", "0.6376692", "0.6332077", "0.62996167", "0.624027", "0.6223983", "0.6205773", "0.6119629", "0.6059163", "0.60538155", "0.601553", "0.59956735", "0.59882617", "0.59620976", "0.59512013", "0.5914838", "0.5906796", "0.59036666", "0.58992946", "0.58912385", "0.5856626", "0.58490664", "0.5789941", "0.57892686", "0.57854635", "0.5767473", "0.5758819", "0.5741607", "0.5729182", "0.57243204", "0.57045907", "0.5700203", "0.5654872", "0.5641082", "0.5626656", "0.56248385", "0.5609832", "0.5585834", "0.55806714", "0.5576054", "0.55680907", "0.5567398", "0.5557299", "0.5547707", "0.55460113", "0.5537933", "0.5507385", "0.5491162", "0.54853696", "0.5484535", "0.54773736", "0.54759735", "0.546266", "0.5459788", "0.5457841", "0.54571855", "0.5457124", "0.5453227", "0.5446489", "0.5445548", "0.54443514", "0.54425675", "0.54417324", "0.54280657", "0.54271", "0.5414074", "0.5407377", "0.5383015", "0.53808695", "0.537855", "0.53760606", "0.53627604", "0.5360571", "0.5338762", "0.53375125", "0.5333388", "0.53280646", "0.5323515", "0.53190744", "0.5316777", "0.5313662", "0.53066707", "0.5304988", "0.53039473", "0.52688885", "0.52562654", "0.5252151", "0.5250811", "0.52445984", "0.52417135", "0.52406275", "0.5233824" ]
0.74806845
0
Modifes: this Effects: removes a schedule from the schedule list
public void remove(Schedulorinator schedule) { if (scheduleList.contains(schedule)) { scheduleList.remove(schedule); schedule.removePerson(this); removeObserver(schedule); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "void unsetSchedule();", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "public abstract void unschedule();", "public synchronized void resetSchedules() {\n schedules = null;\n }", "public void removeClockFromStock(Clock removedClock);", "void unsetRaceList();", "@Test\n\tpublic void deletingScheduleIntervalWorks() throws Exception {\n\t\tResource floatRes = new Resource();\n\t\tfloatRes.setName(\"scheduleTest\");\n\t\tfloatRes.setType(FloatResource.class);\n\t\t// floatRes.setDecorating(Boolean.TRUE);\n\t\tFloatSchedule schedule = createTestSchedule();\n\n\t\tfloatRes.getSubresources().add(schedule);\n\t\tResource meter1 = unmarshal(sman.toXml(meter), Resource.class);\n\t\tmeter1.getSubresources().add(floatRes);\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\t\t\n\t\tschedule.getEntry().clear();\n\t\tschedule.setStart(2L);\n\t\tschedule.setEnd(3L);\n\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tSchedule ogemaSchedule = (Schedule) meter.getSubResource(\"scheduleTest\").getSubResource(\"data\");\n\n\t\tassertEquals(2, ogemaSchedule.getValues(0).size());\n\t\tassertEquals(42, ogemaSchedule.getValues(0).get(0).getValue().getFloatValue(), 0);\n\t\tassertEquals(44, ogemaSchedule.getValues(0).get(1).getValue().getFloatValue(), 0);\n\t}", "public void remove(Timesheet ts) {\n\t //attach category\n\t \tSystem.out.println(\"Remove in timehseet\");\n\t ts = find(ts.getTimesheetID());\n\t em.remove(ts);\n\t }", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public Builder clearScheduling() {\n \n scheduling_ = 0;\n onChanged();\n return this;\n }", "public static void removeScheduleFromCart(Cart cart) {\n\n cart.setSchedule(null);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n\n }\n\n }", "public static void deleteButtonActionPerformed(ActionEvent evt){\r\n yearField.setEditable(true);\r\n semesterChoice.setEnabled(true);\r\n mylist.empty();\r\n subjectCodes = new ArrayList<>();\r\n timeLabels = new ArrayList<>();\r\n schedulePanel.removeAll();\r\n schedulePanel.repaint();\r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel); \r\n }", "boolean deleteWorkingSchedule(Long workingScheduleId);", "private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public static int rmScheduledEvent()\n\t{\n\t\tString sql = \"DELETE FROM BSM_SCHEDULER_EVENT_REPORT\";\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT\");\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "public void clear() {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++) {\r\n\t\t\t\tschedule[i][j] = false;\r\n\t\t\t\tnotifyListeners(i, j);\r\n\t\t\t}\r\n\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "@Override\n\tpublic void redo() {\n\t\tfor (TAPNQuery q : queriesInclusion) {\n\t\t\tq.inclusionPlaces().removePlace(timedPlace);\n\t\t}\n\n\t\ttapn.remove(timedPlace);\n\t\tguiModel.removePetriNetObject(timedPlaceComponent);\n\t}", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public void removeTime(int index) {\r\n\t\tthis.timeAvailable.remove(index);\r\n\t}", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void removeFromReminders(List<Date> reminders);", "public void removeTasks() {\n\t\t\r\n\t}", "public Builder clearScheduling() {\n if (schedulingBuilder_ == null) {\n scheduling_ = null;\n onChanged();\n } else {\n scheduling_ = null;\n schedulingBuilder_ = null;\n }\n\n return this;\n }", "public void stopAndRemove() {\n\t\tstartMoveDownTimer.stop();\n\t\tmoveDownTimer.stop();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public void removeAllFightsystems()\r\n {\n\r\n }", "void unsetRecurrenceTimeZoneCode();", "public void remove(String t,int y){\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y){\n\t\t//quantity of that movie is gotten\n\t\tint oldQuantity = list.get(x).getQuantity();\n\t\t//new quantity of movie is created by subtracting the old one by one\n\t\tint newQuantity = oldQuantity-1;\n\t\t//if either the new or old quantity is one, the object movie is completely removed\n\t\tif(oldQuantity == 0 || newQuantity==0){\n\t\tlist.remove(x);\t\n\t\t}\n\t\t//else the new quantity is set\n\t\telse{\n\t\tlist.get(x).setQuantity(newQuantity);\n\n\t\t}\n\t}\n\t}\n}", "public void removeAllTime() {\r\n\t\tBase.removeAll(this.model, this.getResource(), TIME);\r\n\t}", "int deleteByExample(ScheduleCriteria example);", "protected void removeLane()\n {\n if (lane == 1)\n {\n\n MyWorld.Lane1Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 2)\n {\n MyWorld.Lane2Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 3)\n {\n MyWorld.Lane3Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 4)\n {\n MyWorld.Lane4Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 5)\n {\n MyWorld.Lane5Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n MyWorld.monsterAdded();\n }", "public void remove () {}", "void remove(Team team);", "private void reset(Schedule schedule){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\t\r\n\t\tif(schedule.getStatus()==Schedule.STATUS_INPROGRESS)\r\n\t\t\tschedule.setStatus(Schedule.STATUS_STOPPED);\r\n\t\t\r\n\t\tschedule.setNextRunTime(schedule.calculateStartTime());\r\n\t\tdao.modify(schedule);\r\n\t}", "public void removeStudents(ArrayList<String> toRemove) {\n\t\tfor (int i=0; i<toRemove.size(); i++) {\r\n\t\t\tif (students.indexOf(toRemove.get(i)) != -1) {\r\n\t\t\t\tSystem.out.println(\"Removing \" + toRemove.get(i) + \" from \" + day + \" \" + time);\r\n\t\t\t\tstudents.remove(toRemove.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"students left: \" + students + \"\\n\");\r\n\t}", "private void removeFromSavedCourseList() {\n System.out.println(\"The current courses in the saved course list are: \");\n\n for (int i = 0; i < courseList.getCourseList().size(); i++) {\n System.out.println((i + 1) + \": \" + courseList.getCourseList().get(i).getName());\n }\n\n System.out.println(\"Write the number of the one you wish to remove\");\n int removeIndex = obtainIntSafely(1, courseList.getCourseList().size(), \"Number out of bounds\");\n courseList.getCourseList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}", "public void removeFromReminders(Date reminders);", "void removePerformAt(Facility oldPerformAt);", "public void unScheduleItem(IItem item, BankFusionEnvironment env) {\n removeItem(item);\n }", "private void unscheduleSlice() {\n nextSliceRunTime = Double.MAX_VALUE;\n timer.cancel();\n }", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "void removeProblem(String stopOrLineId, Date time) throws Exception;", "public synchronized void stopScheduler() {\r\n\t\tstatus = false;\r\n\t\tstart = null;\r\n\t\tif (t != null) {\r\n\t\t\tt.cancel();\r\n\t\t\tt.purge();\r\n\t\t\tt = null;\r\n\t\t}\r\n\t\tstartDate = null;\r\n\t\tsuper.interrupt();\r\n\t}", "boolean deleteWholeWorkingScheduleForPlace(Long placeId);", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove(Student s1){\r\n this.studentList.remove(s1);\r\n }", "public void removeByschoolId(long schoolId);", "void unsetSearchRecurrenceStart();", "private void scheduleRemove(Node n) {\n synchronized (ExplorerManager.this) {\n if (selectionSyncTask == null) {\n selectionSyncTask = getSelectionProcessor().create(this);\n } else {\n selectionSyncTask.cancel();\n }\n }\n\n synchronized (this) {\n removeList.add(n);\n }\n\n // invariant: selectionSyncTask != null && is not running yet.\n selectionSyncTask.schedule(SELECTION_SYNC_DELAY);\n }", "void removeFlight(Flight flight);", "public StatusInfo deleteSchedule(@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public void removeRafProcessList(List<RafProcess> rafProcessList);", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }", "public void remove(Station station)\n {\n world.removeActor(station.getId());\n\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n stations[i] = null;\n break;\n }\n }\n }", "void removeAllSpawn();", "public void remove() {\n\n }", "public void removeFinArFundsInActionAppliedHistoryList(List<FinArFundsInActionAppliedHistory> finArFundsInActionAppliedHistoryList);", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "@Override\r\n\tpublic void perform() {\n\t\tview.removeMapMonster(toremove);\r\n\t}", "public void remove() {\r\n\tif (kingdom != null && currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\tcurrentEffect = null;\r\n }", "void unsetRecurrenceDuration();", "void unsetAppliesPeriod();", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "@Override\n\tpublic void removeCalendar(CalendarEdit edit) throws PermissionException {\n\t\t\n\t}", "public void removeAllPlaylistDelay() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PLAYLISTDELAY);\r\n\t}", "private void removeFromActiveCourseList() {\n System.out.println(\"The current courses in the active course list are: \");\n\n for (int i = 0; i < activeCourseList.size(); i++) {\n System.out.println((i + 1) + \": \" + activeCourseList.get(i).getName());\n }\n\n System.out.println(\"Write the number of the one you wish to remove\");\n int removeIndex = obtainIntSafely(1, activeCourseList.size(), \"Number out of bounds\");\n activeCourseList.remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }", "@Test\n public void removeShiftList(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n //clean up and test\n assertTrue(shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\"));\n\n userDAO.removeUser((\"dummy3\"));\n }", "public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}", "private ArrayList<Task> removeNoTimeTask(ArrayList<Task> toFilter) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n\n //remove all without dates (ToDos and Lasts)\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(ToDo.class)) {\n toDelete.add(i);\n }\n if (toFilter.get(i).getClass().equals(Last.class)) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "public void removeFightsystem( Fightsystem fightsystem )\r\n {\n\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "void removeSources(McastRoute route);", "@Override\r\n\tpublic boolean deleteScheduledFlights(int serialNo) {\r\n\t\tScheduledFlights sflight =entityManager.find(ScheduledFlights.class, serialNo);\r\n\t\tif(sflight !=null)\r\n\t\t{\r\n\t\t\tentityManager.remove(sflight);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse \r\n\t\treturn false;\r\n\t}", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "public void removeByTodoDateTime(Date todoDateTime);", "public void removeTimeObserver(TimeObserver observer);", "public void remove() {\r\n setRemovable(true);\r\n }", "void removeRoadside(int i);", "public void removeFromPlanet() {\n this.currentPlanet = null;\n }" ]
[ "0.7780315", "0.74067974", "0.7014093", "0.66348994", "0.6272219", "0.6268097", "0.6208742", "0.61438364", "0.6134655", "0.59378546", "0.59243244", "0.59065056", "0.5886717", "0.5837068", "0.5828124", "0.5804141", "0.5794684", "0.5794078", "0.57678294", "0.5748583", "0.5687594", "0.5686115", "0.5682369", "0.56804085", "0.56794745", "0.56794745", "0.56794745", "0.56794745", "0.56794745", "0.56587195", "0.5643252", "0.5631742", "0.56104743", "0.5590667", "0.55766255", "0.55670774", "0.5562113", "0.5552045", "0.5550609", "0.55473554", "0.5542712", "0.5532251", "0.5528253", "0.5527176", "0.55106795", "0.55102336", "0.54949534", "0.5490647", "0.54900384", "0.54884917", "0.5486237", "0.5483249", "0.5479635", "0.5460258", "0.5445184", "0.5445184", "0.5445184", "0.54410803", "0.5433345", "0.5432391", "0.5428733", "0.54237634", "0.54194933", "0.5417988", "0.54049045", "0.54049045", "0.54049045", "0.54049045", "0.54049045", "0.54043776", "0.54000825", "0.5395813", "0.5393376", "0.53913903", "0.53885853", "0.5386887", "0.5377965", "0.53772455", "0.53664315", "0.53576577", "0.53574586", "0.5355163", "0.53513974", "0.5350357", "0.53494674", "0.534597", "0.53390265", "0.5338312", "0.5336983", "0.53344303", "0.5333128", "0.5332728", "0.5329354", "0.532552", "0.5323349", "0.5320816", "0.53174466", "0.529621", "0.52944344", "0.5293308" ]
0.7444784
1
Execute search using the provided filters and redirect to result list
public String search() { return "manage"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "Results processFilter(FilterSpecifier filter) throws SearchServiceException;", "List<SearchResult> search(SearchQuery searchQuery);", "public String searchByFilter() {\n if (selectedFilter.size() != 0) {\n for (Genre filterOption : selectedFilter) {\n searchTerm = searchResultTerm;\n searchBook();\n\n System.out.println(\"CURRENT NUMBER OF BOOKS: \" + books.size());\n\n BookCollection temp = this.db.getCollectionByGenre(filterOption);\n System.out.println(\"GETTING COLLECTION FOR FILTERING: \" + temp.getCollectionName() + \" NUM OF BOOKS: \"\n + temp.getCollectionBooks().size());\n filterBookList(temp.getCollectionBooks());\n System.out.println(\"UPDATED NUMBER OF BOOKS: \" + books.size());\n }\n } else {\n searchTerm = searchResultTerm;\n searchBook();\n }\n\n return \"list.xhtml?faces-redirect=true\";\n }", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }", "private void startFilterCriteria() {\n\n\t\tLog.i(TAG, \"startFilterCriteria()\");\n\n\t\tFindUtilsImpl utils = new FindUtilsImpl();\n\t\tSet<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind);\n\t\tArrayList<String> tList = new ArrayList<String>(cleanSet(tSet));\n\n\t\tString str = \"start FilterCriteria.class\";\n\t\tLog.i(TAG, \"Search Activity: \" +str);\n\n\t\t\tIntent intent = new Intent(context, FilterCriteria.class);\n\t\t\tintent.putStringArrayListExtra(\"TypesKey\", tList);\n\t\t\t//TODO capture activity not found exception\n\t\t\t//\t((Activity) context).startActivityForResult(intent,Constants.FIND_REQ);\n\t\t\tstartActivityForResult(intent,Constants.FIND_REQ);\n\n\t\t\tstr = \"startActivity(intent,Constants.FIND_REQ)\";\n\t\t\t//\tstr = \"startActivityForResult(intent,Constants.FIND_REQ)\";\n\t\t\tLog.e(\"Search Dlg: \", str);\n\t\t}", "List<ResultDTO> search(String query);", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CorrResultModel searchForEvents(String searchString, int page, String lowerBound, String upperBound, List filterNames);", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Item searched\n String term = request.getParameter(\"term\");\n int type, pricefilter, order;\n try {\n // 0 Restaurant, 1 City, 2 Region\n type = Integer.parseInt(request.getParameter(\"type\"));\n // 0 All, 1 €, 2 €€, 3 €€€\n pricefilter = Integer.parseInt(request.getParameter(\"pricefilter\"));\n // 1 Raking, 2 Alphabetical, 3 Price\n order = Integer.parseInt(request.getParameter(\"order\"));\n } catch (NumberFormatException e){\n response.sendRedirect(\"index.jsp\");\n return;\n }\n\n // If null is searched, redirects\n if(term == null){\n response.sendRedirect(\"index.jsp\");\n return;\n }\n\n // Term searched must be at least 3 characters long\n if(term.length() < 3){\n // Input too short\n response.sendRedirect(\"index.jsp?alert=1\");\n return;\n }\n\n // Character which must not be searched\n if(term.toLowerCase().contains(\"%\") || term.toLowerCase().contains(\"[\") || term.toLowerCase().contains(\"]\") ||\n term.toLowerCase().contains(\"^\")){\n response.sendRedirect(\"index.jsp\");\n return;\n }\n\n // List of results depending on the filtering\n ArrayList<SearchResult> results = null;\n switch (type){\n case 0:\n results = dbmanager.getRestaurants(term, pricefilter, order);\n break;\n case 1:\n results = dbmanager.getRestaurantsByCity(term, pricefilter, order);\n break;\n case 2:\n results = dbmanager.getRestaurantsByRegion(term, pricefilter, order);\n break;\n default:\n }\n\n if(results == null){\n response.sendRedirect(\"index.jsp\");\n }else{\n request.setAttribute(\"results\", results);\n request.setAttribute(\"type\", type);\n request.setAttribute(\"term\", term);\n request.setAttribute(\"pricefilter\", pricefilter);\n request.setAttribute(\"order\", order);\n getServletContext().getRequestDispatcher(\"/searchResults.jsp\").forward(request, response);\n }\n\n }", "public CorrResultModel searchForEvents(String searchString, int page, HashMap foundEventtypes, String lowerBound, String upperBound, List filterNames);", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tArrayList<Book> foundBooks = new ArrayList<>();\r\n\t\tString page = JspManager.INDEX;\r\n\t\tString searchParam;\r\n\t\tServiceFactory serviceFactory = ServiceFactory.getInstance();\r\n\t\tLibraryService libraryService = serviceFactory.getLibraryService();\r\n\t\tsearchParam = request.getParameter(ParameterManager.SEARCH_PARAM);\r\n\r\n\t\ttry {\r\n\t\t\tfoundBooks = libraryService.search(searchParam, CRITERIA);\r\n\t\t\tif (foundBooks.isEmpty()) {\r\n\t\t\t\trequest.setAttribute(ParameterManager.ERROR_MES, MessageManager.NOT_EXIST);\r\n\t\t\t}\r\n\t\t\trequest.setAttribute(ParameterManager.LIST_BOOK, foundBooks);\r\n\r\n\t\t} catch (ServiceException e) {\r\n\t\t\tlog.error(\"ServiceException in SearchByContext\", e);\r\n\t\t\trequest.setAttribute(ParameterManager.ERROR_MES, MessageManager.ERROR);\r\n\r\n\t\t}\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(page);\r\n\t\tdispatcher.forward(request, response);\r\n\t}", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "abstract public boolean performSearch();", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n \n List<ResultDAO> retListPredLookUp = new ArrayList<ResultDAO>();\n List<ResultDAO> retListPredSearch = new ArrayList<ResultDAO>();\n List<ResultDAO> retListObj = new ArrayList<ResultDAO>();\n List<ResultDAO> retListSubj = new ArrayList<ResultDAO>();\n \n List<List<ResultDAO>> retList = new ArrayList<List<ResultDAO>>();\n List<ResultDAO> retListPred = new ArrayList<ResultDAO>();\n \n // initialize with some default values\n int topK = Constants.TOPK;\n \n // we just need two threads to perform the search\n ExecutorService pool = Executors.newFixedThreadPool(2);\n \n try {\n if (request.getParameter(\"topk\") != null) {\n topK = Integer.parseInt(request.getParameter(\"topk\"));\n }\n \n QueryEngine.setTopK(topK);\n \n String subject = request.getParameter(\"subject\");\n String predicate = request.getParameter(\"predicate\");\n String object = request.getParameter(\"object\");\n \n // This is simple search mode. just qyerying for terms\n if (!Constants.PREDICTIVE_SEARCH_MODE) {\n // fetch the answer terms\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n retList = webTupleProc.getRetList();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n\n // get the predicates \n retListPredSearch = webTupleProc.getRetListPredSearch();\n\n } else {\n if (!subject.equals(\"Subject\") && !subject.equals(\"\")) {\n retListSubj = QueryEngine.doSearch(subject);\n }\n if (!object.equals(\"Object\") && !object.equals(\"\")) {\n retListObj = QueryEngine.doSearch(object);\n }\n }\n \n } else { // This is advanced search mode. where the system tries to predict the best matches based on the\n // input combination\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n // get the subjects and objects\n retList = webTupleProc.getRetList();\n \n // get the predicates\n retListPredLookUp = webTupleProc.getRetListPredLookUp();\n retListPredSearch = webTupleProc.getRetListPredSearch();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n }\n \n }\n \n // set the request parameter for results display\n if (retListSubj.size() > 0) {\n request.setAttribute(\"matchingListSubj\", retListSubj);\n }\n if (retListObj.size() > 0) {\n request.setAttribute(\"matchingListObj\", retListObj);\n }\n if (retListPredLookUp.size() > 0) {\n request.setAttribute(\"matchingListPredLookup\", retListPredLookUp);\n }\n if (retListPredSearch.size() > 0) {\n request.setAttribute(\"matchingListPredSearch\", retListPredSearch);\n }\n \n // for resetting the text boxes\n request.setAttribute(\"subject\", subject);\n request.setAttribute(\"predicate\", predicate);\n request.setAttribute(\"object\", object);\n request.setAttribute(\"topk\", topK);\n \n // redirect to page\n request.getRequestDispatcher(\"entry.jsp\").forward(request, response);\n \n }\n \n catch (Throwable theException) {\n System.out.println(theException);\n }\n \n }", "public interface FilterAction {\n /**\n * Takes search entities that has been returned from {@link cz.muni.fi.pb162.find.filesystem.FSWalkResult}\n * Applies all the filters that have been enabled and returns filtered entries.\n *\n * To check which filters are active use {@link cz.muni.fi.pb162.find.ApplicationOptions}\n *\n * @param entries - Not filtered search entities\n * @return filtered search entities\n */\n List<SearchEntry> filter(List<SearchEntry> entries);\n}", "List<ResultDTO> searchUser(String query);", "@RequestMapping(value=\"/searchresults\", method = RequestMethod.GET)\n\tpublic String searchResults(@RequestParam(value=\"search\", required=false) String search, Model model, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"page\", required=false) Integer page, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"status\", required=false) String status, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agent\", required=false) String agent, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agentDisplay\", required=false) String agentDisplay, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateFrom\", required=false) String dateFrom, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateTo\", required=false) String dateTo) throws Exception {\n\t\tif (page==null) {\n\t\t\tpage=0;\n\t\t}\n\t\tif (search==null) {\n\t\t\tsearch=\"\";\n\t\t}\n\t\tInteger INCREMENT = 20;\n\t\tPageable pageable = PageRequest.of(page, INCREMENT);\n\t\tsearch = search.trim();\n\t\tsearch = search.replace(\"\\\"\", \"\"); //remove quotes\n\t\tsearch = search.replaceAll(\"( )+\", \" \"); //remove extra spaces\n\t\t\n\t\tRMapSearchParams params = paramsFactory.newInstance();\n\t\tparams.setSystemAgents(agent);\n\t\tRMapStatusFilter statusFilter = RMapStatusFilter.getStatusFromTerm(status);\n\t\tstatusFilter = (statusFilter==null) ? RMapStatusFilter.ALL : statusFilter;\t\n\t\tparams.setStatusCode(statusFilter);\n\t\tparams.setDateRange(new DateRange(dateFrom,dateTo));\n\t\t\n\t\tFacetAndHighlightPage<DiscoSolrDocument> indexerResults = searchService.searchDiSCOs(search, params, pageable);\n\t\t\n\t\tboolean hasExactMatch = dataDisplayService.isResourceInRMap(search, params);\n\t\t\n\t\tmodel.addAttribute(\"search\", search);\n\t\tmodel.addAttribute(\"numRecords\",indexerResults.getTotalElements());\n\t\tmodel.addAttribute(\"matches\",indexerResults.getHighlighted());\n\t\t\t\t\n\t\tmodel.addAttribute(\"statusFacets\",indexerResults.getFacetResultPage(\"disco_status\").getContent());\n\t\tmodel.addAttribute(\"agentFacets\",indexerResults.getPivot(\"agent_uri,agent_name\"));\n\t\tmodel.addAttribute(\"pageable\", pageable);\n\t\tmodel.addAttribute(\"agent\", agent);\n\t\tmodel.addAttribute(\"agentDisplay\", agentDisplay);\n\t\tmodel.addAttribute(\"dateFrom\", dateFrom);\n\t\tmodel.addAttribute(\"dateTo\", dateTo);\n\t\tmodel.addAttribute(\"status\", status);\n\t\tmodel.addAttribute(\"hasExactMatch\", hasExactMatch);\n\t\t\t\t\n\t\treturn \"searchresults\";\t\t\n\t}", "private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}", "public static ArrayList<Result> search(HashMap<String,ArrayList<String>> map) {\n result = new ArrayList<>();\n finalResult = new ArrayList<>();\n \n String input = map.get(\"search\").get(0);\n searchByName(input);\n \n ArrayList<String> type = map.get(\"type\");\n if(type.isEmpty());\n else for(String t:type){\n searchByType(t);\n result = finalResult;\n }\n \n //<editor-fold defaultstate=\"collapsed\" desc=\"FILTERS\">\n ArrayList<ArrayList<String>> filters = new ArrayList<>();\n filters.add(map.get(\"brand\"));\n filters.add(map.get(\"price\"));\n filters.add(map.get(\"os\"));\n filters.add(map.get(\"memory\"));\n filters.add(map.get(\"storage\"));\n filters.add(map.get(\"numberOfSimSlots\"));\n filters.add(map.get(\"f_camera\"));\n filters.add(map.get(\"b_camera\"));\n /**\n * ArrayList of filters from Mobile Phone\n * 0 = Brand | brand\n * 1 = Price | price\n * 2 = OS | os\n * 3 = Memory | memory\n * 4 = Storage | storage\n * 5 = SIM slots | numberOfSimSlots\n * 6 = Camera front | f_camera\n * 7 = Camera back | b_camera\n */\n int filterMode = 0;\n while(filterMode<filters.size()){\n// for(Result r:result){\n// System.out.println(r.getMP().getFullName());\n// }\n// System.out.println(\"filtermode: \"+filterMode);\n finalResult = new ArrayList<>();\n if(filters.get(filterMode).isEmpty()||filters.get(filterMode).get(0).equals(\"\")){\n filterMode++;\n continue;\n }\n filter(filterMode,filters.get(filterMode++));\n result = finalResult;\n }\n //</editor-fold>\n return result;\n }", "protected IBundleProvider performSearch(String theCriteria) {\n\t\tRuntimeResourceDefinition responseResourceDef = getSubscriptionDao().validateCriteriaAndReturnResourceDefinition(theCriteria);\n\t\tSearchParameterMap responseCriteriaUrl = BaseHapiFhirDao.translateMatchUrl(getSubscriptionDao(), getSubscriptionDao().getContext(), theCriteria, responseResourceDef);\n\n\t\tRequestDetails req = new ServletSubRequestDetails();\n\t\treq.setSubRequest(true);\n\n\t\tIFhirResourceDao<? extends IBaseResource> responseDao = getSubscriptionDao().getDao(responseResourceDef.getImplementingClass());\n\t\tresponseCriteriaUrl.setLoadSynchronousUpTo(1);\n\n\t\tIBundleProvider responseResults = responseDao.search(responseCriteriaUrl, req);\n\t\treturn responseResults;\n\t}", "private SearchResult<ProviderProfile> getAllResults(HealthCareFacilitySearchCriteria criteria,\n String providerCatagory) throws URISyntaxException, IOException, ServiceException {\n DefaultHttpClient client = new DefaultHttpClient();\n client.setRedirectStrategy(new LaxRedirectStrategy());\n\n // we need to get a token from the start page, this will be stored in the client\n HttpGet getFrontPage = new HttpGet(new URIBuilder(getSearchURL()).build());\n HttpResponse response = client.execute(getFrontPage);\n verifyAndAuditCall(getSearchURL(), response);\n EntityUtils.consume(response.getEntity()); // releases the connection\n\n // our client is now valid, pass the criteria to the search page\n String postSearchURL = Util.replaceLastURLPart(getSearchURL(), \"showprovideroutput.cfm\");\n HttpPost searchPage = new HttpPost(new URIBuilder(postSearchURL).build());\n String whichArea = \"\", selectCounty = \"0\", cityToFind = \"\", providerToFind = \"\";\n if (\"county\".equals(criteria.getCriteria())) {\n whichArea = \"County\";\n selectCounty = criteria.getValue();\n } else if (\"city\".equals(criteria.getCriteria())) {\n whichArea = \"City\";\n cityToFind = criteria.getValue();\n } else if (\"provider\".equals(criteria.getCriteria())) {\n whichArea = \"Name\";\n providerToFind = criteria.getValue();\n }\n HttpEntity entity = postForm(postSearchURL, client, searchPage, new String[][] {\n { \"ProviderCatagory\", providerCatagory }, { \"WhichArea\", whichArea }, { \"Submit\", \"Submit\" },\n { \"SelectCounty\", selectCounty }, { \"CityToFind\", cityToFind },\n { \"ProviderToFind\", providerToFind } }, true);\n\n List<ProviderProfile> allProviders = new ArrayList<ProviderProfile>();\n // this now holds the search results, parse every row\n Document page = Jsoup.parse(EntityUtils.toString(entity));\n Elements rows = page.select(\"div#body table tbody tr:gt(0)\");\n for (Element row : rows) {\n ProviderProfile profile = parseProfile(row.children());\n if (profile != null) {\n allProviders.add(profile);\n }\n }\n\n SearchResult<ProviderProfile> results = new SearchResult<ProviderProfile>();\n results.setItems(allProviders);\n return results;\n }", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "List<Corretor> search(String query);", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "@Override\n\tpublic PageUtil<Log> search(PageUtil<Log> logPage,\n\t\t\tList<PropertyFilter> filters) {\n\t\treturn null;\n\t}", "public List<ViewXwZqkh> Query(String filters, String orders, Object... values);", "String exportResultsData(FilterSpecifier.ListBy listBy, String filename) throws SearchServiceException;", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public QueryController(String[] args){\n // Parse Args\n QueryArgs queryArgs = new QueryArgs();\n try {\n queryArgs.parseArgs(args);\n } catch (FileNotFoundException e) {\n //e.printStackTrace();\n System.err.println(\"Invalid Arguments received. Please check your arguments passed to ./search\");\n return;\n }\n\n // Run the Term Normaliser\n TermNormalizer normalizer = new TermNormalizer();\n String[] queryTerms = normalizer.transformedStringToTerms(queryArgs.queryString);\n\n //create the model\n Model model = new Model();\n model.loadCollectionFromMap(queryArgs.mapPath);\n model.loadLexicon(queryArgs.lexiconPath);\n model.loadInvertedList(queryArgs.invlistPath);\n if(queryArgs.stopListEnabled)\n {\n model.loadStopList(queryArgs.stopListPath);\n }\n if(queryArgs.printSummary && queryArgs.collectionPath != \"\")\n {\n model.setPathToCollection(queryArgs.collectionPath);\n }\n\n\n //fetch the top results from the query module\n QueryModule queryModule = new QueryModule();\n queryModule.doQuery(queryTerms, model, queryArgs.bm25Enabled);\n List<QueryResult> topResults = queryModule.getTopResult(queryArgs.maxResults);\n\n\n\n ResultsView resultsView = new ResultsView();\n if(queryArgs.printSummary)\n {\n\n DocSummary docSummary = new DocSummary();\n for(QueryResult result:topResults)\n {\n // retrieve the actualy text from the document collection\n result.setDoc(model.getDocumentCollection().getDocumentByIndex(result.getDoc().getIndex(), true));\n\n //set the summary on the result object by fetching it from the docSummary object\n result.setSummaryNQB(docSummary.getNonQueryBiasedSummary(result.getDoc(), model.getStopListModule()));\n result.setSummaryQB(docSummary.getQueryBiasedSummary(result.getDoc(), model.getStopListModule(), Arrays.asList(queryTerms)));\n }\n resultsView.printResultsWithSummary(topResults,queryArgs.queryLabel);\n }else\n {\n resultsView.printResults(topResults,queryArgs.queryLabel);\n }\n\n }", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@RequestMapping(value=\"/rs/search\", method = {RequestMethod.GET,RequestMethod.POST})\r\n\tpublic RestSearchResultModel search(\r\n\t\t\t@RequestParam(value = \"logPathPatterns\", required=false) String logPathPatterns,\r\n\t\t\t@RequestParam(value = \"logFileNamePatterns\", required=false) String logFileNamePtterns,\r\n\t\t\t@RequestParam(value = \"search\", required=true) String search,\r\n\t\t\t@RequestParam(value = \"searchOnLabels\", required=true) String searchOnLabels,\r\n\t\t\t@RequestParam(value = \"fromDateTime\", required=false) String fromDateTime,\r\n\t\t\t@RequestParam(value = \"toDateTime\", required=false) String toDateTime,\r\n\t\t\t@RequestParam(value = \"viewTz\", required=true) String viewTz) {\n\t\tRestSearchInput input = new RestSearchInput();\r\n\t\tinput.setLogPathPatterns(logPathPatterns);\r\n\t\tinput.setLogFileNamePtterns(logFileNamePtterns);\r\n\t\tinput.setSearch(search);\r\n\t\tinput.setSearchOnLabels(searchOnLabels);\r\n\t\tinput.setFromDateTime(fromDateTime);\r\n\t\tinput.setToDateTime(toDateTime);\r\n\t\tinput.setViewTz(viewTz);\r\n\t\treturn search(input);\r\n\t}", "public ActionForward execute(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response) {\n\t\tAllSearchWorkForm allSearchWorkForm = (AllSearchWorkForm) form;// TODO Auto-generated method stub\n\t\t\n\t\t// 得到搜索的条件\n\t\tString name = allSearchWorkForm.getName();\n\t\tString beginTime = allSearchWorkForm.getBeginTime();\n\t\tString endTime = allSearchWorkForm.getEndTime();\n\t\tString complete = allSearchWorkForm.getComplete();\n\t\t// 中文转码\n\t\ttry {\n\t\t\tname = URLEncoder.encode(name, \"UTF-8\");\n\t\t\tbeginTime = URLEncoder.encode(beginTime, \"UTF-8\");\n\t\t\tendTime = URLEncoder.encode(endTime,\"UTF-8\");\n\t\t\tSystem.out.println(\"name:\"+name);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn mapping.findForward(\"SearchWork.succeed\");\n\t\t}\n\t\t\n\t\t// 带参数的页面跳转\n\t\tActionRedirect redirect = new ActionRedirect(mapping.findForward(\"SearchWork.succeed\"));\n\t\tredirect.addParameter(\"name\",name);\n\t\tredirect.addParameter(\"begin\", beginTime);\n\t\tredirect.addParameter(\"end\", endTime);\n\t\tredirect.addParameter(\"complete\", complete);\n\t\tredirect.addParameter(\"page\", 1);\n\t\treturn redirect;\n\t}", "private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "SearchResult search(State root, List<State> expanded_list, State goal);", "List<Revenue> search(String query);", "public void search() {\r\n \t\r\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "@Test\n\tpublic void testShowResult() {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tInvertedIndex index = new InvertedIndex();\n\t\tFileManager manager = new FileManager(config.getConfig().getFileName(), index);\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"ABCD\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"B00002243X\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 10);\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"ASDAJKSDJHKASJK\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"jumpers\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 8);\n\t}", "private String adminSearch() {\r\n\r\n resetSelections();\r\n\r\n if (toStop != null && toStop.equals(\"\")) {\r\n toStop = null;\r\n }\r\n\r\n List<SearchResultEntry> result = searchService.adminSearch(\r\n loggedUserHolder.getLoggedUser(), fromStop, toStop, date,\r\n fromHour, toHour, timeForDeparture);\r\n\r\n resultsModel = new ListDataModel(result);\r\n\r\n return Screen.ADMIN_SEARCH_RESULTS.getOutcome();\r\n }", "public void updateSearchResults(SearchFiltersPanel filter)\n\t{\n\t\tremoveAll();\n\t\tm_PrinterList.setPrinterList(ToolBox.generatePrinterList().getPrinterList());\n\t\tm_PrinterList.clearMatches(m_PrinterList.getPrinterList());\n\t\t\n\t m_PrinterList.setMatches(\n (Double) filter.getCompression().getMin(),\n\t \t\t(Double) filter.getTension().getMin(),\n\t \t\t(Double) filter.getImpact().getMin(),\n\t \t\t(String) filter.getMaterials().getSelectedItem(),\n\t \t\t(Double) filter.getTolerance().getMax(),\n\t \t\t(double) filter.getFinish().getMax(),\n\t \t\t(String) filter.getVendor().getSelectedItem());\n\t \n\t outputList = ToolBox.outputSearchedList(m_PrinterList);\n\t updateSearchResults();\n\t}", "private String executeSearch(String search, int beginResult) {\n\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tString request = null;\n\t\ttry {\n\t\t\trequest = SERVER_URL + \"yacysearch.json?query=\"\n\t\t\t\t\t+ URLEncoder.encode(search, \"UTF-8\") + \"&startRecord=\" + beginResult;\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHttpGet getRequest = new HttpGet(request);\n\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = httpClient.execute(getRequest);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// if (null != httpClient) {\n\t\t// httpClient.;\n\t\t// }\n\n\t\tString result = parseHttpResponse(response);\n\n\t\treturn result;\n\t}", "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "public void execute(TaskList tasks, Storage storage, Ui ui) {\n ArrayList<Task> results = (ArrayList<Task>) tasks.getTasks().stream()\n .filter(t -> t.getTask().contains(query))\n .collect(Collectors.toList());\n ui.showSearchResults(results);\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "private DocFile[] search (String[] queries, String[] filters, BooleanClause.Occur filterOccur) throws ParseException {\n // create a master query builder\n BooleanQuery.Builder masterQueryBuilder = new BooleanQuery.Builder();\n // loop through all queries\n for (String query : queries) {\n if (query.equals(\"\")) continue;\n // create a boolean query for the each query\n BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder();\n // loop through all filters\n for (String filter : filters) {\n if (filter.equals(\"\")) continue;\n QueryParser parser = new QueryParser(filter, analyzer);\n parser.setAllowLeadingWildcard(true);\n if (!filter.equals(Constants.INDEX_KEY_OWNER)) {\n Query parsedQ = parser.parse(query);\n queryBuilder.add(parsedQ, filterOccur);\n }\n else {\n queryBuilder.add(new PhraseQuery(filter, queries), filterOccur);\n }\n }\n masterQueryBuilder.add(queryBuilder.build(), BooleanClause.Occur.SHOULD);\n }\n\n // build the masterQuery\n BooleanQuery masterQuery = masterQueryBuilder.build();\n\n return searchResponse(searchExec(masterQuery), masterQuery);\n }", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\n\t\t\t\tList<StoreArticle> list = getShop().searchByArticle(filter);\n\t\t\t\tStoreArticle[] array = list.toArray(new StoreArticle[0]);\n\t\t\t\tadapter = new SearchByArticleAdapter(SearchActivity.this, R.layout.search_view, array);\n\t\t\t\treturn null;\n\t\t\t}", "public String btnSimpleSearch_action()\n {\n String userInput = \"\";\n if(this.getTxSimpleSearch().getValue()!= null)\n userInput = this.getTxSimpleSearch().getValue().toString();\n userInput = userInput.trim();\n System.out.println(1);\n if(userInput.length()==0){\n //Se desabilitan las banderas de busqueda simple y avanzada\n this.getgermplasm$SementalSessionBean().setQueryModeSimple(false);\n this.getgermplasm$SementalSessionBean().setQueryMode(false);\n //Finalmente se setea el data provider del paginador con los datos por default\n this.getgermplasm$SementalSessionBean().getPagination().setTotalResults\n (getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n countAllSemental().intValue());\n }\n else{\n //Setear el string para consulta simple del SessionBean\n this.getgermplasm$SementalSessionBean().setConsultaSimple(userInput);\n //Indicarle al SessionBean que el paginador debe \"trabajar\" en modo busqueda simple\n this.getgermplasm$SementalSessionBean().setQueryModeSimple(true);\n //Desabilitar la bandera de busqueda avanzada\n this.getgermplasm$SementalSessionBean().setQueryMode(false);\n //Finalmente se inicializa el data provider del paginador con los resultados de la consulta\n this.getgermplasm$SementalSessionBean().getPagination().setTotalResults\n (getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n countSementalSimpleSearch(\n userInput).intValue());\n }\n //set the first result of the query\n this.getgermplasm$SementalSessionBean().getPagination().firstResults();\n return null;\n }", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "public void onSearchButtonClick(View view){\r\n\t\t\r\n\t\tfor (ListingItem item : ListingContent.ITEMS) {\r\n\t\t\tif (item.content.toUpperCase(Locale.getDefault()).contains(searchField.getText().toString().toUpperCase(Locale.getDefault()))) {\r\n\t\t\t\tresults.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetListAdapter(new ArrayAdapter<ListingContent.ListingItem>(this,\r\n\t\t\t\tandroid.R.layout.simple_list_item_1,\r\n\t\t\t\tandroid.R.id.text1, results));\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n String searchLikeThis = request.getParameter(\"searchLikeThis\");\n if (searchLikeThis != null) {\n //List<Item> foundItems = itemService.searchItemByString(searchLikeThis);\n request.setAttribute(\"search\", searchLikeThis);\n response.sendRedirect(getServletContext().getContextPath() + \"/search?search=\"+searchLikeThis); \n }\n }", "private void applyFilters() {\n Task task = new Task() {\n @Override\n public Object call() {\n long start = System.currentTimeMillis();\n System.out.println(\"Applying filters! \" + filterList.size());\n filteredRowItemList = fullCustomerRowItemList;\n for (CustomerListFilter eachFilter : filterList) {\n eachFilter.setCustomerList(filteredRowItemList);\n filteredRowItemList = eachFilter.run();\n }\n System.out.println(\"Filtering took : \" + (System.currentTimeMillis() - start) + \" ms\");\n searchResultsTable.setItems(filteredRowItemList);\n customerCountStatus.setText(Integer.toString(filteredRowItemList.size()));\n return null;\n }\n };\n task.run();\n }", "private void filterAndSort()\n {\n filteredAndSortedElements = elements;\n\n // filter and sort, use Job if too much elements\n if ( configuration.getFilter().isFiltered() || configuration.getSorter().isSorted() )\n {\n if ( elements.length > BrowserUIPlugin.getDefault().getPreferenceStore()\n .getInt( BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SORT_FILTER_LIMIT )\n && mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n // deactivate fitering and sorting for large data set\n // FilterAndSortRunnable runnable = new FilterAndSortRunnable( configuration, mainWidget, elements );\n // RunnableContextRunner.execute( runnable, null, true );\n // filteredAndSortedElements = runnable.getFilteredAndSortedElements();\n }\n else if ( elements.length > 0 && mainWidget.getViewer() != null\n && !mainWidget.getViewer().getTable().isDisposed() )\n {\n filteredAndSortedElements = configuration.getFilter().filter( mainWidget.getViewer(), \"\", elements ); //$NON-NLS-1$\n configuration.getSorter().sort( mainWidget.getViewer(), filteredAndSortedElements );\n }\n }\n\n // update virtual table\n mainWidget.getViewer().setItemCount( filteredAndSortedElements.length );\n\n // update state\n String url = \"\"; //$NON-NLS-1$\n boolean enabled = true;\n \n if ( input instanceof ISearch )\n {\n ISearch search = ( ISearch ) input;\n\n if ( filteredAndSortedElements.length < elements.length )\n {\n url += filteredAndSortedElements.length + Messages.getString( \"SearchResultEditorContentProvider.Of\" ); //$NON-NLS-1$\n }\n\n if ( search.getSearchResults() == null )\n {\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchNotPerformed\" ); //$NON-NLS-1$\n enabled = false;\n }\n else if ( search.getSearchResults().length == 1 )\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Result\" ); //$NON-NLS-1$\n }\n else\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Results\" ); //$NON-NLS-1$\n }\n\n // url += search.getURL();\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchBase\" ) + search.getSearchBase().getName() + \" - \"; //$NON-NLS-1$ //$NON-NLS-2$\n url += Messages.getString( \"SearchResultEditorContentProvider.Filter\" ) + search.getFilter(); //$NON-NLS-1$\n\n boolean showDn = BrowserUIPlugin.getDefault().getPreferenceStore().getBoolean(\n BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SHOW_DN )\n || search.getReturningAttributes().length == 0;\n configuration.getFilter().inputChanged( search, showDn );\n configuration.getSorter().inputChanged( search, showDn );\n }\n else\n {\n url = Messages.getString( \"SearchResultEditorContentProvider.NoSearchSelected\" ); //$NON-NLS-1$\n enabled = false;\n }\n\n if ( mainWidget.getInfoText() != null && !mainWidget.getInfoText().isDisposed() )\n {\n mainWidget.getInfoText().setText( url );\n }\n if ( mainWidget.getQuickFilterWidget() != null )\n {\n mainWidget.getQuickFilterWidget().setEnabled( enabled );\n }\n if ( mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n mainWidget.getViewer().getTable().setEnabled( enabled );\n }\n\n }", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "@Test\n public void testSearchFilter() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n \n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"(samaccountname=*)\");\n \n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n \n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@RequestMapping({ \"/agent/enrollment/search/{view}\", \"/provider/search/{view}\" })\n public ModelAndView search(@ModelAttribute(\"criteria\") ProviderSearchCriteria criteria, @PathVariable String view,\n HttpServletResponse response) throws PortalServiceException {\n\n nocache(response);\n String signature = \"EnrollmentController#search(ProviderSearchCriteria criteria)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"criteria\" }, new Object[] { criteria });\n\n if (criteria == null) {\n throw new IllegalArgumentException(\"A valid criteria must be provided.\");\n }\n\n return LogUtil.traceExit(getLog(), signature, doSearch(criteria, view));\n }", "public interface SearchService {\n\n /**\n * Parameter that is appended to the generated links that contains the positive search terms and phrases of the\n * search expression. For several terms it occurs several times.\n */\n String PARAMETER_SEARCHTERM = \"search.term\";\n\n /**\n * Represents a result of the search consisting of a target page and one or more matching subresources. For use by\n * the search result renderer.\n */\n interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }\n\n /**\n * Fulltext search for resources. The resources are grouped if they are subresources of one target page, as\n * determined by the parameter targetResourceFilter.\n * <p>\n * Limitations: if the searchExpression consists of several search terms (implicitly combined with AND) this finds\n * only resources where a single property matches the whole search condition, i.e., all those terms. If several\n * resources of a page contain different subsets of those terms, the page is not found.\n *\n * @param context The context we use for the search.\n * @param selectors a selector string to determine the right search strategy, e.g. 'page'\n * @param root Optional parameter for the node below which we search.\n * @param searchExpression Mandatory parameter for the fulltext search expression to search for. For the syntax\n * see\n * {@link QueryConditionDsl.QueryConditionBuilder#contains(String)}\n * . It is advisable to avoid using AND and OR.\n * @param searchFilter an optional filter to drop resources to ignore.\n * @return possibly empty list of results\n * @see com.composum.sling.core.mapping.jcr.ResourceFilterMapping\n */\n @NotNull\n List<Result> search(@NotNull BeanContext context, @NotNull String selectors,\n @NotNull String root, @NotNull String searchExpression, @Nullable ResourceFilter searchFilter,\n int offset, @Nullable Integer limit)\n throws RepositoryException, SearchTermParseException;\n\n\n interface LimitedQuery {\n\n /**\n * Executes the query with the given limit; returns a pair of a boolean that is true when we are sure that all\n * results have been found in spite of the limit, and the results themselves.\n */\n Pair<Boolean, List<Result>> execQuery(int matchLimit);\n }\n\n /**\n * Execute the query with raising limit until the required number of results is met. We don't know in advance how\n * large we have to set the limit in the query to get all neccesary results, since each page can have an a priori\n * unknown number of matches. Thus, the query is executed with an estimated limit, and is reexecuted with tripled\n * limit if the number of results is not sufficient and there are more limits.\n *\n * @return up to limit elements of the result list with the offset first elements skipped.\n */\n @NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);\n}", "public void onSearchResults(String term, List<WikiPage> results);", "SearchResultCompany search(String keywords);", "private void setSearchItems(Number index) {\n String searchSelected;\n if (index == null) {\n searchSelected = searchSelection.getSelectionModel().getSelectedItem();\n } else {\n searchSelected = menuItems[index.intValue()];\n }\n\n final String searchText = searchField.getText().trim().toUpperCase();\n if (searchText == null || \"\".equals(searchText)) {\n // Search field is blank, remove filters if active\n if (searchFilter != null) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n return;\n }\n\n boolean matchAny = MATCHANY.equals(searchSelected);\n\n if (searchFilter == null) {\n searchFilter = new CustomerListFilter();\n searchFilter.setOr(true);\n filterList.add(searchFilter);\n } else {\n searchFilter.getFilterList().clear();\n }\n if ((matchAny || SURNAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aSurname = a.getSurname().toUpperCase();\n return (aSurname.contains(searchText));\n });\n }\n if ((matchAny || FORENAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aForename = a.getForename().toUpperCase();\n return (aForename.contains(searchText));\n });\n }\n if (matchAny || CHILD.equals(searchSelected)) {\n searchFilter.addFilter(a -> {\n String aChildname = a.getChildrenProperty().getValue().toUpperCase();\n return (aChildname.contains(searchText));\n });\n }\n if ((matchAny || CARREG.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aCars = a.getCarRegProperty().getValue().toUpperCase();\n return (aCars.contains(searchText));\n });\n }\n // No filter to apply?\n if (searchFilter.getFilterList().size() == 0) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n }", "@RequestMapping(value = \"search\")\n \tpublic String search(@RequestParam String q) {\n \t\tLong incidentId = Long.valueOf(q);\n \t\treturn \"forward:/incident/\" + incidentId;\n \t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n // If the list contains the search query\n // than filter the adapter\n // using the filter method\n // with the query as its argument\n //placesAdaptor.getFilter( ).filter(query);\n //TODO: set to intent if needed\n /*Intent intent = new Intent(getApplicationContext(),LandmarkDetailsActivity.class);\n\n intent.putExtra(\"placeName\", \"Geisel Library\");\n //hard code to geisel details page\n startActivity(intent);*/\n\n return false;\n }", "public List<ApplicationSummary> searchApplicationSummaries(Filters filters, String keyword) {\r\n\r\n\t\t// sparql\r\n//\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n//\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?acceleratorName ?gyroscopeName \\r\\n\"\r\n//\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n//\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n//\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:hasApplicationDomain ?applicationDomain.\\r\\n\"\r\n//\t\t\t\t+ \" \tOPTIONAL{?applicationDomain onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n//\t\t\t\t+ \" \t\t?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n//\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n//\t\t\t\t+ \" ?data onto:hasSensoryType ?sensoryType.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?sensoryType onto:hasAccelerator ?accelerator.\\r\\n\"\r\n//\t\t\t\t+ \" \t?accelerator onto:acceleratorName ?acceleratorName.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?sensoryType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n//\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n//\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" + \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n//\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n//\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n//\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n//\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n//\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n//\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n//\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n//\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n//\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\t\t\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?skinCancerName ?musculoskeletalDisorderName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName ?medicalImagingDeviceName\\r\\n\"\r\n\t\t\t\t+ \"(COUNT(Distinct ?model) as ?modelNumber)\\r\\n\"\r\n\t\t\t\t+ \"(COUNT(Distinct ?modelLayer)/COUNT(Distinct ?model) as ?numberOfLayers)\\r\\n\"\r\n\t\t\t\t+ \"(MAX(?performanceAccuracy) as ?maxAccuracy) (MAX(?performancePrecision) as ?maxPrecision) (MAX(?performanceRecall) as ?maxRecall) (MAX(?performanceF1Score) as ?maxF1Score)\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" \r\n\t\t\t\t+ \"\t\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t\t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \" OPTIONAL{?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t\t?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\r\n\t\t\t \t+ \"\t\tOPTIONAL{?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer. ?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope. ?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice. ?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" \r\n\t\t\t\t+ \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType. ?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType. ?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\\r\\n\"\r\n//\t\t\t\t+ \" ?modelLayer ?modelLayerhasSublayer ?coreOrFunctionalLayer.\\r\\n\"\r\n//\t\t\t\t+ \" \t?coreOrFunctionalLayer ?coreFunctionalhasSublayer ?coreLayerType.\\r\\n\" \r\n//\t\t\t\t+ \" \t?corelayerType ?coreLayerTypehasSublayer ?corelayerSublayer.\\r\\n\";\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\t\tif (filters != null) {\r\n\t\t\t// find all filters\r\n\t\t\tString applicationDomains = filters.getApplicationDomains();\r\n\t\t\tString sensoryTypes = filters.getSensoryTypes();\r\n\t\t\tString modelTypes = filters.getModelTypes();\r\n\t\t\tString layerTypes = filters.getLayerTypes();\r\n\t\t\tString coreLayerTypes = filters.getCoreLayerTypes();\r\n\t\t\tString functionalLayerTypes = filters.getFunctionalLayerTypes();\r\n\t\t\t// find all performance, /100 because of the percentage\r\n\t\t\t// Float performanceAccurcay = filters.getPerformanceAccuracy()/100;\r\n\t\t\t// Float performancePrecision = filters.getPerformancePrecision()/100;\r\n\t\t\t// Float performanceRecall = filters.getPerformanceRecall()/100;\r\n\t\t\t// Float performanceF1Score = filters.getPerformanceF1Score()/100;\r\n\r\n\t\t\t// filter by application domain\r\n\t\t\tif (applicationDomains != null) {\r\n//\t\t\t\tfor (String str : applicationDomains) {\r\n//\t\t\t\t\tif (str.equals(\"SkinCancer\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?skinCancerName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"MusculoskeletalDisorder\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?musculoskeletalDisorderName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (applicationDomains.equals(\"SkinCancer\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?skinCancerName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (applicationDomains.equals(\"MusculoskeletalDisorder\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?musculoskeletalDisorderName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by sensory type\r\n\t\t\tif (sensoryTypes != null) {\r\n//\t\t\t\tfor (String str : sensoryTypes) {\r\n//\t\t\t\t\tif (str.equals(\"Accelerometer\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?accelerometerName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"Gyroscope\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?gyroscopeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"Accelerometer\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?accelerometerName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"Gyroscope\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?gyroscopeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"MedicalImagingDevice\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?medicalImagingDeviceName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter model type\r\n\t\t\tif (modelTypes != null) {\r\n//\t\t\t\tfor (String str : modelTypes) {\r\n//\t\t\t\t\tif (str.equals(\"CNN\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?CNNTypeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RNN\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?RNNTypeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (modelTypes.equals(\"CNN\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?CNNTypeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (modelTypes.equals(\"RNN\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?RNNTypeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by layer type\r\n\t\t\tString layerTypeFilter = \"\";\r\n\t\t\tif (layerTypes != null) {\r\n//\t\t\t\tfor (String str : layerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"FunctionalLayer\")) {\r\n//\t\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasFunctionalLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"CoreLayer\")) {\r\n//\t\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasCoreLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (layerTypes.equals(\"FunctionalLayer\")) {\r\n\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasFunctionalLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (layerTypes.equals(\"CoreLayer\")) {\r\n\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasCoreLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (layerTypeFilter.length() - 2 > 0) {\r\n\t\t\t\t\tlayerTypeFilter = layerTypeFilter.substring(0, layerTypeFilter.length() - 2);\r\n\t\t\t\tsparql += \"FILTER (\" + layerTypeFilter + \")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\t// filter by functional layer\r\n//\t\t\tString functionalLayerFilter = \"\";\r\n//\t\t\tif (functionalLayerTypes != null) {\r\n//\t\t\t\tfor (String str : functionalLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ReshapingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"PoolingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DropoutLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t\tif (functionalLayerFilter.length() - 2 > 0) {\r\n//\t\t\t\t\tfunctionalLayerFilter = functionalLayerFilter.substring(0, functionalLayerFilter.length() - 2);\r\n//\t\t\t\t\tsparql += \" \tFILTER (\" + functionalLayerFilter + \")\\r\\n\";\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\t// filter by core layer\r\n//\t\t\tString coreLayerFilter = \"\";\r\n//\t\t\tif (coreLayerTypes != null) {\r\n//\t\t\t\tfor (String str : coreLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ConvolutionLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RecurrentLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DenseLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t\tif (coreLayerFilter.length() - 2 > 0) {\r\n//\t\t\t\t\tcoreLayerFilter = coreLayerFilter.substring(0, coreLayerFilter.length() - 2);\r\n//\t\t\t\t\tsparql += \" \tFILTER (\" + coreLayerFilter + \")\\r\\n\";\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\t// filter by functional layer\r\n\t\t\tString functionalLayerFilter = \"\";\r\n\t\t\tif (functionalLayerTypes != null) {\r\n//\t\t\t\tfor (String str : functionalLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ReshapingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"PoolingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DropoutLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"ReshapingLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"PoolingLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"DropoutLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by core layer\r\n\t\t\tString coreLayerFilter = \"\";\r\n\t\t\tif (coreLayerTypes != null) {\r\n//\t\t\t\tfor (String str : coreLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ConvolutionLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RecurrentLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DenseLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"ConvolutionLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"RecurrentLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"DenseLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// summarize\r\n\t\t\tString detailLayerFilter = \"\";\r\n\t\t\tif (functionalLayerFilter.length() + coreLayerFilter.length()- 2 > 0) {\r\n\t\t\t\tdetailLayerFilter = (functionalLayerFilter+ coreLayerFilter).substring(0, functionalLayerFilter.length()+ coreLayerFilter.length() - 2);\r\n\t\t\t\tsparql += \"FILTER (\" + detailLayerFilter + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// filter by performance\r\n\t\t\tif (filters.getPerformanceAccuracy() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceAccuracy > \" + filters.getPerformanceAccuracy() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformancePrecision() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performancePrecision > \" + filters.getPerformancePrecision() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformanceRecall() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceRecall > \" + filters.getPerformanceRecall() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformanceF1Score() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceF1Score > \" + filters.getPerformanceF1Score() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// filter by keyword\r\n\t\tif (keyword != null) {\r\n\t\t\tsparql += \"FILTER (\";\r\n\t\t\tsparql += \"regex(?applicationName,\\\"\" + keyword + \"\\\",\\\"i\\\") || \";\r\n\t\t\tsparql += \"regex(?dataName,\\\"\" + keyword + \"\\\",\\\"i\\\") || \";\r\n\t\t\tsparql += \"regex(?modelName,\\\"\" + keyword + \"\\\",\\\"i\\\")\";\r\n\t\t\tsparql += \")\\r\\n\";\r\n\t\t}\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\tsparql += \"GROUP BY\\r\\n\";\r\n\t\tsparql += \"?application ?applicationName ?healthcareApplication ?healthcareApplicationName\\r\\n\";\r\n\t\tsparql += \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName ?medicalImagingDeviceName\\r\\n\";\r\n\t\tsparql += \"?skinCancerName ?musculoskeletalDisorderName\\r\\n\";\r\n\t\t\r\n\t\tif(filters != null && filters.getNumberOfLayers()!=null) {\r\n\t\t\t//filter by number of layers\r\n\t\t\tsparql += \"Having (COUNT(Distinct ?modelLayer)/COUNT(Distinct ?model)>=\" + filters.getNumberOfLayers() + \")\";\r\n\t\t}\r\n\t\t\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplications:\" + jsonString);\r\n\t\t// result\r\n//\t\tJSONObject json;\r\n//\t\ttry {\r\n//\t\t\tjson = new JSONObject(jsonString);\r\n//\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n//\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n//\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n//\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n//\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n//\t\t\t\tif (jsonObject.has(\"application\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"data\")) {\r\n//\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"acceleratorName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setAcceleratorName(jsonObject.getJSONObject(\"acceleratorName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"model\")) {\r\n//\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n//\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n//\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelPerformance(\r\n//\t\t\t\t\t\t\tjsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n//\t\t\t\t\tapplicationOverview.setPerformancePrecision(\r\n//\t\t\t\t\t\t\tjsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tlist.add(applicationOverview);\r\n//\t\t\t}\r\n//\t\t\treturn list;\r\n//\r\n//\t\t} catch (JSONException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n//\t\treturn null;\r\n\t\t\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationSummary> list = new ArrayList<ApplicationSummary>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tApplicationSummary applicationSummary = new ApplicationSummary();\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationSummary.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationSummary.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationSummary.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationSummary.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationSummary.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationSummary.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationSummary.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationSummary.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationSummary.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationSummary.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationSummary.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationSummary.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationSummary.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelNumber\")) {\r\n\t\t\t\t\tapplicationSummary.setModelNumber(Integer.parseInt(jsonObject.getJSONObject(\"modelNumber\").getString(\"value\")));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"numberOfLayers\")) {\r\n\t\t\t\t\tDouble a = Double.parseDouble(jsonObject.getJSONObject(\"numberOfLayers\").getString(\"value\"));\r\n\t\t\t\t\tapplicationSummary.setNumberOfLayers(a.intValue());\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxAccuracy\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxAccuracy(jsonObject.getJSONObject(\"maxAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxPrecision\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxPrecision(jsonObject.getJSONObject(\"maxPrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxRecall\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxRecall(jsonObject.getJSONObject(\"maxRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxF1Score\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxF1Score(jsonObject.getJSONObject(\"maxF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationSummary);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "protected abstract List<List<SearchResults>> processStream();", "public static void searchBtnPressed() throws IOException {\r\n // define a search model to search PCs\r\n PC search_model = new PC();\r\n if (nameFilter != null && !nameFilter.isEmpty())\r\n search_model.setName(nameFilter);\r\n if (descriptionFilter != null && !descriptionFilter.isEmpty())\r\n search_model.setDescription(descriptionFilter);\r\n if (instalationDateFilter != null)\r\n search_model.setInstallDate(instalationDateFilter);\r\n switch (statusFilter) {\r\n case 1:\r\n search_model.setStatus(Status.ENABLE);\r\n break;\r\n case 2:\r\n search_model.setStatus(Status.DISABLE);\r\n break;\r\n case 3:\r\n search_model.setStatus(Status.SUSPENDED);\r\n break;\r\n }\r\n if (selectedComponentsFilter != null)\r\n for (int i = 0 ; i < selectedComponentsFilter.length ; i ++)\r\n if (selectedComponentsFilter[i]) {\r\n Calendar cal = Calendar.getInstance();\r\n cal.add(Calendar.DAY_OF_MONTH, 1);\r\n search_model.setInstalledComps(new PCComp(enaComp.get(i).getID(), cal.getTime()));\r\n }\r\n \r\n // define search model options\r\n String search_options = installationDateModeFilter + \",\" + warrentyModeFilter;\r\n if (selectedSpecsFilter != null)\r\n for (int i = 0 ; i < selectedSpecsFilter.length ; i ++)\r\n if (selectedSpecsFilter[i])\r\n search_options = search_options + \",\" + enaSpec.get(i).toString();\r\n PCNMClientModel.sendMessageToServer(new Message(MessageType.PC_SEARCH, search_model, search_options));\r\n }", "public static void main(String[] args) throws IOException{\n \n List<List<String>> results;\n String query = \"ADD QUERY OR CATEGORY FOR SEARCH\";\n \n //ADD USER ID WHO SEARCHES\n Long userId = 1;\n PersonalizedSearch searchObj = new PersonalizedSearch();\n \n final CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(\"elastic\",\"elastic\"));\n \n \n RestHighLevelClient client = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(\"localhost\",9200),\n new HttpHost(\"localhost\",9201))\n .setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n @Override\n public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder hacb) {\n return hacb.setDefaultCredentialsProvider(credsProvider);\n }\n }));\n \n /**\n * ---------COMMENT OUT ONE OF THE FOLLOWING TO DO A PERSONALIZED SEARCH FOR A SIGNED IN OR/AND AN ANONYMOUS USER--------\n */\n\n System.out.println(\"Starting collecting queryless/queryfull submissions...\");\n System.out.println(\"\");\n// searchObj.performQuerylessSearchWithPersonalization(client);\n// searchObj.performQueryfullSearchWithPersonalization(client);\n// results = searchObj.performPharm24PersonalizedQueryfullSearch(client, userId, query);\n// results = searchObj.performPharm24PersonalizedQuerylessSearch(client, userId, query);\n \n for(int i=0; i<results.size(); i++){\n for(int j = 0; j<results.get(i).size();j++){\n System.out.println(results.get(i).get(j));\n }\n System.out.println(\"-------RERANKED---------\");\n }\n\n System.out.println(\"\");\n System.out.println(\"I\\'m done!\");\n \n \n }", "@RequestMapping(method = RequestMethod.GET, value = \"/search\")\n public List<String> search(@RequestParam(name = \"query\") String query) {\n return searchService.search(query);\n }", "@RequestMapping(value = \"/\", method = RequestMethod.POST)\n\tpublic String search(ModelMap model, @RequestParam int page, @RequestParam String query, @RequestParam int dir) {\n\t\tif (dir > 0) {\n\t\t\tpage++;\n\t\t} else if (dir < 0) {\n\t\t\tpage--;\n\t\t} else {\n\t\t\tpage = 1;\n\t\t}\n\n\t\ttry {\n\t\t\tItems items = service.search(page, query);\n\t\t\tmodel.put(\"items\", items);\n\t\t\tmodel.put(\"page\", page);\n\t\t} catch (IOException e) {\n\t\t\tmodel.put(\"page\", 0);\n\t\t\tmodel.put(\"error\", e.getLocalizedMessage());\n\t\t\tLOGGER.error(e.getLocalizedMessage());\n\t\t} finally {\n\t\t\tmodel.put(\"query\", query);\n\t\t}\n\n\t\treturn \"index\";\n\t}", "public void doSearch(String searchText){\n }", "public void gotoDefaultSearchResults(String searchCriteria) {\r\n\t\tredirectToHomePageNotLoggedIn();\r\n\t\thomeActions.enterSearchCriteria(searchCriteria);\r\n\t}", "@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }", "public void search(String make, String model, int price, String color, int year, String trans) {\n List<Car> resultList = searchByMake(cars, make);\n resultList = searchByModel(resultList, model);\n resultList = searchByPrice(resultList, price);\n resultList = searchByColor(resultList, color);\n resultList = searchByYear(resultList, year);\n resultList = searchByTrans(resultList, trans);\n //if no results, tell user -- otherwise list matching cars\n if (resultList.isEmpty()) {\n System.out.println(\"No matching cars\");\n }\n else {\n System.out.println(\"Here is the list of cars that match your search:\");\n for (Car c: resultList) {\n System.out.println(c);\n }\n System.out.println(\"Would you like to delete them from the lot?\");\n }\n }", "public void performSearch() throws IOException {\n configuration();\n\n File fileDir = new File(queryFilePath);\n if (fileDir.isDirectory()) {\n File[] files = fileDir.listFiles();\n Arrays.stream(files).forEach(file -> performSearchUsingFileContents(file));\n }\n }", "public String execute() throws SQLException {\n try { \n results = postDBSearcher.searchSpecific(title, class_num, class_name, school);\n\n //If the search does not find any results tries the partial search\n if (results.isEmpty()){\n results = postDBSearcher.searchPartiallyGeneral(title, class_num, class_name, school);\n }\n\n //If the partial search did not find anything, then it tries to make a general search\n if (results.isEmpty()){\n results = postDBSearcher.searchGeneral(title, class_num, class_name, school);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return SUCCESS;\n }", "private void doSearch(String query, boolean art,\n boolean music,\n boolean tech,\n boolean careers,\n boolean culture,\n boolean sports,\n boolean science,\n boolean education){\n ArrayList<String> categories = new ArrayList<String>();\n if(art) categories.add(\"Art\");\n if(music) categories.add(\"Music\");\n if(tech) categories.add(\"Tech\");\n if(careers) categories.add(\"Careers\");\n if(culture) categories.add(\"Culture\");\n if(sports) categories.add(\"Sports\");\n if(science) categories.add(\"Science\");\n if(education) categories.add(\"Education\");\n\n //if none selected search for all categories\n if(!art && !music && !tech && !careers && !culture && !sports && !science && !education){\n categories.add(\"Art\");\n categories.add(\"Music\");\n categories.add(\"Tech\");\n categories.add(\"Careers\");\n categories.add(\"Culture\");\n categories.add(\"Sports\");\n categories.add(\"Science\");\n categories.add(\"Education\");\n }\n eventServices.searchEventFeed(query, null, null, categories, new AppCallback<List<Event>>() {\n @Override\n public void call(final List<Event> events) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n eventList.addAll(events);\n adapter.notifyDataSetChanged();\n }\n });\n }\n\n @Override\n public void call() {\n\n }\n });\n\n// Log.d(TAG, \"doSearch: \" + query + \" \" + SearchActivity.DATE_RANGE_LABELS[dateRange] + \" \");\n adapter.notifyDataSetChanged();\n }", "@Test\n public void testSearchFilter_WithAddedSearchBase() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"OU=Users(<%=parameter[\\\"Search String\\\"]%>)\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "SearchResponse search(Pageable pageable, QueryBuilder query, Collection<AggregationBuilder> aggregations);", "abstract public void search();", "@Test\n\tpublic void GlobalSearch_28668_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define Controls\n\t\tVoodooControl globalSearchCtrl = sugar().navbar.getControl(\"globalSearch\");\n\t\tVoodooControl searchResultsCtrl = sugar().navbar.search.getControl(\"searchResults\");\n\n\t\t// Type one character in the quick search bar\n\t\tglobalSearchCtrl.click();\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 1));\n\n\t\t// Type second character in the quick search bar\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 2));\n\n\t\t// The quick search results displays \"Searching...\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"searching\"), true);\n\n\t\t// Make sure it does NOT display \"No results were found.\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"noResult\"), false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "public void performFileSearch() {\n\n // ACTION_OPEN_DOCUMENT is the intent to choose a file via the system's file browser.\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n // Filter to only show results that can be \"opened\", such as a\n // file (as opposed to a list of contacts or timezones)\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n\n // Filter to show only images, using the image MIME data type.\n // If one wanted to search for ogg vorbis files, the type would be \"audio/ogg\".\n // To search for all documents available via installed storage providers, it would be \"*/*\".\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);\n intent.setType(\"image/*\");\n\n startActivityForResult(intent, READ_REQUEST_CODE);\n }", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);" ]
[ "0.6723026", "0.6669031", "0.6457694", "0.63393444", "0.6246925", "0.6189091", "0.6144982", "0.6114582", "0.6051666", "0.6029116", "0.6010433", "0.6006125", "0.6003152", "0.5980259", "0.5919608", "0.58865446", "0.58674955", "0.58404183", "0.5837581", "0.5824406", "0.57910556", "0.57643515", "0.5739963", "0.5735068", "0.5691461", "0.56859", "0.5666662", "0.56587595", "0.56546116", "0.5645996", "0.5644014", "0.563474", "0.5630811", "0.56240344", "0.56141937", "0.5602423", "0.56000644", "0.55934274", "0.5569336", "0.5558634", "0.55342823", "0.552938", "0.55193806", "0.55161506", "0.5499915", "0.5493966", "0.5492537", "0.5486589", "0.54827833", "0.54662704", "0.54608876", "0.5459261", "0.54252464", "0.5421487", "0.541019", "0.54087394", "0.5404569", "0.5399234", "0.5396814", "0.53926736", "0.53783584", "0.5372838", "0.5372625", "0.5371773", "0.53677905", "0.53535694", "0.5349681", "0.5349099", "0.5342824", "0.53426933", "0.5342294", "0.53398633", "0.5338321", "0.5337105", "0.53336596", "0.5324103", "0.53220767", "0.5316992", "0.5315727", "0.53061986", "0.529963", "0.529694", "0.5296504", "0.5293031", "0.5287434", "0.5280355", "0.5270435", "0.5269085", "0.52679235", "0.5265998", "0.52582896", "0.5252271", "0.5240783", "0.52388805", "0.5219066", "0.5213113", "0.5202942", "0.5200674", "0.5197677", "0.51915175", "0.51912016" ]
0.0
-1
Noop action listener for refreshing the row count after loading the datatable
public String updateRowCount() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void RefresbuttonActionPerformed(ActionEvent e) {\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}", "public void refreshJTable()\n {\n \n \n }", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tint row = Integer.valueOf(e.getActionCommand());\r\n\t\t\t//LibriTableModel model = (LibriTableModel) table.getModel();\r\n\t\t\tModelMethods.aggiungiCarrello(row);\r\n\t\t\tVenditeView.aggiornaLabels();\r\n\t\t\tLibriJPanJTab.refresh();\r\n\t\t}", "private void button3ScoreActionPerformed(ActionEvent e) {\n defaultTableModel.setRowCount(0);\n setData(userService.getSort3());\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveRowsIsSelected();\r\n\t\t\t\t\told_Num_Total=0;\r\n\t\t\t\t\tdeleteJButton.setEnabled(false);\r\n\t\t\t\t}", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "public abstract void allRowsChanged();", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "@Override\n public void tableRows_()\n {\n }", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJTableUtils.clearTable(allowStressTable);\r\n\t\t\t}", "@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t\tload(CustomersList.table);\n\t\t\t\tCustomersList.setTotalCompanyDemand();\n\t\t\t\tCustomersList.setTotalResive();\n\t\t\t\tCustomersList.setTotalShopping();\n\t\t\t\tCustomerPaidCheck();\n\t\t\t\tdispose();\n\n\t\t\t}", "public void fireTableRowsUpdated(int firstRow, int lastRow);", "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "@Override\n\t\tpublic void tableChanged(TableModelEvent e) {\n\t\t\tint newCount = 0;\n\t\t\tfor (Share s : frame.getGui().getShareServer().getShares()) {\n\t\t\t\tif (s.getStatus()==Status.BUILDING || s.getStatus()==Status.REFRESHING || s.getStatus()==Status.SAVING) {\n\t\t\t\t\tnewCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tactiveCount=newCount;\n\t\t}", "@Override\n public int getRowCount() {\n return (model == null) ? 0 : model.getRowCount(); \n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddRow();\n\t\t\t}", "private void reinit() {\n \tthis.showRowCount = false;\n this.tableCount = 0;\n this.nullString = \"\";\n\t}", "@Override\n\t\t\t\tpublic void allRowsChanged() {\n\n\t\t\t\t}", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }", "private int numRows(){\n return attrTable.getModel().getRowCount();\n }", "public static void refreshTable() {\n tableView.setItems(FXCollections.observableArrayList(customerVehicleIssueTable.getAllOpenCustomerVehicleIssues()));\n tableView.refresh();\n }", "public void updateProgress() {\r\n\t\tfireTableDataChanged();\r\n\t}", "@Override\n public void initData() {\n customerResponses = distributorController.getAllDistributorResponseObject();\n Object[] obj = new Object[]{\"STT\", \"Mã Nhà phân phối\", \"Tên nhà phân phối\", \"Địa chỉ\", \"Số điện thoại\", \"Email\", \"Ghi chú\"};\n tableModel = new DefaultTableModel(obj, 0);\n tableRowSorter = new TableRowSorter<>(tableModel);\n tblDistribute.setModel(tableModel);\n tblDistribute.setRowSorter(tableRowSorter);\n count = 0;\n tableModel.setRowCount(0);\n try {\n customerResponses.forEach((Object[] item) -> {\n item[0] = ++count;\n tableModel.addRow(item);\n\n });\n } catch (Exception exception) {\n log.error(\"Can't add row to table model \");\n exception.printStackTrace();\n\n }\n setButtonsEnable(btnUpdate, false, btnAdd, true, btnEdit, false, btnDelete, false, btnCancel, true);\n }", "public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }", "public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }", "protected void setFilterInMapChanged() {\n rowCount = null;\n }", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}", "@Override\n public int getRowCount() {\n return data.length-1; \n }", "public void refresh() {\n\t\tgetTableViewer().refresh();\n\t}", "final void refresh() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n String conURL = \"jdbc:mysql://localhost/enoriadb?\"\n + \"user=root&password=\";\n java.sql.Connection con = DriverManager.getConnection(conURL);\n\n java.sql.PreparedStatement pstmt = con.prepareStatement(\"SELECT * FROM tblproducts ORDER BY id DESC\");\n ResultSet rs = pstmt.executeQuery();\n DefaultTableModel tblmodel = (DefaultTableModel) prodTBL.getModel();\n tblmodel.setRowCount(0);\n\n while (rs.next()) {\n tblmodel.addRow(new Object[]{rs.getString(\"id\"),\n rs.getString(\"P_name\"),\n rs.getString(\"Qty\"),\n rs.getString(\"price\")});\n }\n\n //TFrCode.requestFocus();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ProductClass.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ProductClass.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "private void updateTable() {\n updateTableData();\n TableModelEvent e = new TableModelEvent(articleTableModel);\n\n articleTable.tableChanged(e);\n }", "public void canelDataUpdate() {\n dataModel.cancelDataLoading();\n }", "public void clear() {\n this.setRowCount(0);\n }", "@Override\n\tpublic int getNumRows() {\n\t\treturn 0;\n\t}", "@Override\r\n public int getRowCount() {\n return this.rowData.size();\r\n }", "public void tableChanged(TableModelEvent e) {\n reallocateIndexes();\n super.tableChanged(e);\n }", "public int getRowCount() {\n return 0;\n }", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "@Override\n public void tableChanged(TableModelEvent e) {\n fireTableChanged(e);\n }", "public void updateTable()\r\n {\r\n ((JarModel) table.getModel()).fireTableDataChanged();\r\n }", "public void updateTable() {\n ((AbstractTableModel) table.getModel()).fireTableDataChanged();\n }", "@Override\n public final void clearData() {\n synchronized (tableRows) {\n statModel.clearData();\n tableRows.clear();\n tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));\n statModel.addRow(tableRows.get(TOTAL_ROW_LABEL));\n }\n }", "public void fireActionEvent(ActionEvent event) {\n super.fireActionEvent(event);\n\n Repeater repeater = ((RepeaterAction) event.getSource()).getRepeater();\n\n // and actually delete the rows\n for (int i = repeater.getSize() - 1; i >= 0; i--) {\n Repeater.RepeaterRow row = repeater.getRow(i);\n if (Boolean.TRUE.equals(row.getChild(this.selectName).getValue())) {\n repeater.removeRow(i);\n }\n }\n\n if (repeater instanceof EnhancedRepeater) {\n try {\n ((EnhancedRepeater) repeater).refreshPage();\n } catch (BindingException e) {\n throw new RuntimeException(\"Error refreshing repeater page\", e);\n }\n }\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==this.btnSearch){\n\t\t\tthis.searchreloadTable();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void tableChanged(TableModelEvent arg0) {\n\t\t\n\t}", "public void setRowCount(int n) {\n mController.setRowCount(n);\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "private void refreshFaultPanel() {\n\t\t\n\t\t//vymazeme vsechny radky tabulky\n\t\tfaultTableModel.setRowCount(0);\n\t\t//faultTable.setEnabled(true);\n\t\t//addFaultButton.setEnabled(true);\n\t\t//removeFaultButton.setEnabled(true);\n\t\tFaultInjectionData selectedTest= getData();\n\t\t\n\t\tfor (Fault currentFault : selectedTest.getFaultList()) {\n\t\t\t//vlozeni noveho radku do tabulky poruch\n\t\t\tObject[] newRow= new Object[] {currentFault, currentFault.getDescription()};\n\t\t\tfaultTableModel.insertRow(faultTable.getRowCount(), newRow);\n\t\t}\n\t}", "@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }", "public int getRowCount(){\n return dataEntries.length;\n }", "public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}", "@Override\n public int getRowCount() {\n \n return data.size();\n }", "private void loadData(){\n Dh.refresh();\n }", "public void refreshTable() {\r\n\t\t// THIS is the key method to ensure JTable view is synchronized\r\n\t\tjtable.revalidate();\r\n\t\tjtable.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\tpublic int getRowCount() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getRowCount() {\n\t\treturn 0;\n\t}", "public void actionPerformed(ActionEvent evt)\r\n {\n int index = tabPane.getSelectedIndex();\r\n HGTable table = (HGTable) tableVector.elementAt(index);\r\n StockDataTableModel dataModel = (StockDataTableModel) modelVector.elementAt(index);\r\n // NOTE: We do not know at this time if we were called via the\r\n // popup menu, or the Normal Top menu - And we do not know\r\n // if an action is desired on the displayed table.\r\n // However, We will grab the point and determine the row.\r\n // If the Row is less than zero attempt to get the row\r\n // from the table as possible being selected.\r\n int row = table.rowAtPoint(new java.awt.Point(popupListener.getX(), popupListener.getY()));\r\n row = (row < 0) ? ((table.getSelectedRow() >= 0) ? table.getSelectedRow() : 0) : row;\r\n\r\n /////////////////////////////////////////////////\r\n // Grab our command\r\n /////////////////////////////////////////////////\r\n String cmd = evt.getActionCommand();\r\n debug(\"Menu - Action Performed Called with command [\" + cmd + \"]\");\r\n\r\n /////////////////////////////////////////////////\r\n // Examine the options a user may have requested.\r\n // and act upon them accordingly.\r\n /////////////////////////////////////////////////\r\n if (tableProps.equals(cmd))\r\n { // Allowing for Table Control to be presented\r\n WatchListTableModule.this.showTableControl();\r\n }\r\n else if (fractionCmd.equals(cmd))\r\n { // Show Fractions\r\n com.hgutil.data.Fraction.setShowAsFraction(true);\r\n dataModel.fireTableDataChanged();\r\n }\r\n else if (decimalCmd.equals(cmd))\r\n { // Show Decimals\r\n com.hgutil.data.Fraction.setShowAsFraction(false);\r\n dataModel.fireTableDataChanged();\r\n }\r\n else if (insertBeforeCmd.equals(cmd))\r\n { // Insert a Row BEFORE selected\r\n debug(\"Insert Row Before row [\" + row + \"] The Row being inserted is \" + row);\r\n dataModel.insert(row);\r\n table.tableChanged(new TableModelEvent(dataModel, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n table.setRowSelectionInterval(row + 1, row + 1);\r\n table.repaint();\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.loadHistoricData(sd);\r\n }\r\n else if (insertAfterCmd.equals(cmd))\r\n { // Insert a Row AFTER selected\r\n debug(\"Insert Row After row [\" + row + \"] The Row being inserted is \" + (row + 1));\r\n dataModel.insert(row + 1);\r\n table.tableChanged(\r\n new TableModelEvent(dataModel, row + 1, row + 1, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n table.setRowSelectionInterval(row, row);\r\n table.repaint();\r\n StockData sd = (StockData) dataModel.getData().elementAt(row + 1);\r\n WatchListTableModule.this.loadHistoricData(sd);\r\n }\r\n else if (deleteRowCmd.equals(cmd))\r\n { // Delete the selected Row\r\n debug(\"Delete row [\" + row + \"] The Row being deleted is \" + row);\r\n if (dataModel.delete(row))\r\n {\r\n table.tableChanged(new TableModelEvent(dataModel, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE));\r\n table.setRowSelectionInterval(row + 1, row + 1);\r\n table.repaint();\r\n }\r\n }\r\n else if (addNewWatchListCmd.equals(cmd))\r\n {\r\n debug(\"Add New WatchList Command...\");\r\n WatchListTableModule.this.addNewWatchList();\r\n }\r\n else if (deleteWatchListCmd.equals(cmd))\r\n {\r\n debug(\"Delete current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.deleteWatchList(index);\r\n }\r\n else if (renameListCmd.equals(cmd))\r\n { // Rename the WatchList\r\n debug(\"Rename current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.setNewTitle(index);\r\n }\r\n else if (printListCmd.equals(cmd))\r\n { // Print the WatchList\r\n debug(\"Printout current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.printWatchList(index);\r\n }\r\n else if (viewOptionChainCmd.equals(cmd))\r\n {\r\n debug(\"View Option Chain Command, index = [\" + index + \"]\");\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.setDataObject(sd);\r\n WatchListTableModule.this.invokeStockMarketModule(getString(\"WatchListTableModule.view_option_chain.module_name\"));\r\n }\r\n else if (viewHistoricChartCmd.equals(cmd))\r\n {\r\n debug(\"View Option Chain Command, index = [\" + index + \"]\");\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.invokeHistoricChart(sd);\r\n }\r\n\r\n popupListener.resetPoints();\r\n }", "@Override\r\n public void tableChanged(TableModelEvent e) {\n\r\n }", "@Override\n\tpublic int getRowCnt() {\n\t\treturn invBaseStockDao.getRowCnt();\n\t}", "@Override\n public int getRowCount() { return data.length; }", "@Override\n public void clearRowsWithChanges() {\n }", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\t}", "public void doButtonEntfernen() {\n\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\tthis.tabellenspalten.remove(this.anzeige.getSelectedRow());\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "@Override\n public int getRowCount() {\n return this.data.length;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = table.convertRowIndexToModel( table.getEditingRow() );\n }", "@FXML private void refreshData(){\n\t\tclearFields();\n\t\treadUsers();\n\t\tshowUsers();\n\t\trefreshInformationsFromTableView(null);\n\t}", "public void refreshPressed() {\n //refresh the content of the tableView\n ObservableList<String[]> data = PresentationCtrl.getInstance().getHistories();\n tableView.setItems(data);\n }", "public void reset() {\n\t\tdroppedFiles.clear();\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t((DefaultTableModel) table.getModel()).setRowCount(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "public void setNumRows(int newSize) {\r\n\t\tif ((newSize < 0) || (newSize == getRowCount()))\r\n\t\t\treturn;\r\n\t\tint oldNumRows = getRowCount();\r\n\t\tif (newSize <= getRowCount()) {\r\n\t\t\t// newSize is smaller than our current size, so we can just\r\n\t\t\t// let Vector discard the extra rows\r\n\t\t\tdataVector.setSize(newSize);\r\n\r\n\t\t\t// Generate notification\r\n\t\t\tfireTableRowsDeleted(getRowCount(), oldNumRows - 1);\r\n\t\t} else {\r\n\t\t\tint columnCount = getColumnCount();\r\n\t\t\t// We are adding rows to the model\r\n\t\t\twhile (getRowCount() < newSize) {\r\n\t\t\t\tVector newRow = new Vector(columnCount);\r\n\t\t\t\tnewRow.setSize(columnCount);\r\n\t\t\t\tdataVector.addElement(newRow);\r\n\t\t\t}\r\n\r\n\t\t\t// Generate notification\r\n\t\t\tfireTableRowsInserted(oldNumRows, getRowCount() - 1);\r\n\t\t}\r\n\t}", "@FXML\n private void handleRefresh(ActionEvent event) {\n observableListBook.clear();\n localData();\n }", "@Override\n public void reloadGridsData() {\n \n }", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "private void refresh(){\r\n if (!clientList.isEmpty()){\r\n clientList.clear();\r\n clientList = FXCollections.observableArrayList(Client.clientList());\r\n } \r\n table.setItems(clientList);\r\n }", "@FXML\n void OnActionMonthlyAppointments(ActionEvent event) {\n //MSAppointmentsTableView.getItems().clear();\n getTableData();\n MSAppointmentsTableView.setItems(dbQuery.getMonthlyAppointments());\n }", "public void initialize() {\n resultsTable.setItems(null);\n resultsTable.setRowFactory(tv -> {\n TableRow<SuperAgentAppRecord> row = new TableRow<>();\n // Open window if row double-clicked\n row.setOnMouseClicked(event -> {\n if (event.getClickCount() == 2 && (!row.isEmpty())) {\n SuperAgentAppRecord rowData = row.getItem();\n try {\n // Open selected row in new window\n displayInspectApplications(rowData);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n return row;\n });\n }", "public void refreshTablePanel(String records[][]) {\r\n tableModel.setDataVector(records, tableHeaders);\r\n }", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "@Override\n\tpublic void refreshData(){\n\t\tpageNum = 1;\n\t\tlist.clear();\n\t\tloadData();\n\t}", "public void refresh() {\n sqlTable = \"Select * from users, roles where users.role_ID = roles.Roles_ID ORDER BY users.user_ID ASC\";\n try{\n jTable1 = Domains.getTable(header, columns, sqlTable);\n jScrollPane1.getViewport().removeAll();\n jScrollPane1.getViewport().add(jTable1);\n jScrollPane1.repaint();\n }catch(Exception err){\n err.printStackTrace();\n }\n }", "public void clear()\n {\n assert SwingUtilities.isEventDispatchThread();\n myRowDataProvider.clear();\n myCache.clear();\n fireTableDataChanged();\n }", "int rowCount();", "public void fetRowList() {\n try {\n data.clear();\n if (rsAllEntries != null) {\n ObservableList row = null;\n //Iterate Row\n while (rsAllEntries.next()) {\n row = FXCollections.observableArrayList();\n //Iterate Column\n for (int i = 1; i <= rsAllEntries.getMetaData().getColumnCount(); i++) {\n row.add(rsAllEntries.getString(i));\n }\n data.add(row);\n }\n //connects table with list\n table.setItems(data);\n // cell instances are generated for Order Status column and then colored\n customiseStatusCells();\n\n } else {\n warning.setText(\"No rows to display\");\n }\n } catch (SQLException ex) {\n System.out.println(\"Failure getting row data from SQL \");\n }\n }", "private void setNoOfRows(int noOfRows) {\n this.noOfRows = noOfRows;\n }", "public abstract int getModelRowCount();", "private void onDataEmpty() {\n mArticlesView.showNoArticles();\n }", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }" ]
[ "0.6705718", "0.6663701", "0.6496689", "0.6484052", "0.6379214", "0.6312319", "0.62384653", "0.6197008", "0.6143657", "0.6116967", "0.607728", "0.6051389", "0.5998196", "0.5966066", "0.5959278", "0.5951353", "0.5949906", "0.5914085", "0.5910721", "0.5890909", "0.58888173", "0.5888666", "0.5878141", "0.58520913", "0.5829776", "0.58272386", "0.58244795", "0.5807015", "0.5798155", "0.5797976", "0.5785857", "0.57837474", "0.5783615", "0.57804763", "0.57748777", "0.5759128", "0.57518584", "0.57518584", "0.5731472", "0.5730429", "0.57223004", "0.5710329", "0.57088464", "0.56968176", "0.5689718", "0.56849045", "0.568477", "0.5673228", "0.5672054", "0.5670596", "0.5670031", "0.56557333", "0.5651374", "0.56505036", "0.56428397", "0.5630476", "0.5630183", "0.5628832", "0.5618278", "0.5613919", "0.5613917", "0.56060404", "0.5593818", "0.559299", "0.5590109", "0.55897737", "0.5588926", "0.5588926", "0.55873525", "0.55873525", "0.5585113", "0.5578981", "0.55762464", "0.55586946", "0.5556947", "0.55533695", "0.55487686", "0.5543029", "0.5541832", "0.55413145", "0.55389446", "0.55362767", "0.553572", "0.5533609", "0.5530849", "0.55258423", "0.5522911", "0.552269", "0.55209816", "0.5518906", "0.55161935", "0.551573", "0.55124766", "0.5509695", "0.5506394", "0.5504626", "0.550054", "0.5486806", "0.5479183", "0.5471809" ]
0.62549907
6
Jumps to edit Form of User
public String edit() { return "edit"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void edit(User user) {\n }", "public void editUser(User user) {\n\t\t\n\t}", "public String edit() {\r\n\t\tuserEdit = (User) users.getRowData();\r\n\t\treturn \"edit\";\r\n\t}", "UserEditForm getEditForm(User user);", "void gotoEditProfile();", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "public static void ShowEditUser() {\n ToggleVisibility(UsersPage.window);\n }", "@RequestMapping(value = { \"/edit-{loginID}-user\" }, method = RequestMethod.GET)\r\n public String edituser(@PathVariable String loginID, ModelMap model) {\r\n\r\n User user = service.findUserByLoginID(loginID);\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", true);\r\n return \"registration\";\r\n }", "private void goToEditPage()\n {\n Intent intent = new Intent(getActivity(),EditProfilePage.class);\n getActivity().startActivity(intent);\n }", "User editUser(User user);", "public String gotoeditprofile() throws IOException {\n\t\treturn \"editProfil.xhtml?faces-redirect=true\";\n\t}", "@RequestMapping(value = { \"/edit-user-{loginId}\" }, method = RequestMethod.GET)\n\tpublic String editUser(@PathVariable String loginId, ModelMap model) {\n\t\tUser user = userService.findByLoginId(loginId);\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", true);\n\t\treturn \"registration\";\n\t}", "@RequestMapping(\"/editUsr\")\r\n\tpublic ModelAndView editUsr(@ModelAttribute(\"UserEditForm\") final UserEditForm form) {\r\n\t\tModelAndView mav = new ModelAndView(\"users/edit\");\r\n\t\t// GET ACTUAL SESSION USER\r\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\t\tUser user = us.findUserSessionByUsername(principal);\r\n\t\tmav.addObject(\"user\", user);\r\n\t\treturn mav;\r\n\t}", "public User editUser(User user) {\n\t\treturn null;\r\n\t}", "@GetMapping(\"/updateUser/{id}\")\n\t public String editUser(@PathVariable(\"id\") Long userId, Model model) {\n\t\t model.addAttribute(\"userId\", userId);\n\t\t return \"updatePage.jsp\";\n\t }", "@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (!edited) {\n\t\t\t\t\t\topenEdit();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcloseEdit();\n\t\t\t\t\t\tif (newly) {\n\t\t\t\t\t\t\tnewly = false;\n\t\t\t\t\t\t\tvo = getUserVO();\n\t\t\t\t\t\t\tUserController.add(vo);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tUserController.modify(vo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public void DoEdit() {\n \n int Row[] = tb_User.getSelectedRows();\n if (Row.length > 1) {\n JOptionPane.showMessageDialog(null, \"You can choose only one user edit at same time!\");\n return;\n }\n if (tb_User.getSelectedRow() >= 0) {\n EditUser eu = new EditUser(this);\n eu.setVisible(true);\n\n } else {\n JOptionPane.showMessageDialog(null, \"You have not choose any User to edit\");\n }\n }", "@RequestMapping(\"edit\")\n\tpublic String edit(ModelMap model, HttpSession httpSession) {\n\t\tCustomer user = (Customer) httpSession.getAttribute(\"user\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\treturn \"user/account/edit\";\n\t}", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "public void editTheirProfile() {\n\t\t\n\t}", "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }", "@Override\n\tpublic void edit(User user){\n\t\tuserRepo.save(user);\n\t}", "@RequestMapping(\"/edit/{id}\")\r\n\tpublic ModelAndView editUser(@PathVariable int id,\r\n\t\t\t@ModelAttribute Employee employee) {\r\n\t\tSystem.out.println(\"------------- redirecting to emp edit page --------------\" + employee);\r\n\t\tEmployee employeeObject = dao.getEmployee(id);\r\n\t\treturn new ModelAndView(\"edit\", \"employee\", employeeObject);\r\n\t}", "void editUser(String uid, User newUser);", "@RequestMapping(value = \"/edituserdetails/{id}\", method = RequestMethod.GET)\n\n\tpublic ModelAndView editUserDetails(HttpServletRequest request, HttpSession session, @PathVariable int id,\n\t\t\t@ModelAttribute(\"edituser\") UserBean edituser, Model model) {\n\n\t\tString adminId = (String) request.getSession().getAttribute(\"adminId\");\n\t\tif (adminId != null) {\n\t\t\tUserBean user = userdao.getUserById(id);\n\t\t\tmodel.addAttribute(\"user\", user);\n\n\t\t\treturn new ModelAndView(\"editUserDetailsForm\");\n\t\t}\n\n\t\telse\n\t\t\treturn new ModelAndView(\"redirect:/Login\");\n\t}", "void gotoEditProfile(String fbId);", "public void mmEditClick(ActionEvent event) throws Exception{\r\n displayEditProfile();\r\n }", "@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}", "public void editUser(User selectedUser,String fullName, String loginName, String password) throws IOException {\n userManager.editUser(selectedUser,fullName,loginName,password);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "@Override\n\tpublic boolean edit(User u) {\n\t\ttry {\n\t\t\tuserDao.edit(u);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "private void edit() {\n\n\t}", "private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }", "@RequestMapping(value = \"/editUser\", method = RequestMethod.GET)\n\tpublic ModelAndView editUser(ModelMap model, @RequestParam(\"id\") Long id, RedirectAttributes attributes)\n\t\t\tthrows CustomException {\n\n\t\tEndUser endUser = endUserDAOImpl.findId(id);\n\n\t\tendUserForm.setId(endUser.getId());\n\t\tendUserForm.setBankId(endUser.getBankId());\n\t\tendUserForm.setRole(endUser.getRole());\n\t\tendUserForm.setContactNo(endUser.getContactNo());\n\t\tendUserForm.setEmail(endUser.getEmail());\n\t\tendUserForm.setDisplayName(endUser.getDisplayName());\n\t\t;\n\t\tendUserForm.setUserName(endUser.getUserName());\n\t\tendUserForm.setTransactionId(endUser.getTransactionId());\n\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"editUser\", \"model\", model);\n\n\t}", "public void editUser(User tmpUser, User user) {\n\t\t\n\t}", "private void mostrarEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUsuario existingUser = dao.selecionarUsuario(id);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\trequest.setAttribute(\"usuario\", existingUser);\n\t\tdispatcher.forward(request, response);\n\t}", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}", "public FormEditUser() {\n initComponents();\n id.setEnabled(false);\n }", "@RequestMapping(\"/editPass\")\r\n\tpublic ModelAndView editPass(@ModelAttribute(\"UserEditPassForm\") final UserEditPassForm form) {\r\n\t\treturn new ModelAndView(\"users/changePass\");\r\n\t}", "@Action( value=\"editUser\", results= {\n @Result(name=SUCCESS, type=\"dispatcher\", location=\"/jsp/editauser.jsp\") } ) \n public String editUser() \n {\n \t ActionContext contexto = ActionContext.getContext();\n \t \n \t ResultSet result1=null;\n \t\n \t PreparedStatement ps1=null;\n \t try \n \t {\n \t\t getConection();\n \t\t \n \t if ((String) contexto.getSession().get(\"loginId\")!=null)\n \t {\n String consulta1 =(\"SELECT * FROM USUARIO WHERE nick= '\"+ (String) contexto.getSession().get(\"loginId\")+\"';\");\n ps1 = con.prepareStatement(consulta1);\n result1=ps1.executeQuery();\n \n while(result1.next())\n {\n nombre= result1.getString(\"nombre\");\n apellido=result1.getString(\"apellido\");\n nick= result1.getString(\"nick\");\n passwd=result1.getString(\"passwd\");\n mail=result1.getString(\"mail\");\n \t rol=result1.getString(\"tipo\");\n }\n }\n \t } catch (Exception e) \n \t { \n \t \t System.err.println(\"Error\"+e); \n \t \t return SUCCESS;\n \t } finally\n \t { try\n \t {\n \t\tif(con != null) con.close();\n \t\tif(ps1 != null) ps1.close();\n \t\tif(result1 !=null) result1.close();\n \t\t\n } catch (Exception e) \n \t \t {\n \t System.err.println(\"Error\"+e); \n \t \t }\n \t }\n \t\t return SUCCESS;\n \t}", "public void clickEditLink() {\r\n\t\tbtn_EditLink.click();\r\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "@Override\n\tpublic String editUser(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Usuario edit(Usuario obj) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "public EditUserInterface(User user) {\r\n\t\tsuper(true);\r\n\t\tsetTitle(\"Edit user \" + user.getUsername());\r\n\t\tthis.user = user;\r\n\t\tsuper.fillData(user);\r\n\t}", "@Override\n\tpublic ModelAndView edit(String id) {\n\t\treturn null;\n\t}", "public static void editProfile(String form, String ly) {\n\t\tboolean layout;\n\t\tif(ly == null || ly.equalsIgnoreCase(\"yes\"))\n\t\t\tlayout = true;\n\t\telse\n\t\t\tlayout = false;\n\t\t\n\t\tUser user = UserService.getUserByUsername(session.get(\"username\"));\n\t\tUserProfile userprofile = null;\n\n\t\t// check if user object is null\n\t\tif (user != null)\n\t\t\tuserprofile = UserProfileService.getUserProfileByUserId(user.id);\n\n\t\t//set password into session\n\t\tsession.put(\"edit_password\", user.password);\n\t\t\n\t\tif(form == null)\n\t\t\tform = \"account\";\n\t\t\n\t\trender(user, userprofile, layout, form);\n\t}", "public void editUser()\r\n\t{\r\n\t\tsc.nextLine();\r\n\t\tint index=loginattempt();\r\n\t\tif(index==-1)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tString password=\"\",repassword=\"\";\r\n\t\t\tboolean flag=false;\r\n\t\t\twhile(!flag)\r\n\t\t\t{\r\n\t\t\t\tboolean validpassword=false;\r\n\t\t\t\twhile(!validpassword)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Please enter your new password: \");\r\n\t\t\t\t\tpassword=sc.nextLine();\r\n\t\t\t\t\tvalidpassword=a.validitycheck(password);\r\n\t\t\t\t\tif(!validpassword)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Your password has to fulfil: at least 1 small letter, 1 capital letter, 1 digit!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"Please re-enter your new password: \");\r\n\t\t\t\trepassword=sc.nextLine();\r\n\t\t\t\tflag=a.matchingpasswords(password,repassword);\r\n\t\t\t\tif(!flag)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Password not match! \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString hash_password=hashfunction(password); \r\n\t\t\tSystem.out.print(\"Please enter your new full name: \");\r\n\t\t\tString fullname=sc.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter your new email address: \");\r\n\t\t\tString email=sc.nextLine();\r\n\t\t\t((User)user_records.get(index)).set_hash_password(hash_password);\r\n\t\t\t((User)user_records.get(index)).set_fullname(fullname);\r\n\t\t\t((User)user_records.get(index)).set_email(email);\r\n\t\t\tSystem.out.println(\"Record update successfully!\");\r\n\t\t}\r\n\t}", "protected void enterEditMode(){\n saveButton.setVisibility(View.VISIBLE);\n //when editMode is active, allow user to input in editTexts\n //By default have the editTexts not be editable by user\n editName.setEnabled(true);\n editEmail.setEnabled(true);\n\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userReference = FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n user = FirebaseAuth.getInstance().getCurrentUser();\n\n user.updateEmail(String.valueOf(editEmail.getText()))\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n userReference.child(\"name\").setValue(editName.getText().toString());\n userReference.child(\"email\").setValue(editEmail.getText().toString());\n final String TAG = \"EmailUpdate\";\n Log.d(TAG, \"User email address updated.\");\n Toast.makeText(getActivity().getApplicationContext(), \"Saved\", Toast.LENGTH_SHORT).show();\n }\n else {\n FirebaseAuthException e = (FirebaseAuthException)task.getException();\n Toast.makeText(getActivity().getApplicationContext(), \"Re-login to edit your profile!\", Toast.LENGTH_LONG).show();\n goToLoginActivity();\n }\n }\n });\n exitEditMode();\n\n }\n });\n }", "@RequestMapping(value = \"/{username}/update\", method = RequestMethod.GET)\n\tpublic String showUpdateEtudiantForm(@PathVariable(\"username\") String username, Model model) {\n\n\t\tlogger.debug(\"showUpdateEtudiantForm() : {}\"+ username);\n\t\n\t\tEtudiant etudiant = etudiantDAO.findOne(username);\n\t\tmodel.addAttribute(\"savedId\", etudiant.getUsername());\n\t\tmodel.addAttribute(\"etudiantForm\", etudiant);\n\n\t\t//populateDefaultModel(model);\n\n\t\treturn \"etudiant/etudiantForm\";\n\n\t}", "private void editUserCard() {\n getUserCard();\n }", "@RequestMapping(value = \"editUser\", method = RequestMethod.POST)\n public String edituser(@RequestParam(value = \"checkedId\", required = false) long checkedId, ModelMap model) {\n model.addAttribute(\"id\", checkedId);\n model.addAttribute(\"user\", userService.findById((int) checkedId));\n return \"Admin/edituser\";\n }", "void editAddressUser(String uid, Address address);", "public String editEmploye(Employee emp){\n System.out.println(\"******* Edit employe ************\");\n System.out.println(emp.toString());\n employeeService.editEmployee(emp);\n sessionController.logInEmp();\n\n return \"/pages/childCareCenterDashboard.xhtml?faces-redirect=true\";\n }", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "@RequestMapping(value = \"/editAccountPage\", method = RequestMethod.GET)\n\tpublic String jobseekerEditAccount(Model m, HttpServletRequest req) {\n\t\tHttpSession session = req.getSession();\n\t\tString username = (String) session.getAttribute(\"username\");\n\t\tSystem.out.println(\"session username = \" + username);\n\t\tString firstname = (String) session.getAttribute(\"firstname\");\n\t\tm.addAttribute(\"firstname\", firstname);\n\t\tm.addAttribute(\"state\", \"editAccount\");\n\t\tSystem.out.println(\"I'm jobseeker editAccount\");\n\t\treturn \"js.editAccount\";\n\t\t// return \"redirect:../home\";\n\t}", "public abstract void edit();", "public void edit(RequestBean request) {\n\t\t\r\n\t}", "public EditTeamPage pressEditButton() {\n controls.getEditButton().click();\n return new EditTeamPage();\n }", "@FXML\n private void editSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"Edit DonorReceiver\");\n } else {\n EditPaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.EDIT);\n }\n }", "public void modifyUser() {\n\t\tUser selectedUser = null;\r\n\t\tselectedUser = tableUser.getSelectionModel().getSelectedItem();\r\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tif (selectedUser != null) {\r\n\t\t\t\tframeManager.modifyUser(user, selectedUser);\r\n\t\t\t\tpesquisar();\r\n\t\t\t} else {\r\n\t\t\t\tAlertUtils.alertErroSelecionar(\"Para modificar um usuario é necessário selecionar um!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/jsEditAccounts\", method = RequestMethod.GET)\n\tpublic String jsEdit(Model m, @RequestParam(value = \"username\") String username, HttpServletRequest req) {\n\t\tSystem.out.println(\"Proceed to editAccountJobSeeker Page\");\n\t\tHttpSession session = req.getSession();\n\t\tsession.setAttribute(\"username\", username);\n\t\tm.addAttribute(\"state\", \"editAccount\");\n\t\tm.addAttribute(\"username\", username);\n\t\treturn \"js.home\";\n\t}", "@GetMapping(\"/edit\")\r\n public String editView() {\r\n return \"modify\";\r\n }", "@PutMapping(path = \"/edit_details\")\n public String editUserDetails(@ModelAttribute(\"user\") User user, Model model) {\n User currUser = userRepository.getOne(1l);\n\n if (!(user.getId() == null)) {\n currUser.setId(user.getId());\n }\n if (!(user.getName() == null)) {\n currUser.setName(user.getName());\n }\n if (!(user.getAddress() == null)) {\n currUser.setAddress(user.getAddress());\n }\n\n userRepository.save(currUser);\n\n model.addAttribute(\"user\", user);\n\n return \"redirect:/patron_home/view_my_details\";\n }", "@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tEditProfileActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t}", "public ViewResumePage clickonedit() throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(edit);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Edit button is not displayed\");\r\n\t\t\t\telement.click();\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Edit Button NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn new ViewResumePage(driver);\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/edit/{employeeID}\", method = RequestMethod.GET)\n public ModelAndView initUpdateOwnerForm(@PathVariable(\"employeeID\") String employeeID, Model model) {\n \tEmployee e = empService.findById(employeeID);\n\t\tModelAndView mav= new ModelAndView(\"CreateOrUpdateEmployee\",\"employee\",e);\n\t\tString s=\"edit\";\n\t\tmav.addObject(\"actiont\", s);\n\t\t mav.addObject(\"roleList\", roleRepo.findAll());\n\t\t mav.addObject(\"SupervisorList\",empService.ListOfSuperVisor());\n return mav;\n }", "public void editButtonClicked(){\n String first = this.firstNameInputField.getText();\n String last = this.lastNameInputField.getText();\n String email = this.emailInputField.getText();\n String dep = \"\";\n String role=\"\";\n if(this.departmentDropdown.getSelectionModel().getSelectedItem() == null){\n dep= this.departmentDropdown.promptTextProperty().get();\n //this means that the user did not change the dropdown\n \n }else{\n dep = this.departmentDropdown.getSelectionModel().getSelectedItem();\n }\n \n if(this.roleDropdown.getSelectionModel().getSelectedItem()== null){\n role = this.roleDropdown.promptTextProperty().get();\n }else{\n role = this.roleDropdown.getSelectionModel().getSelectedItem();\n }\n \n if(this.isDefaultValue(first) && \n this.isDefaultValue(last) && \n this.isDefaultValue(email) && \n this.isDefaultValue(role) && \n this.isDefaultValue(dep)){\n //this is where we alert the user that no need for update is needed\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setContentText(\"User information has not changed...no update performed\");\n alert.showAndWait();\n \n }else{\n \n if(this.userNameLabel.getText().equals(\"User\")){\n System.out.println(\"This is empty\");\n }else{\n //create a new instance of the connection class\n this.dbConnection = new Connectivity();\n //this is where we do database operations\n if(this.dbConnection.ConnectDB()){\n //we connected to the database \n \n boolean update= this.dbConnection.updateUser(first, last, email, dep,role , this.userNameLabel.getText());\n \n \n }else{\n System.out.println(\"Could not connect to the database\");\n }\n \n }\n }\n }", "@RequestMapping(value = \"/update_user\", method = RequestMethod.GET)\n\tpublic String initEditUserForm(@RequestParam(\"id\") int userId, ModelMap model) {\n\t\tUser user = libraryService.findByUserId(userId);\n\t\tmodel.put(\"user\", user);\n\t\tRole userRole = getUserRole();\n\t\tmodel.put(\"role\", userRole);\n\t\tmodel.put(\"isAdmin\", \"ROLE_ADMIN\".equals(userRole.toString()));\n\n\t\t// dropdown for user status\n\t\tMap<String, String> allStatus = new LinkedHashMap<String, String>();\n\t\tfor (Status status : Status.values()) {\n\t\t\tallStatus.put(status.name(), status.name());\n\t\t}\n\t\tmodel.put(\"allStatus\", allStatus);\n\n\t\t// dropdown for user role\n\t\tMap<String, String> allRole = new LinkedHashMap<String, String>();\n\t\tfor (Role role : Role.values()) {\n\t\t\tallRole.put(role.name(), role.name());\n\t\t}\n\t\tmodel.put(\"allRole\", allRole);\n\n\t\treturn \"userForm\";\n\t}", "@RequestMapping(value = \"/editPersona\", method = RequestMethod.GET)\n\tpublic String showFormForUpdate(@RequestParam(\"id_persona\") int id_persona, Model model) {\n\t\tPersona Person = personaService.getPersona(id_persona);\n\t\tmodel.addAttribute(\"Person\", Person);\n\t\treturn \"editPersona\";\n\t}", "public void editAccount(ActionEvent actionEvent) throws SQLException, IOException {\n if (editAccountButton.getText().equals(\"Edit\")) {\n userNameField.setEditable(true);\n emailField.setEditable(true);\n datePicker.setEditable(true);\n changePhotoButton.setVisible(true);\n changePhotoButton.setDisable(false);\n userNameField.getStylesheets().add(\"/stylesheets/Active.css\");\n emailField.getStylesheets().add(\"/stylesheets/Active.css\");\n datePicker.getStylesheets().add(\"/stylesheets/Active.css\");\n editAccountButton.getStylesheets().add(\"/stylesheets/Active.css\");\n editAccountButton.setText(\"Save\");\n }\n else if (validInput()) {\n userNameField.setEditable(false);\n emailField.setEditable(false);\n datePicker.setEditable(false);\n changePhotoButton.setVisible(false);\n changePhotoButton.setDisable(true);\n userNameField.getStylesheets().remove(\"/stylesheets/Active.css\");\n emailField.getStylesheets().remove(\"/stylesheets/Active.css\");\n datePicker.getStylesheets().remove(\"/stylesheets/Active.css\");\n editAccountButton.getStylesheets().remove(\"/stylesheets/Active.css\");\n user.getUser().setName(userNameField.getText());\n user.getUser().setEmail(emailField.getText());\n user.getUser().setBirthday(datePicker.getValue());\n\n editAccountButton.setText(\"Edit\");\n userNameLabel.setText(user.getUser().getFirstName());\n if (userPhotoFile != null) {\n user.getUser().setProfilePhoto(accountPhoto);\n profileIcon.setImage(new Image(userPhotoFile.toURI().toString()));\n }\n DatabaseManager.updateUser(user, userPhotoFile);\n }\n }", "private String prepareAndReturnEditPage(Model model) {\n this.populateDentistVisitFormModel(model);\n return \"editForm\";\n }", "@OnClick(R.id.btn_edit_profile)\n public void btnEditProfile(View view) {\n Intent i=new Intent(SettingsActivity.this,EditProfileActivity.class);\n i.putExtra(getString(R.string.rootUserInfo), rootUserInfo);\n startActivity(i);\n }", "public editUserFrame(int IDUser ,int IDU0) {\n initComponents();\n userService = new UserService();\n user = userService.getUserByID(IDUser);\n u = userService.getUserByID(IDU0);\n\n IDEtextField.setText(String.valueOf(user.getIDUser()));\n fullNameTextField.setText(user.getFullName()); \n String b = user.getGender().replaceAll(\"\\\\s\",\"\"); \n if (b.equals(\"Nam\")) { \n genderComboBox.setSelectedIndex(0); \n }\n if (b.equals(\"Nữ\")) { \n genderComboBox.setSelectedItem(\"Nữ\"); \n }\n if (b.equals(\"Khác\")) {\n \n genderComboBox.setSelectedItem(\"Khác\");\n }\n if (user.getRole().equals(\"Admin\")) {\n AdminRadiobutton.setSelected(true);\n role = \"Admin\";\n }\n if(user.getRole().equals(\"Employee\")){\n EmployeeRadioButton.setSelected(true);\n role = \"Employee\";\n }\n \n DOBTextField.setText(user.getDob());\n addressTextField.setText(user.getAddress());\n phoneTextField.setText(user.getPhone());\n userNameTextField.setText(user.getUserName());\n passwordTextField.setText(user.getPassword());\n\n this.setLocationRelativeTo(null);\n }", "@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }", "@RequestMapping(value = \"/changepassword/{id}\", method = RequestMethod.GET)\n\n\tpublic ModelAndView changePassword(HttpServletRequest request, HttpSession session, @PathVariable int id,\n\t\t\t@ModelAttribute(\"edituser\") UserBean edituser, Model model) {\n\t\tString adminId = (String) request.getSession().getAttribute(\"adminId\");\n\t\tif (adminId != null) {\n\t\t\tUserBean user = userdao.getUserById(id);\n\t\t\tmodel.addAttribute(\"user\", user);\n\n\t\t\treturn new ModelAndView(\"changePasswordView\");\n\t\t} else\n\t\t\treturn new ModelAndView(\"redirect:Login\");\n\t}", "@RequestMapping(\"/editUser\")\n\tpublic ModelAndView editUser(@RequestParam (name=\"id\") Long id,@RequestParam (name=\"error\", required=false) boolean error)\n\t{\n\t\tModelAndView mv=new ModelAndView(\"editUserPage\");\n\t\tOptional<User> user=userService.findByid(id);\n\t\tOptional<UserExtra> userEx=userService.findExtraByid(id);\n\t\tmv.addObject(\"image\",Base64.getEncoder().encodeToString(userEx.get().getImage()));\n\t\tmv.addObject(\"user\",user.get());\n\t\tString date=userEx.get().getDob().toString();\n\t\tString join=userEx.get().getJoiningDate().toString();\n\t\tmv.addObject(\"date\",date);\n\t\tmv.addObject(\"join\",join);\n\t\t if(error)\n\t\t\t mv.addObject(\"error\",true);\n\n\t\treturn mv;\n\t}", "private void launchEditVolPage(View view, Volunteer thisGuy){\n final Intent launchEdit = new Intent(manageVolunteers.this,ManagerEditVolunteer.class);\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"thisGuy\", thisGuy);\n launchEdit.putExtra(\"bundle\", bundle);\n startActivity(launchEdit);\n }", "@Override\r\n\tpublic User editdata(User usr) {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/editAdminProfile\", method = RequestMethod.GET)\n\tpublic ModelAndView editAdminProfile(ModelMap model, @RequestParam(\"id\") Long id, RedirectAttributes attributes)\n\t\t\tthrows CustomException {\n\n\t\tEndUser userProfile = endUserDAOImpl.findId(id);\n\n\t\tif (userProfile.getImageName() != null) {\n\t\t\tString type = ImageService.getImageType(userProfile.getImageName());\n\n\t\t\tString url = \"data:image/\" + type + \";base64,\" + Base64.encodeBase64String(userProfile.getImage());\n\t\t\tuserProfile.setImageName(url);\n\n\t\t\tendUserForm.setImageName(url);\n\t\t} else {\n\t\t\tendUserForm.setImageName(\"\");\n\t\t}\n\n\t\tendUserForm.setId(userProfile.getId());\n\t\tendUserForm.setDisplayName(userProfile.getDisplayName());\n\t\tendUserForm.setUserName(userProfile.getUserName());\n\t\tendUserForm.setAltContactNo(userProfile.getAltContactNo());\n\t\tendUserForm.setAltEmail(userProfile.getAltEmail());\n\t\tendUserForm.setContactNo(userProfile.getContactNo());\n\t\tendUserForm.setEmail(userProfile.getEmail());\n\n\t\tendUserForm.setPassword(userProfile.getPassword());\n\t\tendUserForm.setTransactionId(userProfile.getTransactionId());\n\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"editAdminProfile\", \"model\", model);\n\n\t}", "public void editUser(userBean utilisateur){\r\n\t\ttry {\r\n\t\t//La requ�te sql qui permet de modifier un enregistrement\r\n\t\t\tString sql = \"UPDATE utilisateur set nom=? ,prenom=? where id=?;\";\r\n\t\t//toujours en fait appelle a la methode PrepareStatement\r\n\t\t//pour pr�parer la requ�te sql et permettre de remplacer les '?' par \r\n\t\t//Les variables correspondantes\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\t\tps.setString(1, utilisateur.getNom());\r\n\t\t\t\tps.setString(2, utilisateur.getPrenom());\r\n\t\t\t\tps.setInt(3, utilisateur.getID());\r\n\t\t\t// ex�cuter la requ�te \r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t//g�rer les exceptions\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/editAdminPWD\", method = RequestMethod.GET)\n\tpublic ModelAndView editAdminPWD(ModelMap model, @RequestParam(\"id\") Long id, RedirectAttributes attributes)\n\t\t\tthrows CustomException {\n\n\t\tEndUser userProfile = endUserDAOImpl.findId(id);\n\n\t\tendUserForm.setId(userProfile.getId());\n\n\t\tendUserForm.setTransactionId(userProfile.getTransactionId());\n\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"editAdminPWD\", \"model\", model);\n\n\t}", "public User getEditUser()\r\n/* */ {\r\n/* 172 */ return this.editUser;\r\n/* */ }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_edit) {\n Intent intent = new Intent(this, editProfile.class);\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void setUser(UserDTO user)\r\n {\r\n if (!edit)\r\n {\r\n this.user = user;\r\n\r\n if (user != null)\r\n {\r\n textUser.setText(user.getUsername());\r\n\r\n }\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(this, \"Cannot select another person while you are adding or edditing the tree.\");\r\n }\r\n }", "@Action( value=\"editAdmin\", results= {\n @Result(name=SUCCESS, type=\"dispatcher\", location=\"/jsp/editauser.jsp\") } ) \n public String editAdmin() \n {\n \t ActionContext contexto = ActionContext.getContext();\n \t \n \t ResultSet result1=null;\n \t\n \t PreparedStatement ps1=null;\n \t try \n \t {\n \t\t getConection();\n \t\t \n \t if ((String) contexto.getSession().get(\"loginId\")!=null)\n \t {\n String consulta1 =(\"SELECT * FROM USUARIO WHERE nick= '\"+ getNick()+\"';\");\n ps1 = con.prepareStatement(consulta1);\n result1=ps1.executeQuery();\n \n while(result1.next())\n {\n nombre= result1.getString(\"nombre\");\n apellido=result1.getString(\"apellido\");\n nick= result1.getString(\"nick\");\n passwd=result1.getString(\"passwd\");\n mail=result1.getString(\"mail\");\n \t \n }\n rol=\"ADMIN\";\n }\n \t } catch (Exception e) \n \t { \n \t \t System.err.println(\"Error\"+e); \n \t \t return SUCCESS;\n \t } finally\n \t { try\n \t {\n \t\tif(con != null) con.close();\n \t\tif(ps1 != null) ps1.close();\n \t\tif(result1 !=null) result1.close();\n \t\t\n } catch (Exception e) \n \t \t {\n \t System.err.println(\"Error\"+e); \n \t \t }\n \t }\n \t\t return SUCCESS;\n \t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_edit:\n Intent intent = new Intent(getApplicationContext(), ProfileEditActivity.class);\n intent.putExtra(\"userName\", userName);\n startActivity(intent);\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n }\n }", "public void editOperation() {\n\t\t\r\n\t}", "@GetMapping(\"/carsAndCustomers/customer/edit/{id}\")\n public String editForm(@PathVariable(\"id\") Integer id, Model model) {\n Customer customer = customerRepository.getOne(id);\n model.addAttribute(\"customer\", customer);\n return \"fragments/editCustomerForm :: editCustomerForm\";\n\n }", "public String toEdit() {\n\t\t HttpServletRequest request = (HttpServletRequest) FacesContext\n\t\t\t\t\t.getCurrentInstance().getExternalContext().getRequest();\n\t\t\t String idf = request.getParameter(\"idf\");\n\t log.info(\"----------------------------IDF--------------\"+idf);\n\t\t\treturn \"paramEdit?faces-redirect=true&idf=\"+idf;\n\t\n\t}", "public void editUser(int userId) {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"update t_user set nom=?,prenom=?,userName=?,pass=?,tel=?,type=? where=?\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setInt(7,userId);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().information(\"modification d'utilisateur fini avec succes\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec de modification d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void performAction(User user) {\r\n\t\tif(user != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tDatabaseOperation databaseOperation = new DatabaseOperation();\r\n\t\t\t\tint selection = JOptionPane.showConfirmDialog(this, \"Do you want to edit this user?\", \"Confirm action\", JOptionPane.YES_NO_CANCEL_OPTION);\r\n\t\t\t\tif(selection == JOptionPane.YES_OPTION)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(databaseOperation.updateInformation(user, this.user.getUsername()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"User edited successfuly\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tedited = true;\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"There was a problem editing this user. Try again.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(selection == JOptionPane.NO_OPTION) {\r\n\t\t\t\t\tclose();\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"It was not possible to stablish a connection with the database\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tclose();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"edit/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView edit(@ModelAttribute Person editedPerson, @PathVariable int id) \r\n\t{\r\n\t\tpersonService.updatePerson(editedPerson);\r\n\t\treturn new ModelAndView(\"addEditConfirm\", \"person\", editedPerson);\r\n\t}", "public edit() {\n initComponents();\n }", "EditAccountPage openEditAccountPageByLoginID(String loginID) throws NoSuchElementException;" ]
[ "0.768036", "0.76503664", "0.7285307", "0.7264958", "0.7183158", "0.7160888", "0.71312666", "0.7112695", "0.7018265", "0.7007902", "0.69020116", "0.68900967", "0.68598175", "0.68591803", "0.68417925", "0.6814531", "0.67915946", "0.6762981", "0.6740516", "0.6729745", "0.67163765", "0.67027676", "0.6667476", "0.66477627", "0.6615674", "0.6612223", "0.66063714", "0.6575419", "0.65557325", "0.6544931", "0.65448904", "0.650397", "0.6502152", "0.6501647", "0.6458101", "0.64410484", "0.638016", "0.63636094", "0.63226104", "0.63207996", "0.6301611", "0.62823796", "0.62759256", "0.62473524", "0.6236908", "0.62204", "0.6215106", "0.6190618", "0.6182955", "0.6169598", "0.6152112", "0.61404985", "0.6134956", "0.61243165", "0.6122608", "0.6119848", "0.6114431", "0.6091311", "0.6088134", "0.60753375", "0.60683835", "0.6064169", "0.6063593", "0.606331", "0.60589176", "0.60551095", "0.604749", "0.6039105", "0.6029901", "0.602386", "0.60213256", "0.60123086", "0.6001565", "0.59817857", "0.59688026", "0.596828", "0.5968057", "0.5953714", "0.5951974", "0.594431", "0.59404683", "0.5940038", "0.59297407", "0.5922223", "0.59054404", "0.5905417", "0.58997357", "0.5898913", "0.58972603", "0.58890307", "0.58813417", "0.5874905", "0.5874606", "0.58731085", "0.58642256", "0.58630985", "0.58572185", "0.58074707", "0.5806846", "0.58050525" ]
0.5929876
82
TODO Autogenerated method stub
@Override public void dispose() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void resume() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Set Partner Relation. Business Partner Relation
public void setC_BP_Relation_ID(int C_BP_Relation_ID) { if (C_BP_Relation_ID < 1) throw new IllegalArgumentException("C_BP_Relation_ID is mandatory."); set_ValueNoCheck("C_BP_Relation_ID", new Integer(C_BP_Relation_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public A getPartner(){\n return partner;\n }", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "public Edge partner(){\n\t\treturn partner;\n\t}", "public void setCsRelationship(Object endNode, BioRelTypes relType) {\n if (csRelationship == null) {\n csRelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n csRelationship.add(rel);\n }", "public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);", "public void onRelationshipChanged();", "public void setInRelation(String R, int... elements) {\n if (R.equals(\"E\")) { E.addEdge(elements[0], elements[1]); return; }\n this.relations.get(R).set(getIndex(elements));\n }", "@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "Relation createRelation();", "Relationship createRelationship();", "@Override\n\tpublic Partner updatePartner(Users user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Partner createPartner(Users user) {\n\t\treturn null;\n\t}", "public PointRelation pointSegmentRelation(Coordinates point, Coordinates segmExtremityA, Coordinates segmExtremityB);", "public void setRelatedTo(java.lang.String value);", "public void setRelateToPassenger(Integer relateToPassenger) {\r\n this.relateToPassenger = relateToPassenger;\r\n }", "void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations);", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "public RelationshipNode( metamodel.Relationship r ) {\n this.relationship = r;\n }", "LinkRelation createLinkRelation();", "void addRelation(IViewRelation relation);", "public void setSubNet(PetriNetModel m) {\n //subModel = m;\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setIsARelationship(Object endNode, BioRelTypes relType) {\n if (isARelationship == null) {\n isARelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n isARelationship.add(rel);\n }", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "public String getPartnerid() {\n return partnerid;\n }", "@Query(\"MATCH(sp:ServiceProvider),(r:Roles) WHERE sp.email={email} and r.roleName={roleName} CREATE (sp)<-[p:played_by]-(r) RETURN sp\")\n public ServiceProvider setPlayedByRelation(@Param(\"email\") String email, @Param(\"roleName\") String roleName);", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void setPeer(Peer peer);", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "private void setPeerState(long proposedLeader, SyncedLearnerTracker voteSet) {\n ServerState ss = (proposedLeader == self.getMyId()) ? ServerState.LEADING : learningState();\n self.setPeerState(ss);\n if (ss == ServerState.LEADING) {\n leadingVoteSet = voteSet;\n }\n }", "public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public void setupRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasFrom() || !relation.hasTo() || !relation.hasNature()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Verify that the from or to is the user making the request\n\t\tif (!(relation.getFrom().equals(userJID) || relation.getTo().equals(userJID))) {\n\t\t\tthrow new InvalidRelationException(\"Must be part of the relation to create it\");\n\t\t}\n\n\t\t// Assign a unique ID to this new relation\n\t\trelation.setId(DefaultAtomHelper.generateId());\n\n\t\t// Set the request status\n\t\trelation.setStatus(Relation.Status.REQUEST);\n\n\t\t// We store the relation for requestor\n\t\trelation.setOwner(userJID);\n\n\t\t// Persist the relation\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(relation);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\trelation.setAclRules(null);\n\t\trelation.setComment(null);\n\t\tnotify(userJID, relation);\n\t}", "void addConstraintRelation(IViewRelation relation);", "public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void setRelProductId(int v) throws TorqueException\n {\n \n if (this.relProductId != v)\n {\n this.relProductId = v;\n setModified(true);\n }\n \n \n if (aProductRelatedByRelProductId != null && !(aProductRelatedByRelProductId.getProductId() == v))\n {\n aProductRelatedByRelProductId = null;\n }\n \n }", "public void setInvolvedPerson( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}", "public followerRelation(User follower, User followee) {\n this.follower = follower;\n this.followee = followee;\n }", "@Override\n\tpublic boolean enablePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}", "public void setC_BPartnerRelation_ID(int C_BPartnerRelation_ID) {\n\t\tif (C_BPartnerRelation_ID < 1)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"C_BPartnerRelation_ID is mandatory.\");\n\t\tset_Value(\"C_BPartnerRelation_ID\", new Integer(C_BPartnerRelation_ID));\n\t}", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}", "public newRelationship() {\n initComponents();\n }", "ExternalInterface getPartnerSideB();", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "public void validate() {\r\n super.validate();\r\n\r\n if (!isReferenced()) {\r\n getReporter().reportProblem(BPEL_PARTNER_LINK_NOT_USED_CODE,\r\n WARNING_PARTNER_LINK_NOT_USED,\r\n new String[]{getDef().getName()}, getDef());\r\n }\r\n\r\n // check that the partner link type exists\r\n if (getPartnerLinkType() == null) {\r\n addTypeNotFoundError(ERROR_PARTNER_LINK_TYPE_NOT_FOUND, getDef().getPartnerLinkTypeName());\r\n return;\r\n }\r\n\r\n // validate the roles, if defined.\r\n if (hasMyRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getMyRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getMyRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setMyRolePortTypeDef(findPortType(role));\r\n }\r\n }\r\n\r\n if (hasPartnerRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getPartnerRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getPartnerRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setPartnerRolePortTypeDef(findPortType(role));\r\n }\r\n } else {\r\n // if it doesn't have a partner role then it shouldn't have the\r\n // intializePartnerRole attribute\r\n if (getDef().getInitializePartnerRole() != null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_INIT_PARTNER_ROLE_NOT_ALLOWED_CODE,\r\n ERROR_INIT_PARTNER_ROLE_NOT_ALLOWED,\r\n new String[]{getDef().getName()},\r\n getDef());\r\n }\r\n }\r\n\r\n validatePartnerLinkUsers();\r\n }", "void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );", "public PreferenceBean setPersonnelBean(PreferenceBean pObject,PersonnelBean pObjectToBeSet)\n {\n pObject.setRegbyid(pObjectToBeSet.getPersonnelid());\n return pObject;\n }", "String getRefPartnerSideB();", "private void createMemberRelation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getMemberOfChatrooms();\n\t\tList<User> users = chatroom.getMembers();\n\t\tList<Membership> memberships = user.getMemberships();\n\n\t\t// add the chatroom to user's list of chatrooms he is member of\n\t\tchatrooms.add(chatroom);\n\t\t// add user to chatrooms list of members\n\t\tusers.add(user);\n\t\t// create a membership relation entity for the user\n\t\tMembership membership = new Membership(user, chatroom);\n\t\tmemberships.add(membership);\n\n\t\t// save the chatroom, and its relations\n\t\tchatroomRepository.save(chatroom);\n\t\t// save the user to preserve relations\n\t\tuserRepository.save(user);\n\t}", "public void receiveResultpFT_Member_Relationship(\n com.xteam.tourismpay.PFTMXStub.PFT_Member_RelationshipResponse result) {\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "public void setRELATION_ID(java.lang.String RELATION_ID) {\r\n this.RELATION_ID = RELATION_ID;\r\n }", "public void setParty(Party party) {\n this.party = party;\n }", "public String setToRelationship(Context context,\r\n\t\t\tjava.lang.String relID, String targetrelationshipId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n\r\n \tString connId = null;\r\n \t//StringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n\r\n try\r\n {\r\n \t//sbCmd.append(\"mod connection \\\"\");\r\n \tsbCmd2.append(\"mod connection $1 \");\r\n \t//sbCmd.append(relID);\r\n \tif(isFrom)\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" fromrel \\\"\");\r\n \t\tsbCmd2.append(\" fromrel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n \t}\r\n \telse\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" torel \\\"\");\r\n \t\tsbCmd2.append(\" torel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n\r\n \t}\r\n \t//sbCmd.append(\"\\\" select id dump;\");\r\n \tsbCmd2.append(\" select $3 dump\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relID,targetrelationshipId,\"id\");\r\n }\r\n catch (Exception e)\r\n {\r\n throw new FrameworkException(e);\r\n }\r\n\r\n\t\treturn connId;\r\n }", "public void setFriendRelationship(boolean friendRelationship) {\n this.friendRelationship = friendRelationship;\n }", "boolean hasRelation();", "public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }", "public int getC_BPartnerRelation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}", "public void setFatherSide(Person currPerson) {\n\n if(currPerson.getFatherID() != null) {\n Person father = people.get(currPerson.getFatherID());\n paternalAncestorsMales.add(father.getPersonID());\n childrenMap.put(currPerson.getFatherID(), currPerson);\n\n setFatherSide(father);\n }\n\n if(currPerson.getMotherID() != null) {\n Person mother = people.get(currPerson.getMotherID());\n paternalAncestorsFemales.add(mother.getPersonID());\n childrenMap.put(currPerson.getMotherID(), currPerson);\n\n setFatherSide(mother);\n }\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "boolean isSetFurtherRelations();", "@Override\r\n\tpublic int setIndividualObjectProPerty(String individualName_1,\r\n\t\t\tString individualName_2, String relation) {\n\t\tsynchronized (token) {\r\n\t\t\treturn super.setOWLIndividualObjectProPerty(individualName_1,\r\n\t\t\t\t\tindividualName_2, relation);\r\n\t\t}\r\n\t}", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "EReference getRelationReference();", "public void setRelations(org.LexGrid.relations.Relations[] relations) {\n this.relations = relations;\n }", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "public void nouvelleRelation(String formule,String commentaire, EOGenericRecord ecEnCours) {\r\n\t\tEOClassDescription descriptionIPrelation = EOClassDescription.classDescriptionForEntityName(\"IpRelationChoixEc\");\r\n\t\tEOGenericRecord nouvIpRelation=(EOGenericRecord)descriptionIPrelation.createInstanceWithEditingContext(null, null);\r\n\r\n\t\tmonEcSsShared.insertObject(nouvIpRelation);\r\n\t\tnouvIpRelation.takeValueForKey(formule,\"rceFormuleContrainte\");\t// normallement la clé primaire est attribuée d'office\r\n\t\tnouvIpRelation.takeValueForKey(commentaire,\"rceCommentaireContrainte\");\r\n\t\tSystem.out.println(\"ecEnCours ::::::::: \" + ecEnCours);\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"fannKey\"), \"fannKey\");\r\n\t\tnouvIpRelation.takeValueForKey(ecEnCours.valueForKey(\"mrecKey\"), \"mrecKeyCible\");\r\n\t\tnouvIpRelation.takeValueForKey(eoDiplSelected.valueForKey(\"msemKey\"), \"msemKey\");\r\n\t\tnouvIpRelation.takeValueForKey(\"L\", \"rceTypeRelation\");\r\n\t\tmonEcSsShared.saveChanges();\r\n\t}", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();", "void onDependencyRelation( DependencyRelation relation );", "public followerRelation(Long followerId, Long followeeId) {\n this.follower = User.findById(followerId);\n this.followee = User.findById(followeeId);\n }", "@Ignore\r\n @Test\r\n public void testSetDirection() {\r\n System.out.println(\"testSetDirection()\");\r\n Relation instance = new Relation(\"singer\");\r\n instance.setDirection(Relation.OUT);\r\n }", "AdPartner updateAdPartner(AdPartner adPartner);", "public Relationship createRelationshipTo( Node otherNode, \n \t\tRelationshipType type );" ]
[ "0.59965795", "0.59794307", "0.5977698", "0.5977698", "0.57712716", "0.5691915", "0.56808746", "0.5676982", "0.56048", "0.56008935", "0.55990034", "0.5578957", "0.5577595", "0.5562125", "0.55545896", "0.5551928", "0.55309016", "0.55274576", "0.55274576", "0.5428701", "0.5425857", "0.5413448", "0.54085183", "0.53714937", "0.53519124", "0.5346456", "0.53342503", "0.5328272", "0.5327552", "0.5323022", "0.5302142", "0.5284796", "0.52724767", "0.5270322", "0.5252613", "0.5250511", "0.5231148", "0.5214639", "0.52116334", "0.52114236", "0.52074534", "0.51974714", "0.5190058", "0.5179674", "0.51766217", "0.5172492", "0.51656544", "0.51432216", "0.51375985", "0.5132753", "0.5129866", "0.5098568", "0.50984895", "0.50907487", "0.5088302", "0.50871116", "0.5079168", "0.5063762", "0.5047293", "0.5046796", "0.50459206", "0.50369763", "0.5029883", "0.50260055", "0.5016078", "0.50105625", "0.50062764", "0.5000586", "0.49916056", "0.4988749", "0.49773985", "0.4955205", "0.4950455", "0.4940628", "0.4934909", "0.4932385", "0.4932333", "0.49242923", "0.49185136", "0.49131575", "0.49115238", "0.4907588", "0.49013236", "0.4901018", "0.4900597", "0.48882964", "0.48831025", "0.48823774", "0.48805293", "0.4875246", "0.48748767", "0.4872444", "0.48671243", "0.48502252", "0.48442718", "0.48387504", "0.48368573", "0.48356053", "0.48348635", "0.48302025", "0.4829629" ]
0.0
-1
Get Partner Relation. Business Partner Relation
public int getC_BP_Relation_ID() { Integer ii = (Integer) get_Value("C_BP_Relation_ID"); if (ii == null) return 0; return ii.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRefPartnerSideA();", "String getRefPartnerSideB();", "public abstract RelationDeclaration getRelation();", "public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;", "public A getPartner(){\n return partner;\n }", "public Edge partner(){\n\t\treturn partner;\n\t}", "public ObjectProp getRelationship() {\n return relationship;\n }", "ContextRelation getContextRelation();", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public String getInverseRelationshipName ();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations getFurtherRelations();", "EReference getRelationReference();", "public String getRelation() {\n return relation;\n }", "boolean hasRelation();", "ExternalInterface getPartnerSideB();", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "public RelationManager getRelationManager();", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }", "public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }", "public Relation getRelation(String relationName);", "@Override\n\tpublic List<PersonRelation> getPersonRelation(PersonRelation personRelation) {\n\t\treturn null;\n\t}", "public int getC_BPartnerRelation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String get_relation() {\n\t\treturn relation;\n\t}", "ExternalInterface getPartnerSideA();", "public abstract List<AbstractRelationshipTemplate> getIngoingRelations();", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "Relation createRelation();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}", "public Integer getRelateToPassenger() {\r\n return relateToPassenger;\r\n }", "LinkRelation createLinkRelation();", "public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();", "@Override\n\tpublic List<PersonRelation> getPersonRelationByrelatedPerson(\n\t\t\tPerson relatedPerson) {\n\t\treturn null;\n\t}", "public Set<Relation> getRelations();", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "public String[] listRelations();", "public void receiveResultpFT_Member_Relationship(\n com.xteam.tourismpay.PFTMXStub.PFT_Member_RelationshipResponse result) {\n }", "public Relation getRelation(XDI3Segment arcXri);", "@Override\n\tpublic List<PersonRelation> getPersonRelationByPerson(Person person) {\n\t\treturn null;\n\t}", "public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }", "public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }", "public int getRelationNo() {\n return _relationNo;\n }", "protected IAePartnerLinkType getPartnerLinkType() {\r\n return getDef().getPartnerLinkType();\r\n }", "public String getPartnerid() {\n return partnerid;\n }", "Relations getGroupOfRelations();", "public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}", "public Long getRelateId() {\n return relateId;\n }", "AdPartner getAdPartnerByName(String partnerName);", "public CodeableConcept relationship() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_RELATIONSHIP);\n }", "String findRelation(String person1, String person2);", "public abstract String getBelongsToPersonOrDepartment();", "@Override\n\tpublic PersonRelation getPersonRelationById(int personRelationId) {\n\t\treturn null;\n\t}", "Party getParty();", "Relationship createRelationship();", "public Participant getParticipant ()\r\n {\r\n return participant_;\r\n }", "java.lang.String getParticipant();", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "List<IViewRelation> getViewRelations();", "private Collection<EaterRelation> getRelations(Eater ofUser) {\n Conjunction pendingFriend = Restrictions.conjunction();\n pendingFriend.add(Restrictions.eq(EaterRelation.TO_USER, ofUser));\n Disjunction inOr = Restrictions.disjunction();\n inOr.add(pendingFriend);\n inOr.add(Restrictions.eq(EaterRelation.FROM_USER, ofUser));\n List<EaterRelation> results = findByCriteria(inOr);\n return results;\n }", "public ReadOnlyIterator<Relation> getIncomingRelations();", "Party getOrganizationParty();", "public String toStringWithRelation();", "DevelopmentMethod getRelatedMethod();", "public static com.matisse.reflect.MtRelationship getGestionaRelationship(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtRelationship)db.getCachedObject(gestionaCID);\n }", "protected VertexRelation getProteinsRelation(VertexObject proteinVertex, VertexObject relatedVertex) {\n Map<VertexObject, VertexRelation> relationsMap = proteinRelationMaps.get(proteinVertex);\n if (relationsMap == null) {\n relationsMap = createProteinsRelationsMap(proteinVertex);\n proteinRelationMaps.put(proteinVertex, relationsMap);\n }\n \n if (relationsMap != null) {\n return relationsMap.get(relatedVertex);\n } else {\n return null;\n }\n }", "public Relation getRelation(int user_num){\n\t\treturn (this.vector[user_num]);\n\t}", "public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "List<ObjectRelation> getObjectRelations(int otId) throws AccessDeniedException;", "public tudresden.ocl20.core.jmi.uml15.core.Classifier getParticipant()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getParticipant(this.refMofId());\n \t} \n \t\n\t\treturn super_getParticipant();\t\n }", "public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "AdPartner getAdPartnerById(Long id);", "@Dump(compound = true)\n public BwRelatedTo getRelatedTo() {\n return relatedTo;\n }", "public List<Partner> getListaPartners() {\n return null;\n }", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "private List<Register[]> getJoinPartners(Register[] right) {\n return leftMap.get(right[rightJoinAttributeIndex].getObject());\n }", "KdmRelationsFactory getKdmRelationsFactory();", "PartyType getConsignorParty();", "public String getPartnerName() {\n\t\treturn partnerName;\n\t}", "public boolean isFriendRelationship() {\n return friendRelationship;\n }", "public PointRelation pointSegmentRelation(Coordinates point, Coordinates segmExtremityA, Coordinates segmExtremityB);", "public Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "TypeAssociation getEstRapporteeParRapport();", "public Iterable<Relationship> getRelationships();", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}", "public ReadOnlyIterator<Relation> getRelations();", "public String getRelationPropertyName() {\n return getForeignPropertyName();\n }", "public String toStringPrologFormatListRelationship()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Relationship Re : this.listRelationship)\r\n\t\t{\r\n\t\t\toutput += Re.toStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}", "public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }", "@Override\n\tpublic List<CallDetail> loadServiceRelationDetectedAtClientSide(long startTB, long endTB) throws IOException {\n\t\treturn null;\n\t}", "public Deplacement getProchainMouvement();", "List<IViewRelation> getConstraintRelations();", "TypeAssociationEXT getConcerneUniteUnite();", "public String getInverseRelationshipName ()\n\t{\n\t\treturn getRelationshipImpl().getInverseRelationshipName();\n\t}", "public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }", "protected Relation findExistingRelation(String reqInfoId, String partyId, NbaTXLife nbaTXLife) {\n \tOLifE olife = nbaTXLife.getOLifE(); \n Relation relation = null;\n int relationCount = olife.getRelationCount();\n for (int index = 0; index < relationCount; index++) {\n relation = olife.getRelationAt(index);\n if (reqInfoId.equals(relation.getOriginatingObjectID()) && partyId.equals(relation.getRelatedObjectID())) {\n return relation;\n }\n }\n return null;\n }" ]
[ "0.6486795", "0.6484751", "0.63659996", "0.62817055", "0.6268211", "0.62092197", "0.61804754", "0.6158849", "0.6095285", "0.6095285", "0.60535884", "0.60135645", "0.60115665", "0.596497", "0.593603", "0.5934104", "0.59304434", "0.5917785", "0.58953714", "0.5857935", "0.5854551", "0.5830477", "0.58139694", "0.5793082", "0.5788913", "0.5786346", "0.57738256", "0.5772682", "0.57446855", "0.57398343", "0.5739365", "0.5738213", "0.5726561", "0.5713672", "0.5689223", "0.56759495", "0.56718683", "0.5610586", "0.5580293", "0.55791456", "0.55717707", "0.5560434", "0.5533229", "0.553082", "0.552878", "0.5520082", "0.5513861", "0.55130464", "0.55090326", "0.54451567", "0.5431792", "0.54278284", "0.5427439", "0.54238975", "0.5416617", "0.5415655", "0.54028046", "0.53988534", "0.5382188", "0.5365322", "0.5359136", "0.5359115", "0.53453374", "0.5343032", "0.53312314", "0.5325865", "0.5323516", "0.5299594", "0.5295307", "0.5279164", "0.5277568", "0.52677935", "0.5266464", "0.52597463", "0.52570736", "0.52503943", "0.52339935", "0.5233777", "0.52313673", "0.5218883", "0.5215312", "0.5214063", "0.5209093", "0.5205763", "0.5202639", "0.5201466", "0.5198178", "0.5194928", "0.51944077", "0.51914823", "0.5186824", "0.51851517", "0.5175825", "0.51705027", "0.51569337", "0.515035", "0.51491827", "0.5144534", "0.5144237", "0.51427895", "0.5134263" ]
0.0
-1
Set Related Partner. Related Business Partner
public void setC_BPartnerRelation_ID(int C_BPartnerRelation_ID) { if (C_BPartnerRelation_ID < 1) throw new IllegalArgumentException( "C_BPartnerRelation_ID is mandatory."); set_Value("C_BPartnerRelation_ID", new Integer(C_BPartnerRelation_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "public void setRelatedTo(java.lang.String value);", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "public A getPartner(){\n return partner;\n }", "public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }", "public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}", "public void setC_BPartner_ID (int C_BPartner_ID);", "void setAssociatedObject(IEntityObject relatedObj);", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "public Edge partner(){\n\t\treturn partner;\n\t}", "@Override\n\tpublic Partner updatePartner(Users user) {\n\t\treturn null;\n\t}", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "public String getPartnerid() {\n return partnerid;\n }", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public PreferenceBean setPersonnelBean(PreferenceBean pObject,PersonnelBean pObjectToBeSet)\n {\n pObject.setRegbyid(pObjectToBeSet.getPersonnelid());\n return pObject;\n }", "public void setRelateToPassenger(Integer relateToPassenger) {\r\n this.relateToPassenger = relateToPassenger;\r\n }", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "public com.nss.portlet.partner.model.Partner update(\n com.nss.portlet.partner.model.Partner partner, boolean merge)\n throws com.liferay.portal.SystemException;", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n\tpublic boolean enablePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void setParty(Party party) {\n this.party = party;\n }", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "AdPartner updateAdPartner(AdPartner adPartner);", "public void setInvolvedPerson(InvolvedPerson value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}", "public void setInvolvedPerson( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}", "@Override\n\tpublic Partner createPartner(Users user) {\n\t\treturn null;\n\t}", "public void setRelProductId(int v) throws TorqueException\n {\n \n if (this.relProductId != v)\n {\n this.relProductId = v;\n setModified(true);\n }\n \n \n if (aProductRelatedByRelProductId != null && !(aProductRelatedByRelProductId.getProductId() == v))\n {\n aProductRelatedByRelProductId = null;\n }\n \n }", "private void setFromModelInternal(CriterionModel other)\n {\n Criteria domainModel = new Criteria();\n other.updateDomainModel(domainModel);\n set(domainModel);\n }", "public void onRelationshipChanged();", "public void setProductRelatedByProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setProductId( 1000);\n }\n else\n {\n setProductId(v.getProductId());\n }\n aProductRelatedByProductId = v;\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "@Override\n public void editParticipant(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"editParticipant\");\n }\n\n renderAddPanel = true;\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class, cp.getId());\n }", "public void setPartner(\r\n @NonNull\r\n final List<SalesOrderHeaderPartner> value) {\r\n if (toPartner == null) {\r\n toPartner = Lists.newArrayList();\r\n }\r\n toPartner.clear();\r\n toPartner.addAll(value);\r\n }", "public void setProjectRelatedByRelProjectId(Project v) throws TorqueException\n {\n if (v == null)\n {\n setRelProjectId( 999);\n }\n else\n {\n setRelProjectId(v.getProjectId());\n }\n aProjectRelatedByRelProjectId = v;\n }", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "public void setLanguageRelatedByLanguageId(Language v) throws TorqueException\n {\n if (v == null)\n {\n setLanguageId( 1000);\n }\n else\n {\n setLanguageId(v.getLanguageId());\n }\n aLanguageRelatedByLanguageId = v;\n }", "void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations);", "@Transactional\n\tpublic Partner addPartnerGroup(Partner partner, PartnerGroup partnerGroup) {\n\t\treturn null;\n\t}", "@Override\n public void setPartidoId(long partidoId) {\n _partido.setPartidoId(partidoId);\n }", "public void setRelatedGroup(RelatedGroup relatedGroup)\r\n\t{\r\n\t\tthis.relatedGroup = relatedGroup;\r\n\t}", "public void setRelatedWindow(FormWindow relatedWindow);", "public void setAD_Tree_BPartner_ID(int AD_Tree_BPartner_ID) {\n\t\tif (AD_Tree_BPartner_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", new Integer(\n\t\t\t\t\tAD_Tree_BPartner_ID));\n\t}", "public void assignLane() {\n\t\tIterator<Lane> it = lanes.iterator();\n\n\t\twhile (it.hasNext() && partyQueue.getPartyQueue().hasMoreElements()) {\n\t\t\tLane curLane = it.next();\n\n\t\t\tif (!curLane.isPartyAssigned()) {\n\t\t\t\tSystem.out.println(\"ok... assigning this party\");\n\t\t\t\tcurLane.assignParty(((Party) partyQueue.getPartyQueue().next()));\n\t\t\t}\n\t\t}\n\t\tif (cdView != null)\n\t\t\tcdView.receiveControlDeskEvent(new ControlDeskEvent(partyQueue.getPartyQueueDisplay()));\n\t}", "public String partnerNodeId() {\n return this.partnerNodeId;\n }", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Partner)) {\n return false;\n }\n Partner other = (Partner) object;\n if ((this.partnerId == null && other.partnerId != null) || (this.partnerId != null && !this.partnerId.equals(other.partnerId))) {\n return false;\n }\n return true;\n }", "void updatePartyLeaderId(final String accountId, final Jid from);", "private void setPeerState(long proposedLeader, SyncedLearnerTracker voteSet) {\n ServerState ss = (proposedLeader == self.getMyId()) ? ServerState.LEADING : learningState();\n self.setPeerState(ss);\n if (ss == ServerState.LEADING) {\n leadingVoteSet = voteSet;\n }\n }", "public void setLanguageRelatedByCustLanguageId(Language v) throws TorqueException\n {\n if (v == null)\n {\n setCustLanguageId( 999);\n }\n else\n {\n setCustLanguageId(v.getLanguageId());\n }\n aLanguageRelatedByCustLanguageId = v;\n }", "@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }", "void setAssociatedPart(int asProID) {\n this.asProID = asProID;\n }", "public String getPartnerName() {\n\t\treturn partnerName;\n\t}", "Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void setOther( Node other ) {\n Change change;\n if ( other.isConnector() && getFlow().hasConnector() ) {\n Connector connector = (Connector) other;\n Flow need = isSend() ? connector.getInnerFlow() : getFlow();\n Flow capability = isSend() ? getFlow() : connector.getInnerFlow();\n change = doCommand( new SatisfyNeed( getUser().getUsername(), need,\n capability,\n SatisfyNeed.KEEP_CAPABILITY,\n SatisfyNeed.KEEP_NEED ) );\n } else {\n change = doCommand( new RedirectFlow( getUser().getUsername(), getFlow(), other, isSend() ) );\n }\n Flow newFlow = (Flow) change.getSubject( getQueryService() );\n if ( newFlow != null ) { // TODO Find out why this has happened...\n // requestLockOn( newFlow );\n setFlow( newFlow );\n }\n }", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "public void setPersonnelArea(String personnelArea);", "public void setPersonnelSubArea(String personnelSubArea);", "@Override\r\n\tpublic void setForHobby(DriverVO driverVO) {\n\t\t\r\n\t}", "public void setCsRelationship(Object endNode, BioRelTypes relType) {\n if (csRelationship == null) {\n csRelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n csRelationship.add(rel);\n }", "public void validate() {\r\n super.validate();\r\n\r\n if (!isReferenced()) {\r\n getReporter().reportProblem(BPEL_PARTNER_LINK_NOT_USED_CODE,\r\n WARNING_PARTNER_LINK_NOT_USED,\r\n new String[]{getDef().getName()}, getDef());\r\n }\r\n\r\n // check that the partner link type exists\r\n if (getPartnerLinkType() == null) {\r\n addTypeNotFoundError(ERROR_PARTNER_LINK_TYPE_NOT_FOUND, getDef().getPartnerLinkTypeName());\r\n return;\r\n }\r\n\r\n // validate the roles, if defined.\r\n if (hasMyRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getMyRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getMyRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setMyRolePortTypeDef(findPortType(role));\r\n }\r\n }\r\n\r\n if (hasPartnerRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getPartnerRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getPartnerRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setPartnerRolePortTypeDef(findPortType(role));\r\n }\r\n } else {\r\n // if it doesn't have a partner role then it shouldn't have the\r\n // intializePartnerRole attribute\r\n if (getDef().getInitializePartnerRole() != null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_INIT_PARTNER_ROLE_NOT_ALLOWED_CODE,\r\n ERROR_INIT_PARTNER_ROLE_NOT_ALLOWED,\r\n new String[]{getDef().getName()},\r\n getDef());\r\n }\r\n }\r\n\r\n validatePartnerLinkUsers();\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();", "public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "public void setLead(Account lead) {\r\n this.lead = lead;\r\n }", "public static void setInvolvedPerson( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, INVOLVEDPERSON, value);\r\n\t}", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "public void setOwner(RMParentShape anObj) { _owner = anObj; }", "@Override\n public void saveVegetarianChange(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"saveVegetarianChange\");\n }\n if (cp == null) {\n LOG.warn(\"saveVegetarianChange : ConnectathonParticipant is null \");\n return;\n }\n\n entityManager.merge(cp);\n entityManager.flush();\n\n }", "public void updateRoomPartner(Room cR) {\n currentRoom = cR;\n if(manager.getCharacterList().size() > 1 && owPosition == OWPosition.OWPOSITION_FRONT) {\n partner = manager.getCharacter(1);\n }\n else if(manager.getCharacterList().size() > 1 && owPosition == OWPosition.OWPOSITION_BACK) {\n partner = manager.getCharacter(0);\n }\n }", "private void changingRelations(LosConfigDetails owner, LosConfigDetails owned, LosConfigDetails subsidary,\n\t\t\tString commercialSuffix, List<String> childIds, ParentEntityNode parent) {\n\t\tparent.setChildren(Arrays.asList());\n\t\tchildIds.add(parent.getChildId());\n\t\tLong relationId = getConfigId(parent);\n\t\tif ((long) relationId == LOSEntityConstants.OWNER && parent.getParentId().endsWith(commercialSuffix)\n\t\t\t\t&& parent.getChildId().endsWith(commercialSuffix)) {\n\t\t\tparent.setLosConfigDetails(subsidary);\n\t\t} else if ((long) relationId == LOSEntityConstants.OWNER) {\n\t\t\tparent.setLosConfigDetails(owned);\n\t\t} else if ((long) relationId == LOSEntityConstants.OWNED) {\n\t\t\tparent.setLosConfigDetails(owner);\n\t\t} else if ((long) relationId == LOSEntityConstants.SUBSIDIARY) {\n\t\t\tparent.setLosConfigDetails(owner);\n\t\t}\n\t}", "@Override\n\tpublic void setEmployeeProofId(long employeeProofId) {\n\t\t_candidate.setEmployeeProofId(employeeProofId);\n\t}", "IPayerEntry setCoveredParty(ICoveredParty value);", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "public void setSubNet(PetriNetModel m) {\n //subModel = m;\n }", "@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }", "@Override\n\tpublic boolean disablePartner(Partner partner) {\n\t\treturn false;\n\t}", "ExternalInterface getPartnerSideB();", "public void setOther(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other other)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other)get_store().find_element_user(OTHER$18, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other)get_store().add_element_user(OTHER$18);\r\n }\r\n target.set(other);\r\n }\r\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void xsetPart(org.apache.xmlbeans.XmlNCName part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);\n }\n target.set(part);\n }\n }", "@Schema(description = \"Parties who manage or otherwise have an interest in this entity specification\")\n\t@Valid\n\tpublic Set<RelatedParty> getRelatedParty() {\n\t\treturn relatedParty;\n\t}", "public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}", "private void updateAssignedPO() {\n Organisation organisation = PersistenceManager.getCurrent().getCurrentModel();\n\n Person productOwner = getModel().getAssignedPO();\n\n // Add all the people with the PO skill to the list of POs\n List<Person> productOwners = organisation.getPeople()\n .stream()\n .filter(p -> p.canBeRole(Skill.PO_NAME))\n .collect(Collectors.toList());\n\n // Remove listener while editing the product owner picker\n poComboBox.getSelectionModel().selectedItemProperty().removeListener(getChangeListener());\n poComboBox.getItems().clear();\n poComboBox.getItems().addAll(productOwners);\n if (poComboBox != null) {\n poComboBox.getSelectionModel().select(productOwner);\n if (!isCreationWindow) {\n navigateToPOButton.setDisable(false);\n }\n }\n poComboBox.getSelectionModel().selectedItemProperty().addListener(getChangeListener());\n }", "public void setPeer(Peer peer);", "@Override\r\n public void setCorporation(String corporation) {\n }", "public void setChatPartner(String chatPartner, View view) {\n if (chatPartner == null || view == null) {\n return;\n }\n this.chatPartner = chatPartner;\n ((MainActivity) getActivity()).changeTitle(chatPartner);\n\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setFatherSide(Person currPerson) {\n\n if(currPerson.getFatherID() != null) {\n Person father = people.get(currPerson.getFatherID());\n paternalAncestorsMales.add(father.getPersonID());\n childrenMap.put(currPerson.getFatherID(), currPerson);\n\n setFatherSide(father);\n }\n\n if(currPerson.getMotherID() != null) {\n Person mother = people.get(currPerson.getMotherID());\n paternalAncestorsFemales.add(mother.getPersonID());\n childrenMap.put(currPerson.getMotherID(), currPerson);\n\n setFatherSide(mother);\n }\n }", "@Override\n public void saveConnectathonParticipantStatus(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"saveConnectathonParticipantStatus\");\n }\n if (cp == null) {\n LOG.warn(\"saveConnectathonParticipantStatus : ConnectathonParticipant is null \");\n return;\n }\n\n entityManager.merge(cp);\n entityManager.flush();\n\n }", "public void setParty( EAIMMCtxtIfc theCtxt, com.dosmil_e.mall.core.ifc.MallPartyIfc theParty) throws EAIException;" ]
[ "0.6547224", "0.6547224", "0.63846475", "0.61902064", "0.6062849", "0.60577774", "0.59716564", "0.5871792", "0.5869052", "0.5836925", "0.58176935", "0.5766031", "0.5766031", "0.5687918", "0.5648356", "0.56214666", "0.5614324", "0.5606042", "0.56043386", "0.5601651", "0.55897725", "0.553528", "0.5478691", "0.54515415", "0.5439851", "0.5365125", "0.53638947", "0.53338104", "0.52911305", "0.5258895", "0.52424234", "0.52309704", "0.5226601", "0.51924866", "0.51904124", "0.51837367", "0.5134089", "0.5128164", "0.5119522", "0.51063305", "0.51052773", "0.50976443", "0.50972843", "0.5096013", "0.5086347", "0.5084797", "0.5082232", "0.50798464", "0.50781256", "0.506913", "0.5052969", "0.504113", "0.50206614", "0.5017639", "0.5011755", "0.49944618", "0.49820367", "0.49803156", "0.49783733", "0.4971901", "0.49686274", "0.4966516", "0.49637416", "0.4940157", "0.49317038", "0.49249503", "0.49247184", "0.49221003", "0.49081114", "0.49061364", "0.48762", "0.48757643", "0.48674637", "0.48578", "0.48563048", "0.48478037", "0.48430043", "0.4841158", "0.4838485", "0.48316127", "0.48218206", "0.4820717", "0.481833", "0.48176146", "0.48117298", "0.48057723", "0.48047036", "0.48019817", "0.47973463", "0.4796934", "0.4793894", "0.47923657", "0.47878093", "0.47796276", "0.4773664", "0.4766329", "0.4759676", "0.47519204", "0.47487763", "0.47448394", "0.47443008" ]
0.0
-1
Get Related Partner. Related Business Partner
public int getC_BPartnerRelation_ID() { Integer ii = (Integer) get_Value("C_BPartnerRelation_ID"); if (ii == null) return 0; return ii.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public A getPartner(){\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public Edge partner(){\n\t\treturn partner;\n\t}", "String getRefPartnerSideB();", "AdPartner getAdPartnerById(Long id);", "ExternalInterface getPartnerSideB();", "public String getPartnerid() {\n return partnerid;\n }", "String getRefPartnerSideA();", "AdPartner getAdPartnerByName(String partnerName);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();", "ExternalInterface getPartnerSideA();", "public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }", "public String getPartnerName() {\n\t\treturn partnerName;\n\t}", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "public Part getOtherPart() {\n Node other = getOther();\n if ( other.isConnector() ) {\n return ( (Connector) other ).getInnerFlow().getLocalPart();\n } else {\n return (Part) other;\n }\n }", "public String partnerNodeId() {\n return this.partnerNodeId;\n }", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "Party getOrganizationParty();", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public List<SalesOrderHeaderPartner> getPartnerOrFetch()\r\n throws ODataException\r\n {\r\n if (toPartner == null) {\r\n toPartner = fetchPartner();\r\n }\r\n return toPartner;\r\n }", "com.google.ads.googleads.v13.resources.AdvertisingPartnerLinkIdentifier getAdvertisingPartner();", "@Dump(compound = true)\n public BwRelatedTo getRelatedTo() {\n return relatedTo;\n }", "public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "public Participant getParticipant ()\r\n {\r\n return participant_;\r\n }", "Party getParty();", "protected IAePartnerLinkType getPartnerLinkType() {\r\n return getDef().getPartnerLinkType();\r\n }", "public List<Partner> getListaPartners() {\n return null;\n }", "public Project getProjectRelatedByRelProjectId() throws TorqueException\n {\n if (aProjectRelatedByRelProjectId == null && (this.relProjectId != 0))\n {\n aProjectRelatedByRelProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.relProjectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.relProjectId);\n obj.addNewslettersRelatedByRelProjectId(this);\n */\n }\n return aProjectRelatedByRelProjectId;\n }", "public tudresden.ocl20.core.jmi.uml15.core.Classifier getParticipant()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getParticipant(this.refMofId());\n \t} \n \t\n\t\treturn super_getParticipant();\t\n }", "Optional<Partner> findById(Long id);", "PartyType getConsigneeParty();", "public VitalWorksite getRelatedWorksite() {\n return question.getRelatedWorksite();\n }", "public Optional<List<SalesOrderHeaderPartner>> getPartnerOrNull() {\r\n return Optional.fromNullable(toPartner);\r\n }", "@Override\n\tpublic Employee findPartner(String name) {\n\t\treturn null;\n\t}", "PartyType getConsignorParty();", "CourseParticipant getCourseParticInOneCourse(UUID courseCourseParticUuid);", "@Override\n\tpublic List<PartnerOrganization> getPartnerOrganizationByPartnerId(\n\t\t\tLong partnerId) {\n\t\ttry {\n\t\t\tQuery query = getEntityManager().createQuery(\n\t\t\t\t\t\"from PartnerOrganization cm \" + \"where cm.partners.primaryId=:primaryId\");\n\t\t\tquery.setParameter(\"primaryId\", partnerId);\n\t\t\treturn query.getResultList();\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public int getC_BPartner_ID();", "int getBelongToPlayer();", "private List<Register[]> getJoinPartners(Register[] right) {\n return leftMap.get(right[rightJoinAttributeIndex].getObject());\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"PRID_ID\")\r\n\tpublic PartidaIndividual getPartidaIndividual() {\r\n\t\treturn this.partidaIndividual;\r\n\t}", "com.google.ads.googleads.v13.resources.DataPartnerLinkIdentifier getDataPartner();", "public List<Partner> getPartners() {\n\t\tList<Partner> sharedPartners = new ArrayList<Partner>();\n\t\tfor(FederationConfiguration config : federationConfigurations) {\n\t\t\tsharedPartners.add(config.getPartner());\n\t\t}\n\t\treturn sharedPartners;\n\t}", "public int getLBR_PartnerDFe_ID();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations getFurtherRelations();", "public ObjectProp getRelationship() {\n return relationship;\n }", "public Product getProductRelatedByRelProductId() throws TorqueException\n {\n if (aProductRelatedByRelProductId == null && (this.relProductId != 0))\n {\n aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.relProductId);\n obj.addNewslettersRelatedByRelProductId(this);\n */\n }\n return aProductRelatedByRelProductId;\n }", "public Long getRelateId() {\n return relateId;\n }", "java.lang.String getBusinessPartnerUuid();", "@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }", "public Project getProjectRelatedByProjectId() throws TorqueException\n {\n if (aProjectRelatedByProjectId == null && (this.projectId != 0))\n {\n aProjectRelatedByProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.projectId);\n obj.addNewslettersRelatedByProjectId(this);\n */\n }\n return aProjectRelatedByProjectId;\n }", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "Participant getOwner();", "@Schema(description = \"Parties who manage or otherwise have an interest in this entity specification\")\n\t@Valid\n\tpublic Set<RelatedParty> getRelatedParty() {\n\t\treturn relatedParty;\n\t}", "java.lang.String getParticipant();", "public Integer getRelateToPassenger() {\r\n return relateToPassenger;\r\n }", "AdPartner getAdPartnerByURL(String url);", "DevelopmentMethod getRelatedMethod();", "public Reference partOf() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PART_OF);\n }", "protected BusinessObject getReferencedObject () {\n\t\treturn this;\n\t}", "protected RemoteCandidate findRelatedCandidate(TransportAddress relatedAddress) {\n\t\treturn getParentComponent().findRemoteCandidate(relatedAddress);\n\t}", "RelatingBuildingElementType getRelatingBuildingElement();", "@ApiOperation(value=\"获取单个用户信息\", notes=\"获取用户\")\n\t@RequestMapping(value=\"/findPartnerById\",method={RequestMethod.GET})\n\tpublic Partner findPartnerById(@RequestParam(value = \"partnerId\", required = true)String partnerId) {\n\t\treturn partnerService.findPartnerById(partnerId);\n\t}", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "BusinessViewInnerJoinRelationship getBusinessViewInnerJoinRelationshipAtOccurrenceNumber(PhysicalTable physicalTable, int index);", "@Override\n public List<Partnership> getPartnerships(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Partnership> partnerships = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblPartnerships\");\n for(Map<String,Object> map: data) {\n Partnership p = new Partnership(map);\n List<OperationalOfficer> officers = new ArrayList<>();\n get(\"SELECT * FROM TblOperationalOfficers WHERE ptship = ?\",p.getPtshipNum()).forEach(\n stringObjectMap -> officers.add(new OperationalOfficer(stringObjectMap))\n );\n p.setOfficers(officers);\n partnerships.add(p);\n }\n return partnerships;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "ICoveredParty getCoveredParty();", "public ViewObjectImpl getAppListVo2_Partner() {\n return (ViewObjectImpl) findViewObject(\"AppListVo2_Partner\");\n }", "public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }", "public Product getProductRelatedByProductId() throws TorqueException\n {\n if (aProductRelatedByProductId == null && (this.productId != 0))\n {\n aProductRelatedByProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.productId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.productId);\n obj.addNewslettersRelatedByProductId(this);\n */\n }\n return aProductRelatedByProductId;\n }", "public Party getParty() {\n return party;\n }", "@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1ObjectReference getRelated();", "private FinancialTransactionPartyVO getAndValidateParty(FinancialTransactionVO ft, FinancialTransactionPartyRoleType roleType) throws CTConverterException {\n FinancialTransactionPartyVO party = UserUtils.getParty(ft.getParties(), roleType);\n if (party != null &&\n party.getUserIdentifier() != null &&\n party.getUserIdentifier().getAccountNumber() != null) {\n return party;\n }\n\n throw new CTConverterException(String.format(\"FinancialTransaction(%s).parties[] does not contain a valid %s\", ft.getFtHandle(), roleType.toString()));\n }", "public String getInverseRelationshipName ();", "public String getOwningPart() {\n return this.owningPart;\n }", "public MoverEntity getConvoyLeader();", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "AdPartner getAdDefaultPartner();", "public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }", "public Contributor getResponsibleParty() {\n\t\treturn null;\n\t\t// org.dom4j.Document xmlDoc = getXmlDoc();\n\t\t// return getContributor(...);\n\t}", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "public PartnerLocatorVOImpl getPartnerLocatorVO1() {\n return (PartnerLocatorVOImpl) findViewObject(\"PartnerLocatorVO1\");\n }", "public String getFinancePartnerId() {\n return financePartnerId;\n }", "ParticipantId getId();", "String getOrganizationPartyId();", "public Account getLead() {\r\n return lead;\r\n }", "public PersonnelBean getPersonnelBean(PreferenceBean pObject) throws SQLException\n {\n PersonnelBean other = PersonnelManager.getInstance().createPersonnelBean();\n other.setPersonnelid(pObject.getRegbyid());\n return PersonnelManager.getInstance().loadUniqueUsingTemplate(other);\n }", "public int getRelationship(int otherASN) {\n\n for (AS tAS : this.providers) {\n if (tAS.getASN() == otherASN) {\n return AS.CUSTOMER_CODE;\n }\n }\n for (AS tAS : this.peers) {\n if (tAS.getASN() == otherASN) {\n return AS.PEER_CODE;\n }\n }\n for (AS tAS : this.customers) {\n if (tAS.getASN() == otherASN) {\n return AS.PROVIDER_CODE;\n }\n }\n\n if (otherASN == this.asn) {\n return 2;\n }\n\n throw new IllegalArgumentException(\"asked for relation on non-adj/non-self asn, depending on sim \"\n + \"this might be expected, if you're not, you should prob restart this sim...!\");\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}", "@AutoEscape\n\tpublic String getPersonnelSubArea();", "public Collection getIndividualsBelongingToClass(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public ContactGroup getPrideContactGroup() {\n\n \n return prideContactGroup;\n\n }", "@Override\n\tpublic Document queryPartnerDetails(\n\t\t\tPartnerConfiguration partnerConfiguration,\n\t\t\tDocumentBadge document, PartnerdataLogger logger)\n\t\t\tthrows IOException {\n\t\treturn null;\n\t}", "OrganizationResourceInner innerModel();", "List<Company> getFollowing();", "Offer getOffer();" ]
[ "0.682763", "0.6645826", "0.6645826", "0.6348474", "0.626946", "0.62122625", "0.61959434", "0.61897206", "0.6180572", "0.610499", "0.604871", "0.5964183", "0.58053106", "0.57273567", "0.5702882", "0.5697462", "0.56885", "0.56492054", "0.56319046", "0.55987495", "0.5581816", "0.5581816", "0.5580594", "0.556707", "0.5538728", "0.5526396", "0.54719937", "0.5467976", "0.54551965", "0.5452011", "0.5426072", "0.5421004", "0.5419299", "0.5407394", "0.54063725", "0.53875625", "0.53847647", "0.5379437", "0.537646", "0.537365", "0.53667355", "0.5364899", "0.53629965", "0.53347206", "0.5327299", "0.53241193", "0.5319133", "0.5313326", "0.5310737", "0.530723", "0.53022933", "0.52977085", "0.5291684", "0.52841485", "0.5280027", "0.5271275", "0.5267203", "0.5262978", "0.5250088", "0.524045", "0.52321976", "0.5225605", "0.5222506", "0.5216354", "0.51878315", "0.5180407", "0.5169244", "0.51547617", "0.5132973", "0.51310354", "0.51278484", "0.5098649", "0.5081801", "0.50774723", "0.50728774", "0.50712395", "0.5062751", "0.5062611", "0.50624245", "0.50488377", "0.5048503", "0.5047433", "0.50328183", "0.5029281", "0.50196666", "0.5018003", "0.5016322", "0.5008569", "0.5001391", "0.49941248", "0.49868158", "0.49725997", "0.49714398", "0.49708268", "0.49606833", "0.49576274", "0.49560058", "0.4952725", "0.49423653", "0.4938501" ]
0.51813966
65
Set Related Partner Location. Location of the related Business Partner
public void setC_BPartnerRelation_Location_ID( int C_BPartnerRelation_Location_ID) { if (C_BPartnerRelation_Location_ID < 1) throw new IllegalArgumentException( "C_BPartnerRelation_Location_ID is mandatory."); set_Value("C_BPartnerRelation_Location_ID", new Integer( C_BPartnerRelation_Location_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "public void setLocation(entity.PolicyLocation value);", "@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }", "public void setLocation(Point newLocation) {\r\n this.p = newLocation;\r\n }", "public void setPersonnelArea(String personnelArea);", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "public void setLocation(Coordinate coordinate);", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "public void setLocation(Point2D p);", "public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public void setRobotLocation(Point p);", "public CSplitLocation( CLocation parent ){\n\t\tthis.parent = parent;\n\t}", "public void setLocation(Point p) {\n // Not supported for MenuComponents\n }", "public void setPhnLoclNbr(String phnLoclNbr) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_LOCL_NBR, \n\t\t\tphnLoclNbr, MAX_PARM_LEN_LOCL_NBR, EXC_CD_LOCL_NBR);\n\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_LOCL_NBR, \n\t\t\tphnLoclNbr, MIN_PARM_LEN_LOCL_NBR, EXC_CD_LOCL_NBR);\n\n\t\tmPhnLoclNbr = phnLoclNbr;\n\t}", "void setOrigination(Locations origination);", "@Override\n public void setLoc(Point p) {\n this.rect.setLocation(p);\n }", "public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public A getPartner(){\n return partner;\n }", "public void assignLane() {\n\t\tIterator<Lane> it = lanes.iterator();\n\n\t\twhile (it.hasNext() && partyQueue.getPartyQueue().hasMoreElements()) {\n\t\t\tLane curLane = it.next();\n\n\t\t\tif (!curLane.isPartyAssigned()) {\n\t\t\t\tSystem.out.println(\"ok... assigning this party\");\n\t\t\t\tcurLane.assignParty(((Party) partyQueue.getPartyQueue().next()));\n\t\t\t}\n\t\t}\n\t\tif (cdView != null)\n\t\t\tcdView.receiveControlDeskEvent(new ControlDeskEvent(partyQueue.getPartyQueueDisplay()));\n\t}", "public List<UtLocationDTO> findLocationByPartnerId(Long partnerId);", "public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }", "void setDestination(Locations destination);", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "@Override\n public void setCoord(PuertoPosition pp, Point2D newCoord) {\n layout.setLocation(pp, newCoord);\n }", "public void setObjectLocation(WotlasLocation objectLocation) { this.objectLocation=objectLocation; }", "public void setLocation(String location);", "public void setM_Locator_ID(BigDecimal Qty)\n\t{\n\t\t//\tLocator esatblished\n\t\tif (getM_Locator_ID() != 0)\n\t\t\treturn;\n\t\t//\tNo Product\n\t\tif (getM_Product_ID() == 0)\n\t\t{\n\t\t\tset_ValueNoCheck(\"M_Locator_ID\", null);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//\tGet existing Location\n\t\t//ZCOM 79082 Flux vente POS si Type vente ticket => emplacement par defaut Z_OrgPos.M_LOCATORSTOCK_ID \n\t\t\n\t\tMOrder ord = null;\n\t\tif(getParent().getC_Order_ID()>0)\n\t\t{\n\t\t\tord = (new MOrder (getCtx(),getParent().getC_Order_ID(),get_Trx()));\n\t\t}\n\t\tint M_Locator_ID = 0;\n\t\tM_Locator_ID = Storage.getLocatorID(getM_Warehouse_ID(), \n\t\t\t\tgetM_Product_ID(), getM_AttributeSetInstance_ID(), \n\t\t\t\tQty, get_Trx());\n\t\t//\tGet default Location\n\t\tif (M_Locator_ID == 0)\n\t\t{\n\t\t\tMProduct product = MProduct.get(getCtx(), getM_Product_ID());\n\t\t\tM_Locator_ID = MProductLocator.getFirstM_Locator_ID (product, getM_Warehouse_ID());\n\t\t\tif (M_Locator_ID == 0)\n\t\t\t{\n\t\t\t\tMWarehouse wh = MWarehouse.get(getCtx(), getM_Warehouse_ID());\n\t\t\t\tif(wh.isWMSEnabled())\n\t\t\t\t\tM_Locator_ID = wh.getM_RcvLocator_ID();\n\t\t\t\t\n\t\t\t\tif(M_Locator_ID == 0)\n\t\t\t\t\tM_Locator_ID = wh.getDefaultM_Locator_ID();\n\t\t\t}\n\t\t}\n\t\tsetM_Locator_ID(M_Locator_ID);\n\t}", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "public void setParty(Party party) {\n this.party = party;\n }", "public void setC_BPartner_Location_ID(int C_BPartner_Location_ID) {\n\t\tif (C_BPartner_Location_ID <= 0)\n\t\t\tset_Value(\"C_BPartner_Location_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_BPartner_Location_ID\", new Integer(\n\t\t\t\t\tC_BPartner_Location_ID));\n\t}", "public void setLocation(int loacation) {\n\t\tsuper.setLocation(loacation);\n\t}", "public void setLocation(Location loc) {\n this.location = loc;\n }", "public void setPersonnelSubArea(String personnelSubArea);", "public PreferenceBean setPersonnelBean(PreferenceBean pObject,PersonnelBean pObjectToBeSet)\n {\n pObject.setRegbyid(pObjectToBeSet.getPersonnelid());\n return pObject;\n }", "public void setLocation(Point p)\n\t{\n\t\tsetLocation(p.x,p.y);\n\t}", "@Override\n\tpublic void modifyDeliveryLocation(long id, String deliveryLocation) {\n\t\t\n\t}", "public void assignToLocation(Location location) {\n if (getAssignedLocation() != location) {\n if (this.location != null) {\n this.location.fireEmployee(this);\n }\n this.location = location;\n this.location.hireEmployee(this);\n }\n }", "@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public Edge partner(){\n\t\treturn partner;\n\t}", "public void setEndPoint(Point2D p)throws NoninvertibleTransformException{\n if(p == null){ //if given null it removes the point and path.\n end = null;\n fastestPath = null;\n removePointer(\"endPointIcon\");\n closeDirectionList();\n routePanel.getEndAddressField().setForeground(Color.gray);\n routePanel.getEndAddressField().setText(\"Enter end address\");\n return;\n }\n Insets x = getInsets(); //Recalibrate position for precision\n p.setLocation(p.getX(), p.getY() - x.top + x.bottom);\n end = transformPoint(p);\n\n addPointer(new MapPointer(end, \"endPointIcon\".intern()));\n if(end != null && start != null)\n findFastestRoute(start, end);\n repaint();\n }", "public void updateRoomPartner(Room cR) {\n currentRoom = cR;\n if(manager.getCharacterList().size() > 1 && owPosition == OWPosition.OWPOSITION_FRONT) {\n partner = manager.getCharacter(1);\n }\n else if(manager.getCharacterList().size() > 1 && owPosition == OWPosition.OWPOSITION_BACK) {\n partner = manager.getCharacter(0);\n }\n }", "@Override\n\tpublic void setRentalLocation(RentalLocation rentalLocation) throws RARException {\n\t\tthis.rentalLocation = rentalLocation;\n\t}", "public void setObjectAtLocation(Point p, Object o);", "@Override\r\n\tpublic void placeRoad(EdgeLocation edgeLoc) {\n\t\t\r\n\t}", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(ParentView view) {\r\n\t\tif (view instanceof BuildingView) {\r\n\t\t\tlocation = Location.BUILDING;\r\n\t\t} else if (view instanceof TownView) {\r\n\t\t\tlocation = Location.TOWN;\r\n\t\t} else if (view instanceof SafariView) {\r\n\t\t\tlocation = Location.SAFARI;\r\n\t\t} else if (view instanceof CaveView) {\r\n\t\t\tlocation = Location.CAVE;\r\n\t\t}\r\n\t}", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "private void SetLocationRelative(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setLocation(int y)\r\n {\r\n pencil.setBounds(110, y, 26, 26);\r\n minus.setBounds(136, y, 26, 26);\r\n draggable.setBounds(20, y, 90, 16);\r\n visible.setLocation(164, y+5);\r\n checkbox.setLocation(136, y);\r\n text.setLocation(20,y);\r\n }", "public com.nss.portlet.partner.model.Partner update(\n com.nss.portlet.partner.model.Partner partner, boolean merge)\n throws com.liferay.portal.SystemException;", "public void setRelatedTo(java.lang.String value);", "public void setRallyPoint (Location3D rallyPoint) {\n myRallyPoint = rallyPoint;\n }", "public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}", "public void setLocation(int X, int Y){\n \tlocation = new Point(X,Y);\n }", "private void setLocationRelativeTo(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setLocationRelativeTo(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setRelPosition(double x, double y) {\n\t\trelX = x;\n\t\trelY = y;\n\t}", "public void setOrigin(Point p) {\n origin = new Point(p);\n }", "public void setLocation(Location location) \n\t{\n\t\tthis.location = location;\n\t}", "public void setPathway(PathwayHolder p)\r\n\t{\n\t}", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "public void setLocation(int x, int y) {\r\n manager.setLocation(this, x, y);\r\n }", "public void setMyCidade(Location myCidade)\n {\n this.myCidade = myCidade;\n }", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "private void setWorkmanPoint( int point ){\n\n callGetSliderAds();\n }", "@Override\n protected void set(org.tair.db.locusdetail.ILocusDetail dto) {\n locusLocus = dto;\n }", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tphysAddr = this.initLocationManager();\n\t}", "public String getPartnerid() {\n return partnerid;\n }", "public RTWLocation parent();", "@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}", "public Person(Person o){\n destinationFloor=o.getDestinationFloor();\n }", "private void setPickupLocation(){\n \t\t// Defines the AutoCompleteTextView pickupText\n \t\tacPickup = (AutoCompleteTextView)findViewById(R.id.pickupText);\n \t\t// Controls if the user has entered an address\n \t\tif(!acPickup.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the written address\n \t\t\tGeoPoint pickupGeo = GeoHelper.getGeoPoint(acPickup.getText().toString());\n \t\t\t// Gets the MapLocation of the GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(pickupGeo);\n \t\t\t// Finds the pickup location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\n \t\t\t//Controls if the user has entered a NEW address\n \t\t\tif(pickupPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayPickupThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayPickupThumb);\n \t\t\t\t\toverlayPickupThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no dropoff point is specified, we add the pickup point to the map.\n \t\t\t\tif(dropoffPoint == null){\n \t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t}else{ // If a dropoff point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the pickup point is before the dropoff point.\n \t\t\t\t\tif(l.indexOf(temp) < l.indexOf(dropoffPoint)){\n \t\t\t\t\t\t//makeToast(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t });\n \t\t\t\t\t\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the pickup point to the map by drawing a cross\n \t\t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a pickup address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a pickup address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}", "Restaurant setRestaurantAddress(Address address);", "public void setOrderLine (MOrderLine oLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tMOrgPOS orgpos = MOrgPOS.getOrgPos(getCtx(), oLine.getParent().getAD_Org_ID(), get_Trx());\n\t\tif(M_Locator_ID > 0 && (oLine.getParent().getC_DocTypeTarget_ID() == orgpos.getDocType_Ticket_ID()))\n\t\t\tM_Locator_ID = oLine.get_ValueAsInt(\"M_Locator_ID\")>0?oLine.get_ValueAsInt(\"M_Locator_ID\"):orgpos.getM_LocatorStock_ID();\n\t\tsetC_OrderLine_ID(oLine.getC_OrderLine_ID());\n\t\tsetLine(oLine.getLine());\n\t\tsetC_UOM_ID(oLine.getC_UOM_ID());\n\t\tMProduct product = oLine.getProduct();\n\t\tif (product == null)\n\t\t{\n\t\t\tsetM_Product_ID(0);\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(oLine.getM_Product_ID());\n\t\t\tsetM_AttributeSetInstance_ID(oLine.getM_AttributeSetInstance_ID());\n\t\t\t//\n\t\t\tif (product.isItem())\n\t\t\t{\n\t\t\t\tif (M_Locator_ID == 0)\n\t\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\t\telse\n\t\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\t}\n\t\t\telse\n\t\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\tsetC_Charge_ID(oLine.getC_Charge_ID());\n\t\tsetDescription(oLine.getDescription());\n\t\tsetIsDescription(oLine.isDescription());\n\t\t//\n\t\tsetAD_Org_ID(oLine.getAD_Org_ID());\n\t\tsetC_Project_ID(oLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(oLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(oLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(oLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(oLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(oLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(oLine.getUser1_ID());\n\t\tsetUser2_ID(oLine.getUser2_ID());\n\t}", "private void setLocation(Location newLocation) {\n\t\tif (location != null) {\n\t\t\tfield.clear(location);\n\t\t}\n\t\tlocation = newLocation;\n\t\tfield.place(this, newLocation);\n\t}", "public void setOfficeLocation(String officeLocation) {\n\t\tthis.officeLocation = officeLocation;\n\t}", "public void setLocation(Vec2f loc) {\n\t\tsuper.setLocation(loc);\n\t\tif (_shape != null) _shape.setLocation(loc);\n\t}", "public void setPoint(Point operand, Point target) {\n\tfor (Shape s : this.shapes)\n\t s.setPoint(operand, target);\n }", "protected void setLocation(Location newLocation)\n {\n if(location != null) {\n field.clear(location);\n }\n location = newLocation;\n field.place(this, newLocation);\n }", "@Override\n\tpublic Partner updatePartner(Users user) {\n\t\treturn null;\n\t}", "public void setLocation(Location location) {\r\n\t\tthis.location = location;\r\n\t}", "public abstract void setPoint(Point p);", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void relocateToPoint (Point2D p) {\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\r\n\r\n\t\trelocate ( \r\n\t\t\t\t(int) (localCoords.getX() - (getBoundsInLocal().getWidth() / 2)),\r\n\t\t\t\t(int) (localCoords.getY() - (getBoundsInLocal().getHeight() / 2))\r\n\t\t\t\t);\r\n\t}", "public void assignAddingLocation(final boolean val) {\n addingLocation = val;\n }", "public void setLocation(Point location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void setOrigin(String origin){\r\n\t\tPointingElement originChild = new PointingElement(\"origin\",\"\");\r\n\t\toriginChild.addAttribute(new PointingElement(\"ref\",origin));\r\n\t\tthis.addChild(originChild);\r\n\t}", "public void setLocNbr(String locNbr) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_LOC_NBR,\n\t\t\tlocNbr, MIN_PARM_LEN_LOC_NBR, EXC_CD_LOC_NBR);\n\t\t\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_LOC_NBR, \n\t\t\tlocNbr, MAX_PARM_LEN_LOC_NBR, EXC_CD_LOC_NBR);\n\n\t\tmLocNbr = locNbr;\n\t}", "public void setLocation(Point2D location) {\r\n\t\t\r\n\t\tif(this.getLocation() != null)\r\n\t\t\tsuper.setLocation(location);\r\n\t\t\r\n\t}" ]
[ "0.59744406", "0.59744406", "0.55942154", "0.55436367", "0.5450088", "0.54257584", "0.5407075", "0.54054666", "0.5402294", "0.53976053", "0.5366242", "0.5352864", "0.5326444", "0.5311292", "0.5311292", "0.5309642", "0.5302824", "0.5292414", "0.527798", "0.52647364", "0.52443147", "0.5231075", "0.52230394", "0.52031046", "0.5191022", "0.5173962", "0.51710504", "0.5153861", "0.5152087", "0.5148959", "0.5137326", "0.51353234", "0.5134962", "0.5131012", "0.5127138", "0.51234305", "0.51174635", "0.5112388", "0.51045173", "0.5084716", "0.5084015", "0.5080161", "0.50790143", "0.50725865", "0.50545883", "0.50538844", "0.5045316", "0.50413823", "0.5024683", "0.5021556", "0.50157857", "0.49991378", "0.49991378", "0.49991378", "0.49930203", "0.4981527", "0.4971679", "0.49674675", "0.49578658", "0.49497458", "0.4939915", "0.4937745", "0.49326295", "0.49326155", "0.49326155", "0.49321643", "0.49168664", "0.49160504", "0.49030787", "0.490104", "0.49009728", "0.48986387", "0.48945463", "0.48898995", "0.48857167", "0.48848882", "0.4880496", "0.48745194", "0.4871536", "0.48635277", "0.4859774", "0.48520184", "0.4851934", "0.48430303", "0.48413718", "0.48333502", "0.48293987", "0.48243418", "0.48198393", "0.48192447", "0.48160052", "0.48152682", "0.48116934", "0.48096246", "0.4802531", "0.4797276", "0.4797276", "0.47971177", "0.47958338", "0.4795707" ]
0.48311242
86
Get Related Partner Location. Location of the related Business Partner
public int getC_BPartnerRelation_Location_ID() { Integer ii = (Integer) get_Value("C_BPartnerRelation_Location_ID"); if (ii == null) return 0; return ii.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<UtLocationDTO> findLocationByPartnerId(Long partnerId);", "String getDepartureLocation();", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "BodyPart getGearLocation();", "public RTWLocation parent();", "public A getPartner(){\n return partner;\n }", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "@Override\r\n public Point getRelatedSceneLocation() {\r\n return getLocationPoint(locationRatio);\r\n }", "public int getC_BPartner_Location_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_Location_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public GridLocation getLocation();", "public Edge partner(){\n\t\treturn partner;\n\t}", "public PartnerLocatorVOImpl getPartnerLocatorVO1() {\n return (PartnerLocatorVOImpl) findViewObject(\"PartnerLocatorVO1\");\n }", "public Location getBedLocation ( ) {\n\t\treturn extract ( handle -> handle.getBedLocation ( ) );\n\t}", "public Object getLocation() {\n return leftSide.getLocation();\n }", "public Point getLocation();", "com.google.ads.googleads.v6.resources.LocationView getLocationView();", "String getArrivalLocation();", "public Point2D getLocation();", "public FrillLoc getLocation() {\n return MyLocation;\n }", "IntPoint getLocation();", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public final Point getLocation() {\n return this.location ;\n }", "public Location getLocation(Piece p)\n {\n if (p==null)\n return null;\n for (Square[] s1: squares)\n {\n for (Square s: s1)\n {\n Piece p1 = s.getPiece();\n if (p1!=null && p1.equals(p))\n return s.getLoc();\n }\n }\n return null;\n }", "public String getOfficeLocation() {\n\t\treturn officeLocation;\n\t}", "public String getLocation(){\n return this.location;\n }", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "public PVector getLocation()\n\t{\n\t\treturn location;\n\t}", "public Point getLocPoint(){\n return super.getLocation();\n }", "public Location getLocation()\n\t{\n\t\treturn l;\n\t}", "@Override\n public geo_location getLocation() {\n return location;\n }", "@Override\n public PointF getLocation() {\n return location;\n }", "public Point getLocation() {\n return location;\n }", "public Point getLocation() {\n\t\treturn location.getCopy();\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "public Coordinate getLocation();", "public Point getLocation() { return loc; }", "public int getLocation()\r\n {\n }", "String getEmailLocation();", "public Point getLocation(){\r\n return super.getLocation();\r\n }", "Place resolveLocation( Place place );", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyLocation getLocation();", "public Location getEnterLocation() {\r\n return location;\r\n }", "SiteLocation getLocatedAt();", "public ExtendedLocation extendedLocation() {\n return this.extendedLocation;\n }", "public ExtendedLocation extendedLocation() {\n return this.extendedLocation;\n }", "public Point getLocation() {\n\t\treturn location;\n\t}", "public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "@AutoEscape\n\tpublic String getPersonnelSubArea();", "String getLocation();", "String getLocation();", "String getLocation();", "String getRefPartnerSideB();", "@ApiModelProperty(value = \"The company location associated with the claim.\")\n public DtoValueString getLocation() {\n return location;\n }", "public Location getLocation() \n\t{\n\t\treturn location;\n\t}", "public String getLocation() {\n return this.location;\n }", "Party getOrganizationParty();", "public String getPartnerid() {\n return partnerid;\n }", "public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}", "public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }", "public String getLocation(){\r\n return location;\r\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "public Location getLocation(){\n return location;\n }", "java.lang.String getLocation();", "@Override\n\tpublic RentalLocation getRentalLocation() {\n\t\treturn rentalLocation;\n\t}", "public String getLocation() throws ServiceLocalException {\n\t\treturn (String) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Location);\n\t}", "public Location getCornerB() {\n return cornerB;\n }", "@Override\n public Location getLocation() {\n if (type == TeleportType.TPA) {\n return target.getPlayerReference(Player.class).getLocation();\n } else if (type == TeleportType.TPHERE) {\n return toTeleport.getPlayerReference(Player.class).getLocation();\n }\n\n return null;\n }", "private InputLocation getOtherLocation( Object key )\n {\n return ( locations != null ) ? locations.get( key ) : null;\n }", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "public Planet getLocation() {\r\n return location;\r\n }", "public String getLocation(){\n return location;\n }", "public Point getRobotLocation();", "private ItemElementRelationship findItemLocationRelationship(Item item) {\n if (item.getSelfElement().getId() != null) {\n return itemElementRelationshipFacade\n .findItemElementRelationshipByNameAndItemElementId(ItemElementRelationshipTypeNames.itemLocation.getValue(),\n item.getSelfElement().getId());\n } else {\n return null;\n }\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public Point getElevatorPosition() {\n return this.elevator.getOrigin();\n }", "public String partnerNodeId() {\n return this.partnerNodeId;\n }", "@Override\n public int getDependentLocation(int loc) {\n switch (loc) {\n case LOC_RT:\n return LOC_RARM;\n case LOC_LT:\n return LOC_LARM;\n case LOC_LLEG:\n case LOC_LARM:\n case LOC_RLEG:\n case LOC_RARM:\n case LOC_HEAD:\n case LOC_CT:\n default:\n return LOC_NONE;\n }\n }", "public Location getLocation ( ) {\n\t\treturn extract ( handle -> handle.getLocation ( ) );\n\t}", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}", "public Town getLocation() {\n\t\treturn new Town(\"St James's Gate, Ushers, Dublin 8\");\r\n\t}", "public String getLocation(){\r\n return Location;\r\n }", "String getRefPartnerSideA();", "public String getLocation()\n {\n return location;\n }", "public Coordinate getLocation() {\n return location;\n }", "public WorkPlaceC2A getWorkPlace()\r\n\t{\r\n\t\treturn workPlace;\r\n\t}", "public Location getLocation() {\n return getLocation(null);\n }", "public String getLocation() {\r\n return location;\r\n }", "public GeoOrigin getGeoOrigin();" ]
[ "0.62841874", "0.60695475", "0.5874115", "0.5874115", "0.58194727", "0.5758642", "0.5739023", "0.5736702", "0.5712811", "0.56828225", "0.568003", "0.5651568", "0.56284285", "0.55851805", "0.5556321", "0.5547239", "0.55221945", "0.5516364", "0.55110836", "0.5480038", "0.54783654", "0.5454543", "0.5454029", "0.54480964", "0.5447698", "0.5447417", "0.54451036", "0.54451036", "0.54451036", "0.54451036", "0.54363745", "0.54115266", "0.54038215", "0.5394418", "0.5378985", "0.5375455", "0.5365985", "0.53659534", "0.5363701", "0.5361255", "0.5359243", "0.53570366", "0.5356196", "0.53494203", "0.53473526", "0.5341381", "0.53395534", "0.5326062", "0.5326062", "0.532454", "0.53238595", "0.53114545", "0.53114545", "0.53114545", "0.53114545", "0.53114545", "0.5308627", "0.53081477", "0.5304011", "0.5304011", "0.5304011", "0.5297773", "0.5296985", "0.5288986", "0.52847314", "0.5283995", "0.5280628", "0.52792156", "0.5274718", "0.5268659", "0.5264048", "0.52598166", "0.52577865", "0.5255555", "0.5250598", "0.5250395", "0.5247197", "0.5246358", "0.5236703", "0.5236703", "0.5236595", "0.52363104", "0.523372", "0.52322745", "0.52314097", "0.52314097", "0.522827", "0.52249205", "0.5221943", "0.5219884", "0.52185476", "0.52180886", "0.52131754", "0.5211343", "0.5202985", "0.5200191", "0.51972675", "0.5194543", "0.51932174", "0.5183395" ]
0.5856054
4
Set Business Partner . Identifies a Business Partner
public void setC_BPartner_ID(int C_BPartner_ID) { if (C_BPartner_ID < 1) throw new IllegalArgumentException("C_BPartner_ID is mandatory."); set_Value("C_BPartner_ID", new Integer(C_BPartner_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }", "public void setBusiness(String Business) {\n this.Business = Business;\n }", "public A getPartner(){\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public String getPartnerid() {\n return partnerid;\n }", "void setBrokerAlgo(BrokerAlgo inBrokerAlgo);", "ExternalInterface getPartnerSideB();", "@Override\n\tpublic Partner createPartner(Users user) {\n\t\treturn null;\n\t}", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "@Override\r\n\tpublic void showPartner() {\n\t\tSystem.out.println(\"你的情侣是: \"+partner);\r\n\t}", "java.lang.String getBusinessPartnerUuid();", "public void setPersonnelArea(String personnelArea);", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "public void setBusiness(BusinessSummaryInfo [] Business) {\n this.Business = Business;\n }", "AdPartner getAdPartnerByName(String partnerName);", "public int getC_BPartner_ID();", "@Test \n\tpublic void testSetBusinessinformation() {\n\t\tBusinessInformation businessInformation = new BusinessInformation();\n\t\tbusinessInformation.setName(INFO_NAME);\n\t\tAdminAccount user = adminAccountService.setBusinessInformation(INFO_NAME, USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(user.getUsername(), USERNAME1);\n\t}", "@Override\n\tpublic Partner updatePartner(Users user) {\n\t\treturn null;\n\t}", "public void setAD_Tree_BPartner_ID(int AD_Tree_BPartner_ID) {\n\t\tif (AD_Tree_BPartner_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", new Integer(\n\t\t\t\t\tAD_Tree_BPartner_ID));\n\t}", "@Test\n public void testSetBusinessName() {\n \n assertNull(o2.getBusinessName());\n o2.setBusinessName(\"testName2\");\n assertNotNull(o2.getBusinessName());\n assertEquals(\"testName2\", o2.getBusinessName());\n }", "public void setBusiness_id(String business_id) {\n this.business_id = business_id;\n }", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "AdPartner updateAdPartner(AdPartner adPartner);", "String getRefPartnerSideB();", "java.lang.String getBusinessId();", "public void setLobby(Lobby lobby)\r\n\t{\r\n\t\treceiver.setLobby(lobby);\t\r\n\t}", "IPayerEntry setCoveredParty(ICoveredParty value);", "private void correctBusinessBinding(ConnectionVO cvo, ActionRequest req) {\n\t\tSBUserRole role = (SBUserRole) req.getSession().getAttribute(Constants.ROLE_DATA);\n\t\tif (!StringUtil.isEmpty(cvo.getSenderMemberId()) && RezDoxUtils.isBusinessRole(role, false)) {\n\t\t\tString businessId = new BusinessAction(getDBConnection(), getAttributes()).getMyDefaultBusinessId(req);\n\t\t\t// Make sure we have a business to set - leave the member binding if we can't improve upon it\n\t\t\tif (!StringUtil.isEmpty(businessId)) {\n\t\t\t\tcvo.setSenderBusinessId(businessId);\n\t\t\t\tcvo.setSenderMemberId(null);\n\t\t\t}\n\t\t}\n\t}", "public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}", "public void setPersonnelSubArea(String personnelSubArea);", "public void setParty(Party party) {\n this.party = party;\n }", "public void setPartner(\r\n @NonNull\r\n final List<SalesOrderHeaderPartner> value) {\r\n if (toPartner == null) {\r\n toPartner = Lists.newArrayList();\r\n }\r\n toPartner.clear();\r\n toPartner.addAll(value);\r\n }", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "private void addAccount(ProtocolProviderService protocolProvider)\n {\n OperationSetPresence presence = (OperationSetPresence)\n protocolProvider.getOperationSet(OperationSetPresence.class);\n \n if (presence == null)\n {\n StatusSimpleSelector simpleSelector = \n new StatusSimpleSelector(parentSystray, protocolProvider);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n simpleSelector);\n this.add(simpleSelector);\n }\n else\n {\n StatusSelector statusSelector = \n new StatusSelector( parentSystray,\n protocolProvider,\n presence);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n statusSelector);\n this.add(statusSelector);\n \n presence.addProviderPresenceStatusListener(\n new SystrayProviderPresenceStatusListener());\n }\n }", "@Test\r\n public void testSetTelefoneResidencial() {\r\n System.out.println(\"setTelefoneResidencial\");\r\n String telefoneResidencial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneResidencial(telefoneResidencial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public String getPartnerName() {\n\t\treturn partnerName;\n\t}", "ExternalInterface getPartnerSideA();", "public static void setServer()\n\t{\n\t\t\n\t\t// also test the second constructor of business plan\n\t\t\n\t\t// creates 2 admin lists and users lists for the depts\n\t\tArrayList<User> usersList1 = new ArrayList<User>();\n\t\tArrayList<User> usersList2 = new ArrayList<User>();\n\t\t\n\t\tArrayList<User> adminList1 = new ArrayList<User>();\n\t\tArrayList<User> adminList2 = new ArrayList<User>();\n\t\t\n\t\t\n\t\t// creates the users and adds to lists\n\t\tUser user1 = new User(\"user1\", \"a\", \"1\", \"CSC\", false);\n\t\tUser user2 = new User(\"user2\", \"b\", \"2\", \"CSC\", false);\n\t\tUser user3 = new User(\"user3\", \"c\", \"3\", \"CSC\", false);\n\t\tusersList1.add(user1);\n\t\tusersList1.add(user2);\n\t\tusersList1.add(user3);\n\t\tUser user4 = new User(\"user4\", \"d\", \"4\", \"English\", false);\n\t\tUser user5 = new User(\"user5\", \"e\", \"5\", \"English\", false);\n\t\tUser user6 = new User(\"user6\", \"f\", \"6\", \"English\", false);\n\t\tusersList2.add(user4);\n\t\tusersList2.add(user5);\n\t\tusersList2.add(user6);\n\t\t\n\t\t// creats the admins and adds to list\n\t\tUser admin1 = new User(\"admin1\", \"a\", \"1\", \"CSC\", true);\n\t\tUser admin2 = new User(\"admin2\", \"b\", \"2\", \"English\", true);\n\t\tadminList1.add(admin1);\n\t\tadminList2.add(admin2);\n\t\t\n\t\tDepartment CSC = new Department();\n\t\tCSC.setDepartmentName(\"CSC\");\n\t\tCSC.setAdmin(adminList1);\n\t\tCSC.setUsers(usersList1);\n\t\tDepartment English = new Department(\"English\", adminList2, usersList2);\n\t\tEnglish.setDepartmentName(\"English\");\n\t\tEnglish.setAdmin(adminList2);\n\t\tEnglish.setUsers(usersList2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\n\t\t\n\t\tdeptNames.add(\"CSC\");\n\t\tdeptNames.add(\"English\");\n\t\t\n\t\t\n\t\tserv.save(CSC);\n\t\tserv.save(English);\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "@Test\n public void testSetClient() {\n\n Client client = client2;\n Beneficiaire instance = ben1;\n instance.setClient(client);\n assertEquals(client, instance.getClient());\n\n\n }", "public void set(Lobby lobby) {\n Firebase.setDocument(\"lobbies/\" + lobby.getGameCode(), LobbyDTO.fromModel(lobby));\n }", "public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }", "@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }", "public void onAssignStaffToRequest(CustomerRequest request, String staff);", "void setProvincia(String provincia);", "AdPartner getAdPartnerById(Long id);", "@Override\n\tpublic boolean enablePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void setBP_BankAccount(MBPBankAccount ba) {\n log.fine(\"\" + ba);\n if (ba == null) {\n return;\n }\n setC_BPartner_ID(ba.getC_BPartner_ID());\n setAccountAddress(ba.getA_Name(), ba.getA_Street(), ba.getA_City(),\n ba.getA_State(), ba.getA_Zip(), ba.getA_Country());\n setA_EMail(ba.getA_EMail());\n setA_Ident_DL(ba.getA_Ident_DL());\n setA_Ident_SSN(ba.getA_Ident_SSN());\n //\tCC\n if (ba.getCreditCardType() != null) {\n setCreditCardType(ba.getCreditCardType());\n }\n if (ba.getCreditCardNumber() != null) {\n setCreditCardNumber(ba.getCreditCardNumber());\n }\n if (ba.getCreditCardExpMM() != 0) {\n setCreditCardExpMM(ba.getCreditCardExpMM());\n }\n if (ba.getCreditCardExpYY() != 0) {\n setCreditCardExpYY(ba.getCreditCardExpYY());\n }\n if (ba.getCreditCardVV() != null) {\n setCreditCardVV(ba.getCreditCardVV());\n }\n //\tBank\n if (ba.getAccountNo() != null) {\n setAccountNo(ba.getAccountNo());\n }\n if (ba.getRoutingNo() != null) {\n setRoutingNo(ba.getRoutingNo());\n }\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public int getC_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getC_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getLBR_PartnerDFe_ID();", "@Override\r\n\tpublic void setClient(Client cc) {\n\t\tthis.e2eValidationClient = (E2EValidationClient) cc;\r\n\t}", "public void setUWCompany(entity.UWCompany value);", "@Override\r\n public void setCorporation(String corporation) {\n }", "public void setParty(String party) {\n this.party = party;\n }", "public void setParty( EAIMMCtxtIfc theCtxt, com.dosmil_e.mall.core.ifc.MallPartyIfc theParty) throws EAIException;", "Builder addAccountablePerson(String value);", "public interface ICheckInBusinessWithReservation extends ICheckInBusiness {\r\n\r\n\r\n boolean setReservationOrder(long reservationOrderID);\r\n\r\n}", "private void setAddFriendBToServer(\n AddFriend.BToServer.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 2;\n }", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "public PreferenceBean setPersonnelBean(PreferenceBean pObject,PersonnelBean pObjectToBeSet)\n {\n pObject.setRegbyid(pObjectToBeSet.getPersonnelid());\n return pObject;\n }", "public String getBusiness_id() {\n return this.business_id;\n }", "void secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;", "public void setParticipant(Integer participant) {\n this.participant = participant;\n }", "public void setLead(Account lead) {\r\n this.lead = lead;\r\n }", "@Test\n\tpublic void testSetPoolMgrAndRetrieve() throws MalBusinessException{\n\t\tDriver d = new Driver();\n\t\tsetUpDriverForAdd();\n\t\tdriver.setPoolManager(\"Y\");\n\t\tdriver = driverService.saveOrUpdateDriver(externalAccount, driverGrade, driver, generateAddresses(driver, 1), generatePhoneNumbers(driver, 1), userName, null);\n\t\t\n\t\td = driverService.getDriver(driver.getDrvId());\n\t\t\n\t\tassertEquals(\"Pool Manager is not set to 'Y'\", d.getPoolManager(), \"Y\");\n\t\t\n\t}", "@Override\r\n\tpublic void setForHobby(DriverVO driverVO) {\n\t\t\r\n\t}", "public IBusinessObject setCreator(IUser creator)\n throws ORIOException;", "@Test\n public void testSetBusinessId() {\n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "public void setSettlement(Settlement set);", "@Override\n\tpublic void setBankCustomerPerson() {\n\t\t\n\t}", "@Test\r\n public void testSetTelefoneComercial() {\r\n System.out.println(\"setTelefoneComercial\");\r\n String telefoneComercial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneComercial(telefoneComercial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetKlient() {\r\n System.out.println(\"setKlient\");\r\n Klient klient = null;\r\n Faktura instance = new Faktura();\r\n instance.setKlient(klient);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testWrongPartner() {\n /* Set up scenario. As one might see, no partnership was registered hence we throw an\n error.\n */\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n assertThrows(AssertionError.class, () ->\n {\n this.provider2.registerReturn(orderInfo.getOrderNumber());\n });\n }", "public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }", "void addPhoneToPerson(Phone phone,int personId);", "void setPhone(int phone);", "public void addBusiness(String name, String fiscalCode, String partitaIva) {\n//public void addBusiness(String name, String fiscalCode, String partitaIva, String Category) {\n\t\tBusiness business = new Business();\n\t\tbusiness.setName(name);\n\t\tbusiness.setFiscalCode(fiscalCode);;\n\t\tbusiness.setPIva(partitaIva);\n\t//\tList<String> categories = new ArrayList<String>();\n\t//\tcategories.add(Category);\n\t//\tbusiness.setCategories(categories);\n // longitudine e latitudine\n\t\tbusiness.setPosition(48.32222, 32.222222);\n\n\t\tMap<String, Object> ret = _businessService.createBusiness(business);\n\t\tbusiness = null;\n\t\tbusiness = (Business) ret.get(\"business\");\n\t\tif (business != null) {\n\t\t\tSystem.out.println(\"ADD business_Id\" + business.get_id());\n\t\t}\n\t\tfor (Map.Entry<String, Object> entry : ret.entrySet())\n\t\t\tSystem.out.println(entry.getKey() + \" - \" + entry.getValue().toString());\n\n\t\tSystem.out.println(\"called shell command 'createBusiness' - created: \" + (Boolean) ret.get(\"created\"));\n\t}", "public void setBestSeller (String bS)\n {\n bestSeller = bS;\n }", "public void setMarketing(nl.webservices.www.soap.DNBMarketing marketing) {\n this.marketing = marketing;\n }", "public void setPeer(Peer peer);", "@Test\n public void test220AssignRoleLandluberToWally() throws Exception {\n\t\tfinal String TEST_NAME = \"test220AssignRoleLandluberToWally\";\n displayTestTitle(TEST_NAME);\n\n Task task = createTask(TEST_NAME);\n OperationResult result = task.getResult();\n\n addObject(SHADOW_GROUP_DUMMY_LANDLUBERS_FILE);\n\n PrismObject<UserType> user = createUser(USER_WALLY_NAME, USER_WALLY_FULLNAME, true);\n addObject(user);\n\n\t\t// WHEN\n assignRole(user.getOid(), ROLE_LANDLUBER_OID, task, result);\n\n // THEN\n assertSuccess(result);\n\n DummyGroup dummyGroup = getDummyResource().getGroupByName(GROUP_DUMMY_LANDLUBERS_NAME);\n assertNotNull(\"No group on dummy resource\", dummyGroup);\n display(\"Group\", dummyGroup);\n assertEquals(\"Wrong group description\", GROUP_DUMMY_LANDLUBERS_DESCRIPTION,\n \t\tdummyGroup.getAttributeValue(DummyResourceContoller.DUMMY_GROUP_ATTRIBUTE_DESCRIPTION));\n assertGroupMember(dummyGroup, USER_WALLY_NAME);\n\t}", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "boolean hasDataPartner();", "public String getBusiness_id() {\n\t\treturn business_id;\n\t}", "IPayerEntry setPayerEntity(IPayerEntity value);", "private void setAddFriendBToServer(AddFriend.BToServer value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 2;\n }", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "public void setChatPartner(String chatPartner, View view) {\n if (chatPartner == null || view == null) {\n return;\n }\n this.chatPartner = chatPartner;\n ((MainActivity) getActivity()).changeTitle(chatPartner);\n\n }", "Builder addProvider(Person value);", "Builder addProvider(Organization.Builder value);", "boolean hasAdvertisingPartner();" ]
[ "0.6532571", "0.6532571", "0.64331484", "0.631127", "0.62059313", "0.6014226", "0.5922765", "0.5922765", "0.5829224", "0.57932436", "0.5741584", "0.5669744", "0.562118", "0.5525774", "0.5508337", "0.54901844", "0.54577327", "0.5454593", "0.5427725", "0.53737545", "0.53699666", "0.536863", "0.53446096", "0.53302616", "0.5325155", "0.53094506", "0.5308432", "0.52574253", "0.52441764", "0.5239617", "0.52340263", "0.5231871", "0.5217785", "0.5217588", "0.5209685", "0.52085143", "0.518829", "0.5180831", "0.51763237", "0.51532334", "0.5151219", "0.51441276", "0.51344013", "0.51315147", "0.5130333", "0.51292604", "0.51250905", "0.51199895", "0.511731", "0.5099457", "0.5073995", "0.50632954", "0.5062992", "0.5051229", "0.5047697", "0.50268227", "0.50253356", "0.50253356", "0.5022218", "0.5016191", "0.50076264", "0.5002786", "0.49997324", "0.4994113", "0.4992897", "0.49876884", "0.49832565", "0.49823806", "0.4981588", "0.49778658", "0.4972314", "0.49710748", "0.49698302", "0.49668977", "0.49640658", "0.4963613", "0.49554977", "0.495451", "0.49512824", "0.4950131", "0.4946707", "0.49456742", "0.49440253", "0.4936324", "0.49357572", "0.4929254", "0.4927163", "0.492524", "0.49246144", "0.49183396", "0.49180466", "0.49154267", "0.49079058", "0.4906933", "0.49014038", "0.48988062", "0.48846295", "0.48844036", "0.488147", "0.48773935" ]
0.5233477
31
Get Business Partner . Identifies a Business Partner
public int getC_BPartner_ID() { Integer ii = (Integer) get_Value("C_BPartner_ID"); if (ii == null) return 0; return ii.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPartner() {\n return partner;\n }", "public String getPartner() {\n return partner;\n }", "AdPartner getAdPartnerByName(String partnerName);", "public A getPartner(){\n return partner;\n }", "String getRefPartnerSideB();", "ExternalInterface getPartnerSideB();", "java.lang.String getBusinessPartnerUuid();", "public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }", "String getRefPartnerSideA();", "public int getC_BPartner_ID();", "AdPartner getAdPartnerById(Long id);", "public String getPartnerid() {\n return partnerid;\n }", "ExternalInterface getPartnerSideA();", "java.lang.String getBusinessId();", "public int getLBR_PartnerDFe_ID();", "Party getParty();", "PartyType getConsigneeParty();", "BankTellers getBankTeller(String userName);", "java.lang.String getBusinessName();", "PartyType getConsignorParty();", "java.lang.String getParticipant();", "public String getPartnerName() {\n\t\treturn partnerName;\n\t}", "public String getBusiness() {\n return this.Business;\n }", "AdPartner getAdDefaultPartner();", "String getTheirPartyId();", "AdPartner getAdPartnerByURL(String url);", "Party getOrganizationParty();", "String getOrganizationPartyId();", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public Participant getParticipant ()\r\n {\r\n return participant_;\r\n }", "@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }", "@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "@Override\r\n\tpublic void showPartner() {\n\t\tSystem.out.println(\"你的情侣是: \"+partner);\r\n\t}", "com.google.ads.googleads.v13.resources.DataPartnerLinkIdentifier getDataPartner();", "Offer getOffer();", "public String getBusiness_id() {\n return this.business_id;\n }", "long getBusinessCircleId();", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "Optional<Partner> findById(Long id);", "public String getFinancePartnerId() {\n return financePartnerId;\n }", "@ApiOperation(value=\"获取单个用户信息\", notes=\"获取用户\")\n\t@RequestMapping(value=\"/findPartnerById\",method={RequestMethod.GET})\n\tpublic Partner findPartnerById(@RequestParam(value = \"partnerId\", required = true)String partnerId) {\n\t\treturn partnerService.findPartnerById(partnerId);\n\t}", "com.google.ads.googleads.v13.resources.AdvertisingPartnerLinkIdentifier getAdvertisingPartner();", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "kr.pik.message.Profile.Contact getContact();", "ConferenceMember getConferenceMember(CallPeer peer, Component visualComponent);", "public abstract String getPeerNameCandidate();", "public int getAD_Tree_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Edge partner(){\n\t\treturn partner;\n\t}", "@Override\n\tpublic Employee findPartner(String name) {\n\t\treturn null;\n\t}", "PartyType getFreightForwarderParty();", "java.lang.String getSeller();", "public String getBusiness_id() {\n\t\treturn business_id;\n\t}", "public String getBizLegalPerson() {\n return bizLegalPerson;\n }", "public Name\r\ngetMailbox() {\r\n\treturn getSingleName();\r\n}", "public tudresden.ocl20.core.jmi.uml15.core.Classifier getParticipant()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getParticipant(this.refMofId());\n \t} \n \t\n\t\treturn super_getParticipant();\t\n }", "ParticipantId getId();", "protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}", "public String partnerNodeId() {\n return this.partnerNodeId;\n }", "@Override\n\tpublic BusinessPlan retrieve(String userToken, String bpid) throws RemoteException\n\t{\n\t\tUser user = matchUser(userToken);\n\t\tif (user == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tfor(int i = 0; i < departments.size(); i++)\n\t\t{\n\t\t\tDepartment dep = departments.get(i);\n\t\t\tif(user.getDepartment().getDepartmentName().equals(dep.getDepartmentName()))\n\t\t\t{\n\t\t\t\treturn dep.retrieve(bpid);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Participant getOwner();", "boolean hasAdvertisingPartner();", "ICoveredParty getCoveredParty();", "String getCompany();", "protected IAePartnerLinkType getPartnerLinkType() {\r\n return getDef().getPartnerLinkType();\r\n }", "public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }", "public String getParty()\n {\n return party;\n}", "boolean hasDataPartner();", "@Override\r\n\tpublic String getParty_no() {\n\t\treturn super.getParty_no();\r\n\t}", "public String getPartyName(){\n return this.partyName;\n }", "@iri(\"http://persistent.name/rdf/2010/purl#servicedBy\")\n\tObject getPurlServicedBy();", "@Override\n\tpublic String getWinkel(){\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getWinkel();\n\t\treturn w;\n\t}", "public String getClan();", "public Entity getBorrower();", "@Test\n\tpublic void testPersonGETMethod() {\n\n\t\tString emailId = \"[email protected]\";\n\t\tPerson person = null;\n\t\tClient client = Client.create();\n\t\tWebResource webResource2 = client\n\t\t\t\t.resource(\"http://localhost:8080/MeetingSchedulerProject/meeting/personservice/\"\n\t\t\t\t\t\t+ emailId);\n\t\tClientResponse response2 = webResource2.accept(\n\t\t\t\tMediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tperson = response2.getEntity(Person.class);\n\t\tassertEquals(person.getEmailId(), \"[email protected]\");\n\t}", "com.google.protobuf.ByteString\n getBusinessPartnerUuidBytes();", "public com.dosmil_e.mall.core.ifc.MallPartyIfc getParty( EAIMMCtxtIfc theCtxt) throws EAIException;", "String getResponsible();", "private CommunicationBridge findCommunicationById(String cbID) {\n //cbID = cbID.substring(1,cbID.length()-1);\n return communicationBridgeMap.get(cbID.trim());\n }", "cb.Careerbuilder.Company.PhoneNumber getPhone(int index);", "int getParticipantNum(long runningSportId);", "public String getParty() {\n return party;\n }", "public CustomerProfile getCustomerProfile();", "IPayerEntity getPayerEntity();", "public List<SalesOrderHeaderPartner> getPartnerOrFetch()\r\n throws ODataException\r\n {\r\n if (toPartner == null) {\r\n toPartner = fetchPartner();\r\n }\r\n return toPartner;\r\n }", "String getIdentifiant();", "public String getPrimaryContact();", "String getOrganization();", "AccountDetail getAccount(String number) throws Exception;", "public List BestClient();", "public List<Partner> getListaPartners() {\n return null;\n }", "BrokerAlgo getBrokerAlgo();", "String getPassengerName();", "Optional<Partner> findByIdAndName(Long id, String name);", "String getConsumerID();", "String getBusi_id();", "People getUser();", "public MoverEntity getConvoyLeader();" ]
[ "0.66445", "0.66445", "0.6524515", "0.6460596", "0.64288735", "0.64257073", "0.64072704", "0.62592274", "0.62434995", "0.62433004", "0.62408257", "0.6162874", "0.6109555", "0.610348", "0.59710675", "0.59448916", "0.5927563", "0.5810294", "0.5803671", "0.5787125", "0.5779249", "0.5774114", "0.5695066", "0.5663897", "0.56589913", "0.56297356", "0.5610249", "0.5601578", "0.5585501", "0.5585501", "0.5580037", "0.5577346", "0.55600095", "0.55332994", "0.55253434", "0.5512505", "0.55114704", "0.5502156", "0.54736346", "0.54693294", "0.5438115", "0.5428915", "0.54243726", "0.5403394", "0.5400143", "0.5397427", "0.5384447", "0.53818727", "0.53806454", "0.53732497", "0.533173", "0.5319852", "0.53177565", "0.530195", "0.52968186", "0.5290285", "0.52549654", "0.5248559", "0.52365303", "0.52350384", "0.52316487", "0.52306134", "0.5219955", "0.5212894", "0.5195761", "0.51918125", "0.5184624", "0.5179203", "0.5169184", "0.5166007", "0.51641893", "0.5157697", "0.5152072", "0.5146908", "0.5142845", "0.513807", "0.51328504", "0.51226586", "0.5120039", "0.51031506", "0.50971276", "0.5092328", "0.50912434", "0.5090055", "0.5079535", "0.5079004", "0.50637573", "0.5056303", "0.5055175", "0.5049178", "0.5034635", "0.50271636", "0.5025546", "0.50219387", "0.50189286", "0.5012112", "0.50058764", "0.50040144", "0.50023335" ]
0.56898123
24
Set Partner Location. Identifies the (ship to) address for this Business Partner
public void setC_BPartner_Location_ID(int C_BPartner_Location_ID) { if (C_BPartner_Location_ID <= 0) set_Value("C_BPartner_Location_ID", null); else set_Value("C_BPartner_Location_ID", new Integer( C_BPartner_Location_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "Restaurant setRestaurantAddress(Address address);", "public void setShippingAddressInCart(Address addr);", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setLocation(Coordinate coordinate);", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }", "public void setExternalAddress(String address);", "public void setBillingAddressInCart(Address addr);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public abstract void setCustomerAddress(Address address);", "Builder setAddress(String address);", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setInternalAddress(String address);", "public PaymentRequest setShippingAddress(String country, String state, String city, String district,\r\n String postalCode, String street, String number, String complement) {\r\n if (shipping == null) {\r\n shipping = new Shipping();\r\n }\r\n shipping.setAddress(new Address(country, state, city, district, postalCode, street, number, complement));\r\n return this;\r\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public void setAddress(String address) { this.address = address; }", "@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }", "public Builder setAddr(int value) {\n \n addr_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setPersonnelArea(String personnelArea);", "public void setPhnLoclNbr(String phnLoclNbr) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_LOCL_NBR, \n\t\t\tphnLoclNbr, MAX_PARM_LEN_LOCL_NBR, EXC_CD_LOCL_NBR);\n\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_LOCL_NBR, \n\t\t\tphnLoclNbr, MIN_PARM_LEN_LOCL_NBR, EXC_CD_LOCL_NBR);\n\n\t\tmPhnLoclNbr = phnLoclNbr;\n\t}", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setLocation(String location);", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public void setLocNbr(String locNbr) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_LOC_NBR,\n\t\t\tlocNbr, MIN_PARM_LEN_LOC_NBR, EXC_CD_LOC_NBR);\n\t\t\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_LOC_NBR, \n\t\t\tlocNbr, MAX_PARM_LEN_LOC_NBR, EXC_CD_LOC_NBR);\n\n\t\tmLocNbr = locNbr;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "void setStreet(String street);", "public void setAddress(String address)\n {\n this.address = address;\n }", "public abstract void setAddressLine1(String sValue);", "public void setStreets(int numx, int numy);", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public abstract void setAddressLine2(String sValue);", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public Builder setHotelAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n hotelAddress_ = value;\n onChanged();\n return this;\n }", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String stNo,String stName,String sburb,String state,String pstCde) {\n Address nAddress = new Address(stNo,stName,sburb,state,pstCde);\n setAddress(nAddress);\n }", "public void setLocation(Point newLocation) {\r\n this.p = newLocation;\r\n }", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }", "public void setOffCampusAddress(String offCampusAddress) {\n this.offCampusAddress = offCampusAddress;\n }", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "void setOrigination(Locations origination);", "public void setLocation(Location loc) {\n this.location = loc;\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setTo(Address to) {\n setAddressList(FieldName.TO, to);\n }", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "public void addAddress(String Address, Coord coord);", "public void assignLane() {\n\t\tIterator<Lane> it = lanes.iterator();\n\n\t\twhile (it.hasNext() && partyQueue.getPartyQueue().hasMoreElements()) {\n\t\t\tLane curLane = it.next();\n\n\t\t\tif (!curLane.isPartyAssigned()) {\n\t\t\t\tSystem.out.println(\"ok... assigning this party\");\n\t\t\t\tcurLane.assignParty(((Party) partyQueue.getPartyQueue().next()));\n\t\t\t}\n\t\t}\n\t\tif (cdView != null)\n\t\t\tcdView.receiveControlDeskEvent(new ControlDeskEvent(partyQueue.getPartyQueueDisplay()));\n\t}", "void setDestination(Locations destination);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }", "@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}", "public Saving townOfDivergentSendingAddress(String townOfDivergentSendingAddress) {\n this.townOfDivergentSendingAddress = townOfDivergentSendingAddress;\n return this;\n }", "public AddressSetView addToView(ProgramLocation loc);", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "@Override\n\tpublic void modifyDeliveryLocation(long id, String deliveryLocation) {\n\t\t\n\t}", "public void setLocation(int X, int Y){\n \tlocation = new Point(X,Y);\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setRobotLocation(Point p);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }" ]
[ "0.65371394", "0.61728215", "0.6161864", "0.60906637", "0.59625024", "0.5901761", "0.58796704", "0.58796704", "0.58769256", "0.5841124", "0.58217865", "0.5805036", "0.5686024", "0.56791586", "0.56791586", "0.56791586", "0.56791586", "0.5668477", "0.56497896", "0.56255084", "0.56255084", "0.56255084", "0.5611928", "0.56029403", "0.5568996", "0.5553951", "0.55482763", "0.5534123", "0.5528401", "0.552303", "0.5500173", "0.54846865", "0.54846865", "0.5464145", "0.54527813", "0.54480696", "0.5426351", "0.54248106", "0.54196554", "0.54196554", "0.54182196", "0.54107106", "0.53934306", "0.53888524", "0.5385788", "0.53855866", "0.537026", "0.537026", "0.5367609", "0.5365294", "0.53650916", "0.5351574", "0.5350607", "0.5333721", "0.53295374", "0.5319215", "0.53166395", "0.53166395", "0.5312976", "0.5308335", "0.5299939", "0.5299939", "0.52729344", "0.5270223", "0.5270223", "0.5270223", "0.52694964", "0.5258255", "0.52508855", "0.52484846", "0.5247017", "0.5238947", "0.5232939", "0.5229221", "0.5221026", "0.52180815", "0.5216936", "0.51998776", "0.5197576", "0.51835847", "0.51759046", "0.5172344", "0.5172344", "0.5168818", "0.51644945", "0.51638305", "0.5163698", "0.5163108", "0.5151603", "0.5147635", "0.5147596", "0.5143163", "0.5143163", "0.51411206", "0.5137767", "0.5137767", "0.5137767", "0.5137767", "0.5137767", "0.5137767", "0.5137767" ]
0.0
-1
Get Partner Location. Identifies the (ship to) address for this Business Partner
public int getC_BPartner_Location_ID() { Integer ii = (Integer) get_Value("C_BPartner_Location_ID"); if (ii == null) return 0; return ii.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public String getLocationAddress() {\n return locationAddress;\n }", "public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), mLocation);\n } else {\n mLocation = null;\n if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n Location currLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n if (currLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(currLocation.getLatitude(), currLocation.getLongitude()));\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5, this);\n if (mCurrLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(mCurrLocation.getLatitude(), mCurrLocation.getLongitude()));\n } else {\n // Default location in case location search doesn't work on first try\n mBusinessAddress = DiscoverConstants.DEFAULT_LOCATION;\n }\n }\n } else {\n mBusinessAddress = null;\n }\n }\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public String getExternalAddress();", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "public java.lang.String getShipAgencyAddress() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyAddress();\n\t}", "public String getAddress() {\n return definition.getString(ADDRESS);\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "java.lang.String getHotelAddress();", "public String getOffCampusAddress() {\n return offCampusAddress;\n }", "public String getAddressLine() {\n\t\treturn this.addressLine;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "public abstract LinphoneAddress getAddress();", "public PostalAddress getAddress() {\n return address;\n }", "public String getAddress()\n\t{\n\t\treturn streetAddress;\n\t}", "public com.commercetools.api.models.common.Address getAddress() {\n return this.address;\n }", "public final String getAddress() {\n return address;\n }", "public String getPurchaseLinkeAddress() {\n return purchaseLinkeAddress;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public java.lang.String getAddress() {\r\n return localAddress;\r\n }", "public String getInternalAddress();", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "ShippingPointStructure getShipTo();", "public String getAddress() {\n return this._address;\n }", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress();", "String getDepartureLocation();", "public String getAddress()\n {\n \treturn address;\n }", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public String getAddress(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.ADDRESS);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "String getAddress();", "String getAddress();", "public String getAddress() {\n\t\treturn this.address;\n\t}", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public Address getDeliveryAddress() {\n return deliveryAddress;\n }", "public long getAddress() {\n return origin + originOffset;\n }" ]
[ "0.6509474", "0.6466664", "0.6272165", "0.62388223", "0.62388223", "0.61649495", "0.61649495", "0.61649495", "0.61649495", "0.61649495", "0.61649495", "0.61611587", "0.61559194", "0.6114583", "0.60637915", "0.60566497", "0.60565096", "0.6035798", "0.6015676", "0.60048807", "0.5991259", "0.5989433", "0.5967691", "0.5967639", "0.5958587", "0.59432703", "0.593866", "0.593866", "0.593866", "0.593866", "0.593866", "0.593866", "0.593866", "0.593144", "0.5927305", "0.5927305", "0.59255064", "0.59213626", "0.592026", "0.59174466", "0.5907365", "0.58984834", "0.58960015", "0.58960015", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894918", "0.5894282", "0.58917904", "0.5889058", "0.58881474", "0.58872557", "0.58872557", "0.58821696", "0.58697015", "0.5869621", "0.5869369", "0.5869369", "0.5865551", "0.5844396", "0.5843871", "0.5843871", "0.5843871", "0.5843871", "0.5843871", "0.5843871", "0.5843871", "0.58378005", "0.5830916" ]
0.5862926
90
Set Description. Optional short description of the record
public void setDescription(String Description) { if (Description != null && Description.length() > 255) { log.warning("Length > 255 - truncated"); Description = Description.substring(0, 254); } set_Value("Description", Description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String sDescription);", "public void setDescription(String desc) {\n sdesc = desc;\n }", "void setDesc(java.lang.String desc);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription (String description);", "public void setDescription(String desc) {\n this.desc = desc;\n }", "public void setDescription(CharSequence value) {\n this.description = value;\n }", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "void setDescription(java.lang.String description);", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description){this.description=description;}", "public void setDescription(String desc) {\n description = desc;\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public void setDescription(String des){\n description = des;\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc);", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }", "public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String descr);", "public void setDescription(final String description);", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(java.lang.Object description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "void setDescription(final String description);", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "void setDescription(String description);", "public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.80319154", "0.8010261", "0.79403925", "0.79110956", "0.78749657", "0.7857123", "0.7857123", "0.7857123", "0.7857123", "0.7857123", "0.7857123", "0.7751944", "0.7718661", "0.7701644", "0.7668725", "0.7665031", "0.7665031", "0.7659813", "0.76570463", "0.7647776", "0.7637483", "0.7635509", "0.76347876", "0.7632081", "0.76289856", "0.76289856", "0.76289856", "0.76289856", "0.76289856", "0.7621232", "0.76103914", "0.760702", "0.7606929", "0.76036423", "0.75963986", "0.75935096", "0.75924605", "0.7592089", "0.7589164", "0.7588933", "0.7587741", "0.75831467", "0.75762975", "0.7572102", "0.7572102", "0.7572102", "0.75697005", "0.75697005", "0.75697005", "0.75697005", "0.75697005", "0.75629485", "0.75617105", "0.75617105", "0.75617105", "0.75617105", "0.75617105", "0.7557202", "0.7550463", "0.75433135", "0.75433135", "0.75433135", "0.75388825", "0.7528244", "0.7525923", "0.75253", "0.7519434", "0.7515592", "0.7514979", "0.75104594", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871", "0.7499871" ]
0.7539256
63
Get Description. Optional short description of the record
public String getDescription() { return (String) get_Value("Description"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDesc();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getDescription() {\n return (desc);\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "String getDesc();", "public String getShortDescription() {\n return (String) getValue(SHORT_DESCRIPTION);\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescription() {\n return desc;\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescription() {\n return desc;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDescription() {\n return sdesc;\n }", "public String getFieldDescription()\n {\n return m_strDescription;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String shortDescription() {\n return this.shortDescription;\n }", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String description();", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public CharSequence getDescription() {\n return description;\n }", "public CharSequence getDescription() {\n return description;\n }", "public String getDescr() {\r\n return descr;\r\n }", "public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getHumanReadableDescription();", "public java.lang.String getDesc() {\r\n return desc;\r\n }", "public String getDescription() { return description; }", "public String getDescription() {\r\n return _description;\r\n }", "@NonNull\n public String getShortDescription() {\n return shortDescription;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "@Override\n\t@Column(name = \"leadTypeDescription\", length = 128, nullable = true)\n\tpublic String getDescription()\n\t{\n\t\treturn super.getDescription();\n\t}", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDesc() {\n\t return desc;\n\t }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getShortDescription() {\r\n\t\treturn shortDescription;\r\n\t}", "public String getDescription() {\n return description; \n }", "public String getDescription() {\n return this.Description;\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }", "public String description() {\n return this.descr;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}" ]
[ "0.797509", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.7734628", "0.766412", "0.7653188", "0.76269037", "0.7618238", "0.7592694", "0.75597954", "0.75471056", "0.7529648", "0.7508646", "0.75014675", "0.7471624", "0.7457267", "0.74559754", "0.74559754", "0.74559754", "0.74559754", "0.74559754", "0.7455268", "0.745306", "0.7448877", "0.74428505", "0.7442389", "0.7431319", "0.7394127", "0.7394127", "0.73911077", "0.7374208", "0.7373727", "0.737371", "0.7368545", "0.7368538", "0.73629445", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.736051", "0.73518217", "0.73425937", "0.73263115", "0.7325946", "0.73257387", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.732495", "0.7324455", "0.7324095", "0.73226905", "0.73144805", "0.7306904", "0.7302403", "0.73007494", "0.7292357", "0.7288724", "0.72865695", "0.728068", "0.72733206", "0.72732186", "0.7272195" ]
0.7317292
88
Set Invoice Address. Business Partner Invoice/Bill Address
public void setIsBillTo(boolean IsBillTo) { set_Value("IsBillTo", new Boolean(IsBillTo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBillingAddressInCart(Address addr);", "public void setShippingAddressInCart(Address addr);", "public abstract void setCustomerAddress(Address address);", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public void setInvoice(rules.engine.example.SalaryInvoice _invoice)\n {\n invoice = _invoice;\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "Restaurant setRestaurantAddress(Address address);", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public void setExternalAddress(String address);", "public void setAddress(final String address){\n this.address=address;\n }", "public abstract void setAddressLine1(String sValue);", "public void setMailBillAddress(String value) {\n setAttributeInternal(MAILBILLADDRESS, value);\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String address) { this.address = address; }", "public void createBillingAddress() throws Exception{\n\t\t\n\t\ttype(firstNameTextBox,\"bob\");\n\t\ttype(lastNameTextBox,\"test\");\n\t\ttype(addressLine1TextBox,\"2716 Ocean Park Blvd Suite 1030\");\n\t\ttype(addressLine2TextBox,\"test house\");\n\t\ttype(cityTextBox,\"Santa Monica\");\n\t\ttype(zipcodeTextBox,\"90405\");\n\t\tselect(stateSelectBox,8);\n\t\ttype(phoneTextField,\"6666654686\");\n\t\ttype(companyTextField,\"test company\");\n\t\n\t}", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String _address){\n address = _address;\n }", "Builder setAddress(String address);", "public void setInternalAddress(String address);", "public void setInvoice(java.lang.String invoice) {\r\n this.invoice = invoice;\r\n }", "public void setStreetAddress( EAIMMCtxtIfc theCtxt, java.lang.String theStreetAddress) throws EAIException;", "public void setInvoice(String invoice) {\n this.invoice = invoice;\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void editAttractionAddress(String address){\r\n this.address = address;\r\n }", "public abstract void setAddressLine2(String sValue);", "Address getAddress() {\n\t\t\treturn editedAddress;\n\t\t}", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(java.lang.String address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "public void setAddress2(String address2);", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "void setAdress(String generator, String address);", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) throws JAXRException {\n this.address = address;\n }", "public void setInvoiceNumber(int invoicenum) {\n invoiceNumber = invoicenum;\n }", "public void setAccountAddress(String name, String street,\n String city, String state, String zip, String country) {\n setA_Name(name);\n setA_Street(street);\n setA_City(city);\n setA_State(state);\n setA_Zip(zip);\n setA_Country(country);\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddressOfCustomer(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAILADDRESSOFCUSTOMER,value);\n\t}", "public void testTwoAddressLineItems() throws InterruptedException {\n Customer customer = CustomerService.getInstance().getCustomerById(new Integer(5305));\r\n ir.printInvoice(custInv, customer);\r\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getPurchaseLinkeAddress() {\n return purchaseLinkeAddress;\n }", "Order setInvoicePaidStatus(Order order, User user);", "public void setFromAddress(java.lang.String fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FROMADDRESS$6);\n }\n target.setStringValue(fromAddress);\n }\n }", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public IndividualAddress(final int address)\n\t{\n\t\tsuper(address);\n\t}", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setADDRESSIND(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.ADDRESS_IND = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setC_Invoice_ID (int C_Invoice_ID);", "public void setPostalCode( EAIMMCtxtIfc theCtxt, java.lang.String thePostalCode) throws EAIException;", "public Address updateAddress(Address newAddress);", "public static void setInvoiceData (final InvoiceData id)\n {\n invoiceData = id;\n }", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setPurchaseLinkeAddress(String purchaseLinkeAddress) {\n this.purchaseLinkeAddress = purchaseLinkeAddress == null ? null : purchaseLinkeAddress.trim();\n }", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setADDRESSIND(java.lang.CharSequence value) {\n this.ADDRESS_IND = value;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setBENEF_ADDRESS(String BENEF_ADDRESS) {\r\n this.BENEF_ADDRESS = BENEF_ADDRESS == null ? null : BENEF_ADDRESS.trim();\r\n }" ]
[ "0.7377578", "0.67381114", "0.65422225", "0.63659513", "0.63148105", "0.629456", "0.62893355", "0.627921", "0.6205816", "0.6170723", "0.6170723", "0.6170723", "0.6136761", "0.60531104", "0.60421383", "0.60337555", "0.6018492", "0.60061413", "0.5993564", "0.5990433", "0.5982869", "0.59668976", "0.59668976", "0.59668976", "0.59668976", "0.5959515", "0.594528", "0.5920371", "0.5913721", "0.5904617", "0.5900543", "0.5899086", "0.58977187", "0.58654594", "0.5863177", "0.5847035", "0.5844155", "0.5844155", "0.5844155", "0.58338636", "0.57950264", "0.57950264", "0.57910097", "0.57884794", "0.57884794", "0.5781822", "0.57664794", "0.5758174", "0.5754385", "0.57340825", "0.5720563", "0.5720563", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.57174605", "0.5714711", "0.56703514", "0.56670976", "0.5637242", "0.56370986", "0.5632274", "0.5631943", "0.5602467", "0.55946964", "0.55863196", "0.5584807", "0.55755305", "0.55735564", "0.5570947", "0.5570947", "0.5546856", "0.5539346", "0.5529977", "0.5529977", "0.5529977", "0.5529977", "0.5529977", "0.5525947", "0.55073696", "0.5501496", "0.5500329", "0.5496152", "0.54883784", "0.5482551", "0.54771996", "0.5461069", "0.5459455" ]
0.0
-1
Get Invoice Address. Business Partner Invoice/Bill Address
public boolean isBillTo() { Object oo = get_Value("IsBillTo"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean) oo).booleanValue(); return "Y".equals(oo); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress() throws JAXRException{\n return address;\n }", "public String getAddressIn() {\n\t\treturn addressIn.get();\n\t}", "public String getExternalAddress();", "public String getPurchaseLinkeAddress() {\n return purchaseLinkeAddress;\n }", "public abstract LinphoneAddress getAddress();", "public String getAddress() {\n return definition.getString(ADDRESS);\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "java.lang.String getHotelAddress();", "public String getBillingAddressDetails(){\n String address = driver.findElement(oBillingAddress).getText();\n logger.debug(\"billing address is :\" + address);\n return address;\n }", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);", "public com.commercetools.api.models.common.Address getAddress() {\n return this.address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public String getAddress()\n {\n \treturn address;\n }", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public abstract Address getCustomerAddress();", "public abstract String getAddressLine2();", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public PostalAddress getAddress() {\n return address;\n }", "public abstract String getAddressLine1();", "public String getBENEF_ADDRESS() {\r\n return BENEF_ADDRESS;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "@Override\n\tpublic String getAdres() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getAddress();\n\t\treturn w;\n\t}", "String getAddress();", "String getAddress();", "public String getAddress();", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "String getEndereco2();", "public String getDeliveryAddressDetails(){\n String address = driver.findElement(oDeliveryAddress).getText();\n logger.debug(\"delivery address is :\" + address);\n return address;\n }", "public final String getAddress() {\n return address;\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public String getOrganizationAddress() {\n\n \n return organizationAddress;\n\n }", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "Diadoc.Api.Proto.Recognition.RecognitionProtos.RecognizedInvoice getInvoice();", "public String getContactAddress() {\n\n \n return contactAddress;\n\n }", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {return address;}", "public String getAddress() {\n return this._address;\n }", "public String getInternalAddress();", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public String getAddressline1() {\n return addressline1;\n }" ]
[ "0.6881824", "0.6812775", "0.67457205", "0.66558087", "0.6653316", "0.6653316", "0.65284353", "0.64847594", "0.64753103", "0.6461479", "0.6440382", "0.639993", "0.6398353", "0.6398353", "0.6398353", "0.6398353", "0.6398353", "0.6398353", "0.63974607", "0.6375271", "0.63453615", "0.6329658", "0.6314817", "0.6294405", "0.629078", "0.6274836", "0.6260637", "0.6236672", "0.6233596", "0.6228062", "0.6215647", "0.6204415", "0.6196008", "0.6196008", "0.6196008", "0.6196008", "0.6196008", "0.6196008", "0.6196008", "0.61922777", "0.6188395", "0.61801785", "0.61801785", "0.6178892", "0.6174046", "0.6156532", "0.6156532", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6151883", "0.6144118", "0.6144118", "0.6131487", "0.6112206", "0.611027", "0.61048037", "0.61019236", "0.6098982", "0.60985136", "0.6097888", "0.6096989", "0.60961425", "0.60961425", "0.60866517", "0.6083611", "0.6080839", "0.6072926", "0.6072659", "0.6072351", "0.6069237" ]
0.0
-1
Set PayFrom Address. Business Partner pays from that address and we'll send dunning letters there
public void setIsPayFrom(boolean IsPayFrom) { set_Value("IsPayFrom", new Boolean(IsPayFrom)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBillingAddressInCart(Address addr);", "public void setFromAddress(String fromAddress)\n {\n _fromAddress = fromAddress;\n }", "public void setFromAddress(java.lang.String fromAddress) {\n\t\tthis.fromAddress = fromAddress;\n\t}", "public void setFromAddress(java.lang.String fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FROMADDRESS$6);\n }\n target.setStringValue(fromAddress);\n }\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setShippingAddressInCart(Address addr);", "public void xsetFromAddress(org.apache.xmlbeans.XmlString fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FROMADDRESS$6);\n }\n target.set(fromAddress);\n }\n }", "Builder setAddress(String address);", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(String address) { this.address = address; }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "void setAdress(String generator, String address);", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setSenderAddress(java.lang.String value) {\n validate(fields()[20], value);\n this.senderAddress = value;\n fieldSetFlags()[20] = true;\n return this;\n }", "public abstract void setCustomerAddress(Address address);", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setMailBillAddress(String value) {\n setAttributeInternal(MAILBILLADDRESS, value);\n }", "private ParkingAddress(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public void setInternalAddress(String address);", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setDefaultFromAddress(String theDefaultFromAddress) {\n\t\tValidate.notBlank(theDefaultFromAddress, \"theDefaultFromAddress must not be null or blank\");\n\t\tmyDefaultFromAddress = theDefaultFromAddress;\n\t}", "public void createBillingAddress() throws Exception{\n\t\t\n\t\ttype(firstNameTextBox,\"bob\");\n\t\ttype(lastNameTextBox,\"test\");\n\t\ttype(addressLine1TextBox,\"2716 Ocean Park Blvd Suite 1030\");\n\t\ttype(addressLine2TextBox,\"test house\");\n\t\ttype(cityTextBox,\"Santa Monica\");\n\t\ttype(zipcodeTextBox,\"90405\");\n\t\tselect(stateSelectBox,8);\n\t\ttype(phoneTextField,\"6666654686\");\n\t\ttype(companyTextField,\"test company\");\n\t\n\t}", "public void setAddress2(String address2);", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setSenderAddress(java.lang.String senderAddress) {\r\n this.senderAddress = senderAddress;\r\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public void setExternalAddress(String address);", "public void setStreetAddress(String newStreetAddress) {\n this.address = newStreetAddress;\n }", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public Builder setBitcoinAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bitcoinAddress_ = value;\n onChanged();\n return this;\n }", "public abstract void setAddressLine1(String sValue);", "public void setNeedBuyerAddressAndPhone(Boolean needBuyerAddressAndPhone) {\n this.needBuyerAddressAndPhone = needBuyerAddressAndPhone;\n }", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public Builder setAddress(com.google.protobuf.StringValue value) {\n if (addressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n address_ = value;\n onChanged();\n } else {\n addressBuilder_.setMessage(value);\n }\n\n return this;\n }", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public void setAddress(java.lang.String address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }" ]
[ "0.6940878", "0.69192654", "0.64835757", "0.64589775", "0.63348573", "0.6203788", "0.6148356", "0.61168766", "0.6093851", "0.5973224", "0.5973224", "0.5973224", "0.5951109", "0.58527935", "0.58491755", "0.5843712", "0.5843712", "0.5843712", "0.5843712", "0.58373207", "0.58354384", "0.5829969", "0.5799968", "0.57852393", "0.57852393", "0.578485", "0.5774719", "0.5760974", "0.5760974", "0.5760974", "0.5759539", "0.5759539", "0.57375306", "0.5735973", "0.5711422", "0.5711422", "0.56994885", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56616706", "0.56234074", "0.56225544", "0.56175286", "0.5603562", "0.5587158", "0.5581056", "0.5578453", "0.5548135", "0.5536157", "0.5528211", "0.55234426", "0.5514875", "0.5514875", "0.5510687", "0.5510687", "0.5510687", "0.5510687", "0.5510687", "0.5501022", "0.54937834", "0.54914445", "0.54882205", "0.5482037", "0.5470066", "0.544645", "0.54464376", "0.54279834", "0.54279834", "0.5413154", "0.5409571", "0.540671", "0.5400132", "0.54000086", "0.53758776", "0.53663325", "0.53659904", "0.5361891", "0.5343061", "0.5340299", "0.5338176", "0.53051084", "0.53031397", "0.52687275", "0.52568483", "0.5245805", "0.5239934" ]
0.58889914
13
Get PayFrom Address. Business Partner pays from that address and we'll send dunning letters there
public boolean isPayFrom() { Object oo = get_Value("IsPayFrom"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean) oo).booleanValue(); return "Y".equals(oo); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public String getBillingAddressDetails(){\n String address = driver.findElement(oBillingAddress).getText();\n logger.debug(\"billing address is :\" + address);\n return address;\n }", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public java.lang.String getFromAddress() {\n\t\treturn fromAddress;\n\t}", "String getAddress();", "String getAddress();", "public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), mLocation);\n } else {\n mLocation = null;\n if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n Location currLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n if (currLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(currLocation.getLatitude(), currLocation.getLongitude()));\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5, this);\n if (mCurrLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(mCurrLocation.getLatitude(), mCurrLocation.getLongitude()));\n } else {\n // Default location in case location search doesn't work on first try\n mBusinessAddress = DiscoverConstants.DEFAULT_LOCATION;\n }\n }\n } else {\n mBusinessAddress = null;\n }\n }\n }", "public String getDeliveryAddressDetails(){\n String address = driver.findElement(oDeliveryAddress).getText();\n logger.debug(\"delivery address is :\" + address);\n return address;\n }", "private SpeechletResponse bankAddressResponse() {\n\n Place place = getPlaceWithOpeningHours();\n\n if (place == null) {\n log.error(\"No place was found! Your address: \" + deviceAddress.toString());\n return getAskResponse(BANK_CONTACT_CARD, ERROR_TEXT);\n }\n\n return doBankAddressResponse(place);\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public Address getAddress(com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address res){\n\t\tAddress address = new Address();\n\t\t\n\t\taddress.setStreetAddress( res.getStreetAddress() );\n\t\t//Start theAV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setCity( res.getCity().toUpperCase() );\n\t\taddress.setState( res.getState().toUpperCase() );\n\t\t//Business wise not require for now\n\t\t//address.setCountry( res.getCountry() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setZipCode( res.getZipCode() );\n\t\t\n\t\treturn address;\n\t}", "public void setBillingAddressInCart(Address addr);", "public abstract LinphoneAddress getAddress();", "MessageAddress getMessageAddress();", "public com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address getAddressReq(Address address){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address addressReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address();\n\t\t//Start theAV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddressReq.setStreetAddress( address.getStreetAddress() );\n\t\taddressReq.setCity( address.getCity() );\n\t\taddressReq.setState( address.getState() );\n\t\t//Business wise not require for now\n\t\t//addressReq.setCountry( address.getCountry() );\n\t\taddressReq.setZipCode( address.getZipCode() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\treturn addressReq;\n\t}", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);", "String getAddress(int type);", "public Address getDefaultBillingAddress();", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "java.lang.String getHotelAddress();", "public String getAddress() {return address;}", "public String getAddress();", "public String getAddress()\n {\n \treturn address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "AddressI getAddress();", "public java.lang.String getFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n\tpublic String getAdres() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getAddress();\n\t\treturn w;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public String getExternalAddress();", "public static String getLocationFromAddress(Context context, String strAddress) {\n\n Geocoder coder = new Geocoder(context);\n List<Address> address;\n String data = \"\";\n\n try {\n // address = coder.getFromLocationName(strAddress, 5);\n address = coder.getFromLocationName(strAddress, 15);\n if (address == null || address.size() <= 0) {\n return data;\n }\n Address location = address.get(0);\n\n System.out.println(\"============\" + location.getLatitude() + \"===================\" + location.getLongitude() + \"====================\");\n System.out.println(\"=====Local=======\" + location.getSubLocality());\n System.out.println(\"=====City=======\" + location.getLocality());\n System.out.println(\"=====State=======\" + location.getAdminArea());\n System.out.println(\"=====PinCode=======\" + location.getPostalCode());\n System.out.println(\"=====Country=======\" + location.getCountryName());\n\n data = location.getLatitude() + \",,,\" + location.getLongitude() + \",,,\" + location.getSubLocality() + \",,,\" + location.getLocality() + \",,,\" + location.getAdminArea() + \",,,\" +\n location.getPostalCode() + \",,,\" + location.getCountryName();\n\n\n } catch (Exception ex) {\n\n ex.printStackTrace();\n return data;\n }\n return data;\n\n }", "public static String getUserAddress(String accountNumber){\n return \"select ui_serviceaddress from user_information where ui_account = '\"+accountNumber+\"'\";\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "static void printAccountBalance(String address){\n }", "com.google.protobuf.ByteString\n\t\t\tgetAddressBytes();", "com.google.protobuf.ByteString getAddressBytes();", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "public Call<BCExplorerResult<AddressData>> getAddressData(String address, boolean withSum) {\n return getInstantService().balance(address, withSum ? 1 : 0);\n }", "String getStreet();", "public String getAddress(){\n return address;\n\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress(){\r\n return address;\r\n }", "public String getBounceAddress() {\n return bounceAddress;\n }", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "@Override\n\tpublic String getAccountAddress(String account) throws WalletException {\n\t\treturn null;\n\t}" ]
[ "0.62987995", "0.62987995", "0.62987995", "0.62987995", "0.62987995", "0.62987995", "0.627715", "0.6238721", "0.6186106", "0.61317307", "0.60590667", "0.6027168", "0.6027168", "0.6000596", "0.59930336", "0.58957297", "0.58230734", "0.58230734", "0.5807004", "0.577312", "0.5770002", "0.5751256", "0.5730736", "0.5728306", "0.5688092", "0.56767493", "0.56765807", "0.567464", "0.56634295", "0.5651373", "0.5644696", "0.5640852", "0.56054384", "0.5588986", "0.5566718", "0.5556805", "0.55494326", "0.5525052", "0.552442", "0.55156595", "0.5512892", "0.55095696", "0.55095696", "0.55095696", "0.55095696", "0.55095696", "0.55095696", "0.55095696", "0.5501475", "0.5501475", "0.5493899", "0.5491989", "0.5487444", "0.54668504", "0.54621094", "0.54603845", "0.5439508", "0.5433234", "0.5433234", "0.54325694", "0.5430008", "0.5425416", "0.5423048", "0.542208", "0.542208", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5416953", "0.5413786", "0.5409641" ]
0.0
-1
Set RemitTo Address. Business Partner payment address
public void setIsRemitTo(boolean IsRemitTo) { set_Value("IsRemitTo", new Boolean(IsRemitTo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBillingAddressInCart(Address addr);", "Restaurant setRestaurantAddress(Address address);", "public void setTo(Address to) {\n setAddressList(FieldName.TO, to);\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public abstract void setCustomerAddress(Address address);", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setShippingAddressInCart(Address addr);", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress2(String address2);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void editAttractionAddress(String address){\r\n this.address = address;\r\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) { this.address = address; }", "Builder setAddress(String address);", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setTo(Address... to) {\n setAddressList(FieldName.TO, to);\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setNeedBuyerAddressAndPhone(Boolean needBuyerAddressAndPhone) {\n this.needBuyerAddressAndPhone = needBuyerAddressAndPhone;\n }", "void setAdress(String generator, String address);", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setExternalAddress(String address);", "SerialResponse editRecipient(String recipientToken, PinRecipientPut pinRecipientPut);", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setInternalAddress(String address);", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "@Override\n public String getPayTo() {\n return this.getFirstName() + \" \" + this.getLastName();\n }", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public abstract void setAddressLine1(String sValue);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public abstract void setAddressLine2(String sValue);", "public void setFromAddress(String fromAddress)\n {\n _fromAddress = fromAddress;\n }", "@Override\n public String getPayTo() {\n return getFirstName() + \" \" + getLastName();\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public void setFromAddress(java.lang.String fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FROMADDRESS$6);\n }\n target.setStringValue(fromAddress);\n }\n }", "static boolean changeAddress(Person p, String newAddress){\n\n p.setAress(lquhfsflqj);\n return true;\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setInReplyTo(PDAnnotation irt) {\n/* 276 */ getCOSObject().setItem(\"IRT\", irt);\n/* */ }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) throws JAXRException {\n this.address = address;\n }", "private void setValueForEditAddrss() {\n ServiceCaller serviceCaller = new ServiceCaller(context);\n serviceCaller.callGetAllAddressByIdService(addressid, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String workName, boolean isComplete) {\n if (isComplete) {\n if (!workName.trim().equalsIgnoreCase(\"no\") && !workName.equalsIgnoreCase(\"\")) {\n ContentDataAsArray contentDataAsArray = new Gson().fromJson(workName, ContentDataAsArray.class);\n for (Data data : contentDataAsArray.getData()) {\n if (data != null) {\n edt_name.setText(data.getName());\n edt_phone.setText(data.getPhone());\n edt_landmark.setText(data.getLandmark());\n edt_address.setText(data.getAddress());\n edt_city.setText(data.getCity());\n edt_state.setText(data.getState());\n }\n }\n }\n }\n }\n });\n\n }", "public void setPostalAddress(PostalAddress postalAddress) {\n sprr = company.getServiceProvidingRequestRecords();\n spr = sprr.newRequest(cli, postalAddress);\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "Address getAddress() {\n\t\t\treturn editedAddress;\n\t\t}", "public void setTo(Collection<Address> to) {\n setAddressList(FieldName.TO, to);\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "public void setReceiver(String address) throws MessagingException\r\n {\r\n String[] re = {address};\r\n setReceivers(re);\r\n }", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "void setContractAddress(String contractAddress) {\n this.contractAddress = contractAddress;\n if(this.getNextContractMethods() != null && this.getNextContractMethods().size() != 0) {\n this.getNextContractMethods().stream().forEach(contractMethod -> {\n contractMethod.contractAddress = contractAddress;\n });\n }\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setAddress(org.xmlsoap.schemas.wsdl.soap.TAddress address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().find_element_user(ADDRESS$0, 0);\n if (target == null)\n {\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n }\n target.set(address);\n }\n }", "void editAddressUser(String uid, Address address);", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}" ]
[ "0.66551536", "0.6490795", "0.6263724", "0.6170172", "0.6052321", "0.5980949", "0.596885", "0.5922594", "0.58916074", "0.58243334", "0.58243334", "0.58243334", "0.58243334", "0.58068305", "0.58068305", "0.58068305", "0.5754003", "0.57521516", "0.5749713", "0.5741398", "0.573112", "0.5710193", "0.5710183", "0.5668408", "0.5640252", "0.56058407", "0.56013185", "0.5596646", "0.5596646", "0.5592179", "0.55852777", "0.5577103", "0.5561559", "0.554724", "0.5530338", "0.55268735", "0.5526635", "0.5487785", "0.5486798", "0.54746306", "0.54746306", "0.54597783", "0.54597783", "0.54597783", "0.5452685", "0.5448786", "0.5439303", "0.543637", "0.54225075", "0.54225075", "0.5404007", "0.5403646", "0.5403646", "0.53991306", "0.5395001", "0.53917223", "0.5341225", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53401595", "0.53173065", "0.5312145", "0.5309735", "0.5301258", "0.53003657", "0.5276788", "0.5274225", "0.52610534", "0.525822", "0.525822", "0.5257451", "0.5257087", "0.525216", "0.52516496", "0.5223659", "0.5215782", "0.52144647", "0.5207345", "0.5191306", "0.51826257", "0.5174103", "0.5165346", "0.5163805", "0.5160837", "0.5158542", "0.51560885", "0.5141103" ]
0.0
-1
Get RemitTo Address. Business Partner payment address
public boolean isRemitTo() { Object oo = get_Value("IsRemitTo"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean) oo).booleanValue(); return "Y".equals(oo); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "@Override\n\tpublic String getAdres() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getAddress();\n\t\treturn w;\n\t}", "public String getAddress() throws JAXRException{\n return address;\n }", "public abstract LinphoneAddress getAddress();", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "public String getFromAddress()\n {\n return _fromAddress;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public String getBillingAddressDetails(){\n String address = driver.findElement(oBillingAddress).getText();\n logger.debug(\"billing address is :\" + address);\n return address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getAddress();", "String getAddress();", "public String getExternalAddress();", "public String getAddress() {\n return definition.getString(ADDRESS);\n }", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public String getAddress();", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress(){\n\t\treturn address;\n\t}", "@AutoEscape\n\tpublic String getAddress2();", "public String getAddress(){\n return address;\n\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public final String getAddress() {\n return address;\n }", "public abstract String getAddressLine2();", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public String getAddress(){\r\n return address;\r\n }", "public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), mLocation);\n } else {\n mLocation = null;\n if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n Location currLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n if (currLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(currLocation.getLatitude(), currLocation.getLongitude()));\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5, this);\n if (mCurrLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(mCurrLocation.getLatitude(), mCurrLocation.getLongitude()));\n } else {\n // Default location in case location search doesn't work on first try\n mBusinessAddress = DiscoverConstants.DEFAULT_LOCATION;\n }\n }\n } else {\n mBusinessAddress = null;\n }\n }\n }", "@Override\n public String getPayTo() {\n return this.getFirstName() + \" \" + this.getLastName();\n }", "public String getPurchaseLinkeAddress() {\n return purchaseLinkeAddress;\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getAddress() {return address;}", "public String getBENEF_ADDRESS_2() {\r\n return BENEF_ADDRESS_2;\r\n }", "public String getDeliveryAddressDetails(){\n String address = driver.findElement(oDeliveryAddress).getText();\n logger.debug(\"delivery address is :\" + address);\n return address;\n }", "java.lang.String getHotelAddress();", "@Override\n public String getPayTo() {\n return getFirstName() + \" \" + getLastName();\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public Address getAddress(com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address res){\n\t\tAddress address = new Address();\n\t\t\n\t\taddress.setStreetAddress( res.getStreetAddress() );\n\t\t//Start theAV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setCity( res.getCity().toUpperCase() );\n\t\taddress.setState( res.getState().toUpperCase() );\n\t\t//Business wise not require for now\n\t\t//address.setCountry( res.getCountry() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setZipCode( res.getZipCode() );\n\t\t\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress2() {\r\n return address2;\r\n }", "@Override\r\n\tpublic String getAddress() {\n\t\treturn address;\r\n\t}", "public String getAddress() {\n return this._address;\n }", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "String getEndereco2();", "public String getAddress() {\n return m_Address;\n }" ]
[ "0.7097163", "0.6727174", "0.6727174", "0.6684091", "0.6646795", "0.6646795", "0.6646795", "0.6646795", "0.6646795", "0.6646795", "0.6589426", "0.658245", "0.65287703", "0.6502042", "0.65014815", "0.6484996", "0.6477542", "0.6441617", "0.64020985", "0.63991153", "0.63769746", "0.63633186", "0.63633186", "0.6321782", "0.6318622", "0.6308816", "0.63068867", "0.62910396", "0.62910396", "0.62910396", "0.62910396", "0.62910396", "0.62910396", "0.62910396", "0.6284321", "0.62809527", "0.6267976", "0.6263811", "0.6263811", "0.6261723", "0.62300843", "0.62269634", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6226706", "0.6224218", "0.6203792", "0.6196778", "0.619431", "0.619375", "0.61907023", "0.6185685", "0.61789966", "0.61782724", "0.61674404", "0.61613005", "0.6157482", "0.6157482", "0.61513096", "0.61513096", "0.61513096", "0.6151026", "0.61436474", "0.61436474", "0.6139477", "0.61103594", "0.60957754", "0.6091211", "0.60806847", "0.6074991" ]
0.0
-1
Set Ship Address. Business Partner Shipment Address
public void setIsShipTo(boolean IsShipTo) { set_ValueNoCheck("IsShipTo", new Boolean(IsShipTo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShippingAddressInCart(Address addr);", "public void setBillingAddressInCart(Address addr);", "public void setShip_address(Integer ship_address) {\n this.ship_address = ship_address;\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public PaymentRequest setShippingAddress(String country, String state, String city, String district,\r\n String postalCode, String street, String number, String complement) {\r\n if (shipping == null) {\r\n shipping = new Shipping();\r\n }\r\n shipping.setAddress(new Address(country, state, city, district, postalCode, street, number, complement));\r\n return this;\r\n }", "@Override\n\t\tpublic Builder shippingAddress(final Address address) {\n\t\t\tthis.map.put(SHIPPING_ADDRESS, address);\n\t\t\tthis.previous = SHIPPING_ADDRESS;\n\t\t\treturn builder();\n\t\t}", "public abstract void setCustomerAddress(Address address);", "public abstract void setAddressLine1(String sValue);", "public void setShipAgencyAddress(java.lang.String shipAgencyAddress) {\n\t\t_tempNoTiceShipMessage.setShipAgencyAddress(shipAgencyAddress);\n\t}", "Restaurant setRestaurantAddress(Address address);", "public abstract void setAddressLine2(String sValue);", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void sameShipAddress() {\n\t\t\n\t\tclick(sameShippingAddressCheckBox);\n\t}", "Builder setAddress(String address);", "public void setAddress(String stNo,String stName,String sburb,String state,String pstCde) {\n Address nAddress = new Address(stNo,stName,sburb,state,pstCde);\n setAddress(nAddress);\n }", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "void setShipping(BigDecimal shipping);", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(String address) { this.address = address; }", "public void setStreets(int numx, int numy);", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress2(String address2);", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setShippingRequest(CMSShippingRequest shippingRequest) {\n\t\tsetAddressLine1(shippingRequest.getAddress());\n\t\tsetAddressLine2(shippingRequest.getAddress2());\n\t\tsetCity(shippingRequest.getCity());\n\t\tsetState(shippingRequest.getState());\n\t\tsetZipCode(shippingRequest.getZipCode());\n\t\tsetPhone1(shippingRequest.getPhone());\n\t}", "public void setExternalAddress(String address);", "public PaymentRequest setShipping(ShippingType type, String country, String state, String city, String district,\r\n String postalCode, String street, String number, String complement) {\r\n if (shipping == null) {\r\n shipping = new Shipping();\r\n }\r\n shipping.setType(type);\r\n shipping.setAddress(new Address(country, state, city, district, postalCode, street, number, complement));\r\n return this;\r\n }", "public void setAddress(final String address){\n this.address=address;\n }", "public void setStreetAddress( EAIMMCtxtIfc theCtxt, java.lang.String theStreetAddress) throws EAIException;", "public void setInternalAddress(String address);", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setShip (Ship s){\n \tthis.ship=s;\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public Integer getShip_address() {\n return ship_address;\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(java.lang.String address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Address updateAddress(Address newAddress);", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "void setAddress(String address) throws IllegalArgumentException;", "public void setShipAgencyPhone(java.lang.String shipAgencyPhone) {\n\t\t_tempNoTiceShipMessage.setShipAgencyPhone(shipAgencyPhone);\n\t}", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public void createBillingAddress() throws Exception{\n\t\t\n\t\ttype(firstNameTextBox,\"bob\");\n\t\ttype(lastNameTextBox,\"test\");\n\t\ttype(addressLine1TextBox,\"2716 Ocean Park Blvd Suite 1030\");\n\t\ttype(addressLine2TextBox,\"test house\");\n\t\ttype(cityTextBox,\"Santa Monica\");\n\t\ttype(zipcodeTextBox,\"90405\");\n\t\tselect(stateSelectBox,8);\n\t\ttype(phoneTextField,\"6666654686\");\n\t\ttype(companyTextField,\"test company\");\n\t\n\t}", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "void setStreet(String street);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public java.lang.String getShipAgencyAddress() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyAddress();\n\t}", "public void setShipTo(vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemShipTo shipTo) {\n this.shipTo = shipTo;\n }", "public void editAttractionAddress(String address){\r\n this.address = address;\r\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public Address getDefaultShippingAddress();", "public void setMailBillAddress(String value) {\n setAttributeInternal(MAILBILLADDRESS, value);\n }", "public PaymentRequest setShipping(ShippingType type, String country, String state, String city, String district,\r\n String postalCode, String street, String number, String complement, BigDecimal cost) {\r\n\r\n setShipping(type, country, state, city, district, postalCode, street, number, complement);\r\n shipping.setCost(cost);\r\n\r\n return this;\r\n\r\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n Member instance = member;\n \n String address = \"10 New Road, Hackney, London\";\n instance.setAddress(address);\n \n String expResult = address;\n String result = instance.getAddress();\n \n assertEquals(expResult,result);\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }" ]
[ "0.7780367", "0.72316986", "0.7017581", "0.69839", "0.6950449", "0.68248934", "0.6653896", "0.6577724", "0.65285236", "0.65153074", "0.6490797", "0.6475433", "0.64599454", "0.64599454", "0.64599454", "0.64599454", "0.6447929", "0.64319116", "0.64081514", "0.6358807", "0.63541985", "0.62744176", "0.62744176", "0.62744176", "0.6267454", "0.6238509", "0.62335676", "0.620196", "0.6197041", "0.6196793", "0.6182029", "0.6147983", "0.6147983", "0.6132826", "0.61271155", "0.61259", "0.61200905", "0.61179554", "0.61049956", "0.60904086", "0.6089206", "0.6075547", "0.6050522", "0.6050522", "0.60399616", "0.6034267", "0.6034267", "0.6024452", "0.60232913", "0.6022622", "0.601855", "0.5999507", "0.5990916", "0.5990916", "0.5981896", "0.59736097", "0.5952062", "0.5942371", "0.59326893", "0.59326893", "0.59326893", "0.5932169", "0.5932169", "0.5931929", "0.5916984", "0.5911871", "0.58877313", "0.58864117", "0.58858997", "0.5884878", "0.5878864", "0.5868264", "0.5868264", "0.5863643", "0.58565253", "0.58313733", "0.58204895", "0.58042157", "0.58042157", "0.57970166", "0.57963884", "0.5784692", "0.57788825", "0.57742345", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019", "0.5773019" ]
0.0
-1
Get Ship Address. Business Partner Shipment Address
public boolean isShipTo() { Object oo = get_Value("IsShipTo"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean) oo).booleanValue(); return "Y".equals(oo); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getShipAgencyAddress() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyAddress();\n\t}", "java.lang.String getHotelAddress();", "public Integer getShip_address() {\n return ship_address;\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Override\n\tpublic Address getShippingAddress() {\n\t\treturn (Address)map.get(SHIPPING_ADDRESS);\n\t}", "public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"[email protected]\")\n .withFullName(new Buyer.FullName(\"Thales\", \"Services\", \"M.\"))\n .withStreet1(\"150 rue dont le nom est le plus long que j'ai jamais vu. Y'a pas idée d'habiter un endroit pareil !\")\n .withStreet2(\"Le grand bâtiment orange, avec les fenêtres un peu hautes mais un peu larges aussi, et un toit bleu\")\n .withZipCode(\"13100\")\n .build();\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "String getAddress();", "String getAddress();", "public abstract LinphoneAddress getAddress();", "public String getAddress();", "ShippingPointStructure getShipTo();", "public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), mLocation);\n } else {\n mLocation = null;\n if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n Location currLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n if (currLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(currLocation.getLatitude(), currLocation.getLongitude()));\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5, this);\n if (mCurrLocation != null) {\n mBusinessAddress = AppUtil.getAddress(getContext(), new LatLng(mCurrLocation.getLatitude(), mCurrLocation.getLongitude()));\n } else {\n // Default location in case location search doesn't work on first try\n mBusinessAddress = DiscoverConstants.DEFAULT_LOCATION;\n }\n }\n } else {\n mBusinessAddress = null;\n }\n }\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "public Address getDefaultShippingAddress();", "public String getExternalAddress();", "public String getDeliveryAddressDetails(){\n String address = driver.findElement(oDeliveryAddress).getText();\n logger.debug(\"delivery address is :\" + address);\n return address;\n }", "public String getAddress()\n\t{\n\t\treturn streetAddress;\n\t}", "public String getAddress() throws JAXRException{\n return address;\n }", "ShippingPointStructure getShipFrom();", "public PostalAddress getAddress() {\n return address;\n }", "public String getAddress() {\n return definition.getString(ADDRESS);\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public abstract String getAddressLine2();", "public String getAddress()\n {\n \treturn address;\n }", "String getStreet();", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public abstract Address getCustomerAddress();", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "public Address getDeliveryAddress() {\n return deliveryAddress;\n }", "public com.commercetools.api.models.common.Address getAddress() {\n return this.address;\n }", "public String getPostalAddress() {\n\t\treturn PostalAddress;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public String getAddress() {return address;}", "public String getAddress(){\n\t\treturn address;\n\t}", "AddressI getAddress();", "public String getFormattedAddress() {\n return formattedAddress;\n }", "public String getInternalAddress();", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public abstract String getAddressLine1();", "public String getBENEF_ADDRESS_2() {\r\n return BENEF_ADDRESS_2;\r\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getBENEF_ADDRESS() {\r\n return BENEF_ADDRESS;\r\n }", "public final String getAddress() {\n return address;\n }", "public String getFormattedAddress() {\n return formattedAddress;\n }", "public java.lang.String getAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getShopsAddress(int deliveryid) {\n\t\treturn null;\n\t}", "public Address getAddress(com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.address.v1.Address res){\n\t\tAddress address = new Address();\n\t\t\n\t\taddress.setStreetAddress( res.getStreetAddress() );\n\t\t//Start theAV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setCity( res.getCity().toUpperCase() );\n\t\taddress.setState( res.getState().toUpperCase() );\n\t\t//Business wise not require for now\n\t\t//address.setCountry( res.getCountry() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\taddress.setZipCode( res.getZipCode() );\n\t\t\n\t\treturn address;\n\t}" ]
[ "0.7376665", "0.7220323", "0.71660346", "0.7125858", "0.7125858", "0.7125858", "0.7125858", "0.7125858", "0.7125858", "0.7117636", "0.7031299", "0.70069844", "0.6992552", "0.6992552", "0.6924773", "0.6924773", "0.6903285", "0.684527", "0.68378985", "0.67582154", "0.67320204", "0.6701088", "0.6695328", "0.6684896", "0.66825974", "0.6668535", "0.66600287", "0.664763", "0.6635919", "0.6626406", "0.6582062", "0.65537", "0.6552729", "0.6522697", "0.6513658", "0.65061486", "0.6502168", "0.6482419", "0.6479884", "0.6474444", "0.6473158", "0.6472716", "0.6472716", "0.6472716", "0.6472716", "0.6472716", "0.6472716", "0.6472716", "0.6449038", "0.64487267", "0.6448702", "0.6446371", "0.6445794", "0.64399034", "0.643744", "0.643744", "0.6431173", "0.64053154", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.64029235", "0.6401664", "0.63964826", "0.63929003", "0.63906574", "0.6390172", "0.6381401", "0.6381401", "0.63770384", "0.6368033" ]
0.0
-1
Set Name. Alphanumeric identifier of the entity
public void setName(String Name) { if (Name == null) throw new IllegalArgumentException("Name is mandatory."); if (Name.length() > 60) { log.warning("Length > 60 - truncated"); Name = Name.substring(0, 59); } set_Value("Name", Name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String n) {\n this.name = n;\n }", "public void setName (String n) {\n name = n;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setName(String n){ name=n; }", "public void setName(String n);", "public void setName(String Name){\r\n name = Name;\r\n }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String value) {\n this.name = value;\n }", "public void setName (String Name);", "public void setName (String Name);", "public void setName (String Name);", "public void setName(String s) {\n this.name = s;\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String Name) {\n this.Name = Name;\n }", "public void setName(String Name) {\n this.Name = Name;\n }", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "void setName(String name_);", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public static void setName(EntityLiving entity, String name) {\n entity.func_94058_c(name);\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public void setName(String nameIn) {\n name = nameIn;\n }", "@Override\n public void setName(String name) {\n \n }", "public void setName(String n)\n\t{\n\t\tfullName=n;\n\t}", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setName(final String name);", "public final void setName(String name) {_name = name;}", "public void setName(String name) {\n fName= name;\n }", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "@Override\r\n public void setName(String name) {\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "protected void setName(String name) {\n this._name = name;\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }" ]
[ "0.7750973", "0.773203", "0.77281886", "0.7710237", "0.7649626", "0.7575702", "0.7573097", "0.74057126", "0.7384622", "0.73188436", "0.73188436", "0.73188436", "0.73188436", "0.7318233", "0.7314641", "0.7314641", "0.7314641", "0.72992253", "0.7267374", "0.7267374", "0.7267374", "0.72621506", "0.72479236", "0.7229657", "0.7229657", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.7223882", "0.72170013", "0.72170013", "0.72170013", "0.72170013", "0.72170013", "0.72170013", "0.72170013", "0.72133654", "0.7210378", "0.7210378", "0.72091824", "0.7204911", "0.7203838", "0.72016084", "0.72016084", "0.72016084", "0.720132", "0.72007835", "0.71946037", "0.7189357", "0.718459", "0.718105", "0.71802753", "0.71731335", "0.71633667", "0.71633667", "0.71633667", "0.7161587", "0.7161587", "0.7161587", "0.71565086", "0.71565086", "0.71565086", "0.7153171", "0.7151566", "0.7151566", "0.7149172", "0.7149172", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.7149001", "0.71472573", "0.7145877", "0.7143775", "0.714329", "0.71404636", "0.71404636", "0.71404636", "0.71404636" ]
0.0
-1
Get Name. Alphanumeric identifier of the entity
public String getName() { return (String) get_Value("Name"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }", "String getEntityName();", "public Identifier getName();", "public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }", "protected String getEntityName() {\r\n\t\treturn EntityList.getEntityString(this);\r\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String idName() {\n return entityType().getSimpleName().toLowerCase() + \"id\";\n }", "public String getName() {\n if (mName == null) {\n mName = mId;\n int index = mName.lastIndexOf(WS_SEP);\n if (index != -1) {\n mName = mName.substring(index + 1);\n }\n }\n\n return mName;\n }", "public java.lang.String getName();", "public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}", "public String getIDName();", "public String getName() {\n\t\t\treturn this.getIdentity();\n\t\t}", "public String getName() {\n\t\t\treturn this.getIdentity();\n\t\t}", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic String getName() {\n\t\tif (hasCustomName()) {\n\t\t\treturn getCustomNameTag();\n\t\t}\n\n\t\t// return default breed name otherwise\n\t\tString entName = EntityList.getEntityString(this);\n\t\tString breedName = getBreedType().getName().toLowerCase();\n\t\treturn I18n.translateToLocal(\"entity.\" + entName + \".\" + breedName + \".name\");\n\t}", "public int numericName()\n {\n return Factory.getID(this);\n }", "public String getId() {\n String id = name.replaceAll(\" \", \"-\");\n id = id.replaceAll(\"_\", \"-\");\n return id.toLowerCase();\n }", "public String getEntityName() {\n\t\treturn entityName;\n\t}", "public String getEntityName() {\n return entityName;\n }", "String getName() ;", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.79182285", "0.7866773", "0.77622133", "0.7543361", "0.75065637", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7437386", "0.7386257", "0.73658186", "0.7364557", "0.7363349", "0.7336055", "0.7293066", "0.7293066", "0.72713965", "0.72692263", "0.7256773", "0.72464836", "0.7242742", "0.7216804", "0.7214534", "0.7214534", "0.7214534", "0.7214534", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151", "0.7156151" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getCount() { return array.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int position) { return array.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int position) { return position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder vh; if(convertView==null){ vh=new ViewHolder(); convertView=View.inflate(context, R.layout.adapter_comment, null); vh.name=(TextView) convertView.findViewById(R.id.textView1); vh.date=(TextView) convertView.findViewById(R.id.textView2); vh.comment=(TextView) convertView.findViewById(R.id.textView3); convertView.setTag(vh); } else{ vh=(ViewHolder) convertView.getTag(); } vh.name.setText(array.get(position).getName()); vh.date.setText(array.get(position).getPublicshed()); vh.comment.setText(array.get(position).getContent()); return convertView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { oknoListyNauczycieliPanel = new javax.swing.JPanel(); listaNauczycieliLabel = new javax.swing.JLabel(); wyjdzOknoListyNauczycieliButton = new javax.swing.JButton(); listaNauczycieliScrollPane = new javax.swing.JScrollPane(); listaNauczycieliTable = new javax.swing.JTable(); opcjePanel = new javax.swing.JPanel(); dodajNauczycielaButton = new javax.swing.JButton(); usunNauczycielaButton = new javax.swing.JButton(); edytujNauczycielaButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Lista nauczycieli"); setLocation(new java.awt.Point(550, 200)); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); listaNauczycieliLabel.setFont(new java.awt.Font("PT Serif", 1, 24)); // NOI18N listaNauczycieliLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); listaNauczycieliLabel.setText("LISTA NAUCZYCIELI"); wyjdzOknoListyNauczycieliButton.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N wyjdzOknoListyNauczycieliButton.setText("WYJDŹ"); wyjdzOknoListyNauczycieliButton.setMaximumSize(new java.awt.Dimension(100, 30)); wyjdzOknoListyNauczycieliButton.setPreferredSize(new java.awt.Dimension(100, 30)); wyjdzOknoListyNauczycieliButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wyjdzOknoListyNauczycieliButtonActionPerformed(evt); } }); listaNauczycieliTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); listaNauczycieliTable.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { listaNauczycieliTableMousePressed(evt); } }); listaNauczycieliScrollPane.setViewportView(listaNauczycieliTable); dodajNauczycielaButton.setText("Dodaj"); dodajNauczycielaButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { dodajNauczycielaButtonActionPerformed(evt); } }); usunNauczycielaButton.setText("Usuń"); usunNauczycielaButton.setEnabled(false); usunNauczycielaButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { usunNauczycielaButtonActionPerformed(evt); } }); edytujNauczycielaButton.setText("Edytuj"); edytujNauczycielaButton.setEnabled(false); edytujNauczycielaButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { edytujNauczycielaButtonActionPerformed(evt); } }); javax.swing.GroupLayout opcjePanelLayout = new javax.swing.GroupLayout(opcjePanel); opcjePanel.setLayout(opcjePanelLayout); opcjePanelLayout.setHorizontalGroup( opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(dodajNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(usunNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(edytujNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE) ); opcjePanelLayout.setVerticalGroup( opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(opcjePanelLayout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(dodajNauczycielaButton) .addGap(18, 18, 18) .addComponent(usunNauczycielaButton) .addGap(53, 53, 53) .addComponent(edytujNauczycielaButton) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout oknoListyNauczycieliPanelLayout = new javax.swing.GroupLayout(oknoListyNauczycieliPanel); oknoListyNauczycieliPanel.setLayout(oknoListyNauczycieliPanelLayout); oknoListyNauczycieliPanelLayout.setHorizontalGroup( oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup() .addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup() .addGap(250, 250, 250) .addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup() .addGap(400, 400, 400) .addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup() .addGap(60, 60, 60) .addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30) .addComponent(opcjePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(30, Short.MAX_VALUE)) ); oknoListyNauczycieliPanelLayout.setVerticalGroup( oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup() .addGap(50, 50, 50) .addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(67, 67, 67) .addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(opcjePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(25, 25, 25)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.6945748", "0.69436246", "0.6936225", "0.69309264", "0.6927764", "0.6925464", "0.69240505", "0.6911828", "0.69114214", "0.6893614", "0.68917346", "0.6891525", "0.6891501", "0.6889125", "0.68829834", "0.6882533", "0.68808794", "0.687905", "0.687687", "0.68740726", "0.68708014", "0.68595254", "0.68561274", "0.68560076", "0.6854643", "0.6854604", "0.6853724", "0.685311", "0.685311", "0.6844816", "0.6836794", "0.6835743", "0.68294543", "0.6828841", "0.682637", "0.68245006", "0.6823792", "0.68175477", "0.6817179", "0.6811031", "0.68096155", "0.6809008", "0.68087083", "0.68081945", "0.6801884", "0.6795609", "0.6793828", "0.67930275", "0.67915165", "0.6789997", "0.6788734", "0.6788487", "0.67816335", "0.67663425", "0.6765744", "0.67648494", "0.6757314", "0.6755897", "0.67526966", "0.6750367", "0.67429197", "0.67399955", "0.6736908", "0.6736084", "0.6734342", "0.6726562", "0.67264515", "0.67205596", "0.6716381", "0.67154187", "0.67150515", "0.6709329", "0.6708348", "0.67050624", "0.67021835", "0.6700595", "0.6699073", "0.6698866", "0.66942847", "0.6690904", "0.66897583" ]
0.0
-1
Instantiates a new mailing variable.
public MailingVariable(String variableToBeMailed) { super(); variableName = variableToBeMailed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MailMessage() {\n }", "public MailFactory(MailAddress address) {\n this.address = address;\n }", "Variable createVariable();", "Variable createVariable();", "public Email(){}", "public MailSender() {\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "public MailHelper()\n {\n\n }", "public Email() {\n\t}", "public FormField(String variable) {\n this.variable = variable;\n }", "protected Element myVar(){\n\t\treturn el(\"bpws:variable\", new Node[]{\n\t\t\t\tattr(\"messageType\", \"nswomo:receiveMessage\"),\n\t\t\t\tattr(\"name\", VARNAME)\n\t\t});\n\t}", "private S_NewMail(Builder builder) {\n super(builder);\n }", "public MailCommand() {\n this(\"\");\n }", "protected Element initMyVar(Node[] data){\n\t\treturn \t\t\n\t\t\tel( \"bpws:copy\", new Node[] {\n\t\t\t\tel(\t\"bpws:from\",\n\t\t\t\t\tel(\"nswomoxsd:receive\", new Node[]{\n\t\t\t\t\t\tel(\"nswomoxsd:processName\", text(this.name)),\n\t\t\t\t\t\tel(\"nswomoxsd:processId\", text(\"0\")),\n\t\t\t\t\t\tel(\"nswomoxsd:evt\", data)\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\tel(\t\"bpws:to\", new Node[]{\n\t\t\t\t\tattr(\"variable\", VARNAME),\n\t\t\t\t\tattr(\"part\", \"part1\")\n\t\t\t\t})\n\t\t\t});\n\t}", "Variable(String _var) {\n this._var = _var;\n }", "public Variable(String name){\n this.name = name;\n }", "MailBuilder(MailCreationService<T> mailCreationService) {\n this.mailCreationService = mailCreationService;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "protected Element initAssuranceToMyVar() {\n\t\tElement an = el(\"bpws:assign\", new Node[]{\n\t\t\t\tinitMyVar(new Node[]{\n\t\t\t\t\tel(\"nswomoxsd:type\", text(\"Assurance\")),\n\t\t\t\t\tel(\"nswomoxsd:leftValue\", text(\"0\")),\n\t\t\t\t\tel(\"nswomoxsd:rightValue\", text(\"0\")),\n\t\t\t\t\tel(\"nswomoxsd:value\", text(\"0\"))\n\t\t\t\t}),\n\t\t\t\tsetProcId()\n\t\t});\n\t\treturn an;\n\t}", "public Email(String firstname,String lastname)\r\n\t{\r\n\t\tthis.firstname=firstname;\r\n\t\tthis.lastname=lastname;\r\n\t\t//System.out.println(\"EMAIL CREATED:\"+this.firstname+this.lastname);\r\n\t\t//create a method asking for department\r\n\t\tthis.department=setDepartment();\r\n\t\t//System.out.println(\"Deaprtment:\"+this.department);\r\n\t\t//call a method to create default password\r\n\t\tthis.password=setRandompassword(defaultpasswordlength);\r\n\t\t//System.out.println(\"Your Password is:\"+this.password);\r\n\t\temail=firstname.toLowerCase()+\".\"+lastname+\"@\"+\".\"+department+\".com\";\r\n\t\t//System.out.println(\"Your emailid is: \"+email);\r\n\t\t\r\n\t}", "public Mail() {\n this.login();\n this.setMessages();\n }", "public FeedbackMessages()\n\t{\n\t}", "public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }", "public Message(){}", "public Notification()\n\t{\n\t\t\n\t}", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public Modify_MAIL() {\n initComponents();\n }", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public void setMailing(String mail) {\n mailing = mail;\n }", "public Mail(String msg) {\n\t\tthis.msg = msg;\n\t}", "private EMailUtil() {}", "public Var(String var) {\r\n this.variable = var;\r\n }", "public Notification() {\n\n\t}", "private MailCode(final String text) {\n this.text = text;\n }", "void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }", "public Bug_Report_Model(String ea)\n\t{\n\t\tthis.emailAddress = ea;\n\t}", "public Contact(){}", "public Subject() {\n\t}", "public GlobalVariable() {\n }", "public static void main(String[] args) \r\n\t{\r\n\t\tVariable_Types obj=new Variable_Types();\r\n\t\tString tname=obj.toolname;\r\n\t\tSystem.out.println(\"Instant Variable name is => \"+tname);\r\n\r\n\t\t\r\n\t\t/*\r\n\t\t * Calling Class variables [Variable with static specifier]\r\n\t\t * \t\t\r\n\t\t */\r\n\t\tString mail=email;\r\n\t\tSystem.out.println(\"static variable value is => \"+mail);\r\n\t}", "public Alarm_Msg(){ }", "public GTLServiceTicket() {}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "<C, PM> Variable<C, PM> createVariable();", "public Message() {}", "public Message() {}", "public PDContactSend() {\n this.email = new ArrayList<>();\n this.phone = new ArrayList<>();\n this.active_flag = true;\n }", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "ControlVariable createControlVariable();", "Variables createVariables();", "VarAssignment createVarAssignment();", "public EmailAddress build(){\n return new EmailAddress(this);\n }", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "public FIXMessageUtil() {\r\n }", "Delivery createDelivery();", "public EmailObj(String to, String from, String subject, String body) {\n this(to, from, subject, body, \"localhost\");\n }", "public Notification() {\n\n }", "public Notification() {\r\n }", "public Notification() {\r\n }", "public Notifications() {\n \n \t}", "public Contact(){\n\t\t\n\t}", "public SubjectClass() {\n }", "public EmailDailyReportOfZA() {\n\t}", "public MessagingSystem()\r\n\t{ \r\n\t\ttopics= new HashMap <String, Topic>(); //the name of the user is the key and the mailbox is its value\r\n\t\tusers= new HashMap <String, User>(); \r\n\t\ttopics.put(\"Commits\", new Topic(\"Commits\"));\r\n\t\ttopics.put(\"Issues\", new Topic(\"Issues\"));\r\n\t\ttopics.put(\"Discussion\", new Topic(\"Discussion\"));\r\n\t\ttopics.put(\"Tasks\", new Topic(\"Tasks\"));\r\n\t\t\r\n\t}", "public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }", "public EmailService() {\n }", "UDPInstance(Scheduler Sched, TransportClient R, UDPAddress A, DatagramSocket S) {\n lastALIVESent = System.currentTimeMillis();\n reliable = true;\n scheduler = Sched;\n recipient = R;\n connectionAddr = A;\n msgsToSend = new WaitQueue<Object>();\n gcPackets = new WaitQueue<Enumeration<?>>();\n socket = S;\n globalSeqNum = new Hashtable<UDPAddress, Integer>();\n destSeqNum = new Hashtable<UDPAddress, Integer>();\n waitingPackets = new Hashtable<UDPAddress, Hashtable<Integer, UDPDataPacket>>();\n toResend = new Queue<Object>();\n lastGCd = new Hashtable<UDPAddress, Integer>();\n notGCd = new Hashtable<UDPAddress, Hashtable<Integer, DatagramPacket>>();\n nextMsg = new Hashtable<UDPAddress, UDPDataPacket[]>();\n }", "public TriggerMessage() {\n\t}", "public Message() {\n\t\tsuper();\n\t}", "public CampLease( ) {}", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "@Override\n\tpublic Nota buildObject() {\n\t\treturn new Nota(emitente, destinatario, chave, numero, serie, emissao, total, isIncomplete);\n\t}", "public ModelMessage(MessageType messageType, String id, FreeColGameObject source, FreeColObject display) {\n super(id, TemplateType.TEMPLATE);\n this.messageType = messageType;\n this.sourceId = source.getId();\n this.displayId = (display != null) ? display.getId() : source.getId();\n this.ownerId = null;\n }", "public Contact() {\n\t}", "public FlowMonMessage(){}", "public LCAmsg2 () { }", "public Message() {\n }", "public Message() {\n }", "private ManualMessage() {\n initFields();\n }", "public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }", "public ContactoBean() {\n nombres = \"\";\n apellidos = \"\";\n email = \"\";\n asunto = \"\";\n mensaje = \"\";\n }", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }", "UDPInstance() {\n this(null, null, null, null);\n }", "public Booking(String message, int year, int month, int day, String time, String from, String to, String display, String username, String displayName) {\n this.wholeMsg = message;\n this.echo = 0;\n this.reports = 0;\n this.calendarYear = year;\n this.calendarMonth = month;\n this.calendarDay = day;\n this.time = time;\n this.from = from;\n this.to = to;\n this.display=display;\n this.username = username;\n this.displayName = displayName;\n\n\n String[] arr1 = time.split(\":\");\n Calendar c = GregorianCalendar.getInstance();\n c.set(year, month, day, Integer.parseInt(arr1[0]), Integer.parseInt(arr1[1]));\n this.timestamp = c.getTime().getTime();\n }", "public SmtpConfiguration() {\n }", "public Invitation(){}", "public Message() {\n }", "public Package(){\n trackingNumber = \"N/A\";\n type = \"N/A\";\n specification = \"N/A\";\n mailing = \"N/A\";\n weight = 0;\n volume = 0;\n }", "public BuddyInfo() {\n this(\"\", \"\", \"123-456-7890\");\n }", "public Rule(String name, Long num, String msg, Boolean b)\n\t{\n\t\tcontactName = new Contact(name, num);\n\t\treminderMessage = msg;\n\t\trecurrence = b;\n\t\tpushNotification = true;\n\t\tpopupText = false;\n\t}", "public CheckMail() {\n initComponents();\n \n \n }", "public Package(){\n\t\ttrackingNumber = \"Default tracking number\";\n\t\tweight = 0.0;\n\t\tshippingCost = 0.0;\n\t}", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n }", "public OutMail () {\r\n\t\tsuper();\r\n\t}", "public j(MessageListInteractorImpl.a aVar) {\n super(2);\n this.a = aVar;\n }" ]
[ "0.59669745", "0.58568794", "0.5644042", "0.5644042", "0.5629073", "0.56040895", "0.55445486", "0.55319786", "0.55275565", "0.5472442", "0.5432139", "0.5411169", "0.54098195", "0.53984547", "0.5375465", "0.5370449", "0.5344709", "0.5310477", "0.5250729", "0.52298343", "0.5215772", "0.52146965", "0.52121055", "0.5205551", "0.5202834", "0.5190482", "0.5189217", "0.51865906", "0.51753014", "0.51735353", "0.5165103", "0.5141009", "0.5132927", "0.51241374", "0.5122035", "0.5117771", "0.5115595", "0.5112046", "0.51089734", "0.50917983", "0.5088682", "0.50816983", "0.5077824", "0.50748813", "0.50595963", "0.50505435", "0.50505435", "0.5032038", "0.50149065", "0.5012387", "0.50053704", "0.4992936", "0.49921954", "0.49851966", "0.4983346", "0.49817422", "0.49805385", "0.4967134", "0.49546048", "0.49546048", "0.49511975", "0.49403664", "0.4937659", "0.49305654", "0.49231377", "0.49203753", "0.49079353", "0.49078113", "0.4906624", "0.4903549", "0.48984978", "0.48947465", "0.48914105", "0.488903", "0.48877677", "0.48871902", "0.48832884", "0.48825577", "0.48825577", "0.4878653", "0.48779428", "0.4876941", "0.4875472", "0.486887", "0.48681805", "0.48625332", "0.48594448", "0.48574772", "0.4857464", "0.484566", "0.48441273", "0.48419502", "0.48399535", "0.48374006", "0.48366043", "0.48318636", "0.48318636", "0.48318636", "0.48318204", "0.48286337" ]
0.7516739
0
Send a single email.
public void sendEmail(String aFromEmailAddr, String aToEmailAddr, String aSubject, String aBody) { // Here, no Authenticator argument is used (it is null). // Authenticators are used to prompt the user for user // name and password. Session session = Session.getDefaultInstance(getMailServerConfig(), null); MimeMessage message = new MimeMessage(session); try { // the "from" address may be set in code, or set in the // config file under "mail.from" ; here, the latter style is used message.setFrom(new InternetAddress(aFromEmailAddr)); message.addRecipient(Message.RecipientType.TO, new InternetAddress(aToEmailAddr)); message.setSubject(aSubject); message.setText(aBody); Transport.send(message); } catch (MessagingException ex) { System.err.println("Cannot send email. " + ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void send(String emailName);", "void send(Email email);", "public void send(Email email) {\n\t\t\n\t\tSimpleMailMessage message = new SimpleMailMessage(); \n\t message.setTo(email.getTo()); \n\t message.setSubject(email.getSubject()); \n\t message.setText(email.getBody());\n\t \n\t System.out.println(\"Sending Email \");\n\t \n\t javaMailSender.send(message);\n\n\t System.out.println(\"Email Sent Successfully!!\");\n\n\t}", "SendEmail() {\t\n\t}", "public void send(EmailMessage email) {\r\n emailActorRef.tell(email, emailActorRef);\r\n }", "public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}", "private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}", "private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }", "public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;", "void sendEmail(Job job, String email);", "private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "@Asynchronous //Metodo Assíncrono para que a aplicação continue normalmente sem ficar bloqueada até que o email seja enviado \r\n\tpublic void sendEmail(Email email) {\n\t log.info(\"Email enviado por \" + email.getEmailUsuario() + \" para \" + email.getReceptor() +\" : \" + email.getMensagem());\r\n\t try {\r\n\t //Criação de uma mensagem simples\r\n\t Message message = new MimeMessage(mailSession);\r\n\t //Cabeçalho do Email\r\n\t message.setFrom(new InternetAddress(email.getEmailUsuario()));\r\n\t message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(email.getReceptor())); \r\n\t message.setSubject(email.getTitulo());\r\n\t //Corpo do email\r\n\t message.setText(email.getMensagem());\r\n\r\n\t //Envio da mensagem \r\n\t Transport.send(message);\r\n\t log.debug(\"Email enviado\");\r\n\t } catch (MessagingException e) {\r\n\t log.error(\"Erro a enviar o email : \" + e.getMessage()); }\r\n\t }", "@ResponseBody\n @RequestMapping(\"/sendSimpleEmail\")\n public String sendSimpleEmail() {\n SimpleMailMessage message = new SimpleMailMessage();\n\n message.setTo(MyConstants.FRIEND_EMAIL);\n message.setSubject(\"Test Simple Email\");\n message.setText(\"Hello, Im testing Simple Email\");\n\n // Send Message!\n this.emailSender.send(message);\n\n return \"Email Sent!\";\n }", "public void sendMailMessage(MailMessage mailMessage) throws MailerException;", "public void sendMail(String to, String subject, String text);", "void send(String email, Locale locale);", "public void send(Mail email) {\n\n MailjetClient client = new MailjetClient(PUBLIC_KEY, SECRET_KEY);\n\n MailjetRequest mail =\n new MailjetRequest(Email.resource)\n .property(FROMEMAIL, \"[email protected]\")\n .property(SUBJECT, email.getSubject())\n .property(TEXTPART, email.getContent())\n .property(HTMLPART, email.getContent())\n .property(RECIPIENTS, new JSONArray().put(new JSONObject().put(\"Email\", email.getTo())));\n try {\n client.post(mail);\n } catch (MailjetException | MailjetSocketTimeoutException e) {\n }\n }", "void send(String emailName, Map model);", "public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }", "public void send(String emailName, Map model) {\n Email email = resolveEmail(emailName, model);\n send(email);\n }", "public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }", "public void sendMail(String to, String cc, String subject, String text);", "public void sendMail(String to, String cc, String bcc, String subject, String text);", "@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}", "private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }", "public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "@Override\n public void send(Email email) {\n email = EmailBuilder.copying(email)\n .clearRecipients()\n .to(sinkName, sinkAddress)\n .buildEmail();\n mailService.send(email);\n }", "@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}", "@Then(\"^Send a mail to email id \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void Send_a_mail_to_email_id(String arg1) throws Throwable {\n\t throw new PendingException();\r\n\t}", "@Override\n public void sendEmail() {\n return;\n }", "@Override\r\n\tpublic void sendInvoice(Invoice invoice, String email) {\n\t\tSystem.out.println(\"Invoice Sent email\");\r\n\t}", "public void sendEmail(String recipient,String password);", "public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }", "public void send(String emailName) {\n send(emailName, new HashMap());\n }", "void sendMail(){\r\n String mailBody = getString(R.string.congratz_message, String.valueOf(playerScore));\r\n mailBody += \" \" + playerRating;\r\n\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\")); //only email apps should handle this\r\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Sports Trivia score for \" + getPlayerName());\r\n intent.putExtra(intent.EXTRA_TEXT, mailBody);\r\n\r\n if(intent.resolveActivity(getPackageManager())!=null){\r\n startActivity(intent);\r\n }\r\n }", "public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }", "public static void sendMessage(Gmail service, String userId, MimeMessage\n email) throws MessagingException, IOException {\n Message message = createMessageWithEmail(email);\n message = service.users().messages().send(userId, message).execute();\n// System.out.println(\"Message id: \" + message.getId());\n// System.out.println(message.toPrettyString());\n }", "public void sendEmail(Author authorObject);", "public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "void send(String emailName, Map model, EmailPreparator emailPreparator);", "public void sendSimpleEmail(String subject, String content, String toMail) {\n SimpleMailMessage message = new SimpleMailMessage();\n\n message.setTo(toMail);\n message.setSubject(subject);\n message.setText(content);\n\n\n\n // Send Message!\n this.emailSender.send(message);\n\n }", "@Override\n\tpublic void sendMessage(Gmail service, String userId, MimeMessage email) throws MessagingException, IOException {\n\t\tMessage message = createMessageWithEmail(email);\n\t\tmessage = service.users().messages().send(userId, message).execute();\n\n\t\tSystem.out.println(\"Message id: \" + message.getId());\n\t\tSystem.out.println(message.toPrettyString());\n\n\t}", "protected void sendEmail(String mail) {\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\", mail, null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Dein ToDo\");\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"Denk an dein ToDo\");\n context.startActivity(Intent.createChooser(emailIntent, \"E-Mail\"));\n }", "@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}", "void sendEmail(Task task, String taskTypeName, String plantName);", "public static boolean sendMail() throws AddressException, MessagingException {\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n\t\tmessage.setFrom(new InternetAddress(from));\r\n\t\t\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n // Set the \"Subject\" header field.\r\n message.setSubject(\"hi..!\");\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText(\"Hi ......\");\r\n // Send message\r\n Transport.send(message);\r\n System.out.println(\"Message Send.....\");\r\n \r\n\t\treturn true;\r\n\t}", "public void sendEmail(View view) {\n //deckare enauk addresses\n String[] addresses = {\n \"[email protected]\",\n \"[email protected]\"\n };\n String subject = \"Coffee Order\";\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, addresses);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n// if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n// }\n }", "@Transactional\n public void sendEmail(String emailAddress, String subject, String message) {\n }", "public void sendEmail(String recipient, String subject, String message) { \r\n\t\t\r\n\t Properties props = new Properties();\r\n\t props.put(mailHost, mailHostname);\r\n\t Session session = Session.getInstance(props, null);\r\n\r\n\t try {\r\n\t MimeMessage msg = new MimeMessage(session);\r\n\t msg.setFrom(username);\r\n\t msg.setRecipients(Message.RecipientType.TO,\r\n\t recipient);\r\n\t msg.setSubject(subject);\r\n\t msg.setSentDate(new Date());\r\n\t msg.setText(message);\r\n\t Transport.send(msg, username, password);\r\n\t System.out.println(\"Email has been sent\");\r\n\t } catch (MessagingException mex) {\r\n\t \tSystem.out.println(recipient);\r\n\t System.out.println(\" send failed, exception: \" + mex);\r\n\t }\r\n\r\n\t\t\r\n\t}", "public static void sendMessage(Gmail service, String userId, MimeMessage email)\n throws MessagingException, IOException {\n showLog(\"GmailUtils - sendMessage()\");\n\n Message message = createMessageWithEmail(email);\n message = service.users().messages().send(userId, message).execute();\n\n System.out.println(\"Message id: \" + message.getId());\n System.out.println(message.toPrettyString());\n }", "void send(String emailName, Map model, Locale locale);", "private boolean sendEmail(final Event event2send) {\n final Customer customer = event2send.getCustomer();\n final Unit unit = event2send.getCustomer().getUnit();\n final String text2send = format(event2send);\n\n if (null == customer.getEmail() || 0 == customer.getEmail().trim().length()) {\n LOG.warning(\"email cannot be sent, wrong customer email address, eventId=\" + event2send.getId());\n return false;\n }\n\n final SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(unit.getEmail());\n message.setTo(customer.getEmail());\n message.setSubject(unit.getName());\n message.setText(text2send);\n\n boolean rslt;\n try {\n // do NOT send the email physically if email address is \"-=NO_MAIL=-\"\n if (\"-=NO_MAIL=-\".equals(customer.getEmail())) {\n LOG.fine(\"fake mail (not sent), id=\" + event2send.getId() + \", customer=\" + customer.getAsciiFullname());\n } else {\n mailSender.send(message);\n LOG.info(\"event sent via email, id=\" + event2send.getId() + \", address=\" + customer.getEmail());\n }\n rslt = true;\n } catch (Throwable t) {\n LOG.log(Level.SEVERE, \"failed to send email, id=\" + event2send.getId(), t);\n rslt = false;\n }\n return rslt;\n }", "public MainMailPage sendMail(String to, String subject, String text) {\n\tLOG.info(\"Start sendMail\\n\");\n\twritterMail(to, subject, text);\n\tsendToMail.click();\n\tcheckDialogBox();\n\treturn new MainMailPage(driver);\n }", "void send(String emailName, Map model, Locale locale, EmailPreparator emailPreparator);", "@RequestMapping(\"/mail\")\n\tpublic String mail() throws MessagingException {\n\t\tmailsender.send(\"[email protected]\", \"A test mail\", \"body of the test mail\");\n\t\t\n\t\treturn \"mail sent by Nawaki to the localhost...........\";//result\n\t}", "public void send(String recipientEmail, String title, String message) throws AddressException, MessagingException {\r\n \tsend(mailUserName, mailPassword, recipientEmail, \"\", title, message);\r\n }", "@RequestMapping(value =\"/sendEmail\",method = RequestMethod.GET)\n\tpublic String doSendEmail(HttpServletRequest request) {\n\t\tString recipientAddress = \"[email protected]\";\n\t\tString subject = \"sujet\";\n\t\tString message = \"salut\";\n\t\t\n\n\t\t\n\t\t// creates a simple e-mail object\n\t\tSimpleMailMessage email = new SimpleMailMessage();\n\t\temail.setTo(recipientAddress);\n\t\temail.setSubject(subject);\n\t\temail.setText(message);\n\t\t\n\t\t// sends the e-mail\n\t\tmailSender.send(email);\n\t\t\n\t\t// forwards to the view named \"Result\"\n\t\treturn \"Result\";\n\t}", "@Override\n public void sendEmail(String emailBody) {\n }", "public void sendButtonClick(View v){\n String title = getText(R.string.mail_title).toString();\n String mailto = \"mailto:\" + emailAdress;\n Intent openEmailApp = new Intent(Intent.ACTION_SENDTO);\n openEmailApp.setType(\"plain/text\");\n openEmailApp.setData(Uri.parse(mailto));\n openEmailApp.putExtra(Intent.EXTRA_SUBJECT, userName + title);\n openEmailApp.putExtra(Intent.EXTRA_TEXT, evaluationMessage);\n startActivity(openEmailApp);\n }", "@PostMapping(\"/sendMail\")\n\t@Timed\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic void sentMail(@RequestBody String orderId) {\n\t\tSystem.out.println(\"Email send for Id \" + orderId);\n\t\tTransaction transaction = transactionRepository.findOneByOrderid(orderId);\n\t\tContext context = new Context();\n\t\tcontext.setVariable(\"order\", transaction.getOrderid());\n\t\tcontext.setVariable(\"email\", transaction.getEmail());\n\t\tcontext.setVariable(\"hash\", \"https://\" + CAN_NETWORK + \"etherscan.io/tx/\" + transaction.getHash());\n\t\tcontext.setVariable(\"can\", \"https://\" + CAN_NETWORK + \"etherscan.io/tx/\" + transaction.getHashethertoaccount());\n\t\tcontext.setVariable(\"amount\", transaction.getAmount() + \" CAN\");\n\t\tcontext.setVariable(BASE_URL, jHipsterProperties.getMail().getBaseUrl());\n\t\tString content = templateEngine.process(\"mail/transactionConfirm\", context);\n\t\tsendEmail(transaction.getEmail(), \"Transaction Successful\", content, false, true);\n\t\tlog.debug(\"Called sendMail\");\n\t}", "public void sendNotificaitoin(User user) throws MailException, InterruptedException {\n\n\n System.out.println(\"Sending email...\");\n\n SimpleMailMessage mail = new SimpleMailMessage();\n mail.setTo(\"[email protected]\");\n mail.setFrom(\"[email protected]\");\n mail.setSubject(\"notification\");\n mail.setText(\"time is running out\");\n javaMailSender.send(mail);\n\n System.out.println(\"Email Sent!\");\n }", "public void sendMailAction(View view) {\n String name = getPlayerName();\n String message = createShortQuizSummary(finalScore, name);\n String mailto = \"mailto:\" + getPlayerMail() +\n \"?cc=\" + \"\" +\n \"&subject=\" + Uri.encode(name + getResources().getString(R.string.score_in_quiz)) +\n \"&body=\" + Uri.encode(message);\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(mailto));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n }\n\n }", "public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }", "public Long sendEmail(String to, String subjectText, String bodyText)\n\t{\n\t\tDestination destination = new Destination().withToAddresses(new String[]{to});\n\n\t\t// Create the subject and body of the message.\n\t\tContent subject = new Content().withData(subjectText);\n\t\tContent textBody = new Content().withData(bodyText);\n\t\tBody body = new Body().withText(textBody);\n\n\t\t// Create a message with the specified subject and body.\n\t\tMessage message = new Message().withSubject(subject).withBody(body);\n\n\t\t// Assemble the email.\n\t\tSendEmailRequest request = new SendEmailRequest().withSource(FROM).withDestination(destination).withMessage(message);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Attempting to send an email through Amazon SES by using the AWS SDK for Java...\");\n\n\t\t\t/*\n\t\t\t * The ProfileCredentialsProvider will return your [default]\n\t\t\t * credential profile by reading from the credentials file located at\n\t\t\t * (~/.aws/credentials).\n\t\t\t *\n\t\t\t * TransferManager manages a pool of threads, so we create a\n\t\t\t * single instance and share it throughout our application.\n\t\t\t */\n\t\t\tAWSCredentials credentials = null;\n\t\t\ttry {\n\t\t\t\t//credentials = new ProfileCredentialsProvider().getCredentials();\n\t\t\t\tcredentials=new BasicAWSCredentials(Constants.aws_access_key_id, Constants.aws_secret_access_key);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new AmazonClientException(\n\t\t\t\t\t\t\"Cannot load the credentials from the credential profiles file. \" +\n\t\t\t\t\t\t\t\t\"Please make sure that your credentials file is at the correct \" +\n\t\t\t\t\t\t\t\t\"location (~/.aws/credentials), and is in valid format.\",\n\t\t\t\t\t\t\t\te);\n\t\t\t}\n\n\t\t\t// Instantiate an Amazon SES client, which will make the service call with the supplied AWS credentials.\n\t\t\tAmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(credentials);\n\n\t\t\t// Choose the AWS region of the Amazon SES endpoint you want to connect to. Note that your production\n\t\t\t// access status, sending limits, and Amazon SES identity-related settings are specific to a given\n\t\t\t// AWS region, so be sure to select an AWS region in which you set up Amazon SES. Here, we are using\n\t\t\t// the US East (N. Virginia) region. Examples of other regions that Amazon SES supports are US_WEST_2\n\t\t\t// and EU_WEST_1. For a complete list, see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html\n\t\t\tRegion REGION = Region.getRegion(Regions.US_WEST_2);\n\t\t\tclient.setRegion(REGION);\n\n\t\t\t// Send the email.\n\t\t\tclient.sendEmail(request);\n\t\t\tSystem.out.println(\"Email sent!\");\n\t\t\treturn 1L;\n\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The email was not sent.\");\n\t\t\tSystem.out.println(\"Error message: \" + ex.getMessage());\n\t\t\treturn 0L;\n\t\t}\n\t}", "void send(Mail mail) {\n this.mail = mail;\n new Thread(sendingMethod).start();\n }", "public void sendMail(String address, String content) {\n }", "private void sendEmail() {\n String email = emailInput.getText().toString();\n String title = titleInput.getText().toString();\n String message = messageInput.getText().toString();\n\n if(email.isEmpty() ||title.isEmpty() ||message.isEmpty()){\n Toast.makeText(this, R.string.field_not_empty, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(!checkEmailPattern(email)){\n Toast.makeText(this,R.string.invalid_email,Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});\n emailIntent.putExtra(Intent.EXTRA_CC, new String[]{CC_CUPIC, CC_BAOTIC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);\n emailIntent.putExtra(Intent.EXTRA_TEXT, message);\n\n emailIntent.setType(\"message/rfc822\");\n\n try{\n startActivity(Intent.createChooser(emailIntent,\"\"));\n finish();\n }catch(ActivityNotFoundException ex){\n Toast.makeText(this,R.string.cant_send,Toast.LENGTH_SHORT).show();\n }\n }", "public void sendEmail(\n String to,\n String subject,\n String body\n ) {\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(fromAddress);\n\n message.setTo(to);\n message.setSubject(subject);\n message.setText(body);\n\n mailSender.send(message);\n }", "public void sendEmail(String toAddr,String subject,String text){\n\t\tsendEmail(toAddr, subject, text, null);\n\t}", "@GetMapping(value=\"/sendMail/{orderId}\")\n String sendMail(@PathVariable(\"orderId\")String orderId) throws Exception{\n\n OrderEntity orderList=orderService.getOrderById(orderId);\n String email = orderList.getCustomerEmail();\n orderService.sendEmail(email,orderList);\n return \"success\";\n }", "public void sendsMail(String recipient, String email_address, String subject, String contentMail, String mailType)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into mails (sender, recipient, mailSubject, message, mailType)\" + \r\n\t\t\t\t\t\t\t\"values(?, ?, ?, ?, ?)\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, recipient);\r\n\t\t\tpreparedStatement.setString(3, subject);\r\n\t\t\tpreparedStatement.setString(4, contentMail);\r\n\t\t\tpreparedStatement.setString(5, mailType);\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);", "private void notificationMailGD(String email) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: notificationMailGD()\");\r\n\t\ttry {\r\n\t\t\tProperties prop = new Properties();\r\n\t\t\tprop.setProperty(IEmailConstants.SMTP_HOST, propertyLookup.get(IEmailConstants.SMTP_HOST));\r\n\t\t\tprop.setProperty(IEmailConstants.SMTP_PORT, propertyLookup.get(IEmailConstants.SMTP_PORT));\r\n\t\t\tprop.setProperty(\"senderMail\", propertyLookup.get(\"senderMail\"));\r\n\t\t\tprop.setProperty(\"supportEmail\", propertyLookup.get(\"supportEmail\"));\r\n\t\t\tString subject = propertyLookup.get(\"mail.gd.subject\");\r\n\t\t\tString mailBody = propertyLookup.get(\"mail.gd.body\");\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Email triggered...\");\r\n\t\t\temailSender.sendMail(prop, email, null, null, subject, mailBody);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Email sent to : \" + email);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"Unable to send Email: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: notificationMailGD()\");\r\n\t}", "public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }", "public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }", "SendEmailResponse sendEmail(String templateId, String emailAddress, Map<String, String> personalisation, String reference) throws NotificationClientException;", "public void sendEmail(SendEmailRequestDocument parameters) {\r\n\t\t// Add the business logic here\r\n\t\treturn;\r\n\t}", "@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id [email protected]\");\n\t\t\n\t}", "@Asynchronous\n public void sendSimpleEmail(String subject, String text, String ... recepients) {\n try {\n Message m = new MimeMessage(noReplySession);\n Address[] addrs = InternetAddress.parse(StringUtils.concat(recepients, \";\"), false);\n m.setRecipients(Message.RecipientType.TO, addrs);\n m.setSubject(subject);\n m.setFrom(InternetAddress.parse(\"[email protected]\", false)[0]);\n m.setText(text);\n m.setSentDate(new Date());\n Transport.send(m);\n } catch (Exception ex) {\n log.error(\"sendSimpleEmail(): failed to send message.\", ex);\n }\n }", "public void sendEmail(String toAddress, String subject, String bodyText) throws MailException{\n SimpleMailMessage msg = new SimpleMailMessage();\n msg.setTo(toAddress);\n msg.setSubject(subject);\n msg.setText(bodyText);\n\n javaMailSender.send(msg);\n }", "public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }", "@Override\n public Future<EmailResult<String>> sendEmail(\n String subject,\n List<String> emailAddresses,\n String message,\n MailSettings settings,\n boolean enc) {\n if (enc) {\n settings.setPassword(encryptionService.encrypt(settings.getPassword()));\n }\n return emailThread.submit(createEmailer(subject, emailAddresses, message, message, settings));\n }", "public void sendMailReport() {\n mailService.sendMail(\"[email protected]\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }", "public void sendMail(String to, String cc, String templateName, Object... parameters);", "@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}", "public EmailResponse sendMail(String toEmail, String subject, String message) {\n EmailResponse response = new EmailResponse();\n response.setEmailId(toEmail);\n try {\n javaMailSender.send(composeMail(toEmail, subject, message));\n response.setDelivered(Boolean.TRUE);\n } catch (Exception e) {\n response.setDelivered(Boolean.FALSE);\n }\n return response;\n }", "public void sendInterest(View view) {\n Log.i(\"Send email\", \"\");\n String[] TO = {agentEmail};\n String[] CC = {\"\"};\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n emailIntent.putExtra(Intent.EXTRA_CC, CC);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"You have an interested buyer for \" + globals.chosenProp);\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"User: \" + globals.loggedUser + \" has shown interest in \" + globals.chosenProp + \". Respond to them via email to arrange a showing or to exchange information.\");\n\n try {\n startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n finish();\n Log.i(\"Finished sending email...\", \"\");\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(property_view_standard.this, \"There is no email client installed.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void send(String recipientEmail, String ccEmail, String title, String message) throws AddressException, MessagingException {\r\n \tsend(mailUserName, mailPassword, recipientEmail, ccEmail, title, message);\r\n }", "private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}", "void sendEmail(Otp otp) throws Exception {\n String text = \"Otp: \" + otp.getOtpValue();\n String from = \"\"; // Add From Email Address\n String to = \"\"; // Add To Email Address\n\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(from);\n message.setTo(to);\n message.setSubject(\"Otp Verification\");\n message.setText(text);\n emailSender.send(message);\n }", "public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "private void sendMail(final String mail, final String name, final String message) {\n /* new Thread(){\n public void run() {\n Properties props = System.getProperties();\n props.put(\"mail.smtps.host\",\"smtp.gmail.com\");\n props.put(\"mail.smtps.auth\",\"true\");\n Session session = Session.getInstance(props, null);\n Message msg = new MimeMessage(session);\n try {\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(\"Yoga Mandira :: Feedback \" + System.currentTimeMillis());\n msg.setText(\"MAIL:\"+mail+\"\\nNAME:\"+name+\"\\nMESSAGE:\"+message);\n msg.setHeader(\"X-Mailer\", \"Yoga Mandira\");\n msg.setSentDate(new Date());\n SMTPTransport t =\n (SMTPTransport) session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"#30ija11an\");\n t.sendMessage(msg, msg.getAllRecipients());\n System.out.println(\"Response: \" + t.getLastServerResponse());\n t.close();\n }catch (AddressException e) {\n e.printStackTrace();\n } catch (SendFailedException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n }\n }.start();*/\n }", "public void setSendEmail(Integer sendEmail) {\n this.sendEmail = sendEmail;\n }", "private static void sendMail(String toEmail, String mailText) {\n final String username = \"[email protected]\"; //The Email of the sender.\n final String password = \"emailpassword\";\n\n //Properties of the used SMTP server.\n Properties props = new Properties();\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(toEmail));\n message.setSubject(\"New Password - Household Manager\");\n //Message to the user\n message.setText(mailText);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public boolean sendEmail(String recipient, String msg) {\n final String SENDGRID_API_KEY = \"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\";\n\n if (SENDGRID_API_KEY.equals(\"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\")) {\n System.out.println(\"You haven't added your sendgrid api key!\");\n return true;\n }\n\n // you'll need to specify your sendgrid verified sender identity for this to mail out.\n Email from = new Email(\"[email protected]\");\n String subject = \"Secret Assignment from the Elves\";\n Email to = new Email(recipient);\n Content content = new Content(\"text/plain\", msg);\n Mail mail = new Mail(from, subject, to, content);\n\n SendGrid sg = new SendGrid(SENDGRID_API_KEY);\n Request request = new Request();\n\n try {\n request.setMethod(Method.POST);\n request.setEndpoint(\"mail/send\");\n request.setBody(mail.build());\n Response response = sg.api(request);\n System.out.println(response.getStatusCode());\n System.out.println(response.getBody());\n System.out.println(response.getHeaders());\n return true;\n } catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n }", "public void sendDiscrepancyEmail() throws Exception;", "public void sendMail(String to, String templateName, Object... parameters);" ]
[ "0.73924524", "0.73766965", "0.73275954", "0.7159675", "0.7126606", "0.68572116", "0.68205965", "0.6817067", "0.67431146", "0.6732951", "0.6712318", "0.66998875", "0.66960204", "0.6672503", "0.6658081", "0.6649614", "0.66451466", "0.66397935", "0.65997875", "0.6571635", "0.65226454", "0.6510972", "0.65013677", "0.6494156", "0.6480128", "0.64530206", "0.645266", "0.6430598", "0.6416217", "0.63912624", "0.63535565", "0.63504905", "0.6349908", "0.63464004", "0.63451374", "0.633116", "0.6326671", "0.6321521", "0.630125", "0.63007176", "0.6279379", "0.6277922", "0.62682", "0.62643725", "0.6255203", "0.62465096", "0.62460464", "0.62401265", "0.6237996", "0.6217729", "0.62050194", "0.6198125", "0.61879843", "0.6181658", "0.61529493", "0.6121073", "0.6111647", "0.6102378", "0.6099264", "0.6095831", "0.6087369", "0.6084465", "0.60809475", "0.6077481", "0.6062088", "0.6058629", "0.60582227", "0.60532314", "0.6049554", "0.6044336", "0.599863", "0.5995674", "0.59931093", "0.5992775", "0.5989844", "0.5977049", "0.59758097", "0.59679693", "0.5956491", "0.59533477", "0.5951124", "0.5948118", "0.59383464", "0.5937136", "0.59358615", "0.5928931", "0.5924262", "0.5920288", "0.5920287", "0.5916174", "0.5912365", "0.5910696", "0.5910143", "0.59094834", "0.5863988", "0.5850008", "0.58484334", "0.5846839", "0.5846576", "0.58451754", "0.58427924" ]
0.0
-1
Gets the mail server config.
private static Properties getMailServerConfig() { Properties properties = new Properties(); properties.put("mail.smtp.host", host); properties.put("mail.smtp.port", "2525"); return properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMailServer() {\r\n\t\treturn mailServer;\r\n\t}", "public String getMailServer()\n {\n return _mailServer;\n }", "public LocalServerConfig getConfig() {\n return serverConfig;\n }", "public SMTPConfig getSmtpConfig() {\n\t\treturn smtpConfig;\n\t}", "public static URL getEmailServer()\n {\n return emailServer;\n }", "public EmailServer getServer()\r\n\t{\r\n\t\treturn server;\r\n\t}", "public static ServerConfiguration getServerConfiguration() {\n return getOctaneDescriptor().getServerConfiguration();\n }", "public IMailConfigurationService getMailConfigurationService() {\n\n return mailConfigurationService;\n }", "private static ServerConfigPOJO defaultServerConfig() {\n return ServerConfigParser.readServerConfig();\n }", "public ServerConfigManager getServerConfigManager() {\n return this.serverConfigManager;\n }", "public ServerProperties getServerProperties()\n\t{\n\t\tif (serverProperties == null)\n\t\t{\n\t\t\tConfig config = configService.getConfig(\"Server\");\n\t\t\tserverProperties = (ServerConfigElement)config.getConfigElement(ServerConfigElement.CONFIG_ELEMENT_ID);\n\t\t}\n\t\treturn serverProperties;\n\t}", "public String getConfig(String configKey) {\n\t\t// Do something if key doesn't exist\n\t\t\n\t\treturn serverOptions.get(configKey);\n\t}", "public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }", "protected Properties getMailProperties() {\n Properties props = System.getProperties();\n props.put(\"mail.smtp.host\", mailHost);\n props.put(\"mail.smtp.sendpartial\", \"true\");\n if (mailPort != null) {\n props.put(\"mail.smtp.port\", mailPort);\n }\n LOG.debug(\n \"mailHost is \" + mailHost + \", mailPort is \" + mailPort == null ? \"default\" : mailPort);\n if (userName != null && password != null) {\n props.put(\"mail.smtp.auth\", \"true\");\n }\n return props;\n }", "public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}", "protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }", "public String getHostSend() {\n return emailConfig.getProperty(\"mail.smtp.host\", \"\");\n }", "public Config getConfig();", "@Override\n public String getMailConfigArtifactoryUrl() {\n // mail configurations is always the best match\n MutableCentralConfigDescriptor mutableCentralConfigDescriptor = centralConfigService.getMutableDescriptor();\n MailServerDescriptor mailServer = mutableCentralConfigDescriptor.getMailServer();\n if (mailServer != null && StringUtils.isNotBlank(mailServer.getArtifactoryUrl())) {\n return PathUtils.addTrailingSlash(mailServer.getArtifactoryUrl()) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n\n // request is the second best match\n HttpServletRequest request = RequestThreadLocal.getRequest();\n if (request != null) {\n String url;\n url = HttpUtils.getServletContextUrl(request);\n if (StringUtils.isNotBlank(url)) {\n return PathUtils.addTrailingSlash(url) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n }\n\n // baseUrl is the last option\n MutableCentralConfigDescriptor descriptor = centralConfigService.getMutableDescriptor();\n String urlBase = descriptor.getUrlBase();\n if (StringUtils.isNotBlank(urlBase)) {\n return PathUtils.addTrailingSlash(urlBase) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n return \"\";\n }", "protected Config getConfig () {\n return this.conf;\n }", "public String getConfig() {\n\n return config;\n }", "public SSLConfig getSSLConfig() {\n return new SSLConfig(configPrefix + SERVER_SSL_CONFIG_PREFIX, configValues);\n }", "public WebMailConfig extractConfig(String xml) throws ApsSystemException {\n \t\tWebMailConfig config = new WebMailConfig();\n \t\ttry {\n \t\t\tElement root = this.getRootElement(xml);\n \t\t\t\n \t\t\tElement domainNameElem = root.getChild(DOMAIN_ELEM);\n \t\t\tif (null != domainNameElem) {\n \t\t\t\tString domainName = domainNameElem.getText();\n \t\t\t\tconfig.setDomainName(domainName);\n \t\t\t}\n \t\t\t\n \t\t\tElement localhostElem = root.getChild(LOCALHOST_ELEM);\n \t\t\tif (null != localhostElem) {\n \t\t\t\tString localhost = localhostElem.getText();\n \t\t\t\tconfig.setLocalhost(localhost);\n \t\t\t}\n \t\t\t\n \t\t\tElement smtpElem = root.getChild(SMTP_ELEM);\n \t\t\tString debug = smtpElem.getAttributeValue(SMTP_DEBUG_ATTR);\n \t\t\tconfig.setDebug(new Boolean(debug).booleanValue());\n \t\t\t\n \t\t\tString japsUserAuth = smtpElem.getAttributeValue(SMTP_JAPS_USER_AUTH_ATTR);\n \t\t\tconfig.setSmtpJapsUserAuth(new Boolean(japsUserAuth).booleanValue());\n \t\t\t\n \t\t\tconfig.setSmtpHost(smtpElem.getChildText(SMTP_HOST_CHILD));\n \t\t\tconfig.setSmtpUserName(smtpElem.getChildText(SMTP_USER_CHILD));\n \t\t\tconfig.setSmtpPassword(smtpElem.getChildText(SMTP_PASSWORD_CHILD));\n \t\t\tString smtpPort = smtpElem.getChildText(SMTP_PORT_CHILD);\n \t\t\tInteger smtpPortValue = (smtpPort==null || smtpPort.length()==0) ? null : new Integer(smtpPort);\n \t\t\tconfig.setSmtpPort(smtpPortValue);\n \t\t\t\n \t\t\tElement certElem = root.getChild(CERTIFICATES_ELEM);\n \t\t\tString enable = certElem.getChildText(CERTIFICATES_ENABLE_CHILD);\n \t\t\tconfig.setCertificateEnable(new Boolean(enable).booleanValue());\n \t\t\tString lazyCheck = \tcertElem.getChildText(CERTIFICATES_LAZYCHECK_CHILD);\n \t\t\tconfig.setCertificateLazyCheck(new Boolean(lazyCheck).booleanValue());\n \t\t\tString certificatePath = certElem.getChildText(CERTIFICATES_CERTPATH_CHILD);\n \t\t\tconfig.setCertificatePath(certificatePath);\n \t\t\tString debugOnConsole = certElem.getChildText(CERTIFICATES_DEBUGONCONSOLE_CHILD);\n \t\t\tconfig.setCertificateDebugOnConsole(new Boolean(debugOnConsole).booleanValue());\n \t\t\t\n \t\t\tElement imapElem = root.getChild(IMAP_ELEM);\n \t\t\tconfig.setImapHost(imapElem.getChildText(IMAP_HOST_CHILD));\n \t\t\tString imapPort = imapElem.getChildText(IMAP_PORT_CHILD);\n \t\t\tInteger imapPortValue = (imapPort==null || imapPort.length()==0) ? null : new Integer(imapPort);\n \t\t\tconfig.setImapPort(imapPortValue);\n \t\t\tconfig.setImapProtocol(imapElem.getChildText(IMAP_PROTOCOL_CHILD));\n \t\t\t\n \t\t\tElement folderElem = root.getChild(FOLDER_ELEM);\n \t\t\tif (null != folderElem) {\n \t\t\t\tconfig.setTrashFolderName(folderElem.getChildText(FOLDER_TRASH_CHILD));\n \t\t\t\tconfig.setSentFolderName(folderElem.getChildText(FOLDER_SENT_CHILD));\n \t\t\t}\n \t\t} catch (Throwable t) {\n \t\t\tApsSystemUtils.logThrowable(t, this, \"extractConfig\");\n \t\t\tthrow new ApsSystemException(\"Error extracting config\", t);\n \t\t}\n \t\treturn config;\n \t}", "public String getServerUrl() {\n\t return Config.SERVER_URL;\n }", "private RemoteConfigElement getRemoteConfig()\r\n {\r\n if (this.config == null)\r\n {\r\n // retrieve the remote configuration\r\n this.config = (RemoteConfigElement)this.configService.getConfig(\"Remote\").getConfigElement(\"remote\");\r\n }\r\n \r\n return this.config;\r\n }", "public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}", "public static Config getConfig(){\n return _Config;\n }", "public static Config config() {\n return LiveEventBusCore.get().config();\n }", "public String getConfig() {\n\t\treturn(config);\n\t}", "private Properties getMailProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"mail.transport.protocol\", \"smtp\");\n properties.setProperty(\"mail.smtps.auth\", \"true\");\n properties.setProperty(\"mail.smtp.starttls.required\", \"true\");\n properties.setProperty(\"mail.smpt.starttls.enable\", \"true\");\n properties.setProperty(\"mail.debug\", \"false\"); // set to true for debugging information\n \n return properties;\n }", "public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }", "public String getServer()\n {\n return server;\n }", "public static ConfigManager getConfigManager() {\r\n\t\treturn cfgm;\r\n\t}", "public Config getConfig() {\n return config;\n }", "public ConfigCommon getConfig() {\n return config;\n }", "public ConfigProvider getConfig() {\n return config;\n }", "public String getServer() {\r\n return server;\r\n }", "public ConfigManager getConfigManager ()\n {\n return cfgmgr;\n }", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public String getSERVER() {\n \t\treturn SERVER;\n \t}", "public static ConfigManager getConfigManager() {\n\t\treturn getInstance().defaultGroup;\n\t}", "public ConfigurationNode getConfig() {\n return this.configManager.getConfig();\n }", "@Override\n public Observable<ServerConfigBean> getServerConfig() {\n\n return Observable.create(new Observable.OnSubscribe<ServerConfigBean>() {\n @Override\n public void call(Subscriber<? super ServerConfigBean> subscriber) {\n ServerConfigBean bean = new ServerConfigBean();\n bean.setSplashUrl(\"http://biggar.image.alimmdn.com/1464166847649\");\n subscriber.onNext(bean);\n }\n }\n\n );\n }", "static Properties getConfig()\n {\n return(config);\n }", "public String getUserConfig() {\n return userConfig;\n }", "public FabricCommonConfig getConfig() {\n if (null == config) {\n config = new FabricCommonConfig();\n }\n return config;\n }", "public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }", "public Object getConfig() {\n return config;\n }", "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "Object getMailhost();", "public Map getJMSConnectorConfig()\n\t{\n\t\tMap params = getParams( \"jmsConnectorConfig\" );\n\t\t\n\t\treturn( params );\n\t}", "public MyConfig getConfig() {\n return config;\n }", "public String getConfig();", "public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}", "public String getSmtpHost() {\n return smtpHost;\n }", "public PortletConfig getPortletConfig ()\n {\n return config;\n }", "public final MailService getMailService() {\n return mailService;\n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public String getStringConfiguration() {\n\t\treturn config;\n\t}", "public PDPConfig getPdpConfig() throws WebserverSystemException {\r\n\r\n if (this.pdpConfig == null) {\r\n init();\r\n }\r\n return this.pdpConfig;\r\n }", "public Map getConfiguration() {\r\n\t\tMap config = (HashMap) getServlet().getServletContext().getAttribute(\r\n\t\t\t\tConstants.CONFIG);\r\n\t\t// so unit tests don't puke when nothing's been set\r\n\t\tif (config == null) {\r\n\t\t\treturn new HashMap();\r\n\t\t}\r\n\t\treturn config;\r\n\t}", "public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}", "public String configString() {\n return this.configString;\n }", "public void setMailServer(String mailServer)\n {\n _mailServer = mailServer;\n }", "@Override\n\tfinal public ServletConfig getServletConfig() {\n\n\t\treturn config;\n\n\t}", "public ConfigManager getConfigManager() {\n\t\treturn configManager;\n\t}", "public Properties getProperties() {\n return this.serverProperties;\n }", "public String getServerAddress() {\r\n\t\treturn this.serverAddress;\r\n\t}", "protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}", "public String getMailing() {\n return mailing;\n }", "public static ConfigManager getConfiguration() {\n return configuration;\n }", "public WriterConfig getConfig() {\n return mConfig;\n }", "public final File getReportingConfig() {\n\t\treturn configFile;\n\t}", "public static Configuration getCurrentConfig() {\n return ConfigManager.getCurrentConfig();\n }", "public static String getServer() {\n\t\tif(produccion){\n\t\t\treturn server_produccion;\n\t\t}else{\n\t\t\treturn server;\n\t\t}\t\t\n\t}", "public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}", "public synchronized String getMail()\r\n {\r\n return mail;\r\n }", "static Properties getConfig(final ServletContext context) {\n \n /* Validate parameters */\n if (context == null) { throw new IllegalArgumentException(\"context must be a non-empty string\"); }\n \n final Properties config;\n \n /* Validate config */\n try {\n config = (Properties) context.getAttribute(\"no.feide.moria.web.config\");\n } catch (ClassCastException e) {\n throw new IllegalStateException(\"Config is not correctly set in context. Not a java.util.Properties object.\");\n }\n \n if (config == null) { throw new IllegalStateException(\"Config is not set in context.\"); }\n \n return config;\n }", "public String getCurrentUrlConfig() {\n String primary = AbstractConfigHandler.getPrimaryDataServer();\n if (primary == null) {\n logger.debug(\"No primary dataserver found\");\n urlUnset();\n return null;\n } else {\n String url = addressHandler.getHttpAddress(primary);\n if (url == null) {\n logger.debug(\"No url set for dataserver: \" + primary);\n urlUnset();\n return null;\n } else {\n return verifyHttpProcess(url);\n }\n }\n }", "protected MailConfig prepareConfig() throws ApsSystemException {\n\t\tMailConfig config = this.getMailManager().getMailConfig();\n\t\tconfig.setActive(this.isActive());\n\t\tconfig.setDebug(this.isDebug());\n\t\tconfig.setSmtpHost(this.getSmtpHost());\n\t\tconfig.setSmtpPort(this.getSmtpPort());\n\t\tconfig.setSmtpTimeout(this.getSmtpTimeout());\n\t\tconfig.setSmtpProtocol(this.getSmtpProtocol());\n\t\tif (StringUtils.isBlank(this.getSmtpUserName()) && StringUtils.isBlank(this.getSmtpPassword())) {\n\t\t\tconfig.setSmtpUserName(this.getSmtpUserName());\n\t\t\tconfig.setSmtpPassword(this.getSmtpPassword());\n\t\t} else {\n\t\t\tif (StringUtils.isNotBlank(this.getSmtpPassword())) {\n\t\t\t\tconfig.setSmtpPassword(this.getSmtpPassword());\n\t\t\t}\n\t\t\tif (!config.getSmtpUserName().equals(this.getSmtpUserName())) {\n\t\t\t\tconfig.setSmtpUserName(this.getSmtpUserName());\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t}", "public void testUpdateConfiguration() throws ConfigurationException {\n\t\tSmtpServer smtpServer = new SmtpServer();\n\t\t\t\t\n\t\tsmtpServer.setSmtpServerEnabled(false);\n\t\tsmtpServer.setBindAddress(\"3.4.5.6:877\");\n\t\tsmtpServer.setConnectionBacklog(\"cntbacklog\");\n\t\tsmtpServer.setAuthorizedAddresses(\"a.b.c.d\");\n\t\tsmtpServer.setMaxmessagesize(\"333\");\n\t\tsmtpServer.setConnectiontimeout(\"678\");\n\t\tsmtpServer.setKeystore(\"file://mykey\");\n\t\tsmtpServer.setSecret(\"mysecret\");\n\t\tsmtpServer.setAlgorithm(\"myalgo\");\n\t\tsmtpServer.setProvider(\"org.myprovider.com\");\t\t\n\t\tsmtpServer.setHelloNameAutoDetect(false);\n\t\tsmtpServer.setHelloName(\"hellonam\");\n\t\tsmtpServer.setConnectionLimit(\"444\");\t\t\n\t\tsmtpServer.setConnectionLimitPerIP(\"555\");\t\t\n\t\tsmtpServer.setAddressBracketsEnforcement(false);\n\t\t\n\t\tsmtpServer.setSocketTls(true); //new\n\t\tsmtpServer.setStartTls(false); //new\n\t\tsmtpServer.setGreeting(\"GREAT\"); //new\n\t\t\n\t\tSystem.out.println(\"SmtpServer to store: \"+smtpServer.toString());\n\t\t\t\t\t\t\t\n\t\tsmtpServerConfigManager.updateConfiguration(smtpServer);\n\t\t\t\t\t\t\n\t\t//part 2: check previously stored configuration\n\t\tSmtpServer loadedConfig = smtpServerConfigManager.readConfiguration();\n\t\t\n\t\tSystem.out.println(\"SmtpServer loaded: \"+loadedConfig.toString());\n\t\t\t\t\t\t\n\t\tassertNotNull(loadedConfig);\t\n\t\tassertNotNull(loadedConfig.isSmtpServerEnabled());\n\t\tassertNotNull(loadedConfig.getBindAddress());\n\t\tassertNotNull(loadedConfig.getConnectionBacklog());\n\t\tassertNotNull(loadedConfig.getConnectiontimeout());\n\t\tassertNotNull(loadedConfig.isHelloNameAutoDetect());\n\t\tassertNotNull(loadedConfig.getHelloName());\n\t\tassertNotNull(loadedConfig.getConnectionLimit());\n\t\tassertNotNull(loadedConfig.getConnectionLimitPerIP());\t\n\t\tassertNotNull(loadedConfig.getAlgorithm());\n\t\tassertNotNull(loadedConfig.getKeystore());\n\t\tassertNotNull(loadedConfig.getSecret());\n\t\tassertNotNull(loadedConfig.getProvider());\n\t\tassertNotNull(loadedConfig.getAuthorizedAddresses());\n\t\tassertNotNull(loadedConfig.getMaxmessagesize());\n\t\tassertNotNull(loadedConfig.isAddressBracketsEnforcement());\n\t\t\t\t\n\t\t\t\t\n\t\tassertEquals(false,loadedConfig.isSmtpServerEnabled());\n\t\tassertEquals(\"3.4.5.6:877\",loadedConfig.getBindAddress());\n\t\tassertEquals(\"a.b.c.d\",loadedConfig.getAuthorizedAddresses());\n\t\tassertEquals(\"cntbacklog\",loadedConfig.getConnectionBacklog());\n\t\tassertEquals(\"678\",loadedConfig.getConnectiontimeout());\n\t\tassertEquals(false,loadedConfig.isHelloNameAutoDetect());\n\t\tassertEquals(\"hellonam\",loadedConfig.getHelloName());\n\t\tassertEquals(\"333\",loadedConfig.getMaxmessagesize());\n\t\tassertEquals(\"444\",loadedConfig.getConnectionLimit());\n\t\tassertEquals(\"555\",loadedConfig.getConnectionLimitPerIP());\n\t\tassertEquals(\"myalgo\",loadedConfig.getAlgorithm());\n\t\tassertEquals(\"file://mykey\",loadedConfig.getKeystore());\n\t\tassertEquals(\"mysecret\",loadedConfig.getSecret());\n\t\tassertEquals(\"org.myprovider.com\",loadedConfig.getProvider());\n\t\tassertEquals(false,loadedConfig.isAddressBracketsEnforcement());\n\t\t\n\t\tassertEquals(true,loadedConfig.isSocketTls());\n\t\tassertEquals(false,loadedConfig.isStartTls());\n\t\tassertEquals(\"GREAT\",loadedConfig.getGreeting());\t\t\n\t}", "public java.lang.String getMail() {\n return mail;\n }", "RootConfig getConfig();", "protected final String getServerUrl() {\n return this.serverUrl;\n }", "public void setMailServer(String mailServer) {\r\n\t\tthis.mailServer = mailServer;\r\n\t}", "public String getMail() {\r\n\t\treturn mail;\r\n\t}", "public EngineConfig getEngineConfig()\n\t{\n\t\treturn config;\n\t}", "public String getEventingServer() {\n\t\treturn eventingServer;\n\t}", "public ChatServiceConfiguration getConfiguration() throws RcsServiceException {\n\t\tif (api != null) {\n\t\t\ttry {\n\t\t\t\treturn api.getConfiguration();\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RcsServiceException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RcsServiceNotAvailableException();\n\t\t}\n\t}", "public String getServerURL() {\n return serverURL;\n }", "public String getSmtpHost() {\n\t\treturn _smtpHost;\n\t}", "public static server getServer(){\n return thisServer;\n }", "public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }", "public String getSmtpHostName() {\n return smtpHostName;\n }", "Map<String, String> getConfigProperties();", "public ComponentListConfig getConfig() {\n return CONFIG;\n }", "public java.lang.String getSMTP_ADDR()\n {\n \n return __SMTP_ADDR;\n }", "public FileConfiguration getConfig () {\n if (fileConfiguration == null) {\n this.reloadConfig();\n }\n return fileConfiguration;\n }", "private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }", "public String getServerAddress() {\n\t\treturn mServerAddress;\n\t}" ]
[ "0.7392148", "0.73709863", "0.713185", "0.703186", "0.68381613", "0.67534417", "0.65795904", "0.6573908", "0.6480985", "0.6461115", "0.6451403", "0.63728565", "0.6343951", "0.62311953", "0.6156865", "0.6120434", "0.6111716", "0.6098981", "0.60859156", "0.6080789", "0.6044768", "0.6043765", "0.60396284", "0.6021219", "0.6004639", "0.6002325", "0.60018176", "0.59942436", "0.59678483", "0.59655416", "0.5962812", "0.5839424", "0.58214676", "0.58139324", "0.58115", "0.5809126", "0.58003277", "0.5779571", "0.57716876", "0.57611394", "0.57503366", "0.57468677", "0.5735158", "0.57350737", "0.57201177", "0.5712944", "0.5712107", "0.57087076", "0.570486", "0.5703397", "0.57010216", "0.5699741", "0.5687825", "0.56640327", "0.56596214", "0.5652151", "0.5637452", "0.5626369", "0.5620126", "0.56095695", "0.5605279", "0.55994916", "0.5591788", "0.557679", "0.55678403", "0.556784", "0.55521786", "0.551817", "0.5510881", "0.5502547", "0.5501169", "0.5497292", "0.5495392", "0.54931885", "0.5484332", "0.5473722", "0.5473396", "0.54688644", "0.54674935", "0.5453638", "0.5453557", "0.54526407", "0.54353756", "0.54322606", "0.5425434", "0.5419891", "0.5419761", "0.5418059", "0.54166627", "0.54164106", "0.54139984", "0.54115003", "0.5410714", "0.54093766", "0.54038954", "0.5393276", "0.53868634", "0.5386489", "0.5383172", "0.53754544" ]
0.7711041
0
This is an interface which is going to expose all common Dao services. It is going to behave as a bridge between the Dao and the client code.
public interface IACORecordDao extends IDao { /** * * @return a <code>ACORecordDataModel</code> */ public ACORecordDataModel getACORecord(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DaoInterface {}", "public interface CommonDao<ENTITY extends SelServicesEntity> {\n\t\n\tpublic void create(ENTITY entity);\n\t\n\tpublic ENTITY get(long id);\n\t\n\tpublic void update(ENTITY entity);\n\t\n\tpublic void delete(long id);\n\t\n\tpublic NotificationFactory getNotificationFactory();\n\t\n\tpublic Date lastDateUpdate();\n\n}", "public interface CommonService<CE extends CommonEntity, ID extends Serializable> {\n /**\n * Create in database\n *\n * @param entity\n */\n void create(CE entity);\n\n /**\n * Update entity in database\n *\n * @param entity entity to update\n */\n void update(CE entity);\n\n /**\n * Delete from database by id\n *\n * @param id entity's id to delete\n */\n void delete(ID id);\n\n /**\n * Find from database by id\n *\n * @param id\n * @return entity\n */\n CE findById(ID id);\n\n /**\n * Find all entries from database\n *\n * @return\n */\n List<CE> findAll();\n}", "public interface CommonService {\n public String getUUID() throws Exception;\n\n public List<NlbsDistributor> selectChildrenListDistributor(String distributorCode) throws Exception;\n\n public List<NlbsUser> selectChildrenListUser(String userCode) throws Exception;\n\n List<Map> queryAllMaterialTypeList() throws Exception;\n\n List<Map> queryAllApplyRecordStatusList() throws Exception;\n\n List<NlbsCity> queryAllCity() throws Exception;\n\n public NlbsUser queryNlbsUserByUserNoIgnoreStatus(String userNo) throws Exception;\n\n public boolean isAdministrator(String userNo, List<String> roleList) throws Exception;\n\n}", "public interface Dao {\n\n\tpublic void say();\n}", "public interface Dao {\n void crud();\n}", "public interface BaseDao {\n}", "public interface DiaDiemService {\n Page<DiaDiem> getAllDiaDiemsPaging(String search, int page, int size, String sort, String column );\n\n List<DiaDiem> getAllDiaDiemsActive(String search);\n\n DiaDiem getDiaDiem(String id);\n\n DiaDiem getDiaDiemByIdCore(String id);\n\n DiaDiem createDiaDiem(DiaDiemDto dto);\n\n DiaDiem updateDiaDiem(String id, DiaDiemDto dto);\n\n DiaDiem changeStatus(String id);\n}", "public interface HedummyDaoServices extends IDaoServicesReadOnly, IDaoMemberAliasServices { \n\tpublic List findById(Integer id, StringBuffer errorStackTrace);\n\t\n}", "public interface ServiceDao {\n void add(ServiceItem service);\n void delete(Long id) throws Exception;\n List<ServiceItem> getLiked(Long userId);\n List<ServiceItem> list();\n void like(LikeParameters likeParameters);\n void unlike(LikeParameters likeParameters);\n}", "public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}", "public interface ClienteDAO {\n\tpublic void agregar(Cliente c) throws Exception;\n\tpublic void eliminar(Cliente c) throws Exception;\n\tpublic void modificar(Cliente c) throws Exception;\n\tpublic List<Cliente> listar() throws Exception;\n\tpublic void insertarDesdeCSV(CSVParser parser);\n\tpublic ArrayList<Cliente> getClienteMasRecaudador();\n}", "public interface ZqhDiaryService {\n int insert(ZqhDiary zqhDiary);\n\n int save(ZqhDiary zqhDiary);\n\n List<ZqhDiary> selectAll();\n\n String getToken(String appId);\n}", "public interface ClientDAO {\n\n public List<Client> getAll();\n\n public List<Client> getByPassport(String id);\n\n public List<Client> getByName(String name);\n\n public boolean addClient(Client client);\n\n public boolean deleteClient(Client client);\n\n public Client getUniqueByPassport(String id);\n\n public boolean checkByPassport(String id);\n\n public List<Client> getByUniqueName(String name);\n\n}", "public interface IDao {\r\n\r\n}", "public interface PlatformAdvertisingService{\r\n\r\n /**\r\n * 查询广告位\r\n * @param query\r\n * @return\r\n */\r\n public List<AdvertisingPosition> getAdList (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 启用、禁用 广告位\r\n * @param query\r\n */\r\n public void enabledAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 获取广告位\r\n * @param query\r\n * @return\r\n */\r\n public AdvertisingPosition getAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 保存广告位\r\n * @param query\r\n */\r\n public void saveAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 编辑广告位\r\n * @param query\r\n */\r\n public void editAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 排序广告位\r\n */\r\n public void sortAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n}", "public interface CommonAbstractDao<T> {\n T select(@Param(\"key\") String uniqueField, @Param(\"value\") Object value) throws Exception;\n List<T> findAll() throws Exception;\n void insert(T t) throws Exception;\n void update(T t) throws Exception;\n void delete(@Param(\"key\") String uniqueField, @Param(\"value\") Object value) throws Exception;\n}", "public interface ClientService {\n\n /**\n * This service adds the given client to the database.\n * Afterwards with the help of ClientEntity the Client will be persistent.\n *\n * @param client is the Client to add.\n * @return This service returns the persistent DB Client.\n * @throws BaseException as exception.\n */\n Client addClient(Client client) throws BaseException;\n\n /**\n * Update a client service.\n *\n * @param client the client to be updated.\n * @return updated client.\n * @throws BaseException as exception.\n */\n Client updateClient(Client client) throws BaseException;\n\n /**\n * Find client by ID.\n * @param id the ID of a client.\n * @return a client.\n * @throws BaseException as exception.\n */\n Client findClientById(Long id) throws BaseException;\n\n /**\n * It gives back a list of clients, belonging to a user.\n * @param user the employee.\n * @return list of clients.\n * @throws BaseException as exception.\n */\n List<ClientResponse> findUsersClient(User user) throws BaseException;\n}", "public interface CommonDao<T> {\n int save(T t);\n\n int update(T t);\n\n T findByParams(T t);\n\n int delete(int id);\n}", "public interface EntityDAOInterface {\n}", "public interface ClientDao {\n Long create(Client client);\n Client read(Long id);\n void update(Client client);\n void delete(Client client);\n List<Client> findAll();\n}", "public interface IMDao extends Dao {\n public IMessage sendMessageToUser(IMessage message, Long senderId, Long receiverId) throws DaoException;\n public void inviteUser(Long userId, Long inviterId, Long chatRoomId) throws DaoException;\n public void kickUser(Long userId, Long moderatorId, Long chatRoomId) throws DaoException;\n public IMessage addNewIM(IMessage message) throws DaoException;\n public ChatRoom newChatRoom(ChatRoom chatRoom) throws DaoException;\n\n Map<Conversation, IMessage> getConversationList(Long userid, Integer offset, Integer limit);\n\n public List<IMessage> getIMsSinceDate(UUID convoUUID, Date from, Integer offset, Integer limit) throws DaoException;\n public void deleteMessage(IMessage message, Long userId) throws DaoException;\n}", "public interface ServiceDao {\r\n\r\n\r\n List<Person> selectAllPersons(); \r\n Person getPersonById(int i);\r\n int deletePersonById(int i);\r\n int deleteMultiplePersonsById(int i, int j);\r\n void insertNewPerson(Person p);\r\n int updatePersonById(Person p);\r\n \r\n \r\n\r\n}", "public interface IDepartmentService {\n\n /**\n * 获取所有Department对象\n */\n public List<Department> getAllList();\n\n /**\n * 获取PageResult对象\n */\n public PageResult getQuery(BaseQuery query);\n\n /**\n * 获取Department对象\n */\n public Department get(Department department);\n\n /**\n * 保存Department对象\n */\n public void save(Department department);\n\n /**\n * 更新Department对象\n */\n public void update(Department department);\n\n /**\n * 更新Department对象\n */\n public void delete(Department department);\n\n /**\n * 批量删除Department对象\n * @param ids\n */\n public void batchDelete(List<Long> ids);\n}", "public interface DaoBase<T> {\n\n T getById(int id);\n\n List<T> getAll();\n\n boolean insert(T item);\n\n boolean insertAll(List<T> items);\n\n boolean update(T item);\n\n boolean delete(T item);\n}", "public interface AdminService {\n\n public Admin selectByPrimaryKey(int id);\n\n public int delete(int id);\n}", "public interface IBaseService {\n\n\n /**\n * 根据id获取\n * @param tableName 表名\n * @param id\n */\n Map<String,Object> findById(String tableName, Integer id);\n\n /**\n * 修改状态\n * @param tableName 表名\n * @param status 状态\n * @param id\n */\n int updateStatus(String tableName, Integer status, Integer id);\n\n /**\n * 修改\n * @param tableName 表名\n * @param params 要修改的字段\n */\n int update(String tableName, Map<String, Object> params);\n /**\n * 根据sql删除或更改\n * @param sql 表名\n */\n int deleteOrUpdate(String sql);\n /**\n * 根据id删除\n * @param tableName 表名\n * @param id\n */\n int delete(String tableName, Integer id);\n /**\n * 插入一条数据,返回主键\n * @Date 2016/7/20 15:20\n * @author linyb\n */\n int save(String tableName, Map<String, Object> params);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n * @param pageNum 第几页\n * @param pageSize 查询多少条\n */\n PageModel findPage(String coloumSql, String fromSql, Integer pageNum, Integer pageSize);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param offset 偏移\n * @param pageSize 查询多少条\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n */\n PageModel findPage(Integer offset, Integer pageSize, String coloumSql, String fromSql);\n\n /**\n * 不分页获取列表信息\n * @Date 2016/7/26 08:46\n * @author linyb\n * @param coloumSql 列信息\n * @param fromSql 从哪里查询\n */\n List findList(String coloumSql, String fromSql);\n /**\n * 根据sql获取符合条件的第一条数据\n * @Date 2016/7/28 16:24\n * @author linyb\n */\n Map<String,Object> findFirstBySql(String sql);\n\n}", "public interface ClientDao {\n\n public List<Client> getClients();\n public Client createClient(Client client);\n}", "public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}", "public interface OrderDao extends BaseDao<Order> {\n\n /**\n * Update order status boolean.\n *\n * @param orderId the order id\n * @param status the status\n * @return the boolean\n * @throws DaoProjectException the dao project exception\n */\n boolean updateOrderStatus(long orderId, Order.Status status) throws DaoProjectException;\n\n /**\n * Find waiting action orders list.\n *\n * @return the list\n * @throws DaoProjectException the dao project exception\n */\n List<Order> findWaitingActionOrders() throws DaoProjectException;\n\n /**\n * Find orders by parameters list.\n *\n * @param orderParameters the order parameters\n * @return the list\n * @throws DaoProjectException the dao project exception\n */\n List<Order> findOrdersByParameters(Map<String, Object> orderParameters) throws DaoProjectException;\n\n /**\n * Find client orders list.\n *\n * @param clientId the client id\n * @return the list\n * @throws DaoProjectException the dao project exception\n */\n List<Order> findClientOrders(long clientId) throws DaoProjectException;\n}", "public interface Idao {\r\n\r\n\tpublic void seconnecter(String login, String mdp);\r\n\r\n\tpublic void creerClient(Client c);\r\n\tpublic void lireClient(Client c);\r\n\tpublic void modifierClient(Client c);\r\n\tpublic void supprimerClient(Client c);\r\n\t\r\n\tpublic void creerConseiller(Conseiller c);\r\n\tpublic Conseiller lireConseiller(int id);\r\n\tpublic void modifierConseiller(int id, String nom, String prenom, String login, String mdp, String email);\r\n\tpublic void supprimerConseiller(Conseiller c);\r\n\tpublic void attribuerAgence(Agence a, Employe e);\r\n\tpublic void ajouterEmploye(Employe e, Agence a);\r\n\tpublic void attribuerGerant(Gerant g, Conseiller c);\r\n\tpublic void ajouterConseiller(Conseiller c, Gerant g);\r\n\t\r\n\tpublic void creerCompte(Compte c);\r\n\tpublic CompteCourant lireCompteCourant(int idCompte);\r\n\tpublic CompteCourant lireCompteCourant(long numCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(int idCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(long numCompte);\r\n\tpublic void modifierCompteCourant(long numCompte, double solde, int decouvert);\r\n\tpublic void modifierCompteEpargne(long numCompte, double solde, float tauxEpargne);\r\n\tpublic void supprimerCompte(long numCompte);\r\n\tpublic void faireVirement(Compte c);\r\n\tpublic void simuler();\r\n\tpublic void placerArgent(float montant, Compte c);\r\n\tpublic void attribuerClient(Client cl, Compte c);\r\n\tpublic void ajouterCompte(Compte c, Client cl);\r\n\tpublic void attibuerConseiller(Conseiller c, Client cl);\r\n\tpublic void ajouterClient(Client cl, Conseiller c);\r\n\r\n\tpublic void auditer();\r\n\r\n}", "public interface DaoFactory {\r\n\r\n\t/**\r\n\t * Returns objects for access to account table.\r\n\t * \r\n\t * @return DAO for account table.\r\n\t */\r\n\tpublic GenericDao<Account> getAccountDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to client table.\r\n\t * \r\n\t * @return DAO for client table.\r\n\t */\r\n\tpublic GenericDao<Client> getClientDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to payment table.\r\n\t * \r\n\t * @return DAO for payment table.\r\n\t */\r\n\tpublic GenericDao<Payment> getPaymentDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to credit card table.\r\n\t * \r\n\t * @return DAO for credit card table.\r\n\t */\r\n\tpublic GenericDao<CreditCard> getCreditCardDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to authorization table.\r\n\t * \r\n\t * @return DAO for authorization table.\r\n\t */\r\n\tpublic GenericDao<Autorization> getAutorizationDao();\r\n\r\n\t/**\r\n\t * This method returns connection for accessing to database.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Connection getConnection();\r\n\r\n}", "public interface DeviceService extends BaseService<PDevice,String> {\n\n int checkDeviceName(String dname);\n List<String> getallIp();\n int count();\n String authDevice(String msg1);\n void updateDeviceCon(String eid,String conStatue);\n ReType showCon(PDevice pDevice, int page, int limit);\n\n\n List<PDevice> getAlldevice();\n\n void addDevice(PDevice pDevice);\n\n void updateDeviceIp(String eid, String inetAddress);\n\n PDevice selectDevicebyeid(String eid);\n\n JsonUtil deletebydeviceId(String eid, boolean flag);\n\n void updateDevice(PDevice pDevice);\n\n\n List<HashMap<String,String>> getDeviceConnect(List<String> deviceids);\n}", "public interface DaoFactory {\n\n // ===== Getters =====\n\n /**\n * Give the Author Data Access Object.\n *\n * @return the Author Data Access Object.\n */\n AuthorDao getAuthorDao();\n\n /**\n * Give the Book Data Access Object.\n *\n * @return the Book Data Access Object.\n */\n BookDao getBookDao();\n\n /**\n * Give the BookBorrowed Data Access Object.\n *\n * @return the BookBorrowed Data Access Object.\n */\n BookBorrowedDao getBookBorrowedDao();\n\n /**\n * Give the bookReservation Data Access Object.\n *\n * @return the bookReservation Data Access Object.\n */\n BookReservationDao getBookReservationDao();\n\n /**\n * Give the Genre Data Access Object.\n *\n * @return the Genre Data Access Object.\n */\n GenreDao getGenreDao();\n\n /**\n * Give the Publisher Data Access Object.\n *\n * @return the Publisher Data Access Object.\n */\n PublisherDao getPublisherDao();\n\n /**\n * Give the Stock Data Access Object.\n *\n * @return the Stock Data Access Object.\n */\n StockDao getStockDao();\n\n /**\n * Give the Address Data Access Object.\n *\n * @return the Address Data Access Object.\n */\n AddressDao getAddressDao();\n\n /**\n * Give the Role Data Access Object.\n *\n * @return the Role Data Access Object.\n */\n RoleDao getRoleDao();\n\n /**\n * Give the User Data Access Object.\n *\n * @return the User Data Access Object.\n */\n UserDao getUserDao();\n\n /**\n * Give the UserOptions Data Access Object.\n *\n * @return the UserOptions Data Access Object.\n */\n UserOptionsDao getUserOptionsDao();\n\n // ===== Setters =====\n\n /**\n * Set the Author Data Access Object.\n *\n * @param authorDao the Author Data Access Object.\n */\n void setAuthorDao(final AuthorDao authorDao);\n\n /**\n * Set the Book Data Access Object.\n *\n * @param bookDao the Book Data Access Object.\n */\n void setBookDao(final BookDao bookDao);\n\n /**\n * Set the BookBorrowed Data Access Object.\n *\n * @param bookBorrowedDao the BookBorrowed Data Access Object.\n */\n void setBookBorrowedDao(final BookBorrowedDao bookBorrowedDao);\n\n /**\n * Set the BookReservation Data Access Object.\n *\n * @param bookReservationDao the BookReservation Data Access Object.\n */\n void setBookReservationDao(final BookReservationDao bookReservationDao);\n\n /**\n * Set the Genre Data Access Object.\n *\n * @param genreDao the Genre Data Access Object.\n */\n void setGenreDao(final GenreDao genreDao);\n\n /**\n * Set the Publisher Data Access Object.\n *\n * @param publisherDao the Publisher Data Access Object.\n */\n void setPublisherDao(final PublisherDao publisherDao);\n\n /**\n * Set the Stock Data Access Object.\n *\n * @param stockDao the Stock Data Access Object.\n */\n void setStockDao(final StockDao stockDao);\n\n /**\n * Set the Address Data Access Object.\n *\n * @param addressDao the Address Data Access Object.\n */\n void setAddressDao(final AddressDao addressDao);\n\n /**\n * Set the Role Data Access Object.\n *\n * @param roleDao the Role Data Access Object.\n */\n void setRoleDao(final RoleDao roleDao);\n\n /**\n * Set the User Data Access Object.\n *\n * @param userDao the User Data Access Object.\n */\n void setUserDao(final UserDao userDao);\n\n /**\n * Set the User Data Access Object.\n *\n * @param userOptionsDao\n */\n void setUserOptionsDao(final UserOptionsDao userOptionsDao);\n}", "public interface CommonService<T> {\n //頁面查詢\n public R<T> page(Map<String,Object> params);\n //查询id\n R<T> getById(Serializable id);\n //编辑\n R updateById(T entity);\n //增加\n R save(T entity);\n //删除\n R removeById(Serializable id);\n\n}", "public interface BaseService<T> {\n //添加单个对象\n public Integer insert (T entity) throws Exception;\n\n //修改单个对象\n public Integer update(T entity) throws Exception;\n\n //删除单个对象\n public Integer delete(T entity) throws Exception;\n\n //查询所有\n public List<T> selectAll();\n\n //查询单个对象\n public T selectById(Serializable id);\n\n //查询单个对象\n public T select(T entity);\n\n}", "public interface AccountService extends BaseDao<Account>{\n}", "public interface DbConnectService {\r\n\t\r\n\tpublic void GetDbConnectSSO() throws Exception;\r\n\tpublic Connection getConnection();\r\n\tpublic boolean executeSqlBatch(List<String> sqlBatch);\r\n\tpublic boolean executeSql(String sqlBatch);\r\n\t\r\n\tpublic boolean GetDbConnectState();\r\n\t\r\n\tpublic List<ConnectorTable> getAllConnector();\r\n\tpublic PageInfo<ConnectorTable> findSqlPageFilter(int pageNum, int pageSize);\r\n\tpublic int addSelective(ConnectorTable connectorTable);\r\n\tpublic int editSelective(ConnectorTable connectorTable);\r\n\tpublic boolean deleteByConIds(List<String> dbIds);\r\n\r\n}", "public interface IClientDAO {\n Long insert(Client client, boolean getID);\n ArrayList<Client> getAll();\n boolean updateById(Long id, Properties columns);\n boolean updateOrder(Long client_id, Long order_id);\n boolean deleteById(Long id);\n Client getById(long id);\n boolean increaseOrdersCount(Long client_id);\n}", "public interface BaseService<T> {\n\n\n int deleteByStr(String code);\n\n int deleteByInt(int id);\n\n Map selectPageUseDyc(Page<T> page);\n\n\n //添加对象\n int insert(T entity);\n\n //修改对象\n int update(T entity);\n\n\n //查询对象\n SimpleResult<Map> select(T entity);\n\n //通过主键查找对象\n T select(int id);\n\n\n //动态查询\n int selectTotal(T entity);\n\n List<T> selectList(T entity);\n}", "public interface ClienteDAO {\n\tpublic void save(Cliente cliente) throws PersistenceException;\n\tpublic void saveAlquilerItem(ItemRentado itr, long doc) throws PersistenceException;\n\tpublic void saveEstadoCliente(long docu, boolean estado) throws PersistenceException;\n\tpublic Cliente load(long id) throws PersistenceException;\n\tpublic List<Cliente> loadClientes() throws PersistenceException;\t\n}", "public interface BaseDao<T> {\n public void insert(T t);\n public void delete(String id);\n public void update(T t);\n public T queryOne(String id);\n public List<T> queryAll();\n}", "public interface IKindOfDaoDao {\n\n\t/**\n\t * Create a new element.\n\t * @param exempleDirect Element to create.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Update an existing element.\n\t * @param exempleDirect Element to update. \n * If the element has an id, it may use it.\n \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Delete an element.\n * Only id can be used to find which element must be deleted.\n\t * @param exempleDirect Element which will be delete. \n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Find all elements.\n\t * @return A list with all elements, without any filter.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic Collection<ExempleDirect> findAllExempleDirects() throws DaoException;\n\n\t/**\n\t * Find one entity by its primary key.\n * @param id The PK of the entity.\n\t * @return The entity found.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic ExempleDirect findExempleDirectById(String id) throws DaoException;\n\n\t//Start of user code for technicals dao access api\n\t//End of user code\n}", "public interface iClientDAO extends iDAO<ClientModel, Long> { }", "public interface IGeneralDao<T> {\n\n public T findById(int id);\n\n public List<T> findAll();\n\n public void save(T t);\n\n public void update(T t);\n\n public void saveOrUpdate(T t);\n\n public void delete(T t);\n\n public void deleteById(int id);\n\n public void refresh(T t);\n\n public void flush();\n}", "public interface DUserDao {\n /**\n * 根据手机和密码,查询返回病患信息\n * 若不存在返回空,若密码不对返回id=0的医生\n * @param phone 医生手机\n * @return\n */\n DUser queryByPhone(@Param(\"phone\") String phone);\n\n /**\n * 新建一个医生用户\n * @param dUser\n * @return\n */\n boolean save(DUser dUser);\n\n /**\n * 查询所有的医生用户\n * @return\n */\n ArrayList<DUser> queryAll();\n\n /**\n * 更新医生\n * @param dUser\n * @return\n */\n boolean updateDUser(DUser dUser);\n}", "public interface ClientDAO {\n\t/**\n\t * Return client by its name, initialize client accounts.\n\t * @param bank\n\t * @param name\n\t * @return\n\t */\n\tClient findClientByName(Bank bank, String name) throws ClientNotFoundException;\n\n\t/**\n\t * Return client by its name, initialize client accounts.\n\t * @param clientId\n\t * @return\n\t */\n\tClient findClientById(int clientId) throws ClientNotFoundException;\n\n\t/**\n\t * Returns the list of all clients of the Bank\n\t * and their accounts\n\t * @param bankId\n\t * @return\n\t */\n\tList<Client> getAllClients(Bank bankId);\n\n\t/**\n\t * Method should insert new Client (if id==null)\n\t * or update client in database (if id!=null)\n\t * @param client\n\t */\n\tvoid save(Client client) throws DAOException;\n\n\t/**\n\t * Method removes client from Database\n\t * @param client\n\t */\n\tvoid remove(Client client) throws DAOException;\n}", "public interface ActionItemDAO\r\n extends GenericDAO<ActionItem, Long>\r\n{\r\n\r\n /**\r\n * Nom du service\r\n * \r\n */\r\n public final static String SERVICE_NAME = \"ActionItemDAO\";\r\n\r\n}", "public interface CommonDataService {\n /**\n * 添加\n * @param o ObjectType\n * @return boolean\n */\n boolean addObject(Object o);\n\n /**\n * 批量添加\n * @param o List<Object>\n * @return boolean\n */\n boolean batchAddObject(List o);\n\n /**\n * 根据id查找\n * @param id Long\n * @param clazz User.class\n * @return null or object\n */\n Object findById(Long id, Class clazz);\n\n /**\n * 根据一个条件查找出一个对象\n * @param columnName attr like: \"loginNamej\"\n * @param value value like: \"admin\" 类型一定要与columnName类型相同\n * @param clazz like: User.class\n * @return null or object\n */\n Object findOneByOneParam(String columnName, Object value, Class clazz);\n\n /**\n * 删除实体\n * @param o\n * @return boolean;\n */\n boolean delObject(Object o);\n\n /**\n * 根据id删除\n * @param id LongType\n * @param clazz User.class\n * @return\n */\n boolean delObjectById(Long id, Class clazz);\n\n /**\n * 根据查询条件删除实体,可用做批量删除\n * @param parsms List<param>\n * @param clazz\n * @return\n */\n boolean delObjectByParam(List<Param> parsms, Class clazz);\n\n /**\n * 更新实体,只更新更改属性,不需更新属性请设置为null\n * @param o\n * @param clazz\n * @return\n */\n boolean updateObject(Object o, Class clazz);\n\n /**\n * 批量更新 同updateObject,批量操作,保证objs的长度与clazzes的长度相等。\n * @param objs new Object[]{user,userInfo}\n * @param clazzes like: User.class,UserInfo.class\n * @return boolean\n */\n boolean batchUpdateObject(Object[] objs, Class... clazzes);\n\n /**\n * 获取所有实体 排序。无查询条件\n * @param clazz\n * @param orderBy\n * @param orderFlag\n * @return\n */\n List getAll(Class clazz, String orderBy, Integer orderFlag);\n\n /**\n * 根据查询条件查询数据并排序\n * @param params List<Param>\n * @param clazz\n * @param orderBy 排序字段\n * @param orderFlag 排序方式 Integer\n * @return\n */\n List getList(List<Param> params, Class clazz, String orderBy, Integer orderFlag);\n\n /**\n * 根据查询条件查找一个实体\n * @param params List<Param>\n * @param clazz\n * @return\n */\n Object findByParams(List<Param> params, Class clazz);\n\n /**\n * 分页查找\n * @param params 查询条件\n * @param clazz\n * @param orderBy 排序\n * @param orderFlag 排序方式\n * @param page 分页信息\n * @return Page\n */\n Page queryPage(List<Param> params, Class clazz, String orderBy, Integer orderFlag, Page page);\n\n /**\n * 根据条件用hql排序\n * @param hql\n * @param params\n * @param page\n * @return\n */\n Page queryPage(String hql, List<Param> params, Page page);\n\n /**\n * 根据hql获得一个实体\n * @param hql\n * @param values\n * @return\n */\n Object getByHql(String hql, Object... values);\n\n /**\n * 执行hql,返回影响行数\n * @param hql\n * @param objects\n * @return int or 0\n */\n int executeUpdateHql(String hql, Object... objects);\n\n /**\n * 根据hql查询list\n * @param hql\n * @param objects\n * @return list\n */\n List queryListByHql(String hql, Object... objects);\n\n /**\n * 根据sql查询获得list\n * @param sql\n * @param objects\n * @return list\n */\n List queryListBySql(String sql, Object... objects);\n}", "public interface IClientService {\n Client getClientById(Long id);\n List<Client> findAll();\n}", "public interface IHostDao {\n\n /**\n * Adds host\n * @param aHost host\n */\n void addHost(Host aHost) throws DaoException;\n\n /**\n * Finds host by id\n * @param aId host id\n * @return host\n */\n Host getHostById(long aId) throws DaoException;\n}", "public interface EntradaPontosDAO extends EntradaPontosSQL{\n\n}", "public interface ClinicService {\n\n List<Client> getClientById(long id);\n List<Client> getClientByName(String name);\n List<Client> getAllClients();\n void deleteClientById(long id);\n void updateClient(Client client);\n void insertClientToDB(Client client);\n void updateClientById(long id);\n List<Map<String, String>> getAllClientsWithDoctors();\n List<Map<String, String>> getClientWithDoctorsById(long id);\n\n void insertDoctor(Doctor doctor);\n void deleteDoctorById(long id);\n void updateDoctor(Doctor doctor);\n List<Doctor> getDoctorByName(String firstname);\n List<Doctor> getDoctorById(long id);\n List<Doctor> getAllDoctors();\n\n}", "public interface CommonService {\n String codeToLocation(int code);\n\n int locationToCode(String location);\n\n Addressbase getAddress(int code);\n\n List<Addressbase> getSubAddress(int code);\n}", "public interface ICommandeDao {\n public List<Commande> findAllCommandes();\n\n public Commande findCommandeById(int idCommande);\n\n public List<Commande> findCommandeByIdProduit(Integer idProduit);\n \n public List<Commande> findCommandeByIdUtilisateur(Integer idUtilisateur);\n\n public Commande createCommande(Commande commande);\n\n public Commande updateCommande(Commande commande);\n\n public boolean deleteCommande(Commande commande);\n}", "public interface DomainDao extends GenericDao<Domain, Integer> {\r\n\t/**\r\n\t * \r\n\t * @param unitName\r\n\t * @return Returns a domain by unit name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByUnitName(String unitName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns a domain by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByName(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns the admin login of the domain\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Login getGoogleDomainAdminLogin(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns all domains by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic List<Domain> getAllByDomainName(String domainName) throws Exception;\r\n}", "protected abstract Dao getDaoIntance(Context context);", "public interface DbServices {\n\n String getLocalStatus();\n\n void save(UserEntity userEntity);\n\n UserEntity read(long id);\n\n UserEntity readByName(String name);\n\n List<UserEntity> readAll();\n\n void shutdown();\n}", "public interface CarrierDAOInterface {\n\n public void insert(Carrier entity);\n\n public void update(Carrier entity);\n\n public Carrier getById(Long id);\n\n public List<Carrier> getAll();\n\n public void delete(Carrier entity);\n\n public void deleteAll();\n\n}", "public interface BusinessService extends BaseService<Business, String>{\n\n public Pager getBusinessLIst(Integer pageNumber , Integer pageSize , String searchBy , String searchText);\n\n BusinessVO getFromBusiness(String id);\n\n List<CustomerVO> findCustomerAll();\n List<UserVV> findUserAll();\n List<ContactsVO> findContactsAll();\n List<BusinessStatusVO> findBusinessStatusAll();\n List<DictVO> findBusinessTypeAll();\n List<DictVO> findBusinessOriginAll();\n Business fromBusinessVO(BusinessVO businessVO);\n public void saveBusiness(Business business);\n public void updateBusiness(Business business);\n\n public List<BusinessVO> getAllId();\n}", "public interface PortDao extends BaseDAO<Port> {\r\n\r\n\tList<Port> getPorts();\r\n\t\r\n}", "public interface PhoneTextService {\n\n public TblPhoneText getPhoneService(Long id) throws DaoException;\n}", "public interface DeviceService {\n\n DataWrapper<DeviceGroupInfoEntity> addGroup(DeviceGroupInfoEntity deviceGroup);\n\n DataWrapper<Void> delete(int deviceGroupId);\n\n DataWrapper<DeviceEntity> update(DeviceGroupInfoEntity deviceGroup);\n\n DataWrapper<List<DeviceGroupInfoEntity>> groupList(Page page);\n\n DataWrapper<DeviceGroupInfoEntity> groupDetail(int groupId);\n\n DataWrapper<List<DeviceGroupTypeEntity>> groupType();\n\n}", "public interface VisitBLService {\n\n\n //得到一个新的id\n public int getID();\n\n //增加一条师生出访记录\n public String addItem(AcademicVO academicVO);\n\n //删除一条师生出访的记录\n public UniversalState deleteItem(int id);\n\n //更新一条师生出访的记录\n public UniversalState updateItem(AcademicVO academicVO);\n\n //获取一条师生出访的记录\n public AcademicVO getItem(int id);\n\n //获取全部师生出访的记录\n public ArrayList<AcademicVO> getAllItems(String language);\n\n\n\n}", "public interface LanguageDAO extends CommonEntityDAO {\r\n}", "public interface IUserService {\n public void select();\n public void update();\n public void insert();\n public void delect();\n}", "public interface UserBaseService {\n Boolean regeist(UserBaseDO userBaseDO);\n UserBaseDO findByPhone(String phone);\n}", "public interface AdminService extends PersonService {\n\n long createItem(Item item) throws DBException;\n\n void updateItem(Item item) throws DBException;\n\n void deleteItem(long id) throws DBException;\n\n void deleteAllItems() throws DBException;\n\n void deleteAllPersons() throws DBException;\n\n void deleteAllPurchases() throws DBException;\n\n List<Purchase> getPurchases() throws DBException;\n}", "public interface UserService {\n\n public UserDO getUserDo(Long id);\n\n public void deleteUser(Long id);\n}", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\n\tvoid guardarUsuario(Usuario usuario);\n\n\tList<Usuario> traerTodosLosUsuarios();\n\n\tvoid guardarAdministrador(Usuario admin);\n\n\tUsuario traerUnUsuarioPorSuId(Long id);\n\n\tvoid actualizarUsuario(Usuario usuario);\n\n\tUsuario consultarCorreoUsuario(Usuario usuario);\n}", "public interface IDAO {\n public void salvar(EntidadeDominio entidade);\n public void alterar(EntidadeDominio entidade);\n public void excluir(EntidadeDominio entidade);\n public List<EntidadeDominio> consultar(EntidadeDominio entidade);\n}", "public interface UserDaoI {\n}", "public interface TbItemServiceAnno {\n //获取所有\n List<TbItem> getAll();\n\n //根据id进行查询\n TbItem getById(Long id);\n\n //插入\n int insertObj(TbItem tbItem);\n\n //更新\n int updateObj(TbItem tbItem);\n}", "public interface DAOInterface<T> {\n T create();\n void adicionar(T obj);\n void excluir(T obj);\n void atualizar(T obj);\n List<T>listar();\n T findForId(int id);\n T findForString(String string);\n}", "public interface BusinessDao {\n\n public List<Business> getAllBusiness() throws Exception;\n public Business getBusinessbyId(Long businessId) throws Exception;\n public void addBusiness (Business business) throws Exception;\n public void updateBusiness(Business business) throws Exception;\n public void deleteBusiness(Business business) throws Exception;\n}", "public interface ClientService {\n\n void add(String name, String country);\n\n List<Client> findAll();\n\n Client findById(int i);\n}", "public interface IBaseDao<T> {\n\n void insertObject(T t);\n\n boolean insertObjects(List<T> tList);\n\n void deleteObjects(int[] ids);\n\n void updateObject(T t);\n\n void updateObjects(List<T> tList);\n\n T getObjectById(int key);\n\n List<T> getObjects(@OrderType String order, int offset, int limit);\n\n boolean isObjectExist(T t);\n\n}", "public interface BaseDao {\n\n int getTotalCount(SelectArgs selectArgs);\n\n List<Map<String,Object>> queryList(SelectArgs selectArgs);\n\n int addRecord (InsertArgs insertArgs);\n}", "public interface GeneralDao<E, K> {\n\n List<E> getAll();\n\n E addEntity(E entity);\n\n boolean deleteEntity(E entity);\n\n E updateEntity(E entity);\n\n E getEntityById(K id);\n\n}", "public interface DataService extends Serializable {\n\n Collection<Application> getAllApplications();\n void saveApplication(Application a);\n void deleteApplication(long applicationId);\n Application getApplicationById(long applicationId);\n \n Collection<Domain> getAllDomains();\n void saveDomain(Domain r);\n void deleteDomain(long domainId);\n Domain getDomainById(long domainId);\n\n Collection<CodeType> getAllCodeTypes();\n void saveCodeType(CodeType ct);\n void deleteCodeType(long codeTypeId);\n CodeType getCodeTypeById(long codeTypeId);\n\n\n Collection<CodeValue> getAllCodeValues(CodeType codeType);\n void saveCodeValue(CodeValue codeValue);\n void deleteCodeValue(long type,long value);\n CodeValue getCodeValue(long type, long value);\n\n Collection<TextData> getAllTexts();\n void saveText(TextData textData);\n void deleteText(long id);\n TextData getTextById(long id);\n\n Collection<CodeText> getAllCodeTexts();\n void saveCodeText(CodeText codeText);\n void deleteCodeText(long type, long value);\n CodeText getCodeTextByIds(long type, long value);\n\n\n static DataService get() {\n return RestDataService.getInstance();\n }\n\n}", "public interface AdminService {\n\n /**\n * 用户列表查询\n * @param admin\n * @return\n */\n public List<Admin> queryadmin(Admin admin);\n\n int deladmin(Admin admin);\n}", "@Generated(value = \"JPACodeGenerator\")\npublic interface AbstractDao<E> {\n Class<E> getEntityClass();\n\n EntityManager getEntityManager();\n\n E persist(E entity);\n\n E merge(E entity);\n\n E remove(E entity);\n\n Optional<E> find(Object pk);\n}", "public interface DaoInfoFinder {\n\n /**\n * 查询dao信息\n * @param roundEnvironment\n * @param daoProxyMap\n * @param elements\n */\n void findDaoProxy(RoundEnvironment roundEnvironment, Map<String, DaoInfo> daoProxyMap, Elements elements);\n}", "public interface IDiscloseServ {\n public void insert(Integer discId,Integer proId,Integer riserId,String discTime,String discAddress, String discTitle, Double discMoney, String discPic);\n public void updatebyid(Integer discId,Integer proId,Integer riserId,String discTime,String discAddress, String discTitle, Double discMoney, String discPic);\n public void deletebyid(Integer discId);\n public ZszcDiscloseMod selectbyid(Integer discId);\n public List<ZszcDiscloseMod> selectall();\n public Map<String,Object> selectbyproid(Integer proId);\n}", "public interface DepartmentService {\n public Map<String,Object> departmentList();\n public Map<String,Object> departmentAdd(Map<String,Object> params);\n public Map<String,Object> departmentEdit(Map<String,Object> params);\n public Map<String,Object> departmentDelete(Map<String,Object> params);\n public Map<String,Object> departmentDeleteCascade(Map<String,Object> params);\n public Map<String,Object> departmentNewRoot();\n\n}", "public interface DAO <T> {\n void add (T t);\n void delete (T t);\n boolean find (T t);\n void addToBase(T t);\n}", "public interface ForecastDao extends SavableEntityDao<Forecast>, UpdatableEntityDao<Forecast>, RemovableEntityDao<Forecast> {\n\n Forecast getById(Long forecastId);\n\n List<Forecast> getAll();\n\n List<ResultadoQuery> findSumForecastAgrupadosGrupoGastos(int anio);\n\n List<ResultadoQuery> findImporteTotalMes(int anio);\n\n List<ResultadoQuery> findDetalleForecastsPorGrupoGastos(String grupoGasto, int anio);\n\n}", "public interface IEmployeeService {\n\n List<Employee> getAll();\n\n Employee get(int id);\n\n void save(Employee employee);\n\n void delete(int id);\n\n}", "public interface TestDao {\n\n List query();\n\n}", "public interface UserService extends BaseService {\n\n ServiceResultHander getPage(int pn, String name);\n\n ServiceResultHander insert(User user);\n\n ServiceResultHander update(Integer id, String name, Integer age);\n\n ServiceResultHander delete(Integer id);\n}", "public interface ShopManageService {\n\n //查询\n Map<String, Object> selectAll(int offset, int limit);\n\n Map<String, Object> selectAll();\n\n Map<String, Object> selectBySID(int sid);\n\n Map<String, Object> selectByPIC(String job, int offset, int limit);\n\n Map<String, Object> selectShopName(String name, int offset, int limit);\n\n //------------------------------------------------------------------------------\n //添加\n boolean addShop(Shop form);\n //修改\n boolean updateShop(Shop form);\n //删除\n boolean deleteShop(int sid);\n\n}", "public interface Dao<T extends Identifiable> {\r\n\t/**\r\n\t * Performs a parameterized read query to the database, expecting a single\r\n\t * result in the form of an object of type T with the specified identifier.\r\n\t * \r\n\t * @param id a object identifier in database\r\n\t * @return a {@link Optional} implementation with object.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tOptional<T> findById(Long id) throws DaoException;\r\n\r\n\t/**\r\n\t * Performs a parameterized read query to a database to find all object type T.\r\n\t *\r\n\t * @return a {@link List} implementation with all finding objects.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tList<T> findAll() throws DaoException;\r\n\r\n\t/**\r\n\t * The method designed for the process of saving a objects in database.\r\n\t *\r\n\t * @param item an object type T that should be saved to the database.\r\n\t * @return created lot identifier in database.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tlong save(T item) throws DaoException;\r\n\r\n\t/**\r\n\t * Using id delete an entity from the database.\r\n\t *\r\n\t * @param id\r\n\t * @throws DaoException\r\n\t */\r\n\tvoid removeById(Long id) throws DaoException;\r\n\r\n}", "public interface ClienteDAO {\n public Cliente registrarCliente(Cliente cliente);\n}", "public interface BaseDao<T> {\n\n /**\n * save the entity\n * @param t\n * @throws Exception\n */\n void save(T t) ;\n /**\n * update the entity\n * @param t\n * @throws Exception\n */\n void update(T t) ;\n /**\n * delete the entity\n * @param t\n * @throws Exception\n */\n void delete(T t) ;\n /**\n * find by id\n * @param id\n * @return\n * @throws Exception\n */\n T findById(Serializable id) ;\n /**\n * find the list of the entity\n * @return\n * @throws Exception\n */\n List<T> findAll() ;\n /**\n * get the entity count\n * @return\n * @throws Exception\n */\n int findAllCount() ;\n /**\n * find entities by criteria\n * @param criteria\n * @return\n * @throws Exception\n */\n List<T> findByCriteria(Criteria criteria) ;\n /**\n * find the entities by example\n * @param t\n * @return\n * @throws Exception\n */\n List<T> findByExample(T t) ;\n /**\n * find entities by hql\n * @param hql\n * @param objects\n * @return\n * @throws Exception\n */\n List<Object[]> findByHql(String hql, final Object... objects) ;\n /**\n * find the object by sql\n * @param sql\n * @param objects\n * @return\n */\n List<Object[]> findBySql(String sql, final Object... objects);\n}", "public interface SeService extends PubService {\n\t/**\n\t * 查询项目日志列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayNote(Map<String,String> m , Page p);\n\tpublic DataTableBean querySeDayNote(DataTableBean dtb);\n\t/**\n\t * 保存项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void saveSeDayNote(SeDayNote obj) ;\n\t/**\n\t * 更新项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void updateSeDayNote(SeDayNote obj);\n\t/**\n\t * 根据主键查询项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayNote querySeDayNoteById(java.lang.String pk);\n\t/**\n\t * 删除项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除项目日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayNoteByIds(String ids);\n\t\n\t/**\n\t * 查询矩阵属性列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceKey(Map<String,String> m , Page p);\n\t/**\n\t * 用于ajax查找某个矩阵树功能\n\t * Method Description : ########\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List traceFileter(String key);\n\t/**\n\t * 保存矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void saveSeTraceKey(SeTraceKey obj) ;\n\t/**\n\t * 更新矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void updateSeTraceKey(SeTraceKey obj);\n\t/**\n\t * 根据主键查询矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceKey querySeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 删除矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵属性对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceKeyByIds(String ids);\n\t/**\n\t * 查询某矩阵下的属性集合\n\t * @param traceId 矩阵ID \n\t * @param proType 属性类型 CLOB:大文本 STRING:非大文本字段 ALL:全部\n\t * @return 矩阵属性集合\n\t */\n\tpublic List queryTracePros(String traceId,String proType);\n\t/**\n\t * 保存矩阵属性\n\t * @param traceId 矩阵ID\n\t * @param params 矩阵属性集合\n\t */\n\tpublic void saveTracePros(String traceId,List<Map<String,String>> params);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 矩阵属性对象\n\t */\n\tpublic SeTraceKey queryTraceKeyByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值\n\t */\n\tpublic String queryTraceValueByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值对象 \n\t */\n\tpublic Object queryTraceValueObjByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 拷贝矩阵属性\n\t * @param sourceTraceId 源矩阵ID\n\t * @param targetTraceId 目标矩阵ID\n\t */\n\tpublic void copyTracePro(String sourceTraceId,String targetTraceId);\n\t\n\t/**\n\t * 属性继承\n\t * @param traceId 矩阵ID\n\t * @param direction 继承方向 U:继承父节点 D:覆盖子孙节点\n\t */\n\tpublic void traceProExtend(String traceId,String direction);\n\t\n\t/**\n\t * 根据矩阵ID查询矩阵对象\n\t * @param nodeId 矩阵ID\n\t * @return 矩阵对象\n\t */\n\tpublic SeRequirementTrace queryNodeById(String nodeId);\n\t\n\t/**\n\t * 查询矩阵记事列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceNote(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 我的矩阵遗留备忘\n\t * Method Description : ########\n\t * @param dtb\n\t * @return\n\t */\n\tpublic DataTableBean queryMySeTraceNote(DataTableBean dtb);\n\t/**\n\t * 查询遗留备忘具体内容\n\t * Method Description : ########\n\t * @param noteId 遗留备忘ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceNote(String noteId);\n\t/**\n\t * 保存矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void saveSeTraceNote(SeTraceNote obj) ;\n\t/**\n\t * 保存(或落实保存) 遗留备忘\n\t * Method Description : ########\n\t * @param id 遗留备忘ID\n\t * @param content 描述\n\t * @param status 1:保存并落实 0:仅保存\n\t */\n\tpublic void saveSeTraceNoteContent(String id,String content,String status,String modifier) ;\n\t/**\n\t * 更新矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void updateSeTraceNote(SeTraceNote obj);\n\t/**\n\t * 根据主键查询矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceNote querySeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 删除矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵记事对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceNoteByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRisk(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeRisk(SeRisk obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeRisk(SeRisk obj);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeRisk querySeRiskById(java.lang.String pk);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRiskById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRiskByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUser(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统用户(在岗)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUser(String projectId);\n\t/**\n\t * 查询系统用户(全部)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUserForAll(String projectId);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeUser(SeUser obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeUser(SeUser obj);\n\t/**\n\t * 验证用户名密码\n\t * @param userName 用户名\n\t * @param password 密码\n\t * @return 成功返回success 否则返回错误代码\n\t */\n\tpublic String validateUserAndPassword(String userName,String password);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserById(java.lang.String pk);\n\t/**\n\t * 根据用户账号查询用户对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserByAccount(String account);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserByIds(String ids);\n\t/**\n\t * 查询项目信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectInfo(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取项目信息选项\n\t * @return\n\t */\n\tpublic List querySeProjectOptions();\n\t/**\n\t * 保存项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void saveSeProjectInfo(SeProjectInfo obj) ;\n\t/**\n\t * 更新项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void updateSeProjectInfo(SeProjectInfo obj);\n\t/**\n\t * 根据主键查询项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectInfo querySeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 删除项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 批量删除项目信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectInfoByIds(String ids);\n\t\n\t/**\n\t * 查询项目人员信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMapProjectUser(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void saveSeMapProjectUser(SeMapProjectUser obj) ;\n\t/**\n\t * 更新项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void updateSeMapProjectUser(SeMapProjectUser obj);\n\t/**\n\t * 根据主键查询项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeMapProjectUser querySeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 删除项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目人员信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMapProjectUserByIds(String ids);\n\t\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List queryUserLogForEdit(Map<String,String> m,Page p );\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic DataGrid queryUserLog(Map<String,String> m,Page p );\n\t/**\n\t * 更新日志\n\t * @param log\n\t */\n\tpublic void updateUserLog(SePersonLog log);\n\t/**\n\t * 创建空白日志\n\t */\n\tpublic SePersonLog createBlankUserLog();\n\t/**\n\t * 删除用户日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePersonLogById(java.lang.String pk);\n\t/**\n\t * 批量删除用户日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePersonLogByIds(String ids);\n\t\n\t/**\n\t * 工作日志关联任务\n\t * @param logIds 日志ID 多个ID用\",\"隔开\n\t * @param taskId 任务ID\n\t * @return 成功返回SUCCESS 失败返回原因\n\t */\n\tpublic String linkTaskForLog(String logIds,String taskId);\n\t/**\n\t * 查询公共组件列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySePubModule(Map<String,String> m , Page p);\n\t/**\n\t * 保存公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void saveSePubModule(SePubModule obj) ;\n\t/**\n\t * 更新公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void updateSePubModule(SePubModule obj);\n\t/**\n\t * 根据主键查询公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic SePubModule querySePubModuleById(java.lang.String pk);\n\t/**\n\t * 删除公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePubModuleById(java.lang.String pk);\n\t/**\n\t * 批量删除公共组件对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePubModuleByIds(String ids);\n\t/**\n\t * 查询待办任务列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceTask(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 保存待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void saveSeTraceTask(SeTraceTask obj) ;\n\t/**\n\t * 更新待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void updateSeTraceTask(SeTraceTask obj);\n\t/**\n\t * 用于ajax更新矩阵任务\n\t * Method Description : ########\n\t * @param id 任务ID\n\t * @param obj 更新的对象\n\t * @param nullProperties 置空的属性\n\t * @return 成功返回SUCCESS 否则返回错误原因\n\t */\n\tpublic String updateSeTraceTaskForAjax(String id,SeTraceTask obj, Object[] nullProperties);\n\t/**\n\t * 更新任务进度\n\t * Method Description : ########\n\t * @param taskId 任务ID\n\t * @param process 进度\n\t */\n\tpublic void updateProcessOfTraceTask(String taskId,Integer process);\n\t/**\n\t * 根据主键查询待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceTask querySeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 删除待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 批量删除待办任务对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceTaskByIds(String ids);\n\t\n\t/**\n\t * 个人任务转日志\n\t * @param userIds 人员ID,多个人员用\",\"隔开\n\t * @param taskId 任务ID\n\t * @param date 日期\n\t * @param workLoad 时长(小时)\n\t */\n\tpublic void transformATaskToLog(String userIds,String taskId,String date,Float workLoad);\n\t\n\t/**\n\t * 查询人员奖惩记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUserRewardAmerce(Map<String,String> m , Page p);\n\t/**\n\t * 保存人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void saveSeUserRewardAmerce(SeUserRewardAmerce obj) ;\n\t/**\n\t * 更新人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void updateSeUserRewardAmerce(SeUserRewardAmerce obj);\n\t/**\n\t * 根据主键查询人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeUserRewardAmerce querySeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 删除人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 批量删除人员奖惩记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserRewardAmerceByIds(String ids);\n\t\n\t/**\n\t * 用户视图获取任务信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryTaskListForUserView(Map<String,String> m , Page p);\n\t/**\n\t * 用户视图获取备忘信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryNoteListForUserView(Map<String,String> m , Page p);\n\tpublic List queryLogListForUserView(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取所有节点信息 用于ztree simple data\n\t * @param rootId 根节点ID\n\t * @return 所有节点列表\n\t */\n\tpublic List queryAllSeTrace(String rootId);\n\t\n\t\n\tpublic List seCountWorkLoadGetData(Map<String,String> m );\n\tpublic List seCountTaskGetData(Map<String,String> m );\n\tpublic List seCountTraceGetData(Map<String,String> m );\n\t\n\tpublic List seCountWorkLoadOfDay(Map<String,String> m);\n\t\n\tpublic DataTableBean seCountWorkLoadGetDataForBootstrap(DataTableBean dtb );\n\tpublic DataTableBean seCountTaskGetDataForBootstrap(DataTableBean dtb );\n\t\n\t\n\t\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefect(Map<String,String> m , Page p);\n\t\n\tpublic DataTableBean queryMySeTraceDefect(DataTableBean dtb);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefect(SeTraceDefect obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefect(SeTraceDefect obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefect querySeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectByIds(String ids);\n\t\n\t/**\n\t * 查询某缺陷的图片信息\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceDefect(String defectId);\n\t/**\n\t * 更新缺陷状态\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @param status 状态\n\t * @param userId 操作用户\n\t * @param desc 描述\n\t */\n\tpublic void updateTraceDefectStatus(String defectId,String status,String userId,String desc);\n\t/**\n\t * 查询问题修改状态历史列表\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic List queryTraceDefectStatusList(String defectId);\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefectRepair(Map<String,String> m , Page p);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefectRepair(SeTraceDefectRepair obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefectRepair(SeTraceDefectRepair obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefectRepair querySeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectRepairByIds(String ids);\n\t\n\t/**\n\t * 查询我的项目\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMyProject(String userId);\n\t/**\n\t * 给某个矩阵任务派工\n\t * @param traceTaskId 矩阵任务ID\n\t * @param userIds 人员ID 多个人员用\",\"隔开\n\t * @return\n\t */\n\tpublic String assignOperator(String traceTaskId,String userIds);\n\t/**\n\t * 查询系统角色列表(jsp管理界面使用)\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRoleForList(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统角色列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRole(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void saveSeRole(SeRole obj) ;\n\t/**\n\t * 更新系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void updateSeRole(SeRole obj);\n\t/**\n\t * 根据主键查询系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic SeRole querySeRoleById(java.lang.String pk);\n\t/**\n\t * 删除系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRoleById(java.lang.String pk);\n\t/**\n\t * 批量删除系统角色对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRoleByIds(String ids);\n\t\n\t/**\n\t * 查询用户系统/项目 角色\n\t * Method Description : ########\n\t * @param projectId 如果是null或空字符串则查询系统角色 否则查询项目角色\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryUserRole(String projectId,String userId);\n\t/**\n\t * 保存用户角色\n\t * Method Description : ########\n\t * @param projectId 项目ID(有则是保存项目角色否则为系统角色)\n\t * @param userId 用户ID\n\t * @param roleCodes 角色CODE\n\t * @return 成功返回SUCCESS\n\t */\n\tpublic String saveUserRole(String projectId,String userId,String roleCodes);\n\t/**\n\t * \t获取登录用户信息\n\t * Method Description : ########\n\t * @param userAccount 用户账号\n\t * @return\n\t */\n\tpublic LoginUserInfo createLoginUserInfo(String userAccount);\n\t\n\t/**\n\t * 查询系统菜单列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMenu(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统菜单\n\t * @param obj 系统菜单对象\n\t * @param parentId 父节点ID,如果增加根节点请设置为空\n\t */\n\tpublic void saveSeMenu(SeMenu obj,String parentId) ;\n\t/**\n\t * 更新系统菜单\n\t * @param obj 系统菜单对象\n\t */\n\tpublic void updateSeMenu(SeMenu obj);\n\t/**\n\t * 根据主键查询系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic SeMenu querySeMenuById(java.lang.String pk);\n\t/**\n\t * 查询菜单列表-treegrid\n\t * Method Description : ########\n\t * @param m 查询条件\n\t * @param id 父节点ID(查询子节点用)\n\t * @param p 分页信息(只有第一级节点才使用) 当id参数有值的时候该参数无效\n\t * @return\n\t */\n\tpublic List querySeMenuForDataGrid(String id, Page p);\n\t/**\n\t * 查询菜单列表-ztree\n\t * Method Description : ########\n\t * @return\n\t */\n\tpublic List querySeMenuForZtree();\n\t/**\n\t * 根据MenuID查询树形代码\n\t * @param menuId 菜单ID\n\t * @return\n\t */\n\tpublic String queryTreeCodeById(String menuId);\n\t/**\n\t * 根据树形代码查询菜单\n\t * @param treeCode 树形代码\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuByTreeCode(String treeCode);\n\t/**\n\t * 查询某节点的父节点\n\t * Method Description : ########\n\t * @param id 子节点ID\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuOfParent(String id);\n\t/**\n\t * 删除系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMenuById(java.lang.String pk);\n\t/**\n\t * 批量删除系统菜单对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMenuByIds(String ids);\n\t/**\n\t * 查询权限字典列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeAuth(Map<String,String> m , Page p);\n\t/**\n\t * 保存权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void saveSeAuth(SeAuth obj) ;\n\t/**\n\t * 更新权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void updateSeAuth(SeAuth obj);\n\t/**\n\t * 根据主键查询权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic SeAuth querySeAuthById(java.lang.String pk);\n\t/**\n\t * 删除权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeAuthById(java.lang.String pk);\n\t/**\n\t * 批量删除权限字典对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeAuthByIds(String ids);\n\t/**\n\t * 查询某角色的权限\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryAuthOfRole(String roleCode);\n\t/**\n\t * 查询某角色的菜单\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryMenuOfRole(String roleCode);\n\t/**\n\t * 保存角色与权限关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param authCodes 权限CODE 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveAuthOfRole(String roleCode,String authCodes);\n\t/**\n\t * 保存角色与菜单关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param menuIds 菜单ID 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveMenuOfRole(String roleCode,String menuIds);\n\t/**\n\t * 某人在某项目中是否有某权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @param authCode 权限CODE\n\t * @return 有权限返回YES 无权限返回NO\n\t */\n\tpublic String hasAuth(String userId,String projectId,String authCode);\n\t/**\n\t * 某人在某项目中的权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @return Map<authCode,YES>\n\t */\n\tpublic Map<String,String> queryAuth(String userId,String projectId);\n\t/**\n\t * 查询某人的菜单\n\t * Method Description : ########\n\t * @param userId 用户\n\t * @param parentCode 父节点CODE,例如查询第一级目录则为root\n\t * @param level 菜单等级 如果是查询全部子菜单则为null即可\n\t * @param onlyLeaf 是否只查询叶子节点 1:是 其他值:否\n\t * @return\n\t */\n\tpublic List<MenuBean> queryMenuOfUser(String userId,String parentCode , Integer level,String onlyLeaf);\n\t/**\n\t * 查询用户权限\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryAuthOfUser(String userId);\n\t/**\n\t * 查询用户菜单\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMenuOfUser(String userId);\n\t/**\n\t * 查询会议列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeeting(Map<String,String> m , Page p);\n\t/**\n\t * 查询会议列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询风险列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeRiskForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询公共模块列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySePubModuleForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 保存会议\n\t * @param obj 会议对象\n\t */\n\tpublic void saveSeMeeting(SeMeeting obj) ;\n\t/**\n\t * 更新会议\n\t * @param obj 会议对象\n\t */\n\tpublic void updateSeMeeting(SeMeeting obj);\n\t/**\n\t * 根据主键查询会议对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeeting querySeMeetingById(java.lang.String pk);\n\t/**\n\t * 删除会议对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingById(java.lang.String pk);\n\t/**\n\t * 批量删除会议对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingByIds(String ids);\n\t\n\t/**\n\t * 查询会议记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeetingRecord(Map<String,String> m , Page p);\n\t/**\n\t * 保存会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void saveSeMeetingRecord(SeMeetingRecord obj) ;\n\t/**\n\t * 更新会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void updateSeMeetingRecord(SeMeetingRecord obj);\n\t/**\n\t * 根据主键查询会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeetingRecord querySeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 删除会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 批量删除会议记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingRecordByIds(String ids);\n\t/**\n\t * 查询会议要点\n\t * Method Description : ########\n\t * @param meetingCode 会议CODE\n\t * @param classify 条目分类\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingRecordForMetting(String meetingCode,String classify);\n\t/**\n\t * 查询项目文档列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectDoc(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void saveSeProjectDoc(SeProjectDoc obj) ;\n\t/**\n\t * 更新项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void updateSeProjectDoc(SeProjectDoc obj);\n\t/**\n\t * 根据主键查询项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectDoc querySeProjectDocById(java.lang.String pk);\n\t/**\n\t * 删除项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectDocById(java.lang.String pk);\n\t/**\n\t * 根据附件Id删除文档\n\t * Method Description : ########\n\t * @param attachId 附件ID\n\t */\n\tpublic void deleteSeProjectDocByAttachId(java.lang.String attachId);\n\t/**\n\t * 批量删除项目文档对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectDocByIds(String ids);\n\t\n\t/** 查询个人天计划列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayPlan(Map<String,String> m , Page p);\n\t/**\n\t * 保存个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void saveSeDayPlan(SeDayPlan obj) ;\n\t/**\n\t * 更新个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void updateSeDayPlan(SeDayPlan obj);\n\t/**\n\t * 根据主键查询个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayPlan querySeDayPlanById(java.lang.String pk);\n\t/**\n\t * 删除个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayPlanById(java.lang.String pk);\n\t/**\n\t * 批量删除个人天计划对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayPlanByIds(String ids);\n\t/**\n\t * 查询天计划-portal\n\t * @param dtb \n\t */\n\tpublic DataTableBean queryDayPlanForIndexPlugin(DataTableBean dtb);\n\t/**\n\t * 快速保存天计划条目\n\t * Method Description : ########\n\t * @param planContent 计划内容\n\t * @param userId 用户ID\n\t * @return 条目ID\n\t */\n\tpublic String saveSimpleSeDayPlan(String dayPlanId,String planContent,String userId);\n\t\n}", "public interface DailycarePreseterDao {\n\n public List<Event> getDataFromServer();\n}", "interface Services {\n\tpublic int addEmployee(Connection conn, String empDesignation);\n\n\tpublic void promote(Connection conn);\n\n\tpublic void deleteEmployee(Connection conn, int empId);\n\n\tpublic void changeSupervisor(Connection conn);\n\n\t// public void showEmployeesUnderMe(Map<Integer, Employee> employees, int\n\t// empId);\n}", "public interface CustomerDao {\n\n //总条数\n public Integer customerCountByQueryVo(QueryVo vo);\n //结果集\n public List<Customer> selectCustomerListByQueryVo(QueryVo vo);\n\n //通过id查询客户\n public Customer selectCustomerById(Integer id);\n\n //通过id修改客户\n public void updateCustomerById(Customer customer);\n\n //通过id删除客户\n public void deleteCustomerById(Integer id);\n\n //通过id增加客户\n public void addCustomerById(Customer customer);\n}", "public interface UserDao {\n /**\n * 用户增加\n *\n * @param user\n */\n void insert(User user);\n\n /**\n * 根据id删除\n *\n * @param id\n */\n void delete(int id);\n\n /**\n * 更新User\n *\n * @param user\n */\n void update(User user);\n\n /**\n * 查询表中所有数据\n *\n * @return\n */\n List<User> queryAll();\n\n /**\n * 根据User查询\n *\n * @param id\n * @return\n */\n User queryById(int id);\n}", "public interface IOrderDAO {\n\n public int insert(Order order);\n\n public int update(Order order);\n\n public int delete(Order order);\n\n public List<Order> findAll();\n\n public Order findByID(int orderIDParam);\n}", "public interface AdvertisementsDao extends GenericDao<Advertisement>{\n\n List<Advertisement> getAll() throws DaoException;\n\n Advertisement getById(int id) throws DaoException;\n}" ]
[ "0.75515187", "0.73631465", "0.72277397", "0.7218146", "0.7115931", "0.703163", "0.6993091", "0.69739145", "0.69679254", "0.69490635", "0.6939221", "0.6923127", "0.6915962", "0.6914727", "0.690961", "0.69013363", "0.6889098", "0.6883503", "0.6866979", "0.68630445", "0.6861868", "0.6846186", "0.6842863", "0.6840899", "0.6837766", "0.68145925", "0.67703676", "0.6764104", "0.67622185", "0.6760162", "0.67526186", "0.6743315", "0.67425793", "0.6740104", "0.6738235", "0.67076474", "0.6707197", "0.6706942", "0.6698145", "0.66977733", "0.66974807", "0.66944945", "0.66917634", "0.66902393", "0.66711783", "0.6665995", "0.66509944", "0.664349", "0.66374004", "0.6635031", "0.66243434", "0.66183096", "0.66019666", "0.6601656", "0.65985477", "0.65976197", "0.65973413", "0.65811396", "0.6577823", "0.6559459", "0.6558273", "0.65512466", "0.65501183", "0.6549054", "0.65480226", "0.6547786", "0.65473855", "0.654389", "0.6528992", "0.6528932", "0.652674", "0.652182", "0.651931", "0.6519173", "0.65151113", "0.65141517", "0.6513644", "0.65044045", "0.64836687", "0.64801437", "0.6471108", "0.64621824", "0.6460823", "0.6456877", "0.6455809", "0.64527327", "0.645272", "0.6450658", "0.6447108", "0.64463603", "0.643782", "0.6436743", "0.6433771", "0.6431741", "0.6431578", "0.6430654", "0.64240825", "0.642291", "0.6421095", "0.64184695", "0.6416192" ]
0.0
-1
No args constructor for use in serialization
public Continue() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n // do nothing\n }", "public JsonFactory() { this(null); }", "private SingleObject(){}", "public CompactSerializable() {\n }", "public Data() {\n \n }", "public Payload() {}", "void DefaultConstructor(){}", "public Data() {\n }", "public Data() {\n }", "private SingleObject()\r\n {\r\n }", "public CustomDateSerializer() {\n this(null);\n }", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "private Instantiation(){}", "public Payload() {\n\t}", "O() { super(null); }", "protected abstract T _createEmpty(DeserializationContext ctxt);", "private SerializationUtils() {\n\n }", "Reproducible newInstance();", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public MinecraftJson() {\n }", "public Constructor(){\n\t\t\n\t}", "public \n PipedObjectReader() \n {}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private void __sep__Constructors__() {}", "public Pleasure() {\r\n\t\t}", "public AvroPerson() {}", "private SingleObject(){\n }", "public Pojo1110110(){\r\n\t}", "public NetworkData() {\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Member() {}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public JSONLoader() {}", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "public WCSResponseSerializer()\r\n {\r\n }", "public Clade() {}", "public ClaseJson() {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Item() {}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public MetaDataContract()\n {\n }", "public JobPayload()\n {\n \n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Person() {}", "public Item(){}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "public Value() {}", "private Message(){\n // default constructor\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "private NaturePackage() {}", "public ParamJson() {\n\t\n\t}", "public InitialData(){}", "public PersonRecord() {}", "public LargeObjectAvro() {}", "protected abstract void construct();", "public D() {}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "private Item(){}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public JAXBConverter() {\n\t}", "public Member() {\n //Empty constructor!\n }", "public AbstractBinaryInteraction() {\n\n\t}", "public FileObject() {\n\t}", "public BabbleValue() {}", "public StringData() {\n\n }", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "public Mapping() { this(null); }", "public Postoj() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public StudentRecord() {}", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public Person()\n {\n //intentionally left empty\n }", "public XObject(){\r\n }", "public XObject(){\n }", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "public ObjectUtils() {\n super();\n }", "public Value() {\n }", "public JsonField() {\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "MessageSerializer<T> create();", "public CSSTidier() {\n\t}", "public Value(){}", "private NewsWriter() {\n }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "public SensorData() {\n\n\t}", "public Pasien() {\r\n }", "public Node() {\n\t}", "public LocalObject() {}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public Book() {}", "public Item() {\n\t}" ]
[ "0.74630904", "0.7387007", "0.7210724", "0.7029566", "0.7018587", "0.6977819", "0.69339114", "0.6881743", "0.6739828", "0.6727297", "0.6717886", "0.67169136", "0.669586", "0.669586", "0.66750634", "0.66246814", "0.6604095", "0.6532946", "0.65235436", "0.6500072", "0.6466648", "0.64311725", "0.6420696", "0.63329536", "0.6331174", "0.63080406", "0.6303669", "0.6297327", "0.6289062", "0.62796336", "0.62715524", "0.6246891", "0.6236601", "0.6236527", "0.62337124", "0.621766", "0.62073123", "0.6205364", "0.62028056", "0.61931217", "0.61913615", "0.61901313", "0.6187056", "0.618604", "0.61813384", "0.61712974", "0.6168396", "0.61616594", "0.6159333", "0.61513215", "0.6150306", "0.6144834", "0.6137297", "0.61357254", "0.6134681", "0.61235094", "0.6122921", "0.61144346", "0.6113325", "0.6103046", "0.6093859", "0.6088237", "0.60865474", "0.60842085", "0.6079729", "0.6075916", "0.6066694", "0.6050046", "0.60495526", "0.60494757", "0.60476506", "0.6045192", "0.60441047", "0.6041579", "0.60395074", "0.6038388", "0.6038388", "0.6038388", "0.6038388", "0.6036713", "0.6032801", "0.6030977", "0.60247785", "0.6018193", "0.60155535", "0.60124946", "0.6011776", "0.60107607", "0.6008726", "0.60062283", "0.60036933", "0.5999471", "0.5998251", "0.5996513", "0.59922075", "0.5991442", "0.59912944", "0.5989887", "0.5989741", "0.598915", "0.59881556" ]
0.0
-1
Format the minutes with padded zeros so we don't get stuff like "6:2" instead of 6:02
public void onTimeSet(TimePicker view, int hourOfDay, int minute) { String newValue = String.format("%d:%02d", hourOfDay, minute); mPrefs.edit().putString(mPreference.getKey(), newValue).apply(); mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue)); mListener.onPreferenceChange(mPreference, newValue); SettingsFragment.updateAlarmManager(getActivity(), true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMinutesStr(){\n \n // return zero\n if (this.getMinutes()==0){\n return \"00\";\n }\n // pad single digit with zero\n else if (this.getMinutes() < 10){\n return '0' + Integer.toString(this.getMinutes()); \n }\n // return double digit\n else {\n return Integer.toString(this.getMinutes());\n }\n\n }", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "private String getMinutes() {\n StringBuilder minutesSB = new StringBuilder();\n\n if (minutes > 0) {\n if (String.valueOf(minutes).length() < 2) {\n minutesSB.append(\"0\");\n }\n minutesSB.append(minutes);\n } else {\n minutesSB.append(\"0\");\n }\n\n return minutesSB.toString();\n }", "public String secondsToMinutes(int seconds){\n int minutes = 0;\n while(seconds >= 60){\n seconds -= 60;\n minutes++;\n }\n String sec;\n if(seconds < 10){\n sec = \"0\" + seconds;\n }else{\n sec = seconds + \"\";\n }\n String time = minutes + \":\" + sec;\n return time;\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public String toString(){\r\n String strout = \"\";\r\n strout = String.format(\"%02d:%02d\", this.getMinutes(), this.getSeconds());\r\n return strout;\r\n }", "private String readableTime(Integer minutes) {\r\n String time = \"\";\r\n if (minutes / 60.0 > 1) {\r\n time = (minutes / 60) + \" hrs, \"\r\n + (minutes % 60) + \" min\";\r\n } else {\r\n time = minutes + \" min\";\r\n }\r\n return time;\r\n }", "private String secondsToMinutesAndSeconds(double seconds) {\n\t\tint numberOfminutes = (int) (seconds / 60);\n\t\tint numberOfSeconds = (int) (seconds % 60);\n\t\tif (numberOfSeconds < 10) {\n\t\t\treturn numberOfminutes + \":0\" + numberOfSeconds;\n\t\t} else {\n\t\t\treturn numberOfminutes + \":\" + numberOfSeconds;\n\t\t}\n\t}", "private String createTimeString(int value)\n\t {\n\t\tif(value<0){\n\t\t\treturn \"00:00:00,000\";\n\t\t}\n\t int sec = value % 60;\n\t int min = (value / 60) % 60;\n\t int hr = value / 3600;\n\t String fmtHr = \"\"+hr;\n\t String fmtMin = \"\"+min;\n\t String fmtSec = \"\" + sec;\n\t if(hr<10){\n\t \tfmtHr = \"0\"+hr;\n\t }\n\t if(min<10){\n\t \tfmtMin = \"0\"+min;\n\t }\n\t if(sec<10){\n\t \tfmtSec = \"0\"+sec;\n\t }\n\n\t return fmtHr+\":\"+fmtMin+\":\"+fmtSec+\",\"+\"000\";\n\t }", "public String FormatTime(int hour, int minute) {\n\n String time;\n time = \"\";\n String formattedMinute;\n\n if (minute / 10 == 0) {\n formattedMinute = \"0\" + minute;\n } else {\n formattedMinute = \"\" + minute;\n }\n\n\n if (hour == 0) {\n time = \"12\" + \":\" + formattedMinute + \" AM\";\n } else if (hour < 12) {\n time = hour + \":\" + formattedMinute + \" AM\";\n } else if (hour == 12) {\n time = \"12\" + \":\" + formattedMinute + \" PM\";\n } else {\n int temp = hour - 12;\n time = temp + \":\" + formattedMinute + \" PM\";\n }\n\n\n return time;\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public static String formatTime(long time) {\n long tmp = time;\n int hour = (int) (time / 3600);\n tmp -= hour * 3600;\n int min = (int) (tmp / 60);\n int sec = (int) (tmp - min * 60);\n\n String hourText = hour < 10 ? \"0\" + hour : \"\" + hour;\n String minText = min < 10 ? \"0\" + min : \"\" + min;\n String secText = sec < 10 ? \"0\" + sec : \"\" + sec;\n\n\n return hourText + \":\" + minText + \":\" + secText;\n }", "public String timeFormatter(int hour, int min) {\n String minString = String.valueOf(min);\n String amOrPm = \"AM\";\n if (hour > 12) {\n hour -= 12;\n amOrPm = \"PM\";\n }\n if (minString.length() < 2) {\n minString = \"0\" + minString;\n }\n return (String.valueOf(hour) + \":\" + minString + \" \" + amOrPm);\n\n }", "private String secsToTime(int secs) {\n String min = secs / 60 + \"\";\n String sec = secs % 60 + \"\";\n if(sec.length() == 1) {\n sec = \"0\" + sec;\n }\n\n return min + \":\" + sec;\n }", "public static int reformatTime(int time, int min) {\n int hours = Integer.parseInt(Integer.toString(time).substring(0, 2));\n int minutes = Integer.parseInt(Integer.toString(time).substring(2, 4)) + min;\n\n hours += minutes / 60;\n minutes = minutes % 60;\n\n return Integer.parseInt(hours + (minutes < 10 ? \"0\" + minutes : String.valueOf(minutes)));\n }", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }", "public String timeToString() {\n\t\tString start = \"\";\n\t\tString hmSep = \":\";\n\t\tString msSep = \":\";\n\t\tif (hour < 10)\n\t\t\tstart = new String(\"0\");\n\t\tif (minute < 10)\n\t\t\thmSep = new String(\":0\");\n\t\tif (second < 10)\n\t\t\tmsSep = new String(\":0\");\n\t\treturn new String(start\n\t\t\t\t+ hour + hmSep\n\t\t\t\t+ minute + msSep\n\t\t\t\t+ second);\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "private static String doFormat(long hours, long minutes, long seconds) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (hours != 0) {\n\t\t\tsb.append(hours);\n\t\t\tsb.append(\"h\");\n\t\t}\n\t\tif (minutes != 0) {\n\t\t\tsb.append(minutes);\n\t\t\tsb.append(\"m\");\n\t\t}\n\t\tif (seconds != 0 || sb.length() == 0) {\n\t\t\tsb.append(seconds);\n\t\t\tsb.append(\"s\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String formatTime(final long ms){\n long s = ms / 1000, m = s / 60, h = m / 60;\n s %= 60; m %= 60; h %= 24;\n return String.format(\"%02d:%02d:%02d\", h, m, s);\n }", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "public String toString()\r\n {\r\n DecimalFormat twoDigits = new DecimalFormat( \"00\" );\r\n\r\n return ( this.getHour() == 12 || this.getHour() == 0 ?\r\n 12 : this.getHour() % 12 ) + \":\" +\r\n twoDigits.format( this.getMinute() ) + \":\" +\r\n twoDigits.format( this.getSecond() ) +\r\n ( this.getHour() < 12 ? \" AM\" : \" PM\" );\r\n }", "public static String hoursMinutesSeconds(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n //return String.format(\"%2d:%02d:%02d\", hours, mins, secs);\n return String.format(\"%d:%02d:%02d\", hours, mins, secs);\n }", "public String getPrintFormattedTime() {\n return this.optionalTime.map(x -> x.format(DateTimeFormatter.ofPattern(\"HHmma\"))).orElse(\"\");\n }", "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "public String toString() {\n return String.format(\"%d: %02d: %02d %s\",\n ((hour == 0 || hour == 12) ? 12 :hour % 12 ),\n minutes, seconds, (hour < 12 ? \"AM\" : \"PM\"));\n\n }", "public static String convertFromTime(int time){\n int hour = time/100;\n int min = time%100;\n String hourStr = String.format(\"%02d\", hour);\n String minStr = String.format(\"%02d\",min);\n return hourStr + \":\" + minStr;\n }", "public String manipulateTimeForScore(String mins, String secs) {\n\n\t\tint min = -1;\n\t\tint sec = -1;\n\t\tif (mins != null && mins.trim().length() > 0) {\n\t\t\ttry {\n\t\t\t\tmin = Integer.parseInt(mins);\n\t\t\t} catch (Exception e) {\n\t\t\t\t \n\t\t\t}\n\t\t}\n\t\tif (secs != null && secs.trim().length() > 0) {\n\t\t\ttry {\n\t\t\t\tsec = Integer.parseInt(secs);\n\t\t\t} catch (Exception e) {\n\t\t\t\t \n\t\t\t}\n\t\t}\n\t\tString result = \"\";\n\t\tif (min != -1 && sec != -1) {\n\t\t\tif (min < 10) {\n\t\t\t\tresult = \"0\" + min + \":\";\n\t\t\t} else {\n\t\t\t\tresult = min + \":\";\n\t\t\t}\n\n\t\t\tif (sec < 10) {\n\t\t\t\tresult = result + \"0\" + sec;\n\t\t\t} else {\n\t\t\t\tresult = result + sec;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static String TimeConvert(int num) {\n\n int hours;\n int minutes;\n\n if (num < 60){\n\n return \"0:\" + num;\n }\n else {\n\n hours = num / 60;\n minutes = num % 60;\n\n return hours + \":\" + minutes;\n }\n }", "public static String millsToMinSec(long mills) {\n int min = (int) (mills / 1000 / 60);\n int second = (int) (mills / 1000 % 3600 % 60);\n String time = \"\";\n// if (hour < 10) {\n// time = \"0\" + hour;\n// } else {\n// time = \"\" + hour;\n// }\n if (min < 10) {\n time += \"0\" + min;\n } else {\n time += \"\" + min;\n }\n if (second < 10) {\n time += \":0\" + second;\n } else {\n time += \":\" + second;\n }\n return time;\n }", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }", "public static String getTime(int second) {\n if (second < 10) {\n return \"00:00:0\" + second;\n }\n if (second < 60) {\n return \"00:00:\" + second;\n }\n if (second < 3600) {\n int minute = second / 60;\n second = second - minute * 60;\n if (minute < 10) {\n if (second < 10) {\n return \"00:\" + \"0\" + minute + \":0\" + second;\n }\n return \"00:\" + \"0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"00:\" + minute + \":0\" + second;\n }\n return \"00:\" + minute + \":\" + second;\n }\n int hour = second / 3600;\n int minute = (second - hour * 3600) / 60;\n second = second - hour * 3600 - minute * 60;\n if (hour < 10) {\n if (minute < 10) {\n if (second < 10) {\n return \"0\" + hour + \":0\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"0\" + hour + \":\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":\" + minute + \":\" + second;\n }\n if (minute < 10) {\n if (second < 10) {\n return hour + \":0\" + minute + \":0\" + second;\n }\n return hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return hour + \":\" + minute + \":0\" + second;\n }\n return hour + \":\" + minute + \":\" + second;\n }", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }", "public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public String toString() {\n return hour+\" \"+minute;\r\n }", "public String getMinutes();", "public static String getTimeString(int t) {\n\t\tint hours = t / 3600;\n\t\tint minutes = (t / 60) % 60;\n\t\tint seconds = t % 60;\n\t\treturn (hours < 10 ? \"0\" : \"\")\n\t\t\t+ hours\n\t\t\t+ (minutes < 10 ? \":0\" : \":\")\n\t\t\t+ minutes\n\t\t\t+ (seconds < 10 ? \":0\" : \":\")\n\t\t\t+ seconds;\n\t}", "public String toUniversalString() {\n return String.format(\"%02d:%02d:%02d\", hour, minutes, seconds);\n\n }", "public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfHour(), minDigits, 2);\r\n }", "public static String formatTime(int seconds){\n\t\tTimeZone tz = TimeZone.getTimeZone(\"UTC\");\n\t SimpleDateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n\t df.setTimeZone(tz);\n\t return df.format(new Date((long)(seconds * 1000)));\n\t}", "public String timeToFormat(int newSecondsTotal){\n String out = \"\";\n int minutes = newSecondsTotal/60;\n int seconds = newSecondsTotal-(minutes*60);\n out = minutes+\":\"+seconds;\n return out;\n }", "public static String formatTime(long elapsed) {\n int[] convConst = {100, 60, 60, 24};\n int[] formatValues = new int[convConst.length];\n\n for (int i = 0; i < (convConst.length & formatValues.length); i++) {\n if (i > 0) elapsed /= convConst[i - 1];\n formatValues[i] = (int) (elapsed % convConst[i]);\n }\n\n int[] trimmed = ArrayUtils.autobox(ArrayUtils.reverse(ArrayUtils.trimBack(ArrayUtils.autobox(formatValues), 0)));\n String[] filled = new String[trimmed.length];\n\n for (int i = 0; i < (trimmed.length & filled.length); i++)\n filled[i] = i > 0 ? StringUtils.fillLeading(\"\" + trimmed[i], '0', 2) : \"\" + trimmed[i];\n\n List<String> filledList = new ArrayList<>(Arrays.asList(filled));\n if (filledList.size() <= 1) filledList.add(0, \"0\");\n\n return String.join(\".\", String.join(\":\", filledList.subList(0, filledList.size() - 1)), filledList.get(filledList.size() - 1));\n }", "public static String formatSeconds(int seconds) {\n SimpleDateFormat sf = new SimpleDateFormat(\"m:ss\");\n Date date = new Date(seconds*1000);\n return sf.format(date);\n }", "private static String format(String value) {\r\n String formattedValue = value.trim();\r\n if (formattedValue.endsWith(\" 00:00:00\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 9);\r\n } else {\r\n if (formattedValue.endsWith(\" 00:00:00.0\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 11);\r\n }\r\n }\r\n return formattedValue;\r\n }", "private String getFormattedTime(int totalElapsedSeconds)\n {\n int minutes = totalElapsedSeconds / 60;\n int seconds = totalElapsedSeconds - (minutes * 60);\n String timerText = String.format(\"%02d\", minutes)\n + \":\" + String.format(\"%02d\", seconds);\n return timerText;\n }", "private static String minuteInWord(final int minute) {\n\t\tif( minute == 0 ) {\n\t\t\treturn \"o' clock\";\n\t\t}else if(minute == 15 || minute == 30) {\n\t\t\treturn getFromNumber(minute).getWord();\n\t\t} else {\n\t\t\treturn getFromNumber(minute).getWord() + (minute > 1 ? \" minutes\" : \" minute\");\n\t\t}\n\t}", "protected String mo3406c() {\n return \"Minute\";\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static String convert(int secs) {\n int h = secs / 3600, i = secs - h * 3600, m = i / 60, s = i - m * 60;\n String timeF = \"\";\n\n if (h < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + h + \" hour(s) \";\n if (m < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + m + \" minute(s) \";\n if (s < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + s + \" second(s) \";\n\n return timeF;\n }", "public static String convert_minutes_to_hours(String minutess) {\n int hours = Integer.parseInt(minutess) / 60; //since both are ints, you get an int\n int minutes = Integer.parseInt(minutess) % 60;\n System.out.printf(\"%d:%02d\", hours, minutes);\n return hours + \":\" + minutes;\n }", "private String formatTime(long ms) {\n String format = String.format(\"%%.%df s\", decimals);\n return String.format(format, ms > 0 ? ms/1000f : 0f);\n }", "public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.secondOfMinute(), minDigits, 2);\r\n }", "private static int getMinutes(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(3)) * 10) + Character.getNumericValue(time.charAt(4));\n\t}", "public String getFullHour()\n {\n\n String str = \"\";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "public static String tenthsToStringShort(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00\";\r\n\t\t}\r\n\t\t\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d\", min, sec);\r\n\t}", "public static String FormatMillis(String prefix, int now) {\r\n int whom = 0;\r\n boolean more = false;\r\n if (now == 0x80000000) {\r\n now = GetMills();\r\n }\r\n if (now < 0) {\r\n return FormatMillis(prefix + \"-\", -now);\r\n }\r\n if (now >= 3600000) { // convert to hours..\r\n whom = now / 3600000;\r\n now = now - whom * 3600000;\r\n prefix = prefix + whom + \":\";\r\n more = true;\r\n }\r\n if (now >= 60000) { // convert to minutes..\r\n if (more && now < 600000) {\r\n prefix = prefix + \"0\";\r\n }\r\n whom = now / 60000;\r\n now = now - whom * 60000;\r\n prefix = prefix + whom + \":\";\r\n more = true;\r\n } else if (more) {\r\n prefix = prefix + whom + \"00:\";\r\n }\r\n if (more && now < 10000) {\r\n prefix = prefix + \"0\";\r\n }\r\n whom = now / 1000;\r\n now = now - whom * 1000;\r\n prefix = prefix + whom + \".\";\r\n if (now < 10) {\r\n prefix = prefix + \"00\";\r\n } else if (now < 100) {\r\n prefix = prefix + \"0\";\r\n }\r\n return prefix + now;\r\n }", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "private static String timeConversion(long totalSeconds) {\n\n final int MINUTES_IN_AN_HOUR = 60;\n final int SECONDS_IN_A_MINUTE = 60;\n\n long seconds = totalSeconds % SECONDS_IN_A_MINUTE;\n long totalMinutes = totalSeconds / SECONDS_IN_A_MINUTE;\n long minutes = totalMinutes % MINUTES_IN_AN_HOUR;\n long hours = totalMinutes / MINUTES_IN_AN_HOUR;\n\n StringBuilder time = new StringBuilder();\n time.append(totalSeconds < 0 ? \"-\" : \"\");\n time.append(hours < 10 ? \"0\" : \"\");\n time.append(Math.abs(hours) + \":\");\n time.append(minutes < 10 ? \"0\" : \"\");\n time.append(Math.abs(minutes) + \":\");\n time.append(seconds < 10 ? \"0\" : \"\");\n time.append(Math.abs(seconds));\n\n return time.toString();\n }", "public String toString() {\n\t\treturn hours + \"h\" + minutes + \"m\";\n\t}", "public static String timeAsString(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n return String.format(\"%02d:%02d:%02d\", hour, minute, second);\n }", "private String formatTimeout(long timeout) {\n Date date = new Date(timeout);\n DateFormat formatter = new SimpleDateFormat(\"mm:ss\");\n return formatter.format(date);\n }", "public String countTime(int miliseconds) {\n \tString timeInMinutes = new String();\n \tint minutes = miliseconds / 60000;\n \tint seconds = (miliseconds % 60000)/1000;\n \ttimeInMinutes = minutes + \":\" + (seconds<10?\"0\" + seconds:seconds);\n\t\treturn timeInMinutes;\n }", "public static String setHoursMinutes(Long microseconds) {\n LocalTime startTime = LocalTime.of(0, 0);\n long seconds = TimeUnit.MICROSECONDS.toSeconds(microseconds);\n LocalTime finalTime = startTime.plusSeconds(seconds);\n return finalTime.format(DateTimeFormatter.ofPattern(\"HH:mm\"));\n }", "public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfDay(), minDigits, 4);\r\n }", "public static String tenthsToString(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00.0\";\r\n\t\t}\r\n\t\t\r\n\t\tint tenths = time % 10;\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d.%d\", min, sec, tenths);\r\n\t}", "public String secToMin(long totalSec) {\n\t\tlong s = totalSec;\n\t\tString minute;\n\t\tif ((s % 60) < 10) {\n\t\t\tminute = s / 60 + \":0\" + s % 60;\n\t\t} else {\n\t\t\tminute = s / 60 + \":\" + s % 60;\n\t\t}\n\t\treturn minute;\n\t}", "public static String format(double seconds) {\r\n return format(seconds, \"%h2:%m2:%s\", (int)3);\r\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }", "public static String timeAsLabelStr(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n // build string (checking for zeroes)\n String str = String.format(\"%d sec\", second);\n if (minute > 0) str = String.format(\"%d min \", minute) + str;\n if (hour > 0) str = String.format(\"%d hrs \", hour) + str;\n\n return str;\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "public static String format(long seconds) {\n\t\tlong minutes = seconds / SECONDS_PER_MINUTE;\n\t\tlong hours = 0;\n\t\tif (minutes > MINUTES_PER_HOUR) {\n\t\t\thours = minutes / MINUTES_PER_HOUR;\n\t\t\tminutes = minutes % MINUTES_PER_HOUR;\n\t\t}\n\t\tseconds = seconds % SECONDS_PER_MINUTE;\n\t\treturn doFormat(hours, minutes, seconds);\n\t}", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "public static int convert(int minutes) {\n return minutes * 60;\n }", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "private double convertSecondsToMinutes(int seconds) {\r\n int sec = seconds;\r\n int min = 0;\r\n while (sec > 60) {\r\n sec -= 60;\r\n min++;\r\n }\r\n return Double.valueOf(min + \".\" + sec);\r\n }", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public String toUniversalString()\r\n {\r\n DecimalFormat twoDigits = new DecimalFormat( \"00\" );\r\n\r\n return twoDigits.format( this.getHour() ) + \":\" +\r\n twoDigits.format( this.getMinute() ) + \":\" +\r\n twoDigits.format( this.getSecond() );\r\n }", "@SuppressLint(\"DefaultLocale\")\n public static String formatDuration(int duration) {\n duration /= 1000; // milliseconds into seconds\n int minute = duration / 60;\n int hour = minute / 60;\n minute %= 60;\n int second = duration % 60;\n if (hour != 0)\n return String.format(\"%2d:%02d:%02d\", hour, minute, second);\n else\n return String.format(\"%02d:%02d\", minute, second);\n }", "public String getDisplayValue()\n {\n\t\t\t\tString time_str;\n\t\t\t\tif (hours.getValue()<12&&minutes.getValue()<10) {\n time_str = \"0\" + hours.getValue()+ \": 0\" + minutes.getValue();\n }\n\t\t\t\tif (hours.getValue()<12) {\n time_str = \"0\" + hours.getValue()+ \": \" + minutes.getValue();\n } else if (minutes.getValue()<10) {\n time_str = hours.getValue()+\": 0\"+ minutes.getValue();\n } else {\n time_str = hours.getValue()+\":\"+ minutes.getValue();\n }\n\t\t\t\treturn time_str;\n }", "public static String milToStandard(int milTime){\n\n String output;\n int tempHours = milTime / 100;\n String ampm;\n if(tempHours - 12 < 0){\n if(tempHours == 0){tempHours = 12;}\n ampm = \"AM\";\n }\n else{\n tempHours = tempHours - 12;\n if(tempHours == 0){tempHours = 12;}\n ampm = \"PM\";\n }\n output = tempHours+\":\";\n int tempMins = milTime % 100;\n if(tempMins < 10){ output = output + \"0\" + tempMins + ampm;}\n else{ output = output + tempMins + ampm;}\n\n return output;\n\n }", "public static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis),\n\t\t\t TimeUnit.MILLISECONDS.toMinutes(millis) -\n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(millis) -\n\t\t\t TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)),\n\t\t\t millis -\n\t\t\t TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(millis)));\n\t\t\n\t}", "public String toString()\n {\n return String.format(\"%d:%02d:%02d %s %d/%d/%d\", \n ((getHour() == 0 || getHour() == 12) ? 12 : getHour() % 12),\n getMinute(), getSecond(), (getHour() < 12 ? \"AM\" : \"PM\"), \n \tmonth, day, year);\n }", "public static String getSqlTimeFromSeparateHoursAndMinutes(String Hours, String Minutes) {\n return Hours + \":\" + Minutes + \":\" + \"00\";\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String res = \"\";\n String hrs = s.substring(0, 2);\n String min = s.substring(3, 5);\n String sec = s.substring(6, 8);\n String ampm = s.substring(8);\n int hr = Integer.parseInt(hrs);\n if((ampm.equalsIgnoreCase(\"PM\")) && (hr != 12)) {\n hr += 12;\n if(hr >= 24) {\n hr = 24 - hr;\n }\n }\n else if(ampm.equalsIgnoreCase(\"AM\")) {\n if(hr == 12) {\n hr = 0;\n }\n }\n if(hr < 10) {\n res = res + \"0\" + Integer.toString(hr);\n }\n else {\n res += Integer.toString(hr);\n }\n res = res +\":\" +min +\":\" + sec;\n return res;\n }" ]
[ "0.7651065", "0.7406531", "0.7313794", "0.7313038", "0.6969644", "0.6946333", "0.69264036", "0.68967", "0.6810315", "0.6793472", "0.66933084", "0.6648493", "0.6621237", "0.66078496", "0.6602504", "0.65944517", "0.6578089", "0.6572491", "0.6561738", "0.6558906", "0.6556436", "0.6535024", "0.6517371", "0.6482887", "0.64517844", "0.64494735", "0.6419351", "0.64155", "0.6414019", "0.64139605", "0.64062595", "0.64020413", "0.63916934", "0.6386744", "0.63557535", "0.6336361", "0.6334874", "0.6316612", "0.6309665", "0.6289498", "0.6289498", "0.62860197", "0.62629235", "0.6231911", "0.6228727", "0.62271327", "0.62038577", "0.6191362", "0.61711687", "0.61507887", "0.6140697", "0.613294", "0.6123163", "0.6118788", "0.61078095", "0.6100687", "0.6100343", "0.608771", "0.6076445", "0.6062011", "0.6035336", "0.60331017", "0.60328704", "0.603027", "0.60203654", "0.6016755", "0.59944737", "0.59855604", "0.5941487", "0.5941151", "0.59116536", "0.59065825", "0.58952", "0.58826745", "0.58789104", "0.5876803", "0.58706087", "0.5866463", "0.5850163", "0.5846287", "0.5840185", "0.5824095", "0.58029366", "0.5787973", "0.5784469", "0.578253", "0.5777952", "0.57716686", "0.5766456", "0.57651216", "0.57609105", "0.57584447", "0.57460076", "0.5743421", "0.5721187", "0.57142794", "0.5694509", "0.569115", "0.5684408", "0.5677764", "0.5670057" ]
0.0
-1
Creates new form Schedule
public StudSchedule(java.awt.Frame parent, boolean modal, MainFrame mframe, Student s, RoomListing r) { super(parent, modal); this.mframe = mframe; this.s = s; this.r = r; this.setTitle(title); //Redirect system.out to ps baos = new ByteArrayOutputStream(); ps = new PrintStream(baos); System.setOut(ps); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Schedule createSchedule();", "@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }", "public ScheduleForm() {\n initComponents();\n }", "public Schedule() {\r\n }", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@PostMapping\n public ScheduleDTO createSchedule(@RequestBody ScheduleDTO scheduleDTO) {\n Schedule newSchedule = this.scheduleService.saveSchedule(this.convertScheduleDTOToSchedule(scheduleDTO));\n // Update customer with newly created ID\n scheduleDTO.setId(newSchedule.getId());\n return scheduleDTO;\n }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public void generateSchedule(){\n\t\t\n\t}", "boolean saveSchedule(Schedule schedule);", "public String create(Schedule arg0) {\n\t\treturn null;\n\t}", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "@Test\n public void createSchedule_whenModelIsValid_successfullyCreated() throws CreateException {\n\n SportCenter sportCenter = sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel actual = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel expected = this.modelMapper\n .map(this.scheduleRepository.findAll().get(0), ScheduleServiceModel.class);\n\n assertEquals(expected.getId(), actual.getId());\n assertEquals(expected.getDay(), actual.getDay());\n assertEquals(expected.getMonth(), actual.getMonth());\n assertEquals(expected.getYear(), actual.getYear());\n }", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "public Schedule() {\n this(DataManager.readAll());\n }", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "TimerSchedule createTimerSchedule();", "public boolean\r\n scheduleEmployee(int gasStationID, int employeeId, Date date, int shift){\r\n Schedule schedule = new Schedule(gasStationID, employeeId, date, shift);\r\n schedule.create();\r\n return true;\r\n }", "@PostMapping(URLs.SCHEDULE)\n public ModelAndView stationSchedule(@RequestParam(value = \"start\") String stationName,\n @RequestParam(value = \"date\") String date) {\n Map<String, Object> modelMap = new HashMap<>();\n try {\n List<Schedule> sch = scheduleService.getAllTrainsOnStation(stationName, date);\n if (sch.size() == 0) {\n modelMap.put(\"noTrains\", \"true\");\n return new ModelAndView(VIEWs.SCHEDULE, \"model\", modelMap);\n }\n modelMap.put(\"showSchedule\", \"true\");\n modelMap.put(\"scheduleList\", sch);\n return new ModelAndView(VIEWs.SCHEDULE_TABLE, \"model\", modelMap);\n } catch (ParseException ex) {\n log.info(\"PARSE EXCEPTION inside schedule form\");\n modelMap.put(\"parseException\", \"true\");\n return new ModelAndView(VIEWs.SCHEDULE, \"model\", modelMap);\n }\n }", "boolean newWorkingSchedule(WorkingScheduleRequest workingSchedule);", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "public static void createSchedule(Realm realm, ScheduleType selectedSchedule, LanguageType selectedLanguage, String title) {\n\t\tString[][] scheduleStrings = selectedSchedule.getSchedule();\n\t\t// save schedule into db\n\t\trealm.executeTransaction(r -> {\n\t\t\t// create schedule object\n\t\t\tSchedule schedule = r.createObject(Schedule.class, UUID.randomUUID().toString());\n\t\t\tschedule.setTitle(title);\n\t\t\tschedule.setLanguage(selectedLanguage.getName());\n\t\t\t// add all days to the schedule\n\t\t\tint dayNumber = 1;\n\t\t\tfor (String[] dayItems : scheduleStrings) {\n\t\t\t\tDay day = r.createObject(Day.class, UUID.randomUUID().toString());\n\t\t\t\tday.setDayNumber(dayNumber++);\n\t\t\t\t// each day has a set of files to listen to\n\t\t\t\tfor (String dayItem : dayItems) {\n\t\t\t\t\tStudyItem studyItem = r.createObject(StudyItem.class, UUID.randomUUID().toString());\n\t\t\t\t\tstudyItem.setTitle(dayItem);\n\t\t\t\t\tstudyItem.setCompleted(false);\n\t\t\t\t\tday.getStudyItems().add(studyItem);\n\t\t\t\t}\n\t\t\t\tschedule.getSchedule().add(day);\n\t\t\t}\n\t\t});\n\t}", "@PostMapping(\"/Scheduling/addAppointment\")\r\n\tpublic String addAppointment(Scheduling scheduling) {\r\n\t\tschedulingService.createAppointment(scheduling);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "void setSchedule(java.lang.String schedule);", "private void addNewAssessment() {\n //instantiate converters object for LocalDate conversion\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n\n //add new assessment\n addEditAssessmentViewModel.insert(assessment);\n\n //notification\n Long longDue = c.localDateToMilliseconds(dueDate);\n makeAlarm(title+\" is due today.\", longDue);\n\n finish();\n }", "PastReservation createPastReservation();", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}", "public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }", "@POST\n Response createCalendar(Calendar calendar);", "public TimeSlot(UUID id, UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\t//this.meeting = new Meeting();\r\n\t\t\r\n\t\tMeetingDAO dao = new MeetingDAO();\r\n\t\tMeeting m = dao.getMeetingByTimeSlotID(id);\r\n\t\tif(m==null) {\r\n\t\t\tmeeting = new Meeting();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmeeting = m;\r\n\t\t}\r\n\t\t\r\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public boolean generateSchedule(){\r\n return true;\r\n }", "public AssignScheduleForm(Object obj, String title, String message, int actionId) {\r\n super(CoeusGuiConstants.getMDIForm(), title,true);\r\n this.actionId = actionId;\r\n this.message = message;\r\n this.vData = (Vector)obj;\r\n initComponents();\r\n actionComponentSettings();\r\n txtCommiteeId.setText((String)vData.get(0));\r\n txtCommitteeName.setText((String)vData.get(1));\r\n registerListeners();\r\n btnCommittee.requestFocusInWindow();\r\n show();\r\n }", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "public String getSchedule() {\n return schedule;\n }", "@RequestMapping(method = RequestMethod.POST, value=\"/Create\")\n public ResponseEntity<?> createSchedule(@RequestParam(value=\"topic\") String topic){\n try{\n Schedule schedule = scheduleService.createSchedule(topic);\n\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n\n }", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "@Test\n public void createScheduledPlanTest() throws ApiException {\n ScheduledPlan body = null;\n ScheduledPlan response = api.createScheduledPlan(body);\n\n // TODO: test validations\n }", "public Schedule generateSchedule(Student student, Assignment assignment, DateTime availability){\n DateTime startTime = availability;\n DateTime endTime = availability.plusHours((int)Math.ceil(assignment.getHoursPerDay()));\n return new Schedule(student.getId(), assignment.getId(), assignment.getCourseID(),\n startTime, endTime,\n assignment.getPointsPossible() / assignment.getNumDays(), assignment.getName());\n }", "Reservation createReservation();", "public void createAppointment(View v) {\n checkFields();\n\n // grab the info in the fields and turn it into usable stuff\n int mon = parseInt(month.getText().toString());\n int d = Integer.parseInt(day.getText().toString());\n int y = Integer.parseInt(year.getText().toString());\n int h = Integer.parseInt(hour.getText().toString());\n int min = Integer.parseInt(minute.getText().toString());\n String AorP = AMorPM.getText().toString();\n String p = place.getText().toString();\n\n\n // all of the fields have been checked now. Create a new appointment\n //Appointment apt = new Appointment(d, mon, y, h, min, AorP, p);\n Appointment apt = new Appointment();\n apt.setDay(d);\n apt.setMonth(mon);\n apt.setYear(y);\n apt.setHour(h);\n apt.setMinute(min);\n apt.setAmOrPm(AorP);\n apt.setPlace(p);\n apt.setConfirmed(false);\n apt.setTaken(false);\n\n // push it onto the database\n DatabaseReference aptsRef = ref.child(\"appointmentList\");\n aptsRef.push().setValue(apt);\n\n // send out a toast signalling that we've successfully created an appointment\n Toast.makeText(getApplicationContext(), \"Appointment successfully created\", Toast.LENGTH_SHORT).show();\n\n // now send the user back to the main activity -> with their membership number\n Intent intent = new Intent(this, MainActivity.class);\n intent.putExtra(MESSAGE, memberNumber);\n startActivity(intent);\n }", "private static void addNewScheduledTour()\r\n {\r\n\t String tourID;\r\n\t String description;\r\n\t double admissionFee;\r\n\t String tourDate;\r\n\t int maxGroupSize;\r\n\t String tourLeader;\r\n\t boolean duplicateID = false;\r\n\t \r\n System.out.println(\"Add New Scheduled Tour Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Tour ID: \");\r\n tourID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Date: \");\r\n tourDate = sc.nextLine();\r\n \r\n System.out.print(\"Enter Maximum Group Size: \");\r\n maxGroupSize = sc.nextInt();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Leader: \");\r\n tourLeader = sc.nextLine();\r\n System.out.println();\r\n \r\n // check if tourID is already in use in the booking system\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(tourID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n }\r\n \r\n if(duplicateID == false)\r\n {\r\n \t attractionList[attractionCount] = new ScheduledTour(tourID, description,\r\n \t\t\t admissionFee, tourDate, maxGroupSize, tourLeader);\r\n \t attractionCount++;\r\n }\r\n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public void setScheduletime(Date scheduletime) {\r\n this.scheduletime = scheduletime;\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString date = AppDateField.getText();\n\t\tString Time = AppTimeField.getText();\t\n\t\tString Name = AppPatNameField.getText();\n\t\tString Surname = AppPatSurnameField.getText();\n\t\tint Id = Integer.parseInt(AppPatIdField.getText());\n\t\tString Doctor = AppDocNameField.getText();\n\t\tString Service = (String) SelectTask.getSelectedItem();\n\t\t\n\t\tDBH db = new DBH();\n\t\t\n\t\tString sql = \"INSERT INTO `Narnia_Hospital`.`Appointments` (`Appointment_Date`, `Appointment_Time`, `AppPat_Name`, `AppPat_Surname`, `AppPatId`, `AppDoctor`, `AppService`) VALUES ('\"+date+\"','\"+Time+\"','\"+Name+\"','\"+Surname+\"','\"+Id+\"','\"+Doctor+\"','\"+Service+\"')\"; \n\t\t\n\t\t\n\t\tResultSet rs = null;\n\t\t\n\t\ttry{\n\t\t rs = db.executeCall(sql);\n \t\t\n\t\t while(rs.next()){\n\t\t\t \n\t\t\t Appointment A1 = new Appointment();\n\t\t\t \n\t\t\t A1.setAppDate (date);\n\t\t\t A1.setAppTime(Time);\n\t\t\t A1.setPatientName(Name);\n\t\t\t A1.setPatientSurname(Surname);\n\t\t\t A1.setPatId(Id);\n\t\t\t A1.setDoctorName(Doctor);\n\t\t\t A1.setServiceRequired(Service);\n\t\t\t \n\t\t\t \n\t\t\t \t\n\t\t\t\t }\n\t\t\t \n\t\t \n\t\t \n\t\t \n\t\t}catch (Exception ex){}\n\t\t\n\t\t//Offers the option to create a new one or leave this screen.\n\t\t\n\t\tJOptionPane.showMessageDialog(this, \"Appointment Registered!\");\n\t\t\n\t\t int n = JOptionPane.showConfirmDialog(this,\"Do you want to add another appointment?\", \"Message Selected\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t if (n == 0){ \n\t\t\t this.setVisible(false);\n\t\t\t new NewAppointment();\n\t\t\t\n\t\t} else if (n == 1){\n\t\t\t this.setVisible(false);\n\t\t\t new SecretaryScreen();\n\t\t}\n\t\t\n\t}", "int insert(Schedule record);", "public Team create(TeamDTO teamForm);", "public AssignScheduleForm(String title, String message, int actionId) {\r\n super(CoeusGuiConstants.getMDIForm(), title,true);\r\n this.actionId = actionId;\r\n this.message = message;\r\n initComponents();\r\n actionComponentSettings();\r\n registerListeners();\r\n btnCommittee.requestFocusInWindow();\r\n show();\r\n }", "public TimeSlot(UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = UUID.randomUUID();\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\tthis.meeting = new Meeting();\r\n\t}", "public Schedule getSchedule() {\n\n return schedule;\n }", "public ScheduleEvent()\n\t{\n\n\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "@Override\r\n\tpublic ResponseEntity<?> postNewSchedule(ScheduleDTO seBody) {\r\n\t\ttry {\r\n\t\t\tScheduleEntity schedule=new ScheduleEntity();\r\n\t\t\tInteger teacherInt=Integer.parseInt(seBody.getTeacherStr());\r\n\t\t\tInteger subjectInt=Integer.parseInt(seBody.getSubjectStr());\r\n\t\t\tInteger classInt=Integer.parseInt(seBody.getClassEntityStr());\r\n\t\t\t//Integer yearInt=Integer.parseInt(seBody.getSchoolYearStr());\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tProfessorEntity pe=professorRep.findById(teacherInt).get();\r\n\t\t\t\tschedule.setTeacher(pe);;\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(1,\"Professor with number \"+teacherInt+\" not found.\"), HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tSubjectGradeEntity sge=subjectGradeRep.findById(subjectInt).get();\r\n\t\t\t\tschedule.setSubject(sge);\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(1,\"Subject with number \"+subjectInt+\" not found.\"), HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\tList<SchoolYearEntity> syeList=schoolYearRep.findByActive(true);\r\n\t\t\tif(syeList.size() == 1) \r\n\t\t\t\tschedule.setSchoolYear(syeList.get(0));\r\n\t\t\telse\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(1,\"Must be exactly one active year.\"), HttpStatus.NOT_FOUND);\r\n\r\n\t\t\t\t\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tClassEntity ce=classRep.findById(classInt).get();\r\n\t\t\t\tschedule.setClassEntity(ce);\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(1,\"Class with number \"+classInt+\" not found.\"), HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(!schedule.getTeacher().getSubjects().contains(schedule.getSubject())) // gleda da li profesor moze da predaje taj predmet\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(2,\"Professor can`t teach that subject.\"), HttpStatus.BAD_REQUEST);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\tList<ScheduleEntity> schList=schedule.getClassEntity().getSchedules(); // da li vec [postoji takav predmet u odeljenju\r\n\t\t\tfor(ScheduleEntity sch : schList) \r\n\t\t\t\tif(sch.getSubject()==schedule.getSubject()) \r\n\t\t\t\t\treturn new ResponseEntity<>(new RESTError(2,\"Subject already exist in that class.\"), HttpStatus.BAD_REQUEST);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(!schedule.getSubject().getGrade().equals(schedule.getClassEntity().getGrade())) // provera razreda odeljenja i razreda u kome se moze predavati predmet\r\n\t\t\t\treturn new ResponseEntity<>(new RESTError(2,\"Subject grade must be same as class grade.\"), HttpStatus.BAD_REQUEST);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tscheduleRep.save(schedule);\r\n\t\t\treturn new ResponseEntity<>(schedule, HttpStatus.OK);\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn new ResponseEntity<>(new RESTError(2,\"Please fill up the whole number.\"), HttpStatus.BAD_REQUEST);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn new ResponseEntity<>(new RESTError(3,\"Error: \"+e.getMessage()),HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\t\r\n\t}", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(this, add_schedule_Activity.class);\n startActivity(intent);\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "CurrentReservation createCurrentReservation();", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "private boolean trySaveSchedule() {\n if(mSelectedProfiles == null || mSelectedProfiles.size()<1){\n Utility.createErrorDialog(this, \"No Profiles\", \"You must select a Profile\");\n return false;\n }\n\n // Check that at least 1 Calendar is selected\n if(mSelectedCalendars == null || mSelectedCalendars.size()<1){\n Utility.createErrorDialog(this, \"No Calendars\", \"You must select a Calendar\");\n return false;\n }\n\n // Get the schedule name\n String scheduleName = mScheduleName.getText().toString();\n\n Log.d(\"CSA_Save_Name\", scheduleName);\n Log.d(\"CSA_Save_Timeslot_Size\", String.valueOf(mTimeslotArray.size()));\n\n\n // Save each timeslot and create it's intents\n if(DBHelper.getScheduleByName(scheduleName)!=null)\n {\n\n }\n else\n {\n for (Timeslot t : mTimeslotArray) {\n t.save();\n Log.d(\"CSA_Timeslot_Save_ID\", String.valueOf(t.getId()));\n List<BlockIntent> createdIntents = createIntents(t);\n Log.d(\"CSA_Intent_Size\", String.valueOf(createdIntents.size()));\n for (BlockIntent bi : createdIntents) {\n bi.save();\n }\n }\n }\n\n // Save the schedule\n try {\n if (DBHelper.saveSchedule(scheduleName, mTimeslotArray, mSelectedProfiles, mSelectedCalendars)) {\n Log.d(\"CSA_SaveSched_Timeslot\", String.valueOf(mTimeslotArray.size()));\n System.out.println(\"Successfully saved!\");\n clearTimeslots();\n Utility.activateSchedule(scheduleName, this);\n } else {\n Utility.createErrorDialog(this, \"Invalid Name\", \"You must enter a unique name for your schedule\");\n System.out.println(\"Unsuccessful save\");\n return false;\n }\n } catch (AlreadyExistsException e) {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tArrayList<JCheckBox> mCheckList = sPanel.getmCheckBoxList();\r\n\t\t\t\t\t\tArrayList<JCheckBox> fCheckList = sPanel.getfCheckBoxList();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tHashMap<String,Schedule> scheduleMap = new HashMap<String,Schedule>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString fromHourStr = sPanel.getFromhour().getSelectedItem().toString();\r\n\t\t\t\t\t\tint fromHour = fromHourStr.charAt(0)=='0'?Integer.valueOf(\"\" + fromHourStr.charAt(1)):Integer.valueOf(fromHourStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString fromMinStr = sPanel.getFrommin().getSelectedItem().toString();\r\n\t\t\t\t\t\tint fromMin = fromMinStr.charAt(0)=='0'?Integer.valueOf(\"\" + fromMinStr.charAt(1)):Integer.valueOf(fromMinStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString toHourStr = sPanel.getTohour().getSelectedItem().toString();\r\n\t\t\t\t\t\tint toHour = toHourStr.charAt(0)=='0'?Integer.valueOf(\"\" + toHourStr.charAt(1)):Integer.valueOf(toHourStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString toMinStr = sPanel.getTomin().getSelectedItem().toString();\r\n\t\t\t\t\t\tint toMin = toMinStr.charAt(0)=='0'?Integer.valueOf(\"\" + toMinStr.charAt(1)):Integer.valueOf(toMinStr);\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(JCheckBox c: mCheckList)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c.isSelected())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSchedule s = new Schedule();\r\n\t\t\t\t\t\t\t\ts.setHourFrom(fromHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteFrom(fromMin);\r\n\t\t\t\t\t\t\t\ts.setHourTo(toHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteTo(toMin);\r\n\t\t\t\t\t\t\t\tscheduleMap.put(c.getText(), s);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(JCheckBox c: fCheckList)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c.isSelected())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSchedule s = new Schedule();\r\n\t\t\t\t\t\t\t\ts.setHourFrom(fromHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteFrom(fromMin);\r\n\t\t\t\t\t\t\t\ts.setHourTo(toHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteTo(toMin);\r\n\t\t\t\t\t\t\t\tscheduleMap.put(c.getText(), s);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tschedulerConfig.setSectionSchedules(scheduleMap);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tscheduler.stopThread();\r\n\t\t\t\t\t\tscheduler = new SystemScheduler(schedulerConfig, securityLayout);\r\n\t\t\t\t\t\tscheduler.start();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(securityLayout,\"Schedule is saved.\");\r\n\t\t\t\t\t\tuserSelection.remove(userSelection.getSavePanel());\r\n\t\t\t\t\t\tuserSelection.setSavePanel(blankPanel);\r\n\t\t\t\t\t\tuserSelection.add(userSelection.getSavePanel());\r\n\t\t\t\t\t\tuserSelection.repaint();\r\n\t\t\t\t\t\tuserSelection.revalidate();\r\n\t\t\t\t\t}", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public void existingSchedules(){\n \n scheduleModel = (DefaultTableModel) displayTable.getModel();\n \n currentSchedules = AccessDataFromXML.retrieveSchedules();\n for (Schedule schedule : currentSchedules){\n \n \n Object[] o = new Object[1];\n o[0] = schedule.getName();\n scheduleModel.addRow(o);\n }\n \n \n\n }", "public void showSchedule(View view) {\n Intent intent = new Intent(this, DisplaySchedule.class);\n startActivity(intent);\n }", "public SiteVisitsPageSteps addVisitScheduleForSite() throws Exception {\n\n\t\tassertPageLoad();\n\n\t\twaiter().until(ExpectedConditions.visibilityOfElementLocated(By.id(\"toolBarTable\")));\n\t\tgetLinkControl(\"Add a new activity\").click();\n\t\tassertPageLoad();\n\n\t\tString visitScheduleName = \"SQV Visit - \" + RandomData.dateTime_yyyyMMddHHmmss();\n\t\tthis.getTestData().put(\"visitScheduleName\", visitScheduleName);\n\n\t\t//TODO: IE SPECIFIC - SendKeys is inconsistent in entering value for IE browser. Modified with JS script as workaround until rca/ fix\n\t\t//getTextboxControl(\"name\").enterValue(visitScheduleName);\n\t\t((JavascriptExecutor) driver()).executeScript(String.format(\"document.getElementById('name').value='\" + visitScheduleName + \"';\"));\n\n\t\tgetDropdownControl(\"category_cb\").enterValue(getTestData().get(\"Category\"));\n\n\t\tclickSaveAndClose();\n\t\t//TODO: IE SPECIFIC - \"Save and Close\" does not navigate to the visits page when performed in IE. Added hack - To be fixed.\n\t\tif(System.getProperty(\"browser\").equalsIgnoreCase(\"ie\")){\n\t\t\tgetLinkControl(\"Back to previous view\").click();\n\t\t\tassertPageLoad();\n\t\t}\n\n\t\treturn new SiteVisitsPageSteps(getConfig(), getAgent(), getTestData());\n\t}", "public New_appointment() {\n initComponents();\n }", "private void handleSchedule(ToDoSchedule todoSchedule)\r\n throws ToDoServiceDelegateException {\r\n\r\n if (todoSchedule.getInitiationDate().before(new Date())) {\r\n\r\n ToDo basis = todoSchedule.getToDo();\r\n\r\n ToDo scheduledTodo = null;\r\n scheduledTodo = (ToDo) basis.clone();\r\n scheduledTodo.setDeadlineTimestamp(new Date());\r\n scheduledTodo.setComplete(false);\r\n scheduledTodo.setId(null);\r\n\r\n this.getTodoServiceDelegate().save(scheduledTodo);\r\n\r\n }\r\n }", "public IGenScheduleHandler create() throws CreateException, RemoteException;", "public void fillForm(Event e){\n // name\n eventName.setText(e.getEventname().toString());\n // room\n room.setText(e.getRoom() + \"\");\n // dates\n Calendar from = extractDate(e.getFromDate());\n writeDateToButton(from, R.id.newEvent_button_from);\n Calendar to = extractDate(e.getToDate());\n writeDateToButton(to, R.id.newEvent_button_to);\n Calendar fromTime = null;\n Calendar toTime = null;\n if(e.getFromTime() == -1)\n wholeDay.setChecked(true);\n else {\n fromTime = extractTime(e.getFromTime());\n writeDateToButton(fromTime, R.id.newEvent_button_from_hour);\n toTime = extractTime(e.getToTime());\n writeDateToButton(toTime, R.id.newEvent_button_to_hour);\n }\n // notification\n spinner.setSelection(e.getNotificiation());\n // patient\n PatientAdapter pa = new PatientAdapter(this);\n Patient p = pa.getPatientById(e.getPatient());\n patient_id = p.getPatient_id();\n patient.setText(p.getName());\n // desc\n desc.setText(e.getDescription().toString());\n // putting time and date togehter\n this.fromDate = Calendar.getInstance();\n this.toDate = Calendar.getInstance();\n this.fromDate.set(from.get(Calendar.YEAR), from.get(Calendar.MONTH), from.get(Calendar.DAY_OF_MONTH),\n (fromTime != null ? fromTime.get(Calendar.HOUR_OF_DAY) : 0),\n (fromTime != null ? fromTime.get(Calendar.MINUTE) : 0));\n this.toDate.set(to.get(Calendar.YEAR), to.get(Calendar.MONTH), to.get(Calendar.DAY_OF_MONTH),\n (toTime != null ? toTime.get(Calendar.HOUR_OF_DAY) : 0),\n (toTime != null ? toTime.get(Calendar.MINUTE) : 0));\n startYear = fromDate.get(Calendar.YEAR);\n startMonth = fromDate.get(Calendar.MONTH);\n startDay = fromDate.get(Calendar.DAY_OF_MONTH);\n startHour = fromDate.get(Calendar.HOUR_OF_DAY);\n }", "java.lang.String getSnapshotCreationSchedule();", "public void add(Schedulorinator schedule) {\r\n if (!scheduleList.contains(schedule)) {\r\n scheduleList.add(schedule);\r\n schedule.addPerson(this);\r\n addObserver(schedule);\r\n notifyObservers(schedule);\r\n }\r\n }", "public Schedule(int timeOfDay, int minute, int duration, List<Integer> daysOfWeek, List<SprinklerGroup> sprinklerGroups) {\n\t\tsuper();\n\t\t\n\t\t\tTimeOfDay = timeOfDay;\n\t\t\tMinute = minute;\n\t\t\tDuration = duration;\n\t\t\tDaysOfWeek = daysOfWeek;\n\t\t\tSprinklerGroups = sprinklerGroups;\n\t\t\tType=ScheduleType.TIMED;\t\n\t\t\n\t}", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public NewBooking() {\n initComponents();\n setDate();\n setTime();\n loadcmbOrigin();\n loadcmbDestination();\n }", "public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }", "boolean isSetSchedule();", "@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n\n title = mTitle.getText().toString();\n details = mDetails.getText().toString();\n repeats = 0;\n date.setHours(hour);\n date.setMinutes(minute);\n try {\n repeats = Integer.parseInt(mRepeats.getText().toString());\n } catch (NumberFormatException io){\n\n }\n if (mSpinner.getSelectedItem().toString().equals(\"Days\")) {\n repeats = repeats*24*60;\n }\n else if (mSpinner.getSelectedItem().toString().equals(\"Hours\")) {\n repeats = repeats*60;\n }\n Assignment newAssignment = new Assignment(title, details, repeats, date);\n AssignmentList.get(getActivity()).addAssignment(newAssignment);\n //Calendar c = Calendar.getInstance();\n //c.setTime(date);\n mScheduleClient.setAlarmForNotification(newAssignment); // tell service to set alarm for this date\n // (talks to client which then talks to service)\n if (mScheduleClient!=null) {\n mScheduleClient.doUnbindService();\n }\n getActivity().finish();\n\n }", "public PurchaseSchedule(String shoeType, int tick) {\r\n\t\tthis.shoeType = shoeType;\r\n\t\tthis.tick = tick;\r\n\t}", "public EditAppointment() {\r\n\t\tsuper();\r\n\t}", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Schedule(List<Integer> SprinklerIDs,int timeOfDay, int minute, int duration, List<Integer> daysOfWeek) {\n\t\tsuper();\n\t\tTimeOfDay = timeOfDay;\n\t\tMinute = minute;\n\t\tDuration = duration;\n\t\tDaysOfWeek = daysOfWeek;\n\t\tSprinklerIDs = SprinklerIDs;\n\t\tType=ScheduleType.TIMED;\n\t}", "public Timeslot() {\n }", "@PostMapping(\"/route/create\")\n public String createRoute(@RequestParam(\"stationSequence\") String stationSequence) {\n log.info(\"Creating new route. stationSequence: \" + stationSequence);\n routeService.createRoute(stationSequence);\n return \"redirect:/admin/route/list\";\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "java.lang.String getSchedule();", "public SchedulePanel() {\n setLayout(new BorderLayout());\n setBorder(BorderFactory.createTitledBorder(\"Schedule\"));\n JPanel holderPanel = new JPanel();\n holderPanel.setLayout(new BorderLayout());\n\n m_startDate = new DateTimePanel(\"Start\", true);\n m_endDate = new DateTimePanel(\"End\", false);\n JPanel temp1 = new JPanel();\n temp1.setLayout(new GridLayout(1, 2));\n temp1.add(m_startDate);\n temp1.add(m_endDate);\n holderPanel.add(temp1, BorderLayout.NORTH);\n\n JPanel temp2 = new JPanel();\n temp2.setLayout(new GridLayout(1, 2));\n temp2.add(m_repeat);\n temp2.add(m_parameters);\n holderPanel.add(temp2, BorderLayout.SOUTH);\n m_repeat.setEnabled(false);\n\n add(holderPanel, BorderLayout.NORTH);\n // add(m_launcher, BorderLayout.SOUTH);\n\n // action listener to listen for changes in the start date panel\n // so that we can enable/disable the repeat panel\n m_startDate.addRadioActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (m_startDate.getDate() == null) {\n m_repeat.setEnabled(false);\n } else {\n m_repeat.setEnabled(true);\n }\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n loadScheduleFileButton = new javax.swing.JButton();\n saveScheduleFileButton = new javax.swing.JButton();\n downloadScheduleClockButton = new javax.swing.JButton();\n uploadScheduleClockButton = new javax.swing.JButton();\n weekScrollView = new javax.swing.JScrollPane();\n weekView = new javax.swing.JPanel();\n advancedButton = new javax.swing.JButton();\n downloadProgressBar = new javax.swing.JProgressBar();\n jLabel1 = new javax.swing.JLabel();\n bellTimeSpinner = new javax.swing.JSpinner();\n jLabel2 = new javax.swing.JLabel();\n clearScheduleButton = new javax.swing.JButton();\n doneLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Schedule Editor\");\n setMinimumSize(new java.awt.Dimension(1024, 400));\n setSize(new java.awt.Dimension(1200, 400));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n loadScheduleFileButton.setText(\"Load Schedule From File\");\n loadScheduleFileButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n loadScheduleFileButtonActionPerformed(evt);\n }\n });\n\n saveScheduleFileButton.setText(\"Save Schedule To File\");\n saveScheduleFileButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveScheduleFileButtonActionPerformed(evt);\n }\n });\n\n downloadScheduleClockButton.setText(\"Download Schedule From Clock\");\n downloadScheduleClockButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n downloadScheduleClockButtonActionPerformed(evt);\n }\n });\n\n uploadScheduleClockButton.setText(\"Upload Schedule To Clock\");\n uploadScheduleClockButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n uploadScheduleClockButtonActionPerformed(evt);\n }\n });\n\n weekScrollView.setBackground(new java.awt.Color(204, 204, 204));\n\n org.jdesktop.layout.GroupLayout weekViewLayout = new org.jdesktop.layout.GroupLayout(weekView);\n weekView.setLayout(weekViewLayout);\n weekViewLayout.setHorizontalGroup(\n weekViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 1019, Short.MAX_VALUE)\n );\n weekViewLayout.setVerticalGroup(\n weekViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 414, Short.MAX_VALUE)\n );\n\n weekScrollView.setViewportView(weekView);\n\n advancedButton.setText(\"Advanced...\");\n advancedButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n advancedButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Bell Length:\");\n\n bellTimeSpinner.setModel(new javax.swing.SpinnerNumberModel(5, 1, 99, 1));\n\n jLabel2.setText(\"Seconds\");\n\n clearScheduleButton.setText(\"Clear Schedule\");\n clearScheduleButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clearScheduleButtonActionPerformed(evt);\n }\n });\n\n doneLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n doneLabel.setText(\"Done\");\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(weekScrollView)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(loadScheduleFileButton)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(clearScheduleButton))\n .add(layout.createSequentialGroup()\n .add(saveScheduleFileButton)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(advancedButton)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(bellTimeSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel2)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(doneLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(6, 6, 6)\n .add(uploadScheduleClockButton))\n .add(layout.createSequentialGroup()\n .add(downloadProgressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(downloadScheduleClockButton)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(weekScrollView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(loadScheduleFileButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(downloadScheduleClockButton)\n .add(clearScheduleButton))\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, doneLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, downloadProgressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(saveScheduleFileButton)\n .add(uploadScheduleClockButton)\n .add(advancedButton)\n .add(jLabel1)\n .add(bellTimeSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel2))\n .addContainerGap())\n );\n\n pack();\n }", "public ScheduleMeetingPage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "@RequestMapping(value=\"/reservations/form\", method=RequestMethod.GET)\r\n\tpublic String getAdminReservationForm(Model model) {\r\n\t\tmodel.addAttribute(\"onDate\", new Reservation());\r\n\t\treturn \"reservationsForm\";\r\n\t}" ]
[ "0.7427701", "0.6959083", "0.6841062", "0.678886", "0.66359264", "0.65345454", "0.6376306", "0.6344374", "0.63068736", "0.63035655", "0.62473565", "0.62399423", "0.61435544", "0.60786796", "0.5974093", "0.5948529", "0.59341055", "0.5901365", "0.5858756", "0.58275706", "0.5819503", "0.5797343", "0.579211", "0.57907003", "0.5790671", "0.5757302", "0.57422173", "0.5740849", "0.5731969", "0.57131493", "0.57107687", "0.56792897", "0.565088", "0.56421334", "0.56288856", "0.5619495", "0.5616073", "0.5615308", "0.56141263", "0.5594081", "0.5592743", "0.5589272", "0.5578612", "0.5572063", "0.55649745", "0.55481297", "0.5542666", "0.55327755", "0.5529075", "0.5526599", "0.5521515", "0.55104786", "0.55094504", "0.55068606", "0.54967266", "0.5482953", "0.5478056", "0.54473776", "0.5432598", "0.5431975", "0.5423443", "0.54162055", "0.54136103", "0.54038197", "0.54030114", "0.5400551", "0.5391137", "0.53854245", "0.537405", "0.5369067", "0.53492683", "0.5347708", "0.5343566", "0.5337407", "0.53368205", "0.53307956", "0.5329895", "0.5300984", "0.52965957", "0.52949554", "0.52941734", "0.5291173", "0.5289575", "0.52886206", "0.5285734", "0.5280238", "0.52787745", "0.5267858", "0.5232254", "0.5220865", "0.5211505", "0.5197927", "0.51958156", "0.5195598", "0.5193173", "0.5192468", "0.51896995", "0.5188025", "0.5172257", "0.5162256", "0.5161297" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jScrollPane5 = new javax.swing.JScrollPane(); jTable4 = new javax.swing.JTable(); rmv_course_but = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setFocusTraversalPolicyProvider(true); addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { formFocusLost(evt); } }); jLabel1.setText("Student ID :"); jLabel2.setText("Name : "); jLabel3.setText("Phone No. :"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGap(26, 26, 26)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jLabel5.setText(s.getFirstName() + " " + s.getLastName()); jLabel4.setText(String.valueOf(s.getStudId())); jLabel6.setText(s.getPhoneNum()); this.course_table = new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null,null}, }, new String [] { "Name", "Start Time", "End Time", "Room", "# Enrolled" }){ @Override public boolean isCellEditable(int row, int column) { return false; } }; jTable4.setModel(course_table); jTable4.setShowGrid(true); jTable4.setAutoCreateRowSorter(true); course_table.setRowCount(7); refresh_course_table(); jTable4.getTableHeader().setReorderingAllowed(false); jScrollPane5.setViewportView(jTable4); rmv_course_but.setText("Unschedule a course"); rmv_course_but.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rmv_course_butActionPerformed(evt); } }); jButton1.setText("Back"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane5) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(rmv_course_but))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rmv_course_but) .addComponent(jButton1)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.6945748", "0.69436246", "0.6936225", "0.69309264", "0.6927764", "0.6925464", "0.69240505", "0.6911828", "0.69114214", "0.6893614", "0.68917346", "0.6891525", "0.6891501", "0.6889125", "0.68829834", "0.6882533", "0.68808794", "0.687905", "0.687687", "0.68740726", "0.68708014", "0.68595254", "0.68561274", "0.68560076", "0.6854643", "0.6854604", "0.6853724", "0.685311", "0.685311", "0.6844816", "0.6836794", "0.6835743", "0.68294543", "0.6828841", "0.682637", "0.68245006", "0.6823792", "0.68175477", "0.6817179", "0.6811031", "0.68096155", "0.6809008", "0.68087083", "0.68081945", "0.6801884", "0.6795609", "0.6793828", "0.67930275", "0.67915165", "0.6789997", "0.6788734", "0.6788487", "0.67816335", "0.67663425", "0.6765744", "0.67648494", "0.6757314", "0.6755897", "0.67526966", "0.6750367", "0.67429197", "0.67399955", "0.6736908", "0.6736084", "0.6734342", "0.6726562", "0.67264515", "0.67205596", "0.6716381", "0.67154187", "0.67150515", "0.6709329", "0.6708348", "0.67050624", "0.67021835", "0.6700595", "0.6699073", "0.6698866", "0.66942847", "0.6690904", "0.66897583" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View inflate = inflater.inflate(R.layout.fragment_lei, container, false); initView(inflate); initData(); return inflate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.6524048
51
Creates a new bag, based on the players strategy.
@Override public Bag createBag(final ArrayList<Goods> cards,final int money) { Bag bag = super.createBag(cards, money); if (Game.getInstance().isOddRound()) { if (bag.getItems().size() < Constants.MAX_BAG_SIZE && bag.getItems().size() > 0) { // If we can add a illegal good ArrayList<Goods> uniqueItems = new ArrayList<>(); for (Goods item : cards) { if (!uniqueItems.contains(item) && item.getType() == GoodsType.Illegal) { uniqueItems.add(item); } } if (uniqueItems.size() != 0) { ItemValueComparator valueCompare = new ItemValueComparator(); uniqueItems.sort(valueCompare); bag.addItem(uniqueItems.get(0), 1); } } } return bag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.c, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.d, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.e, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.f, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.g, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.h, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.i, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.j, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.k, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.l, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.m, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.n, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.o, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.p, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.r, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.s, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.t, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.u, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.v, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.w, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.x, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\t\r\n\t\t//Player two bag\r\n\t\taddToBag2(GridSquare.Type.A, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.B, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.C, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.D, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.E, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.F, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.G, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.H, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.I, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.J, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.K, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.L, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.M, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.N, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.O, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.P, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.Q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.R, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.S, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.T, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.U, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.V, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.W, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.X, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t}", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "@Override\r\n\tpublic AbstractBagGift createBagGift() {\n\t\treturn new MerchantCollection();\r\n\t}", "public void createBike() {\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }", "public void createBike(){\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }", "public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}", "protected Basket makeBasket() {\n\t\treturn new Basket();\n\t}", "BOp createBOp();", "public void testNewBid(){\n\n Thing thing = new Thing(new User());\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing, borrower, 800);\n }catch(Exception e){\n fail();\n }\n assertEquals(800, bid.getAmount());\n assertEquals(Bid.Per.FLAT, bid.getPer());\n assertEquals(\"8.00\", bid.valueOf());\n assertEquals(\"$8.00\", bid.toString());\n\n }", "public Bag getGreedyBag() {\r\n bag = super.getBag();\r\n List<Integer> auxiliarHand = new LinkedList<Integer>(hand);\r\n\r\n for (int i = 0; i < bag.getCardsIds().size(); i++) {\r\n if (auxiliarHand.contains(bag.getCardsIds().get(i))) {\r\n auxiliarHand.remove(bag.getCardsIds().get(i));\r\n }\r\n }\r\n\r\n if (this.roundNumber % 2 == 0) {\r\n highestProfitIllegalCard = 0;\r\n if (bag.getCards().size() < MAX_CARDS_IN_BAG) {\r\n for (Integer cardId : auxiliarHand) {\r\n if (cardId > MAX_LEGAL_INDEX\r\n && goodsFactory.getGoodsById(cardId).getProfit()\r\n > goodsFactory.getGoodsById(highestProfitIllegalCard).getProfit()) {\r\n highestProfitIllegalCard = cardId;\r\n }\r\n }\r\n if (highestProfitIllegalCard != 0\r\n && (coins - goodsFactory\r\n .getGoodsById(highestProfitIllegalCard)\r\n .getPenalty()) > 0) {\r\n bag.addCard(goodsFactory.getGoodsById(highestProfitIllegalCard));\r\n }\r\n }\r\n }\r\n return bag;\r\n }", "public Bag(String name, int weightCapacity, int lowerFit, int upperFit) {\n\t\tthis.name = name;\n\t\tthis.weightCapacity = weightCapacity;\n\t\tthis.lowerFit = lowerFit;\n\t\tthis.upperFit = upperFit;\n\t}", "public void createDeck(){\n //Does nothing because it will be overridden in the child classes.\n }", "private void constructBid() {\n Bid rawBid;\n double maxDemand = elements.first().demandWatt;\n // Minimum demand is also Max Production.\n double minDemand = elements.last().demandWatt;\n\n double minPriority = 0.0;\n double maxPriority = 1.0;\n\n // First make the ideal, continuous bid, that does not care about discrete running modes.\n rawBid = Bid.create(marketBasis)\n .add(priceOf(minPriority), maxDemand)\n .add(priceOf(maxPriority), minDemand)\n .build();\n\n // Now construct actual bid\n double[] rawDemand = rawBid.getDemand();\n newBid = new UnconstrainedBidElement[rawDemand.length];\n for (int i = 0; i < rawDemand.length; i++) {\n newBid[i] = getClosest(rawDemand[i]);\n }\n }", "PlayerBean create(String name);", "private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "public BasketItemBuilder() {\n generateRandomId();\n }", "public Bike createCityBike() {\n Wheels cityWheels = new Wheels(559,50f,10000); //Räder des Stadtrads erstellen\n Gears cityGears = new Gears(3,1,5000); //Gangschaltung des Stadtrads erstellen\n Bike newCityBike = new Bike(cityGears, cityWheels, \"Stahl\", \"CB105\", true, true, 30000); //Stadtrad erstellen\n return newCityBike; //Stadtrad zurückgeben\n}", "public GameBag(List<PieceTile> bag, int x, int y) {\r\n\t\tthis.bag = bag;\r\n\t\tboard = new Board(x, y);\r\n\t\tinitialise();\r\n\t\tupdateBoard();\r\n\t}", "@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;", "private static Bat createBat(){\n try {\n UtilityMethods.print(\"Creating Big bat for you...!\"); \n BatGenerator batGenerator = new BatGenerator();\n BatBuilder bigBatBuilder = new BigBatBuilder();\n batGenerator.setBatBuilder(bigBatBuilder);\n batGenerator.constructBat(\n \"Bat\", \n \"Male\",\n 25,\n \"Scavenger\"\n );\n Bat bigBat = bigBatBuilder.getBat();\n UtilityMethods.print(\"\\n\"); \n bigBat.eat();\n UtilityMethods.print(\"\\n\"); \n bigBat.speak();\n UtilityMethods.print(\"\\n\"); \n bigBat.walk();\n UtilityMethods.print(\"\\n\"); \n } catch (Exception e) {\n UtilityMethods.print(e.getMessage()); \n }\n return null; \n }", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "public Bag() {\n\t\tinstances = new ArrayList<double[]>();\n\t\tname = \"\";\n\t}", "@Override\n public void createDeck(){\n for (char suit:standardSuits) {\n for (Map.Entry<Character, Integer> item:deckCards.entrySet()) {\n Card card = new Card(item.getKey(),item.getValue(),suit);\n deckOfCards.add(card);\n }\n }\n }", "private Pile createDeck() {\n \t\tPile deck = new Pile(\"deck\"); // TODO Refactor, no hardcoded string\n\t\tpileNames.add(\"deck\");\n \t\tfor (Suit suit : Suit.values()) {\n \t\t\tfor (Rank rank : Rank.values()) {\n \t\t\t\tdeck.addCard(new Card(suit, rank));\n \t\t\t}\n \t\t}\n \t\t// Put the deck at the middle of the table\n \t\tmTable.set(MID_OF_TABLE, deck);\n \t\treturn deck;\n \t}", "public Bathroom(int size) {\n this.size = size;\n myBathtub = new Bathtub(100); //instantiate bathtub object during Bathroom object creation\n }", "public void newHand() {\n if(player.getSecondHand().size() > 0){\n player.emptySecondHand(deck);\n shuffle();\n }\n player.resetBet();\n dealer.resetBet();\n errorFlag = false;\n userMessage = \"Place your Bet\";\n againDisabled = true;\n dealDisabled = false;\n hitDisabled = true;\n splitDisabled = true;\n standDisabled = true;\n doubleDisabled = true;\n bettingDisabled = false;\n emptyHands();\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate Bet createBetInstance(final LinkedHashMap map, final EntityStash entityStash, final Locale locale) throws BetException {\n\t\tfinal List errorMessages = new ArrayList();\n\t\tfinal Bet bet = this.createBetInstanceByType(map, errorMessages, locale);\n\t\tif (bet == null) {\n\t\t\tfinal String message = this.messageSource.getMessage(\"exception.betTypeUnavailable\", null, locale);\n\t\t\tfinal MessageBox messageBox = new MessageBox(\"betTypeUnavailable\", message, new ArrayList<String>());\n\t\t\terrorMessages.add(messageBox);\n\t\t}\n\t\t// Parameter format validated: fire exception if any errors were found\n\t\tif (!errorMessages.isEmpty()) {\n\t\t\tthrow new BetException(errorMessages);\n\t\t}\n\t\t// proceed with remaining required fields\n\t\tfinal String playerName = (String)map.get(\"jugador\");\n\t\tfinal Player player = entityStash.getPlayer(playerName);\n\t\tif (player != null && bet != null) {\n\t\t\tbet.setPlayer(playerName);\n\t\t\tbet.setLeague(player.getLeague());\n\t\t}\n\t\tif (bet != null) {\n\t\t\tfinal Account account = entityStash.getAccount();\n\t\t\tbet.setAccount(account.getName());\n\t\t}\n\t\treturn bet;\n\t}", "private PlayerBagMsg(Builder builder) {\n super(builder);\n }", "public Bag(String name, int weightCapacity) {\n\t\tthis.name = name;\n\t\tthis.weightCapacity = weightCapacity;\n\t}", "public void createDecks(){\r\n\t\tfor (int j = 10; j < 20; j++){\r\n\t\t\taddCard(new Card(cardNames[j]));\r\n\t\t}\r\n\t}", "public Market(LegendsGame game) {\n\t\tthis.game = game;\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\tr.nextInt(itemCap);\n\t\t\n\t\titems = new ArrayList<>();\n\t\t\n\t\tthis.addNumItems(r.nextInt(itemCap-1) + 1);\n\t\t\n\t}", "private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}", "public @NotNull Bidder newBidder();", "public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }", "private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }", "public static void main(String[] args) {\n Scanner keyboard = new Scanner(System.in);\n//Create an object of the Bag class refer to this object as myBag\n Bag myBag = new Bag();\n//declare a variable called option of type int\n int option;\n//Open a do/while loop\n do {\n//Prompt the user to pick one of the following options:\n//Press 1 to change the name of the bag\n//Press 2 to add an item to the bag\n//Press 3 to change the maximum weight of the bag\n//Press 4 to view all information about the bag\n//Press 5 to end the program\n System.out.println(\"Pick an option. \" +\n \"\\nPress 1 to change the name of the bag. \" +\n \"\\nPress 2 to add an item to the bag. \" +\n \"\\nPress 3 to change the maximum weight of the bag. \" +\n \"\\nPress 4 to view all information about the bag. \" +\n \"\\nPress 5 to end the program.\");\n//Save the user’s input into the option variable\n option = keyboard.nextInt();\n keyboard.nextLine();\n//if the user picks option 1, prompt the user for the name of the bag\n//then save the name of the bag in a variable called newName\n//change the name of the bag to newName\n if (option == 1) {\n System.out.println(\"What should the name of the bag be?\");\n String newName = keyboard.nextLine();\n myBag.setName(newName);\n//else if the user picks option 2, prompt the user for the weight\n//of the item and then save the weight of the item in a variable\n//called newWeight\n//add the new item to the bag\n }else if (option == 2) {\n System.out.println(\"What is the weight of the item?\");\n double newWeight = keyboard.nextDouble();\n myBag.addItem(newWeight);\n//else if the user picks option 3, prompt the user for the new maximum\n//weight of the bag and save the new maximum weight in a variable\n//called newMaximumWeight\n//change the maximum weight of the bag to newMaximumWeight\n }else if (option == 3) {\n System.out.println(\"What should the new maximum weight of the bag be?\");\n double newMaximumWeight = keyboard.nextDouble();\n myBag.setMaximumWeight(newMaximumWeight);\n//else if the user picks option 4, display to the screen the name of\n//the bag, the current weight of the bag, and the maximum weight\n//of the bag\n }else if (option == 4) {\n System.out.println(\"The name of your bag is: \" + myBag.getName() + \"\\nThe current weight is: \" + myBag.getCurrentWeight() + \"\\nThe maximum weight is: \" + myBag.getMaximumWeight());\n//else if the user picks option 5, display Goodbye.\n }else if (option == 5) {\n//else if the user picks any other option, display Error!\n }else {\n System.out.println(\"Error!\");\n }\n//close the do/while loop and make it so that it continues to run as\n//long as the user does not pick option 5\n } while (option !=5 );\n }", "public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}", "protected BattleBagState bagState(){\n return new BattleBagState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "@Override\r\n public void playerCreateNewDeck(int playerPosition) {\r\n this.players.get(playerPosition).createNewDeck();\r\n System.out.println(\"Player \" + playerPosition + \" created new deck.\");\r\n }", "@Override\r\n public void dealerCreateNewDeck() {\r\n this.dealer.createNewDeck();\r\n System.out.println(\"Dealer deck created\");\r\n }", "public Auction(PropertySquare property, List<Player> players, Bank bank) {\n this.property = property;\n this.players = players;\n this.bank = bank;\n this.bids = new HashMap<>();\n\n for(Player player : players){\n this.bids.put(player, null);\n }\n }", "public BowlingGame(List<BowlingPlayer> bowlingPlayers){\n _bowlingPlayers = bowlingPlayers;\n }", "private void createFullPackOfCards()\r\n {\r\n // Todo\r\n\r\n // Using a for-loop, add all the Card instances to cards.\r\n for ( int i = 0; i < NOOFCARDSINFULLPACK; i ++) {\r\n addTopCard( new Card(i));\r\n }\r\n }", "void createSportItem (String name, String description, double price, String sportType);", "private void prepareDeal(){\n\t\tdeck.shuffle();\n\t\tplayers.clear(); //Remove any possible rubbish\n\t\tfor(Player p : seatPlayers){\n\t\t\tif(p != null){\n\t\t\t\tList<BlackjackHand> hands = new ArrayList<>();\n\t\t\t\tBlackjackHand hand = new BlackjackHandPlayer();\n\t\t\t\thands.add(hand);\n\t\t\t\thistoricalActions.put(hand, new ArrayList<>());\n\t\t\t\tplayers.put(p, hands);\n\t\t\t}\n\t\t}\n\t\tdealerHand = new BlackjackHandDealer();\n\t}", "@Override\r\n public void allPlayersCreateDeck() {\r\n // Loop through all players and call createNewDeck\r\n for (int i = 0; i < this.players.size(); i++) {\r\n this.playerCreateNewDeck(i);\r\n }\r\n }", "public void start() {\n // Bid initialized (higher the number, lower the bid rank)\n bid = 100;\n // Check if the players have token, if no token remove player from the game\n // The player remaining wins the pot\n for (int i = 0; i < numberOfPlayers; i++) {\n if (tokens.get(i) == 0) {\n players.remove(i);\n tokens.remove(i);\n cups.remove(i);\n // Add pot to the remaining player's balance\n }\n }\n numberOfPlayers = players.size();\n // Roll all five dice inside the cup for each player\n for (int i = 0; i < numberOfPlayers; i++) {\n cups.get(i).shake();\n }\n // Get the player with the highest poker dice hand\n firstPlayer = players.get(0);\n for (int i = 1; i < numberOfPlayers; i++) {\n PokerDiceHand first = cups.get(players.indexOf(firstPlayer)).getHand();\n PokerDiceHand current = cups.get(i).getHand();\n if (current.getRank() < first.getRank()) {\n firstPlayer = players.get(i);\n }\n }\n // First player's turn\n turn = firstPlayer;\n gameCup = new Cup();\n gameCup.shake();\n }", "public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n\t\tspeler = new PersoonSpeler();\n//\t\tif (Main.getNumberOfPlayers() >= 3) { \n//\t\t\tSpeler computer2 = new ComputerSpeler();\n//\t\t}\n//\t\tif (Main.getNumberOfPlayers() == 4) {\n//\t\t\tSpeler computer3 = new ComputerSpeler();\n//\t\t}\n\n\n\t}", "private void createDeckFromInput() {\n\n if(titleField.getText().isBlank()) {\n MainGUI.confirmDialog(\"Deckname cannot be blank\");\n return;\n }\n String deckName = titleField.getText();\n Deck deck = new Deck(deckName, 0,0,0,0,0);\n int deckID = DatabaseAPI.storeDeck(deck);\n DatabaseAPI.createUserDeckBridge(user.getId(), deckID);\n\n String[] tags = FormatData.formatHashtags(tagField.getText());\n for(String tag : tags) {\n if(!FormatData.isBlankString(tag)) {\n int tagID = DatabaseAPI.checkTag(tag);\n if(tagID != 0) {\n DatabaseAPI.createDeckTagBridge(deckID, tagID);\n } else {\n int newTagID = DatabaseAPI.storeTag(tag);\n DatabaseAPI.createDeckTagBridge(deckID, newTagID);\n }\n }\n }\n\n\n }", "void create(GameLogic gameLogic);", "void createPlayer(Player player);", "BSet createBSet();", "private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n weapon = new Equip(\"Claws of Death\", Equip.WEAPON, 550);\r\n armor = new Equip(\"Inpenetrable skin\", Equip.ARMOR, 200);\r\n }", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "@Override\n\tpublic void createBourse(Bourse brs) {\n\t\t\n\t}", "public void makeDeck()\r\n\t{\r\n\t\tfor (int i = 1; i < 5; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 2; j < 15; j++)\r\n\t\t\t{\r\n\t\t\t\tdeck.add(new Card(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Bounty createEntity() {\n Bounty bounty = new Bounty()\n// .status(DEFAULT_STATUS)\n// .issueUrl(DEFAULT_URL)\n .amount(DEFAULT_AMOUNT)\n// .experience(DEFAULT_EXPERIENCE)\n// .commitment(DEFAULT_COMMITMENT)\n// .type(DEFAULT_TYPE)\n// .category(DEFAULT_CATEGORY)\n// .keywords(DEFAULT_KEYWORDS)\n .permission(DEFAULT_PERMISSION)\n .expiryDate(DEFAULT_EXPIRES);\n return bounty;\n }", "private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }", "public void setBag(Bag b)\n\t{\n\t\tm_bag = b;\n\t}", "B createB();", "public void createCard(Player p) {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tGridBagLayout layout = new GridBagLayout();\r\n\t\tpanel.setLayout(layout);\r\n\r\n\t\tGridBagConstraints lim = new GridBagConstraints();\r\n\t\tlim.fill = GridBagConstraints.BOTH;// grandezza componenti nei riquadri\r\n\t\t\t\t\t\t\t\t\t\t\t// (both= tutto pieno)\r\n\t\tlim.anchor = GridBagConstraints.CENTER;// posizione componenti nei\r\n\t\t\t\t\t\t\t\t\t\t\t\t// riquadri\r\n\r\n\t\tList<BusinessPermitTile> bpt = p.getUsedBusinessPermit();// carte\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// permesso\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// costrucione\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// giocatore\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// usate\r\n\t\tif (bpt.isEmpty()) {// non ci sono carte permesso usate\r\n\r\n\t\t\t// ----------no card----------\r\n\t\t\tJLabel noCardLabel = new JLabel(\"No used business permit tiles\");// aggiungo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// l'immagine\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// alla\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// label\r\n\t\t\tnoCardLabel.setFont(new Font(\"Calibre\", Font.PLAIN, 20));\r\n\r\n\t\t\tlim.gridx = 0;// posizione componenti nella griglia\r\n\t\t\tlim.gridy = 0;\r\n\t\t\tlim.weightx = 1;// espansione in verticale e orizzontale\r\n\t\t\tlim.weighty = 1;\r\n\t\t\tlim.gridheight = 1;// grandezza del riquadro\r\n\t\t\tlim.gridwidth = 1;\r\n\r\n\t\t\tlayout.setConstraints(noCardLabel, lim);\r\n\t\t\tpanel.add(noCardLabel);\r\n\r\n\t\t} else {// ci sono carte permesso usate\r\n\r\n\t\t\t// ----------costruction card usate disponibili----------\r\n\t\t\tJLabel yesCardLabel = new JLabel(\"Used business permit tiles\");// aggiungo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// l'immagine\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// alla\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// label\r\n\t\t\tyesCardLabel.setFont(new Font(\"Calibre\", Font.PLAIN, 20));\r\n\r\n\t\t\tlim.gridx = 0;// posizione componenti nella griglia\r\n\t\t\tlim.gridy = 0;\r\n\t\t\tlim.weightx = 1;// espansione in verticale e orizzontale\r\n\t\t\tlim.weighty = 1;\r\n\t\t\tlim.gridheight = 1;// grandezza del riquadro\r\n\t\t\tlim.gridwidth = 5;\r\n\r\n\t\t\tlayout.setConstraints(yesCardLabel, lim);\r\n\t\t\tpanel.add(yesCardLabel);\r\n\r\n\t\t\tint q = 0;// posizione griglia orizzonatale (larghezza)\r\n\t\t\tint r = 1;// posizione griglia verticale (altezza)\r\n\t\t\tfor (int i = 0; i < bpt.size(); i++) {\r\n\t\t\t\tJLabel costructionCard = ccp.oldCostructionWB(bpt.get(i));// aggiungo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// l'immagine\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// alla\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// label\r\n\r\n\t\t\t\tlim.gridx = q;// posizione componenti nella griglia\r\n\t\t\t\tlim.gridy = r;\r\n\t\t\t\tlim.weightx = 1;// espansione in verticale e orizzontale\r\n\t\t\t\tlim.weighty = 1;\r\n\t\t\t\tlim.gridheight = 1;// grandezza del riquadro\r\n\t\t\t\tlim.gridwidth = 1;\r\n\r\n\t\t\t\tlayout.setConstraints(costructionCard, lim);\r\n\t\t\t\tpanel.add(costructionCard);\r\n\t\t\t\tfinal int k = i;\r\n\t\t\t\tcostructionCard.addMouseListener(new MouseListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\t/** empty, not erasable */\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t/** empty, not erasable */\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\tccp.writeArea(bpt.get(k));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t/** empty, not erasable */\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\t\t\t/** empty, not erasable */\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\tq++;\r\n\t\t\t\tif (q % 5 == 0) {// metto al massino 5 carte costruzione per\r\n\t\t\t\t\t\t\t\t\t// riga\r\n\t\t\t\t\tq = 0;\r\n\t\t\t\t\tr++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tcontentPane.add(panel);\r\n\t}", "public void createAI(int lobbyId)\n {\n //call Client Controller's addAIPlayer method\n clientController.addAIPlayer(new Difficulty(5, 5), lobbyId);\n }", "private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }", "public Bid winningBid(final String itemId);", "private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", player);\n ships.add(scout_One);\n point = new Point(maxN - 1, 1);\n scout_Two = new Ship(1, point, maxN, \"Scout Two\", player);\n ships.add(scout_Two);\n point = new Point(maxN - 2, 2);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n ships.add(cruiser);\n point = new Point(maxN - 2, 3);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n ships.add(carrier);\n point = new Point(maxN - 4, 5);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n ships.add(motherShip);\n\n }else{\n Random rand = new Random();\n int rowM = maxN-3;\n int colM = maxN -2;\n int row = rand.nextInt(rowM);\n int col = rand.nextInt(colM);\n point = new Point(row, col);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n updateOccupiedCells(motherShip.getBodyLocationPoints());\n ships.add(motherShip);\n\n rowM = maxN - 1;\n colM = maxN -1;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n updateOccupiedCells(carrier.getBodyLocationPoints());\n ships.add(carrier);\n checkIfOccupiedForSetShip(carrier, row, col, rowM, colM);\n\n\n rowM = maxN - 1;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n updateOccupiedCells(cruiser.getBodyLocationPoints());\n ships.add(cruiser);\n checkIfOccupiedForSetShip(cruiser, row, col, rowM, colM);\n\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_Two = new Ship(1, point, maxN, \"Scout_Two\", player);\n updateOccupiedCells(scout_Two.getBodyLocationPoints());\n ships.add(scout_Two);\n checkIfOccupiedForSetShip(scout_Two, row, col, rowM, colM);\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_One = new Ship(1, point, maxN, \"Scout_One\", player);\n updateOccupiedCells(scout_One.getBodyLocationPoints());\n ships.add(scout_One);\n checkIfOccupiedForSetShip(scout_One, row, col, rowM, colM);\n\n\n\n\n }\n //Need an algorithm to set enemy ship locations at random without overlaps\n }", "public Player() { \n grid = new Cell[GRID_DIMENSIONS][GRID_DIMENSIONS]; //size of grid\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n grid[i][j] = new Cell(); //creating all Cells for a new grid\n }\n }\n \n fleet = new LinkedList<Boat>(); //number of boats in fleet\n for (int i = 0; i < NUM_BOATS; i++) {\n Boat temp = new Boat(BOAT_LENGTHS[i]); \n fleet.add(temp);\n }\n shipsSunk = new LinkedList<Boat>();\n }", "private void makeBag(final HashMap<Integer, Integer> legalGoods,\n final HashMap<Integer, Integer> illegalGoods) {\n if (!legalGoods.isEmpty()) {\n this.putLegalGoods(legalGoods);\n } else {\n this.putIllegalGood(illegalGoods);\n this.setDeclaredGood(0);\n }\n }", "IEquipableItem create(int power, int min, int max);", "private Battle[] getNewBattles(int playerCount){\n\t\t\n\t\tList<PlayerId> players = new ArrayList<>();\n\t\t\n\t\tString playerStr = \"\";\n\t\t\n\t\t// FIXME list check size\n\t\tfor ( int idx = 0; idx < playerCount; idx++) {\n\t\t\tPlayerId playerId = waitingPlayers.removeLast();\n\t\t\tplayers.add(playerId);\n\t\t\tif ( idx != 0 ) {\n\t\t\t\tplayerStr += \",\";\n\t\t\t}\n\t\t\tplayerStr += playerId.getTag();\n\t\t}\n\t\t\n\t\t\n\t\t// add player to done\n\t\t/*for ( PlayerId player : players) {\n\t\t\tdonePlayers.put(player.getTag(), player);\n\t\t}*/\n\t\t\n\t\ttry {\n\t\t\tBattle[] battles = QueryBuilder.selectPlayerBattles(playerStr ).execute();\n\t\t\treturn battles;\n\t\t} \n\t\tcatch (CrServiceException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\t// Error occurs in query\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Error sleep a little ...\");\n\t\t\t\tThread.sleep(2000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn new Battle[] {};\n\t\t}\n\t\t\n\t}", "ArenaCreature createPlayerMageArenaCreature(Player player);", "@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }", "boolean hasPlayerBag();", "public Robber() {\n\t\t// robberPlayers = (ArrayList<Player>) GSC.players.clone();\n\t}", "public BaseballCard(){\r\n\r\n\t}", "public void createDeck() {\n\t\t// for loop that repeats 4 times - one for each suit\n\t\tfor (String suit : suits) {\n\t\t\t// for loop that repeats 13 times (2-14) - once for each value\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\t//create instance of new card createCard(value, name);\n\t\t\t\tCard card = new Card(i, suit);\n\t\t\t\t//add card to deck array\n\t\t\t\taddCardToDeck(card);\n\t\t\t}\t\n\t\t}\n\t}", "public int createPack(String name)\n {\n dbObj=new dbFlashCards(userId);\n if(dbObj.packExists(name)!=-1)\n return -1;\n else\n {\n //no such pack exists ..creates a new pack and returns its packid\n return dbObj.addPack(name);\n \n }\n \n }", "public Basket(){\r\n\r\n basket = new Hashtable();\r\n keys = new Vector();\r\n }", "public Bid newBid(Item item, User buyer, Money amount)\n {\n return auctionManager.newBid(item, buyer, amount);\n }", "public void create() {\n if (created)\n return;\n\n PlayerConnection player = getPlayer();\n player.sendPacket(createObjectivePacket(0, objectiveName));\n player.sendPacket(setObjectiveSlot());\n int i = 0;\n while (i < lines.length)\n sendLine(i++);\n\n created = true;\n }", "public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }", "public BorderedStrategy() {\n\t\tsuper();\n\t}", "public PlayerFighter create(GamePlayer player);", "@Test\n public void test_BoostOnDies() {\n addCard(Zone.HAND, playerA, \"Silumgar Scavenger\", 1); // {4}{B}\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 5);\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n\n // cast and exploit\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silumgar Scavenger\");\n setChoice(playerA, true); // yes, exploit\n addTarget(playerA, \"Balduvian Bears\");\n\n checkPermanentCounters(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", CounterType.P1P1, 1);\n checkAbility(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", HasteAbility.class, true);\n\n setStopAt(1, PhaseStep.END_TURN);\n setStrictChooseMode(true);\n execute();\n }", "public void createAuctionTest(){\n\t\tAuction auc = new Auction(new User(),\"Test Auction Description\",1000l);\n\n\t}", "@Override\r\n\tpublic BMW createBMW() {\n\t\treturn new BMW320();\r\n\t}", "public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void createNewGame(Player player);", "public Game(Boolean newGame) throws IOException, InterruptedException {\n if (newGame)\n\n { market = new Market();\n reserve = new Reserve();\n\n productionCardDecks = new ArrayList<>();\n\n deckProductionCardOneBlu = new DeckProductionCardOneBlu();\n deckProductionCardTwoBlu = new DeckProductionCardTwoBlu();\n deckProductionCardThreeBlu = new DeckProductionCardThreeBlu();\n\n deckProductionCardOneGreen = new DeckProductionCardOneGreen();\n deckProductionCardTwoGreen = new DeckProductionCardTwoGreen();\n deckProductionCardThreeGreen = new DeckProductionCardThreeGreen();\n\n deckProductionCardOneViolet = new DeckProductionCardOneViolet();\n deckProductionCardTwoViolet = new DeckProductionCardTwoViolet();\n deckProductionCardThreeViolet = new DeckProductionCardThreeViolet();\n\n deckProductionCardOneYellow = new DeckProductionCardOneYellow();\n deckProductionCardTwoYellow = new DeckProductionCardTwoYellow();\n deckProductionCardThreeYellow = new DeckProductionCardThreeYellow();\n\n\n productionCardDecks.add(deckProductionCardOneBlu);\n productionCardDecks.add(deckProductionCardTwoBlu);\n productionCardDecks.add(deckProductionCardThreeBlu);\n productionCardDecks.add(deckProductionCardOneGreen);\n productionCardDecks.add(deckProductionCardTwoGreen);\n productionCardDecks.add(deckProductionCardThreeGreen);\n productionCardDecks.add(deckProductionCardOneViolet);\n productionCardDecks.add(deckProductionCardTwoViolet);\n productionCardDecks.add(deckProductionCardThreeViolet);\n productionCardDecks.add(deckProductionCardOneYellow);\n productionCardDecks.add(deckProductionCardTwoYellow);\n productionCardDecks.add(deckProductionCardThreeYellow);\n\n deckLeaderCard= new DeckLeaderCard();}\n else {\n restoreGame();\n }\n this.isOver=false;\n\n }", "public void createHobbit(String name, String math, String say, int carrots) {\n workers.add(new Hobbit(name, math, say, carrots));\n }", "public Model() {\n\t\tbucket = new bucket[14];\n\t\tlisteners = new ArrayList<ChangeListener>();\n\n\t\ta = new player(true, 1);\n\t\tb = new player(false, 2);\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tif (x == 0 || x == 7) {\n\t\t\t\tbucket[x] = new bucket(x, 0);\n\t\t\t} else {\n\t\t\t\tbucket[x] = new bucket(x, 0);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void putInBag(final int maxCards, final HashMap<String, Integer> association) {\n getInventory().getBagToGive().setActualAssets(bribeCalculateBag(maxCards, association));\n }", "private void bid() {\n\t\t\t\n\t\t}", "PlayerGroup createPlayerGroup();", "public Item createNew(int count) {\r\n Item i = new Item(name, id);\r\n i.setPickedUp(true);\r\n i.setCount(count);\r\n return i;\r\n }", "public abstract boolean createGame(int nbplayers, boolean status, String creator) throws SQLException;", "public Bid() {}", "private int createAndAddLobby(int maxPlayers, String lobbyName, int trackID){\n\n\t\tDebugOutputHandler.printDebug(\"A new Lobby has been created\");\n\t\tLobby newLobby = new Lobby(++lobbyIdCounter, maxPlayers, lobbyName, trackID, this);\n\t\tif(lobbyMap.get(lobbyIdCounter) == null){\n\t\t\tlobbyMap.put(lobbyIdCounter, newLobby);\n\t\t\treturn lobbyIdCounter;\n\t\t}else{\n\t\t\treturn -1;\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Shape> shapes = new ArrayList<>();\n //System.out.println(\"Please enter the bin capacity\");\n Shape container = new Shape();\n container.containerPrompt();\n container.containerVolume();\n int binCapacity = container.containerVolume();\n //insert three items here\n System.out.println(\"How many cubes do want to store: 1, 2 or 3 \");\n int choice = scanner.nextInt();\n while (choice-- >0){\n Shape object = new Shape();\n object.objectPrompt();\n shapes.add(object);\n\n /*\n object.objectVolume();\n int one = object.containerVolume();*/\n }\n\n /*switch (choice){\n case 1:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n case 2:\n Shape shape2 = new Shape();\n shape2.objectPrompt();\n shape2.objectVolume();\n int two = shape2.containerVolume();\n\n Shape shape3 = new Shape();\n shape3.objectPrompt();\n shape3.objectVolume();\n int one = shape1.containerVolume();\n break;\n\n case 3:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n default:\n }*/\n List<Integer> items=new ArrayList<>();\n\n for (Shape shape: shapes){\n items.add(shape.containerVolume());\n System.out.println(shape.containerVolume());\n }\n\n\n\n //List<Integer> items = Arrays.asList(shapes.get(0).containerVolume());\n //insert the bin capacity\n // int binCapacity = 5;\n CheckBin algorithm = new CheckBin(items, binCapacity);\n algorithm.solvingBinPackingProblem();\n algorithm.showResults();\n // System.out.println(\"This is after committing\");\n\n\n }" ]
[ "0.66141343", "0.60997486", "0.5784496", "0.5767876", "0.5766636", "0.5747388", "0.57082593", "0.56963485", "0.5535154", "0.55231434", "0.54711246", "0.5435123", "0.5384041", "0.5365209", "0.53574544", "0.53563786", "0.5354441", "0.53454864", "0.53279847", "0.53273785", "0.5297141", "0.52847916", "0.52819043", "0.52507544", "0.5246492", "0.52181596", "0.5216498", "0.52013123", "0.51973116", "0.51845574", "0.51626337", "0.516159", "0.51191103", "0.5112802", "0.5111737", "0.50978416", "0.5093851", "0.50885713", "0.5087523", "0.50679487", "0.50626063", "0.50591326", "0.505084", "0.50488794", "0.5042461", "0.5036801", "0.50322443", "0.5025931", "0.5025843", "0.5021639", "0.5018782", "0.50138396", "0.5007731", "0.50035113", "0.5003447", "0.50022733", "0.49991763", "0.4995066", "0.49939704", "0.49758524", "0.49754304", "0.49716792", "0.49598244", "0.49570242", "0.49551654", "0.49481952", "0.49471074", "0.49440342", "0.4939547", "0.49352735", "0.49286017", "0.4921028", "0.49199912", "0.49152017", "0.49113274", "0.4904779", "0.4903543", "0.48987204", "0.48962426", "0.48878744", "0.48791194", "0.48789784", "0.48776275", "0.48751524", "0.48712745", "0.4862187", "0.4857826", "0.48537338", "0.48486063", "0.4846295", "0.48375595", "0.48275846", "0.48142013", "0.48128954", "0.48104286", "0.4807783", "0.4800975", "0.47998017", "0.47927094", "0.47917104" ]
0.5797566
2