org.equanda.util.script
Class DMExtension

java.lang.Object
  extended by org.equanda.util.script.DMExtension

public class DMExtension
extends Object

DMExtension, FScript extension to access a equanda genereated domain model DMObject(table[,om]) get home object DMSelector(table[,om]) get selector bean DMCreate(name[,om]) create a new instance of given class DMBoolean(value) get boolean value cfr given object (real boolean) DMTrue boolean true DMFalse boolean false DMDate(value) get a date value from a JJJMMDD string DMTimestamp(value) get timestamp value from a string (YYYYMMDDHHMM or YYYYMMDDHHMMSS.SSS) DMValue(value[,dm]) JNDI lookup for a string in the given data model

Author:
Joachim Van der Auwera

Nested Class Summary
static interface DMExtension.ExceptionListener
          ExceptionListener allows proper handling of EquandaPersistenceError
 
Constructor Summary
DMExtension()
           
DMExtension(IniFile ini, String prefix, ArrayList names)
          Create an DMExtension.
 
Method Summary
 void addExtension(murlen.util.fscript.FSFastExtension ext)
          add the relevant extensions for fast Fscript access
 void setExceptionListener(DMExtension.ExceptionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMExtension

public DMExtension()

DMExtension

public DMExtension(IniFile ini,
                   String prefix,
                   ArrayList names)
Create an DMExtension. This requires an .ini file with the relevant definitions for the equanda generated data models. A list of data model names is given and the settings for each are found in the .ini file in a section with given prefix and the name. These settings are used to build the InitialContext for retrieval of objects via JNDI. The prefix for the namespace is given using the "NameSpace" value in the relevant section of the .ini file. The prefix for the classname (package with ending dot) is specified in "ClassPrefix" in the section.

Parameters:
ini - .ini file with all de data
prefix - prefix for the section names
names - names
Method Detail

addExtension

public void addExtension(murlen.util.fscript.FSFastExtension ext)
add the relevant extensions for fast Fscript access

Parameters:
ext - FSFastExtension to bind into

setExceptionListener

public void setExceptionListener(DMExtension.ExceptionListener listener)


Copyright © 2007-2009. All Rights Reserved.