hierarchy

Hierarchy level in UINavigationController in iPhone

Is it possible to decide the number of hierarchical level dynamically in UINavigationController in iPhone ? Actually, in my application I have to display hierarchical data but I don't know the number of levels at the coding time. The number of levels can be increase or decrease. The exact number of levels will known to me at the time of ...

Class hierarchy in C#: how to do it correctly? ('friend' keyword wanted)

I have a class: public class MyClass { private List<string> folderList; // .... a lot of useful public methods here..... } Everything is fine. The list of folders is encapsulated, the class is accessible through public methods. OK. Now I need an "options" form that allows a user to choose folders for MyClass. There is a catc...

Should I put my XML nodes in container elements?

I'm creating an XML hierarchy that looks something like this: element A 0+ element B 0+ element C (has PCDATA) (more complex hierarchy below this one, not really relevant) 0+ element D 0+ element E 0+ element F 0-1 element G (has PCDATA) 0-1 element H (has PCDATA) As a result, it's starting to look a little "crow...

Move separator elements upwards in xml hierarchy

I have an xml document with separators deep down in the hierarchy. <A> <B> <C id='1'/> <separator/> <C id='2'/> </B> <B> <C id='3'/> <separator/> </B> <B> <C id='4'/> </B> </A> I want to move the separators upwards, keeping elements in order. So the desired output is <A> <B> <C id='1'/> </B...

How should I deal with object hierarchies in a RESTful API?

Hi I am currently designing the API for an existing PHP application, and to this end am investigating REST as a sensible architectural approach. I believe I have a reasonable grasp of the key concepts, but I'm struggling to find anybody that has tackled object hierarchies and REST. Here's the problem... In the [application] business ...

What is the best way to setup hierarchy in sql server 2005?

Hi all, I am trying to setup an hierarchial structure for company. I was using SQL Server 2008 and used hierarchy id to set it up. But now I need to move back to SQL Server 2005...and "just do it"... Anyways I thought of setting it up this simple way - Id | ParentId | CompanyName | Desc where ParentId is a int field which will stor...

SSAS : Parent-Child Hierarchy

Parent-Child Hierarchy What's the best way to represent a Parent-Child hierarchy in the Cube? I've seen the Usage that can be applied as Parent. I've applied this, for example, ID ParentID CompanyName Rank 1 1 AAA Excellent 2 1 BBB Good 3 1 CCC Ok 4 1 DDD None I can link the ID and Pa...

Java - handling hierarchies

Hello: I have an app where in a thread hierarchy (persisted entity) is modelled as follows (note that this could be a deeply nested hierarchy): Thread { private key; private rootKey; private parentKey; .. getters .. .. setters .. } I have a DTO which has the following structure ThreadDTO { private key; private r...

How to mix inheritance strategies with JPA annotations and Hibernate?

According to the Hibernate Reference Documentation it should be possible to mix different inheritance mapping strategies when using Hibernate's XML-Metadata: http://docs.jboss.org/hibernate/stable/core/reference/en/html/inheritance.html#inheritance-mixing-tableperclass-tablepersubclass However, the corresponding section of the Hibernate...

How to view hierarchical package structure in Eclipse package explorer

OK I have a feeling I'm doing something that's not "accepted practice" but here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class Package.SubPackageFooBarPackage.OtherSubPackagePackage.OtherSub...

Does .Net / C#'s speed degrade with increased field depth?

Is there any execution speed difference between the following two lines of code? I cannot tell from looking at the IL: int x = MainObject.Field1; int x = MainObject.Public.Fields.Field1; I know from Delphi (native code), there is no difference. ...

ldap addressbook

I want to create a ldap address book that utilizes a hierarchy to provide some of the information that would normally be filled for each person. so it would be laid out like this: ou: addressbook o: Toy Company fax: 1-888-555-4646 postalCode: H0H 0H0 l: North Pole ou: reindeer cn: Rudolph...

Display hiarchy of n levels in cascading drop down lists or other smart solution that isn't TreeView

Well the title basically explains the problem pretty good, I have a hierarchy of n-level depth that I would like to display in a number or cascading dropdown lists. When making a choice in the first dropdown list all child nodes for that choice should be populated in another dropdown list next to the first, and for every choice in that s...

How do I view the hierarchy of which Unit USES another? (Delphi)

There is a large project, and I need to see the hierarchy of Units which each file references in it's USES clause. ex. Project Source (program.dpk) HelperUnit Forms ThirdPartyUnit MyUtils MyConsts MyDownload TPShellShoc...

What's the best C# pattern for implementing a hierarchy with an enum?

I'm implementing value types which represents a distance (or length). There's an enum that represents the different units of measure, eg: public enum DistanceUnit { Millimeter, Centimeter, Meter, Kilometer, Inch, Foot, Yard, Mile }; These measurements fall into one of two systems - either metric or imperial. ...

User defined hierarchy in an MDX query

Following on from this question regarding calculating a member I have 2 calculated members defined as: MEMBER [Asset].[Class].[Fixed Income Derivatives] AS AGGREGATE( { [Asset].[Class].&[Fixed Income], [Asset].[Sub Class].&[Derivatives] }, [Measures].CurrentMember ) MEMBER [Asset].[Class].[Fixed Income Non-deri...

SQL - ordering a common table expression

Using this sample table: drop table Population CREATE TABLE [dbo].[Population]( [PersonId] [int] NOT NULL, [Name] [varchar](50) NOT NULL, [MotherId] [int] NULL, [FatherId] [int] NULL ) ON [PRIMARY] insert Population (PersonId, [Name], MotherId, FatherId) values (1, 'Baby', 2, 3) insert Population (PersonId, [Name], Mothe...

I have a table view with levels of hierarchy

once the cell in the last table view is selected the detailview comes into play. Well I need each cell in the last levels of hierarchy to load a different detailview. The detailview is a UIWebView so in other words I would like each cell to load a different url. I have a plist which populates my table view cells. Can I reference the url'...

Hierarchy problem

i have a table which contains the following fields •Supervisorid •Empid This is just like a referral program. A guy can refer 2 guys under him i.e, 3 is referring three guys namely 4 5 similarly 4 is referring 9 10 and 11 likewise 8 is referring 12, 13 it goes like this.. I want a query to get all EmpId under Supervisor 3 ...

Fluent NHibernate Hierarchical Data Question (One Table Per Hierarchy)

I am having some trouble depicting a DataBase Setup in NH. I have the following Classes: public class BaseData { public virtual long Id { get; set; } } public class ExtendedData : BaseData { public virtual string Name { get; set; } } The backing tables look like the following: BaseTable -------...