Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


oracle.odi.domain.project
Class OdiSKM

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.AbstractRepositoryEntity
          extended by oracle.odi.domain.support.AbstractOdiEntity
              extended by oracle.odi.domain.project.OdiSKM

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IExportable, IOdiEntity, IRepositoryEntity, IWorkDevelopmentOdiEntity, ISmartExportable

public final class OdiSKM
extends oracle.odi.domain.support.AbstractOdiEntity
implements IWorkDevelopmentOdiEntity, IExportable, ISmartExportable

Represents the Service Knowledge Module.

SKM (Service Knowledge Modules) are used to generate the code required for creating data services. These KMs are used in data models.

This is not a standard ODI KM and does not extend from OdiProcedure nor OdiKM. An OdiSKM has an ID that can be obtained from getSKMId() method call. This ID is assigned when an OdiSKM is stored into design time repository.

This ID represents the identity of an OdiSKM. Equals / hashCode method are implemented according this identity.

An OdiSKM life cycle is similar to the one of an OdiKM. It begins when a user create one from an OdiProject using method OdiProject#addSKM(String), or when it is imported from external XML file. Life cycle ends when OdiSKM is removed from design time repository (i.e. IOdiEntityManager.remove()), or when enclosing OdiProject is removed from design time repository.

Since an instance of OdiSKM can be exported and imported. It implements the interface IExportable.

Since:
11.1.1.3.0
See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.odi.domain.support.AbstractOdiEntity
STARTING_INTERNAL_VERSION

 

Constructor Summary
OdiSKM(OdiProject pProject, java.lang.String pName)
          Constructor that sets the parent project and the name of the KM

 

Method Summary
 int getChecksum()
          Return the checksum value stored for this KM.
 java.lang.String getCommandString()
          Get the command string for this SKM.
 int getCustomizationStatus()
          Returns the status of a KM based on its checksum.
 java.lang.String getDescription()
          Returns the description of the SKM.
 java.io.Serializable getInternalId()
          Provides a common getter for the persistence layer to obtain an identity, irrespective of the actual type of identity used.
 java.lang.String getKMBuildNumber()
          Return the build number stored for this KM.
 java.lang.String getName()
          Gets the name of the SKM.
 OdiProject getProject()
          Returns the parent OdiProject.
 IRepositoryEntity getSecurityContainer()
          Define a generic way to retrieve container for entities.
 java.lang.Number getSKMId()
          Returns the SKMId value.
 java.lang.String getSrcTargetTechnology()
          Return the source technology
 java.lang.String getTrgTargetTechnology()
          Return the target technology
 boolean isGlobal()
          Returns whether this OdiSKm has global scope, or not (i.e.
 void setChecksum(int pChecksum)
          Sets this KM's checksum
 void setCommandString(java.lang.String pCmd)
          Set the command string for this SKM.
 void setDescription(java.lang.String pDescription)
          Sets the description of the procedure.
 void setKMBuildNumber(java.lang.String pBuildNumber)
          Sets build number for this KM.
 void setName(java.lang.String pName)
          Sets the name of the procedure.
 void setSrcTargetTechnology(java.lang.String pSrcTechnology)
          Sets the source technology
 void setTrgTargetTechnology(java.lang.String pTrgTechnology)
          Sets the target technology

 

Methods inherited from class oracle.odi.domain.support.AbstractOdiEntity
equals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, hashCode, isInstanceLevelSecurityNeeded, isNew, toString

 

Methods inherited from class oracle.odi.domain.support.BusinessObject
clone

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.odi.domain.IOdiEntity
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded

 

Constructor Detail

OdiSKM

public OdiSKM(OdiProject pProject,
              java.lang.String pName)
Constructor that sets the parent project and the name of the KM
Parameters:
pProject - owning project, null is setting global scope on the SKM
pName - the skm name
Throws:
DomainRuntimeException - if project is null or if name is null, empty or longer than NAME_MAX_LENGTH (400 characters)
Since:
11.1.1.5.0

Method Detail

getDescription

public java.lang.String getDescription()
Returns the description of the SKM.
Returns:
a String representing the description
See Also:
setDescription(java.lang.String)

getKMBuildNumber

public java.lang.String getKMBuildNumber()
Return the build number stored for this KM.

setKMBuildNumber

public void setKMBuildNumber(java.lang.String pBuildNumber)
Sets build number for this KM.
Parameters:
pBuildNumber -

getChecksum

public int getChecksum()
Return the checksum value stored for this KM.

setChecksum

public void setChecksum(int pChecksum)
Sets this KM's checksum
Parameters:
pChecksum -

getSrcTargetTechnology

public java.lang.String getSrcTargetTechnology()
Return the source technology

setSrcTargetTechnology

public void setSrcTargetTechnology(java.lang.String pSrcTechnology)
Sets the source technology
Parameters:
pSrcTechnology -

getTrgTargetTechnology

public java.lang.String getTrgTargetTechnology()
Return the target technology

setTrgTargetTechnology

public void setTrgTargetTechnology(java.lang.String pTrgTechnology)
Sets the target technology
Parameters:
pTrgTechnology -

setDescription

public void setDescription(java.lang.String pDescription)
Sets the description of the procedure.
Parameters:
pDescription - a String representing the description
See Also:
getDescription()

getName

public java.lang.String getName()
Gets the name of the SKM.
Specified by:
getName in interface IOdiEntity
Overrides:
getName in class oracle.odi.domain.support.AbstractOdiEntity
Returns:
the skm name
See Also:
setName(java.lang.String)

setName

public void setName(java.lang.String pName)
Sets the name of the procedure. Can't be null or empty.
Parameters:
pName - the skm name
Throws:
DomainRuntimeException - if the given name is null/empty or is greater than 400 characters
See Also:
getName()

getProject

public OdiProject getProject()
Returns the parent OdiProject.
Returns:
a OdiProject representing the owning project

getCommandString

public java.lang.String getCommandString()
Get the command string for this SKM.
Returns:
command string (null if undefined)
See Also:
setCommandString(java.lang.String)

setCommandString

public void setCommandString(java.lang.String pCmd)
Set the command string for this SKM.
Parameters:
pCmd - SKM command
See Also:
getCommandString()

isGlobal

public boolean isGlobal()
Returns whether this OdiSKm has global scope, or not (i.e. whether there is a owning OdiProject or not).
Returns:
true if this skm is global, false otherwise

getInternalId

public java.io.Serializable getInternalId()
Description copied from interface: IRepositoryEntity
Provides a common getter for the persistence layer to obtain an identity, irrespective of the actual type of identity used.

Typically a subclass will delegate to a public SomePrimitiveWrapper getId() method. The necessity for the getInternalId() abstract method is solely because the persistence layer needs a way of obtaining the identity irrespective of the actual identity implementation choice.

Returning null from this method will indicate the object has never been saved. This will likely be relied on by some DAO implementations.

Specified by:
getInternalId in interface IRepositoryEntity
Returns:
the persistence identity of this instance

getSKMId

public java.lang.Number getSKMId()
Returns the SKMId value.
Returns:
a Number object representing the id of this SKM

getSecurityContainer

public IRepositoryEntity getSecurityContainer()
Description copied from interface: IRepositoryEntity
Define a generic way to retrieve container for entities.
Specified by:
getSecurityContainer in interface IRepositoryEntity
Returns:
container entity

getCustomizationStatus

public int getCustomizationStatus()
Returns the status of a KM based on its checksum.
Returns:
If it is a user created KM, return 0. If it is as provided by Oracle teams, return 1. If it has been modified, return 2.

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.