com.sage.orion.sdata.servlet.swtservice
Class GroupedKindSchema

java.lang.Object
  extended by com.sage.orion.sdata.servlet.swtservice.GroupedKindSchema
All Implemented Interfaces:
SDataSchema

public final class GroupedKindSchema
extends java.lang.Object
implements SDataSchema

The GroupedKindSchema class produces a schema for those resource kinds that add virtual grouping to underlying flat JDBC table resource kinds.

The schema simply appends the appropriate type and structure entries of the subclass to the schema of the superclass


Constructor Summary
GroupedKindSchema(SDataSchema superSchema, java.lang.String subName, java.lang.String... fields)
          constructs an instance of the GroupedKindSchema class using the schema of the superclass and the name and field names of the subclass
 
Method Summary
 org.w3c.dom.Element getAsElement(org.w3c.dom.Document document)
          returns a schema element that expresses the schema.
 java.lang.String getVersion()
          a version that identifies the schema or null if there is none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupedKindSchema

public GroupedKindSchema(SDataSchema superSchema,
                         java.lang.String subName,
                         java.lang.String... fields)
constructs an instance of the GroupedKindSchema class using the schema of the superclass and the name and field names of the subclass

Parameters:
superSchema - the schema of the superclass that actually holds the data
subName - the name of the resource kind that forms the virtual header
fields - a variable length list of field names. All fields are taken to be read-only string fields
Method Detail

getAsElement

public org.w3c.dom.Element getAsElement(org.w3c.dom.Document document)
returns a schema element that expresses the schema.

The schema returned is intended either to be made the content of a document or added to a link element etc.

Specified by:
getAsElement in interface SDataSchema
Parameters:
document - the element to which to add itself

getVersion

public java.lang.String getVersion()
a version that identifies the schema or null if there is none

Specified by:
getVersion in interface SDataSchema


Copyright © 2011 Sage Software, Inc. All rights reserved.