com.corrspt.xeo.framework
Interface ObjectProvider

All Superinterfaces:
ServiceProvider
All Known Implementing Classes:
DefaultObjectProvider

public interface ObjectProvider
extends ServiceProvider

Provider to Load and Create objects


Method Summary
 netgest.bo.runtime.boObject createObject(netgest.bo.runtime.EboContext ctx, java.lang.String name)
          Creates an instance of a Model given its name
 netgest.bo.runtime.boObject createObjectWithParent(netgest.bo.runtime.EboContext ctx, java.lang.String name, long parentBoui)
          Creates an instance of Model given its name and associate it with a given parent
 netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx, long boui)
          Loads an instance given its identifier
 netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx, java.lang.String boql)
           
 

Method Detail

createObject

netgest.bo.runtime.boObject createObject(netgest.bo.runtime.EboContext ctx,
                                         java.lang.String name)
                                         throws netgest.bo.runtime.boRuntimeException
Creates an instance of a Model given its name

Parameters:
ctx - The context in which to create the instance
name - The name of the model
Returns:
An instance of the model
Throws:
netgest.bo.runtime.boRuntimeException - If an error occurs and the instance cannot be created

createObjectWithParent

netgest.bo.runtime.boObject createObjectWithParent(netgest.bo.runtime.EboContext ctx,
                                                   java.lang.String name,
                                                   long parentBoui)
                                                   throws netgest.bo.runtime.boRuntimeException
Creates an instance of Model given its name and associate it with a given parent

Parameters:
ctx - The context in which to create the instance
name - The name of the parent
parentBoui - The identifier of the parent instance
Returns:
An instance of the model
Throws:
netgest.bo.runtime.boRuntimeException

loadObject

netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx,
                                       long boui)
                                       throws netgest.bo.runtime.boRuntimeException
Loads an instance given its identifier

Parameters:
ctx - The context to load the instance
boui - The identifier of the instance
Returns:
Throws:
netgest.bo.runtime.boRuntimeException

loadObject

netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx,
                                       java.lang.String boql)
                                       throws netgest.bo.runtime.boRuntimeException
Throws:
netgest.bo.runtime.boRuntimeException