|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.util.SchemaUtils
public class SchemaUtils
Provides methods for working with the Connector/FC schema.
Note: This class is for internal usage only. Any dependency from the
end-user will not be supported. Changes to this class will happen without a
warning.
Constructor Summary | |
---|---|
SchemaUtils()
|
Method Summary | |
---|---|
static void |
addChildSchemaItem(Attribute attr,
SchemaItemConfig sic)
Creates a child schema item in the the schema item config for each Attribute value found in the attribute. |
static SchemaItemConfig |
addSchemaItem(SchemaConfig config,
String name,
String syntax,
Object attr)
Creates a schema item in the the schema config. |
static void |
convertEntryToSchema(Entry entry,
ConnectorConfig cc,
boolean input)
Creates a schema item for each attribute in the entry. |
static void |
convertEntryToSchemaHier(Entry entry,
ConnectorConfig cc,
boolean input)
Creates a schema item for each attribute in the entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaUtils()
Method Detail |
---|
public static void convertEntryToSchema(Entry entry, ConnectorConfig cc, boolean input) throws IgnorableException
entry
- The Entry to use for creating Schema Items.cc
- The ConnectorConfig where the SchemaItem will be addedinput
- If true, add to Input Schema, else Output Schema.
IgnorableException
- if any of the specified schema item names has incorrect
syntax this exception is thrown. It will contain the stack
traces of all occurred problems (if several items had
incorrect names).public static void convertEntryToSchemaHier(Entry entry, ConnectorConfig cc, boolean input) throws IgnorableException
entry
- The Entry to use for creating Schema Items.cc
- The ConnectorConfig where the SchemaItem will be addedinput
- If true, add to Input Schema, else Output Schema.
IgnorableException
- if any of the specified schema item names has incorrect
syntax this exception is thrown. It will contain the stack
traces of all occurred problems (if several items had
incorrect names).public static void addChildSchemaItem(Attribute attr, SchemaItemConfig sic)
attr
- the attribute to be added.sic
- the schema where the attribute will be added.public static SchemaItemConfig addSchemaItem(SchemaConfig config, String name, String syntax, Object attr) throws Exception
config
- the schema config where the new item should be added.name
- the name of the new item.syntax
- the syntax for the schema items.attr
- contains data which is populated to the schema item.
Exception
- if the specified schema item name has incorrect syntax.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |