com.corrspt.xeo.framework
Class DefaultObjectProvider
java.lang.Object
com.corrspt.xeo.framework.DefaultObjectProvider
- All Implemented Interfaces:
- ObjectProvider, ServiceProvider
public class DefaultObjectProvider
- extends java.lang.Object
- implements ObjectProvider
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultObjectProvider
public DefaultObjectProvider()
createObject
public netgest.bo.runtime.boObject createObject(netgest.bo.runtime.EboContext ctx,
java.lang.String name)
throws netgest.bo.runtime.boRuntimeException
- Description copied from interface:
ObjectProvider
- Creates an instance of a Model given its name
- Specified by:
createObject
in interface ObjectProvider
- Parameters:
ctx
- The context in which to create the instancename
- 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
public netgest.bo.runtime.boObject createObjectWithParent(netgest.bo.runtime.EboContext ctx,
java.lang.String name,
long parentBoui)
throws netgest.bo.runtime.boRuntimeException
- Description copied from interface:
ObjectProvider
- Creates an instance of Model given its name and associate it
with a given parent
- Specified by:
createObjectWithParent
in interface ObjectProvider
- Parameters:
ctx
- The context in which to create the instancename
- The name of the parentparentBoui
- The identifier of the parent instance
- Returns:
- An instance of the model
- Throws:
netgest.bo.runtime.boRuntimeException
loadObject
public netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx,
long boui)
throws netgest.bo.runtime.boRuntimeException
- Description copied from interface:
ObjectProvider
- Loads an instance given its identifier
- Specified by:
loadObject
in interface ObjectProvider
- Parameters:
ctx
- The context to load the instanceboui
- The identifier of the instance
- Returns:
-
- Throws:
netgest.bo.runtime.boRuntimeException
loadObject
public netgest.bo.runtime.boObject loadObject(netgest.bo.runtime.EboContext ctx,
java.lang.String boql)
throws netgest.bo.runtime.boRuntimeException
- Specified by:
loadObject
in interface ObjectProvider
- Throws:
netgest.bo.runtime.boRuntimeException