← Back to team overview

gephi.team team mailing list archive

[Question #150782]: DB connector from a JDBC

 

Question #150782 on Gephi changed:
https://answers.launchpad.net/gephi/+question/150782

Description changed to:
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 (as in
what should I write in each function that is associated with my JDBC)..
can someone give me some guide or example here

-- 
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.