| java.lang.Object org.griphyn.vdl.directive.Directive org.griphyn.vdl.directive.Define
Method Summary | |
public void | close() Closes the associated database backend and invalidates the schema. | public Set | getDerivationMemory() Returns the remembered derivations. | public int | getNumberRejected() | public int | getNumberSaved() | public boolean | insertVDC(Reader reader) Insert definitions into database, if a definition already
exists in the database, then it is rejected. | public boolean | insertVDC(Reader reader, Writer writer) Insert definitions into database, if a definition already
exists in the database, then it is rejected. | public void | setDatabaseSchema(DatabaseSchema dbs) | public void | setDerivationMemory(boolean on) Toggles the remembering of derivations that were processed. | public boolean | store(Definition d) This method implements the interface defined in DefinitionHandler
to save definition to database backend.
Parameters: d - is the Definition that is ready to be stored. | public boolean | updateVDC(Reader reader) Insert definitions into database, if a definition already
exists in the database, then overwrite it. | public boolean | updateVDC(Reader reader, Writer writer) Insert definitions into database, if a definition already
exists in the database, then overwrite it. | public boolean | updateVDC(Reader reader, Writer writer, boolean overwrite) Insert definitions into database, if a definition already
exists in the database, then either update the definition or
reject the definition. |
close | public void close() throws SQLException(Code) | | Closes the associated database backend and invalidates the schema.
|
getDerivationMemory | public Set getDerivationMemory()(Code) | | Returns the remembered derivations.
all remembered derivations, an empty set if nonewere found, or null if remembering was off. See Also: Define.setDerivationMemory(boolean) |
getNumberRejected | public int getNumberRejected()(Code) | | return the number of rejected definitions
|
getNumberSaved | public int getNumberSaved()(Code) | | return the number of successfully saved definitions
|
insertVDC | public boolean insertVDC(Reader reader)(Code) | | Insert definitions into database, if a definition already
exists in the database, then it is rejected. This method
does not keep track of rejected ones.
Parameters: reader - the reader to vdlx source true if insersion is successful |
insertVDC | public boolean insertVDC(Reader reader, Writer writer)(Code) | | Insert definitions into database, if a definition already
exists in the database, then it is rejected. This method
keeps track of rejected ones.
Parameters: reader - the reader to vdlx source Parameters: writer - writer to output the rejected definitions true if insersion is successful |
setDatabaseSchema | public void setDatabaseSchema(DatabaseSchema dbs)(Code) | | set database schema
Parameters: dbs - the database schema instance |
setDerivationMemory | public void setDerivationMemory(boolean on)(Code) | | Toggles the remembering of derivations that were processed.
Parameters: on - is true to enable derivation memory See Also: Define.getDerivationMemory() |
store | public boolean store(Definition d)(Code) | | This method implements the interface defined in DefinitionHandler
to save definition to database backend.
Parameters: d - is the Definition that is ready to be stored. true, if new version was stored and database modified,false, if the definition was rejected for any reason. |
updateVDC | public boolean updateVDC(Reader reader)(Code) | | Insert definitions into database, if a definition already
exists in the database, then overwrite it. This method
does not keep track of overwritten ones.
Parameters: reader - the reader to vdlx source true if update is successful |
updateVDC | public boolean updateVDC(Reader reader, Writer writer)(Code) | | Insert definitions into database, if a definition already
exists in the database, then overwrite it. This method
keeps track of overwritten ones.
Parameters: reader - the reader to vdlx source Parameters: writer - writer to output the overwritten definitions true if update is successful |
updateVDC | public boolean updateVDC(Reader reader, Writer writer, boolean overwrite)(Code) | | Insert definitions into database, if a definition already
exists in the database, then either update the definition or
reject the definition.
Parameters: reader - the reader to vdlx source Parameters: writer - writer to output the overwritten/rejected definitions true if update is successful |
|
|