| java.lang.Object org.griphyn.vdl.dbschema.DatabaseSchema org.griphyn.vdl.dbschema.InMemorySchema org.griphyn.vdl.dbschema.SingleFileSchema
SingleFileSchema | public class SingleFileSchema extends InMemorySchema (Code) | | This is a class that falls back not on a real database backend, but
rather on an existing Definitions data structure that are read from
file during construction (or rather, during open), and pushed back
into file at destruction (or rather, during close).
While schemas in general should fall back onto drivers to perform
actions, it is rather difficult to create a JDBC interface to file
operations. Thus, the file operations are sneaked into this class.
This class is thought more for experimental use than production.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ See Also: org.griphyn.vdl.dbdriver See Also: org.griphyn.vdl.classes.Definitions See Also: |
Method Summary | |
public void | close() Disassociate from the database driver before finishing. |
close | public void close() throws SQLException(Code) | | Disassociate from the database driver before finishing. In this
case, dump the memory database back to the file that was saved.
Mind that performing this action may throw NullPointerException
in later stages!
|
Methods inherited from org.griphyn.vdl.dbschema.InMemorySchema | public Definitions backdoor()(Code)(Java Doc) public boolean cachingMakesSense()(Code)(Java Doc) public boolean containsDefinition(Definition definition) throws SQLException(Code)(Java Doc) public boolean deleteDefinition(Definition definition) throws SQLException(Code)(Java Doc) public java.util.List deleteDefinition(String namespace, String name, String version, int type) throws SQLException(Code)(Java Doc) public Definition loadDefinition(String namespace, String name, String version, int type) throws SQLException(Code)(Java Doc) public boolean saveDefinition(Definition definition, boolean overwrite) throws SQLException(Code)(Java Doc) protected boolean scalarContainsLfn(Scalar scalar, String lfn, int link)(Code)(Java Doc) public java.util.List searchDefinition(String namespace, String name, String version, int type) throws SQLException(Code)(Java Doc) public java.util.List searchFilename(String lfn, int link) throws SQLException(Code)(Java Doc)
|
Methods inherited from org.griphyn.vdl.dbschema.DatabaseSchema | public boolean cachingMakesSense()(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) public static DatabaseSchema loadSchema(String dbSchemaName, String propertyPrefix, Object[] arguments) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static DatabaseSchema loadSchema(String propertyPrefix) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) protected void longOrNull(PreparedStatement ps, int pos, long l) throws SQLException(Code)(Java Doc) protected String makeNotNull(String s)(Code)(Java Doc) protected void stringOrNull(PreparedStatement ps, int pos, String s) throws SQLException(Code)(Java Doc)
|
|
|