|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AEP_DictionaryPlugIn
This class is a good possibility and entry point to use the meta datadictionary for own purposes. Implementation might not be
easy at all, but possible resulting functionality can be very powerful.
This is a plug-in application exit point (AEP) to the E4S data dictionary. The datadictionary, represented
by an object of class E4DBDict holds meta information about types, tables and views. Based
on these definitions it can make sense to generate "own" Java classes in a development process. This class
covers the main entry points to hook into the database/table generators.
Plugins are defined by their class name in the system property file, using E4DBSettings.DICT_PLUGINS entries, seperated
by commas. Plugins can be part of the E4S environment (such as E4DBDictPlugInTypeReferenceChange) or
they can be part of an application.
When a E4DBTable, E4DBView or E4DBType is generated then
the associated plugin function (e.g. generateTable_Modify(E4DBTable, E4DBJavaGeneratorPrintStream) will be involved.
Plugins must take care for their own data storage which is part of the .xml meta-datadictionary definition, between the
E4DBXmlDictionaryHandler.XML_TAG_PLUGIN by using the toXml(E4PrintStream, boolean) or #fromXml(String, boolean)
functions.
Plugins get an entry in the data-dictionary functions tree by returning an E4Method using getMethod(), this
does mean that there is at least one functionmodule required additional for user input/output and you must take care to implement and
register such modules.
E4DBDictPlugInTypeReferenceChange,
E4ModuleDictionaryPlugInTypeRefChange| Method Summary | |
|---|---|
void |
changed(E4DBTable table)
This function will be called whenever a table has become changed. |
void |
changed(E4DBType type)
This function will be called whenever a type has become changed. |
void |
changed(E4DBView view)
This function will be called whenever a view has become changed. |
void |
deleted(E4DBTable table)
This function will be called whenever a table has become deleted. |
void |
deleted(E4DBType type)
This function will be called whenever a type has become deleted. |
void |
deleted(E4DBView view)
This function will be called whenever a view has become deleted. |
void |
fromXml(java.lang.StringBuffer xml,
boolean is_e4s_system_dictionary)
Read in specific information from the data-dictionaries XML container which will be done when the E4S application starts up. |
void |
generateTable_Modify(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
|
void |
generateTable_Object(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
|
void |
generateTable_Select(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
|
void |
generateTable_Vector(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
|
void |
generateType(E4DBType type,
E4DBJavaGeneratorPrintStream out)
|
void |
generateView(E4DBView view,
E4DBJavaGeneratorPrintStream out)
|
E4Method |
getMethod()
Provide a method for the plug in that can be selected in the dictionary's menu. |
E4Label_Intf |
getPlugInName()
Provide a name for the plug in that will be shown in the dictionary's menu. |
void |
init(E4DBDict dict)
Initialize by giving the datadictionary information to that plugin |
void |
toXml(E4PrintStream pstr,
boolean is_e4s_system_dictionary)
Write out specific information to the data-dictionaries XML container which will be done when something changes within a table. |
| Method Detail |
|---|
void init(E4DBDict dict)
dict - the data dictionaryE4Label_Intf getPlugInName()
getMethod()E4Method getMethod()
#getName()
void toXml(E4PrintStream pstr,
boolean is_e4s_system_dictionary)
pstr - an opened XML stream#fromXml(String)
void fromXml(java.lang.StringBuffer xml,
boolean is_e4s_system_dictionary)
xml - the ready read-in XML content for this plugin only.#toXml(e4s.util.E4PrintStream)
void changed(E4DBTable table)
throws E4DBException
table - the changed table
E4DBException
void changed(E4DBView view)
throws E4DBException
view - the changed view
E4DBException
void changed(E4DBType type)
throws E4DBException
type - the changed type
E4DBException
void deleted(E4DBTable table)
throws E4DBException
table - the changed table
E4DBException
void deleted(E4DBView view)
throws E4DBException
view - the changed view
E4DBException
void deleted(E4DBType type)
throws E4DBException
type - the changed type
E4DBException
void generateTable_Select(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
void generateTable_Modify(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
void generateTable_Object(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
void generateTable_Vector(E4DBTable table,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
void generateView(E4DBView view,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
void generateType(E4DBType type,
E4DBJavaGeneratorPrintStream out)
throws E4DBException
E4DBException
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||