Package com.ibm.di.fc.idml
Class OpenIdMLFC
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.idml.OpenIdMLFC
-
- All Implemented Interfaces:
FunctionInterface,VersionInfoInterface
public class OpenIdMLFC extends Function
This IdML Component creates an IdML book and opens it for writing. It supports both in-memory books (kept in memory, while new data is accumulated to them) and ones that are directly stored to a file. The created IdML can be either delta or refresh one.
-
-
Constructor Summary
Constructors Constructor Description OpenIdMLFC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcheckDbConnection()Checks if with the currently configured IT registry properties, a connection to the IT registry can be established.java.lang.StringgetCdmVersion()Returns the version of the CDM that this Connector is using.java.lang.StringgetDbUsername()This method returns the username for connecting to the IT registry used by the Connector.java.lang.StringgetJdbcDriver()This method returns the JDBC Driver used by the Connector.java.lang.StringgetJdbcUrl()This method returns the JDBC Url used by the Connector.java.lang.StringgetVersion()Version information.voidinitialize(java.lang.Object object)This method is/should be called once after the object has been given its configurationjava.lang.Objectperform(java.lang.Object obj)The FC check if the book it is configured to use is not existent or not opened yet.java.lang.ObjectquerySchema(java.lang.Object input)This method displays the attributes belonging to the MSS class.voidterminate()This method frees any resources allocated by the Component.-
Methods inherited from class com.ibm.di.fc.Function
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, updateSchema, verifyInitialized
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object object) throws java.lang.ExceptionThis method is/should be called once after the object has been given its configuration- Specified by:
initializein interfaceFunctionInterface- Overrides:
initializein classFunction- Parameters:
object- this object provides information to the Function Component needed on initialization- Throws:
java.lang.Exception- An exception is thrown if the initialization fails.
-
perform
public java.lang.Object perform(java.lang.Object obj) throws java.lang.ExceptionThe FC check if the book it is configured to use is not existent or not opened yet. In this case the FC prepares the book and opens it for writing. Otherwise it just logs a message that the book is already prepared for use.- Parameters:
obj- the work entry passed to the FC.- Returns:
- an empty Entry object.
- Throws:
java.lang.Exception- if a problem occurs.
-
terminate
public void terminate() throws java.lang.ExceptionThis method frees any resources allocated by the Component.- Specified by:
terminatein interfaceFunctionInterface- Overrides:
terminatein classFunction- Throws:
java.lang.Exception- an exception is thrown if this method fails
-
getVersion
public java.lang.String getVersion()
Version information.- Returns:
- version information
-
getJdbcUrl
public java.lang.String getJdbcUrl()
This method returns the JDBC Url used by the Connector.- Returns:
- a JDBC Url.
-
getJdbcDriver
public java.lang.String getJdbcDriver()
This method returns the JDBC Driver used by the Connector.- Returns:
- a JDBC Driver.
-
getDbUsername
public java.lang.String getDbUsername()
This method returns the username for connecting to the IT registry used by the Connector.- Returns:
- a database username.
-
querySchema
public java.lang.Object querySchema(java.lang.Object input) throws java.lang.ExceptionThis method displays the attributes belonging to the MSS class. For a source of this meta-data it uses either a local jar file or meta-data calls to an IT registry (depending on its configuration).- Specified by:
querySchemain interfaceFunctionInterface- Overrides:
querySchemain classFunction- Parameters:
input- entry object- Returns:
- null, since this Components has itself populated the Schemas.
- Throws:
java.lang.Exception- if a problem occurs.- See Also:
Entry,Vector
-
checkDbConnection
public java.lang.String checkDbConnection()
Checks if with the currently configured IT registry properties, a connection to the IT registry can be established.- Returns:
- if the connection was established successfully null is returned, otherwise the method returns a String containing the exception's text.
-
getCdmVersion
public java.lang.String getCdmVersion() throws java.lang.ExceptionReturns the version of the CDM that this Connector is using. depending on its configuration this can be either the version of CDM that IT registry is using or the version of the CDM meta-data stored in the locally used jar file.- Returns:
- the CDM version, with format '<version>.<release>.<modifier>'.
- Throws:
java.lang.Exception- if a problem occurs.
-
-