}
public OPropertyIndex setIndex(final OIndex iIndex) {
getDatabase().checkSecurity(ODatabaseSecurityResources.SCHEMA, ORole.PERMISSION_UPDATE);
final String cmd = String.format("alter property %s index %s", getFullName(), iIndex.getIdentity());
getDatabase().command(new OCommandSQL(cmd)).execute();
index = new OPropertyIndex(getDatabase(), owner, new String[] { name });
return index;
}