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

Add exists methods for index and cluster and change shortName to alias [moved] #901

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed
Milestone

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 901 moved from a Google Code project.
Added by 2012-06-19T16:20:25.000Z by odbu...@hotmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Low

Original description

Requested in the forum:
-----
Can you add a few more convenience methods to check existence of objects?


These already exist:
db.exists()
db.getMetadata().getSchema().existsClass(...)
db.getMetadata().getSchema().getClass(...).existsProperty(...)

These should probably be added for consistency:
db.getMetadata().getIndexManager().existsIndex(...)
db.existsCluster(...)

Also, the method name on OClass and the term "alias" should be unified in the console and java api:
OClass o = ...;
//Instead of:
o.setShortName("thisIsAnAlias");
//Should be:
o.setAlias("thisIsAnAlias");
//So that it matches the output in the console:
Class................: test
Alias................: thisIsAnAlias
Default cluster......: test (id=6)
Supported cluster ids: [6]
@lvca lvca closed this as completed Oct 3, 2014
@lvca lvca added this to the 1.5.0 milestone Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant