gephi.team team mailing list archive
-
gephi.team team
-
Mailing list archive
-
Message #02051
[Question #150782]: DB connector from a JDBC
New question #150782 on Gephi:
https://answers.launchpad.net/gephi/+question/150782
I have a JDBC and I have created a new module to write a DB Connector. I have added the JDBC to the module and created a class that implements SQLDriver, I understand that I will need to override the implementation for the following:
@Override
public String getPrefix() {
return "newdriver";
}
@Override
public String toString() {
return "New Driver";
}
@Override
public boolean equals(Object obj) {
if (obj instanceof MySQLDriver) {
return ((NewDriver) obj).getPrefix().equals(getPrefix());
} else {
return false;
}
}
@Override
public int hashCode() {
return getPrefix().hashCode();
}
But I did not quite understand as much what each function does.. can someone give me some guide here
--
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.