protected Relation getDirectoryRelation() throws ServiceException { try { return browserFacade.relation(RELATION_NAME); } catch (NoSuchRelationException e) { try { return browserFacade.create(relationInfo); } catch (BrowseException e2) { throw new ServiceException(e2); } } }
private synchronized Relation getDirtyRelation() { try { return browserFacade.relation(DIRTY_RELATION_NAME); } catch (NoSuchRelationException ex) { Field sourceField = new Field(DIRTY_RELATION_SOURCE_FIELD, Field.Type.STRING, false, true); try { return browserFacade.create(new RelationInfo(DIRTY_RELATION_NAME, sourceField)); } catch (InvalidNameException ex1) { throw new IllegalArgumentException(ex1); } } }
private synchronized Relation getRefsRelation() { try { return browserFacade.relation(REFS_RELATION_NAME); } catch (NoSuchRelationException ex) { Field sourceField = new Field(REFS_RELATION_SOURCE_FIELD, Field.Type.STRING, false, true); Field positionField = new Field(REFS_RELATION_POSITION_FIELD, Field.Type.INTEGER, false, false); Field targetField = new Field(REFS_RELATION_TARGET_FIELD, Field.Type.STRING, false, true); try { return browserFacade.create( new RelationInfo(REFS_RELATION_NAME, sourceField, positionField, targetField)); } catch (InvalidNameException ex1) { throw new IllegalArgumentException(ex1); } } }