oracle.jbo.uicli.mom
Class JUApplicationDefImpl
java.lang.Object
|
+--oracle.jbo.common.NamedObjectImpl
|
+--oracle.jbo.mom.DefinitionObject
|
+--oracle.jbo.mom.ContainerDefImpl
|
+--oracle.jbo.uicli.mom.JUApplicationDefImpl
- All Implemented Interfaces:
- oracle.jbo.mom.xml.DefPersistable
- public class JUApplicationDefImpl
- extends oracle.jbo.mom.ContainerDefImpl
- implements oracle.jbo.mom.xml.DefPersistable
Fields inherited from class oracle.jbo.mom.ContainerDefImpl |
mChildPackage, mContainees, mDefMgr, mHasJava, mHasSubstitutes, mIsProject, mJavaPackageName, mLazyLoading, mUnresolvedObjects, mXMLFileName, mXMLLoaded, mXMLSectionName |
Fields inherited from class oracle.jbo.mom.DefinitionObject |
mBaseDefObject, mExtendedDefObjects, mObjectResolved |
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable |
XML_STATEMENT |
Methods inherited from class oracle.jbo.mom.ContainerDefImpl |
addChild, addChild, generateUniqueChildName, getChildObjectNames, hasJava, hasSubstitutes, isLazyLoading, isProject, isXMLLoaded, loadContainees, loadFromXML, removeChild, resolveAllReferences, setHasSubstitutes, setIsProject, setXMLName |
Methods inherited from class oracle.jbo.mom.DefinitionObject |
addExtendedDefObject, finishedLoading, getBaseDefObject, getContainerDef, getContainerName, getExtendedDefObjects, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, loadProperties, resolveReferences, setBaseDefObject, setObjectResolved, setParent |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
getFullName, getName, getParent,
getProperties, getPropertiesAsStrings, getPropertiesMap,
getProperty, refreshProperty, setFullName,
setPropertiesMap, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.mom.xml.DefPersistable |
getFullName |
PNAME_TYPE_PROJ
public static final java.lang.String PNAME_TYPE_PROJ
PNAME_TYPE_APPLICATION
public static final java.lang.String PNAME_TYPE_APPLICATION
PNAME_BindingClass
public static final java.lang.String PNAME_BindingClass
PNAME_RootAMDefName
public static final java.lang.String PNAME_RootAMDefName
PNAME_CliApplication
public static final java.lang.String PNAME_CliApplication
JUApplicationDefImpl
public JUApplicationDefImpl(java.lang.String name)
JUApplicationDefImpl
public JUApplicationDefImpl()
findDefObjectNoSub
public static JUApplicationDefImpl findDefObjectNoSub(java.lang.String name)
findDefObject
public static JUApplicationDefImpl findDefObject(java.lang.String name)
getContainerDefNames
protected com.sun.java.util.collections.ArrayList getContainerDefNames(boolean recursive)
- Description copied from class:
oracle.jbo.mom.ContainerDefImpl
- Gets the Names of all Sub-PackageDefs in this Package and
all sub-packages recursively (optionally)
- Overrides:
getContainerDefNames
in class oracle.jbo.mom.ContainerDefImpl
- Following copied from class:
oracle.jbo.mom.ContainerDefImpl
- Parameters:
recursive
- Whether to get the names recursively- Returns:
- Returns the Names of PackageDefs
getRootAMDefName
public java.lang.String getRootAMDefName()
setRootAMDefName
public void setRootAMDefName(java.lang.String rootAMDefName)
getApplicationClassName
public java.lang.String getApplicationClassName()
setApplicationClassName
public void setApplicationClassName(java.lang.String applicationClassName)
setName
public void setName(java.lang.String name)
- Name this object.
- Overrides:
setName
in class oracle.jbo.mom.DefinitionObject
- Parameters:
name
- the name to be given to this object.
getAsProject
public boolean getAsProject()
setAsProject
public void setAsProject(boolean asProject)
getSessionDefNames
public java.util.ArrayList getSessionDefNames()
loadPackages
public void loadPackages()
loadContainees
protected void loadContainees(oracle.jbo.mom.xml.DefElementImpl xmlElement,
boolean sepXMLFiles)
- Overrides:
loadContainees
in class oracle.jbo.mom.ContainerDefImpl
createContainerType
protected oracle.jbo.mom.ContainerDefImpl createContainerType(java.lang.String typeName)
- Overrides:
createContainerType
in class oracle.jbo.mom.ContainerDefImpl
createRootApplication
public JUApplication createRootApplication(java.util.Hashtable context,
java.lang.String name,
java.lang.Object userData,
java.lang.String dbConnectionURL,
java.util.Properties dbConnectionProps)
createAndLoadFromXML
public static JUApplicationDefImpl createAndLoadFromXML(oracle.jbo.mom.xml.DefElementImpl xmlElement)
loadChildrenFromXML
protected void loadChildrenFromXML(oracle.jbo.mom.xml.DefElementImpl xmlElement)
loadFromXMLFile
protected void loadFromXMLFile(oracle.jbo.mom.xml.DefElementImpl xmlElement)
- Overrides:
loadFromXMLFile
in class oracle.jbo.mom.ContainerDefImpl
findSession
public JUSessionDefImpl findSession(java.lang.String name)
removeSession
public void removeSession(java.lang.String name)
addSession
public void addSession(java.lang.String name)
isDirty
public boolean isDirty()
- This method returns if an Object is modified from last save/load
- Specified by:
isDirty
in interface oracle.jbo.mom.xml.DefPersistable
- Returns:
- Returns true if the Object is dirty. Returns false otherwise.
setDirty
public void setDirty(boolean isDirty)
- This method marks the Object dirty
- Specified by:
setDirty
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
isDirty
- If true the Object is marked Dirty.
isNew
public boolean isNew()
- This method returns if this object is previously persisted.
- Specified by:
isNew
in interface oracle.jbo.mom.xml.DefPersistable
- Returns:
- true if the Object is previously persisted. Returns false otherwise.
setNew
public void setNew(boolean isNew)
- This method marks the as previously persisted. By default all objects
are new objects. When the object is persisted first time, that object is
marked as 'not new' object
- Specified by:
setNew
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
isNew
- If true the Object is marked as new object.
writeObject
public void writeObject(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
- Objects should write their persistence output in this method
- Specified by:
writeObject
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
jos
- the Output storage for persistence
writeContents
public void writeContents(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
- Objects should write their persistence output in this method
- Specified by:
writeContents
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
jos
- the Output storage for persistence- Returns:
- Number of Contents returned
writeChildren
public void writeChildren(oracle.jbo.mom.xml.DefWriter jos)
throws oracle.jbo.mom.xml.DefPersistenceException
- Writes the Object's children to the Persistent storage
- Specified by:
writeChildren
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
jos
- the Output storage for persistence
getXMLElementTag
public java.lang.String getXMLElementTag()
- Returns a piece of static info for the type of object this is invoked
upon. Examples are PreparedStatements for insert, update, delete,
and String containing a base the select statement for retrieving
instances of this type through the SQLInputStream
- Specified by:
getXMLElementTag
in interface oracle.jbo.mom.xml.DefPersistable
- Parameters:
type
- Type of the Persistence Statement requested. The type
can be any of the Statement types defined in this interface.- Returns:
- returns the Statement required to store in Persitent Storage.
Incase of XML, it just returns the String. In the case of SQL
a JDBC PreparedStatement is returned.
writeToXMLFile
public void writeToXMLFile(java.io.OutputStream os)
throws java.lang.Exception
setWorkspaceName
public void setWorkspaceName(java.lang.String name)