Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring: change driver to command type #10

Open
tamtam180 opened this issue Nov 30, 2013 · 0 comments
Open

refactoring: change driver to command type #10

tamtam180 opened this issue Nov 30, 2013 · 0 comments

Comments

@tamtam180
Copy link
Owner

  • Command
class createDocumentCommand extends Command {
  String database;
  String collectionName;
  String documentKey;
  Object value;
  Boolean createCollection;
  Boolean waitForSync;
  boolean raw;
}
  • CommandFactory
CreateDocumentCommandFactory.create(long collectionId, Object value);
CreateDocumentCommandFactory.create(String collectionName, Object value);
CreateDocumentCommandFactory.create(long collectionId, String documentKey, Object value);
CreateDocumentCommandFactory.create(String collectionName, String documentKey, Object value);
  • Driver
class ArangoCommandDriver extends BaseArangoDriver {
}
driver.execute(createDocumentCommand);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant