id stringlengths 36 36 | text stringlengths 1 1.25M |
|---|---|
7ab04e21-beea-4bb7-ada4-10ed2b746e87 | public void setMarca(String marca) {
this.marca = marca;
} |
9f32c11d-9ef1-4397-8e4d-cb5e6141be1d | public String getModelo() {
return modelo;
} |
6f4eec41-cb9a-43fc-8e8e-124d4bde88a1 | public void setModelo(String modelo) {
this.modelo = modelo;
} |
7f79d96d-9863-4f63-b283-51b8729e064c | public Integer getAno() {
return ano;
} |
dacf8633-c573-4447-b064-87adcc801be2 | public void setAno(Integer ano) {
this.ano = ano;
} |
42b10a78-5e98-4e35-8bf7-8d076b2125a1 | public String getCor() {
return cor;
} |
9bde660a-47fd-4884-ae5b-8d0957b1a8d8 | public void setCor(String cor) {
this.cor = cor;
} |
4fd3374a-2146-418c-b978-f102756c4ea8 | public String getPlaca() {
return placa;
} |
5de44471-00a1-4e2e-914d-fd59bcc27319 | public void setPlaca(String placa) {
this.placa = placa;
} |
82947c80-1d8c-46ba-b66a-04fb65e308ae | public Boolean getStatus() {
return status;
} |
586f27ef-5de6-49e0-8156-0c9f3e541b24 | public void setStatus(Boolean status) {
this.status = status;
} |
6ca718a2-1231-4e38-be79-2694894e8094 | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((ano == null) ? 0 : ano.hashCode());
result = prime * result + ((cor == null) ? 0 : cor.hashCode());
result = prime * result
+ ((idVeiculo == null) ? 0 : idVeiculo.hashCode());
result = prime * result + (... |
5d2807ca-14d5-4021-9d89-59eee97a2206 | @Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Veiculo other = (Veiculo) obj;
if (ano == null) {
if (other.ano != null)
return false;
} else if (!ano.equals(other.ano))
return fals... |
3daa8275-4626-44b6-b31b-c614ffb2c7c3 | public static EntityManager getEntityManager()
{
return emf.createEntityManager();
} |
c67da819-7446-4603-9d5a-76af7e152da8 | public Long getIdMorador() {
return idMorador;
} |
c909b9e7-7865-4e07-808d-29dd72708700 | public void setIdMorador(Long idMorador) {
this.idMorador = idMorador;
} |
034f650d-b530-4ba9-95be-cfd5d63058a7 | public String getNome() {
return nome;
} |
65df4933-80be-4435-bc37-ea8bda8c7e5e | public void setNome(String nome) {
this.nome = nome;
} |
0fba54de-68f9-48e1-91d9-750ba53bece8 | public Date getNascimento() {
return nascimento;
} |
a27c8ae3-1418-4a7d-b3cb-b84a48b471d7 | public void setNascimento(Date nascimento) {
this.nascimento = nascimento;
} |
f4b2137f-402d-46c1-a037-edafdc6e03ec | public String getEmail() {
return email;
} |
d6118b5a-bf6e-47dd-b089-dbaf1a9ebdc1 | public void setEmail(String email) {
this.email = email;
} |
fdc4a0e0-e31b-47df-a20b-fb45ea567403 | public Boolean getStatus() {
return status;
} |
130b3b9b-96e2-48ca-a1e5-7e1b60736664 | public void setStatus(Boolean status) {
this.status = status;
} |
e937458d-8015-4a99-a6cb-e7dac727ed32 | public Apartamento getApartamento() {
return apartamento;
} |
57e92015-58a5-4be7-8411-c814dca46c2a | public void setApartamento(Apartamento apartamento) {
this.apartamento = apartamento;
} |
3662b13d-62a6-497b-9c26-50e7ea719388 | public Garagem getGaragem() {
return garagem;
} |
bb9eb96e-1374-4428-bc35-7e32091c7dcd | public void setGaragem(Garagem garagem) {
this.garagem = garagem;
} |
37937900-d27f-4463-9986-0778a7423d85 | public Veiculo getVeiculo() {
return veiculo;
} |
0e1699fd-413c-44f2-a9d6-81a12a1bc6e2 | public void setVeiculo(Veiculo veiculo) {
this.veiculo = veiculo;
} |
29c891d6-af4b-4c53-9e53-0e877a3e1031 | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((apartamento == null) ? 0 : apartamento.hashCode());
result = prime * result + ((email == null) ? 0 : email.hashCode());
result = prime * result + ((garagem == null) ? 0 : garagem.hashCode());
result = pr... |
6730047c-bc37-4a3a-a30f-00e6923973c9 | @Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Morador other = (Morador) obj;
if (apartamento == null) {
if (other.apartamento != null)
return false;
} else if (!apartamento.equals(ot... |
8cea970f-e7be-4720-ac7b-d05f1e4b4990 | public Long getIdApartamento() {
return idApartamento;
} |
74b1ea64-8a50-4b24-a713-025f9d780223 | public void setIdApartamento(Long idApartamento) {
this.idApartamento = idApartamento;
} |
8f068ac4-c82a-4eac-a965-96b4dabba33d | public Integer getNumero() {
return numero;
} |
99514bfd-3a23-44cc-865e-e08fce5bcd9b | public void setNumero(Integer numero) {
this.numero = numero;
} |
c33db489-1a73-4006-888d-aac0fb6ca913 | public Integer getTorre() {
return torre;
} |
feb5178f-b385-4e1c-ba16-5e61c1d1dddb | public void setTorre(Integer torre) {
this.torre = torre;
} |
592a4166-4713-41aa-a9d9-949aca4669ee | public String getHistorico() {
return historico;
} |
6299f1cd-ad35-4b46-8557-ba1655c9745f | public void setHistorico(String historico) {
this.historico = historico;
} |
ad130fe5-c242-47a5-af23-9b7339afaf23 | public Boolean getStatus() {
return status;
} |
7ba8f037-6135-43d3-aee7-2165959c2ff5 | public void setStatus(Boolean status) {
this.status = status;
} |
563eeb7b-324f-4f5f-a1a9-9275392c16d2 | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((historico == null) ? 0 : historico.hashCode());
result = prime * result
+ ((idApartamento == null) ? 0 : idApartamento.hashCode());
result = prime * result + ((numero == null) ? 0 : numero.hashCode());... |
b31cf720-befc-4363-9830-75d6377a0e9f | @Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Apartamento other = (Apartamento) obj;
if (historico == null) {
if (other.historico != null)
return false;
} else if (!historico.equals(... |
cff563d0-fe4b-4b29-a288-0cd9f66d5f89 | public SQLQueries() throws Exception {
Class.forName("org.sqlite.JDBC");
// change db location
connection = DriverManager.getConnection("jdbc:sqlite:./src/main/resources/rifiuti.db");
bp = new BeanProcessor();
} |
a853de60-1f1e-46b8-bc1b-c2cd9cbf8771 | public List<Aree> getAree(String area) throws Exception {
String name = area;
List<Aree> result = new ArrayList<Aree>();
String query = "SELECT * FROM aree WHERE nome = \"" + area + "\"";
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(query);
rs.next();
Aree star... |
9bbfe428-3724-4466-bed9-4bb039831476 | public List<Aree> getAree() throws Exception {
List<Aree> result = new ArrayList<Aree>();
String query = "SELECT * FROM aree";
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(query);
while (rs.next()) {
result.add(bp.toBean(rs, Aree.class));
}
return result;
} |
cca7e167-e80f-41cb-a7af-acd0e73c215b | public String getTipoRifiuto(String nome, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
System.out.println(aree);
String query = "SELECT tipologiaRifiuto FROM riciclabolario WHERE nome = \"" + nome + "\" AND area in " + aree;
System.out.println(query);
Statement statement = connectio... |
d53c9790-8f24-40d6-a84b-b1751df1195a | public List<String> getTipiDiPuntiRaccolta(ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
String query = "SELECT DISTINCT tipologiaPuntoRaccolta FROM raccolta WHERE tipologiaUtenza = \"" + pu.getUtenza() + "\" AND area IN " + aree;
System.out.println(query);
Statement statement = connec... |
cb800d30-24a3-46ed-8e90-3e19e7375993 | public List<PuntiRaccolta> getPuntiDiRaccoltaPerTipoPuntoRaccolta(String tipoPuntiRaccolta, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
String query = "SELECT * FROM puntiRaccolta WHERE tipologiaUtenza = \"" + pu.getUtenza() + "\" AND area IN " + aree + " AND tipologiaPuntiRaccolta = \""... |
c16629e5-c65b-4817-a1fe-67258195e6eb | public List<String> getTipoRaccoltaPerTipoPuntoRaccolta(String tipoRaccolta, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
String query = "SELECT * FROM raccolta WHERE tipologiaUtenza = \"" + pu.getUtenza() + "\" AND area IN " + aree + " AND tipologiaPuntoRaccolta = \"" + tipoRaccolta + "\... |
7b162504-a128-4923-9411-a38841363a47 | public List<String> getTipiDiRaccolta() throws Exception {
String query = "SELECT DISTINCT nome FROM tipologiaRaccolta";
System.out.println(query);
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(query);
List<String> result = new ArrayList<String>();
while (rs.next(... |
45cde695-6ba6-4e3f-a902-0e2d7dd91a6a | public List<PuntiRaccolta> getPuntiDiRaccoltaPerTipoRaccolta(String tipoRaccolta, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
Statement statement = connection.createStatement();
String query = "SELECT puntiRaccolta.* FROM puntiRaccolta INNER JOIN raccolta ON puntiRaccolta.tipologiaPunt... |
cb71dad7-fd71-4de1-bf37-0130ce948477 | public List<String> getTipiDiRifiuti() throws Exception {
String query = "SELECT DISTINCT valore FROM tipologiaRifiuto";
System.out.println(query);
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(query);
List<String> result = new ArrayList<String>();
while (rs.next(... |
df239221-864c-4a9a-8e81-6a9c84fc19e9 | public List<String> getRifiutoPerTipoDiRifiuti(String tipoRifiuto, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
System.out.println(aree);
String query = "SELECT nome FROM riciclabolario WHERE tipologiaRifiuto = \"" + tipoRifiuto + "\" AND area in " + aree;
System.out.println(query);
... |
321147ab-d883-4f91-b299-f3505d0e0f93 | public List<PuntiRaccolta> getPuntiDiRaccoltaPerTipoRifiuto(String tipoRifiuto, ProfiloUtente pu) throws Exception {
String aree = getAreeForQuery(pu);
Statement statement = connection.createStatement();
String query = "SELECT puntiRaccolta.* FROM puntiRaccolta INNER JOIN raccolta ON puntiRaccolta.tipologiaPuntiR... |
06509767-2e69-445f-aa36-52d9fb0b278c | private String getAreeForQuery(ProfiloUtente pu) {
String aree = "(";
for (Aree area : pu.getAree()) {
aree += "\"" + area.getNome() + "\",";
}
aree = aree.substring(0, aree.length() - 1) + ")";
return aree;
} |
88b70760-e3b4-4366-aaa0-a8ab7f5479ab | public static void main(String[] args) throws Exception {
Initializer initializer = new Initializer();
Rifiuti rifiuti = initializer.readExcel("ExcelModelloConcettuale_V0.14.xls");
initializer.writeCSV(rifiuti);
initializer.convertFromCSVToDB();
ProfiloUtente pu = new ProfiloUtente();
pu.setUtenza("ute... |
67cd260b-19ab-4158-9308-a608a43a2416 | public String getNome() {
return nome;
} |
8b8c6131-f684-49c5-98a9-9d80b384fe9d | public void setNome(String nome) {
this.nome = nome;
} |
7887d5eb-ffb0-47cf-b7f3-155a38c1bf93 | public String getUfficio() {
return ufficio;
} |
67c79ba1-f576-462c-92a3-42148aad61a8 | public void setUfficio(String ufficio) {
this.ufficio = ufficio;
} |
4bef8199-9d9d-4c6b-b6fd-f4b806c06ff3 | public String getIndirizzo() {
return indirizzo;
} |
d2a2eb31-bb72-492a-9316-4b8c8b7d3701 | public void setIndirizzo(String indirizzo) {
this.indirizzo = indirizzo;
} |
0a79e2f8-e347-42fe-94ac-dc3fcf631f7b | public String getTipologia() {
return tipologia;
} |
185517f2-c4c0-4964-bfb1-9258c4ae82a9 | public void setTipologia(String tipologia) {
this.tipologia = tipologia;
} |
e749ec52-1a6a-4c1e-b100-cb0566d1ff24 | public String getDescrizione() {
return descrizione;
} |
e991925b-6906-4ab8-bd52-9e7b67abb626 | public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
} |
58b9a47d-cea9-4cdb-849a-b0af8ed2862c | public String getSitoIstituzionale() {
return sitoIstituzionale;
} |
9170af51-9cbe-4bda-a26a-ff8cf4fb84fd | public String getOrarioUfficio() {
return orarioUfficio;
} |
8ff40e9a-17d0-4423-90fc-cbb64e04e2ca | public void setOrarioUfficio(String orarioUfficio) {
this.orarioUfficio = orarioUfficio;
} |
38ba1151-89e0-422e-a96c-62452025e6a8 | public void setSitoIstituzionale(String sitoIstituzionale) {
this.sitoIstituzionale = sitoIstituzionale;
} |
15635045-c2f2-4a02-a5e5-cfa132729e1f | public String getPec() {
return pec;
} |
7ef348ba-8b15-467d-9a1b-ccf4906a84da | public void setPec(String pec) {
this.pec = pec;
} |
d1c0de21-0edb-4b9d-8bbc-698f2d43c6a5 | public String getEmail() {
return email;
} |
2d8b7d1c-f795-4865-baf5-9441ca9cfa80 | public void setEmail(String email) {
this.email = email;
} |
ec5f9e19-b083-4d8a-a7c9-03b7b33cf838 | public String getTelefono() {
return telefono;
} |
9f66dd01-2acb-4a9b-8b45-84b6f868c61a | public void setTelefono(String telefono) {
this.telefono = telefono;
} |
3874f146-5a00-4e24-8ee8-d9c349adb8d7 | public String getFax() {
return fax;
} |
955c2294-0df4-4191-b196-745718f141f9 | public void setFax(String fax) {
this.fax = fax;
} |
2b2cfaa4-a510-48cb-962a-14c667c898eb | public String getArea() {
return area;
} |
02dab895-d1c4-46ec-ba02-7e156605f926 | public void setArea(String area) {
this.area = area;
} |
2b427370-69ad-4de6-8108-166193aefbec | public String getTipologiaPuntiRaccolta() {
return tipologiaPuntiRaccolta;
} |
82557d1c-73d3-43d2-80f1-ba4b3d59c359 | public void setTipologiaPuntiRaccolta(String tipologiaPuntiRaccolta) {
this.tipologiaPuntiRaccolta = tipologiaPuntiRaccolta;
} |
e1a3488f-1746-4c4e-8bc9-9bdb9a53f23f | public String getTipologiaUtenza() {
return tipologiaUtenza;
} |
95f0dcd5-f9de-476e-a962-31fa16c13552 | public void setTipologiaUtenza(String tipologiaUtenza) {
this.tipologiaUtenza = tipologiaUtenza;
} |
9f1ed089-80ba-40da-9edc-c9104b1fa15f | public String getLocalizzazione() {
return localizzazione;
} |
01473371-520c-4005-ae7a-c1069dd2e6ef | public void setLocalizzazione(String localizzazione) {
this.localizzazione = localizzazione;
} |
a5031823-312a-4cff-9eef-af884ace6956 | public String getIndirizzo() {
return indirizzo;
} |
060f696d-191b-49d9-9db5-e0c447a97101 | public void setIndirizzo(String indirizzo) {
this.indirizzo = indirizzo;
} |
6fb8e3d0-7722-4a96-9fc7-95f53733738a | public String getDettaglioIndirizzo() {
return dettaglioIndirizzo;
} |
1a43c051-a521-46a3-a0f1-f1878e902b83 | public void setDettaglioIndirizzo(String dettaglioIndirizzo) {
this.dettaglioIndirizzo = dettaglioIndirizzo;
} |
7c106db5-d193-4bfc-8053-89ba94a84f74 | public String getDataDa() {
return dataDa;
} |
5949d7b8-0312-442e-ab2d-e9b8e5956804 | public void setDataDa(String dataDa) {
this.dataDa = dataDa;
} |
e622b016-ff0a-436b-96eb-c5fcce1c0b99 | public String getDataA() {
return dataA;
} |
562a1746-ab99-4bc1-8687-d160305f7426 | public void setDataA(String dataA) {
this.dataA = dataA;
} |
a17d30ee-727b-42f2-afc3-25ca9ef65283 | public String getIl() {
return il;
} |
73c693a4-9986-4b72-b22e-8e18288ef117 | public void setIl(String il) {
this.il = il;
} |
eaaf6692-e3d5-4b1c-85d1-6403f89612d8 | public String getDalle() {
return dalle;
} |
4cb20e86-b546-44e9-83e7-db58c73aee68 | public void setDalle(String dalle) {
this.dalle = dalle;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.