|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.RDBMSStorage
public class RDBMSStorage
INTERNAL: A storage definition implementation for relational databases.
Field Summary | |
---|---|
protected java.util.Map |
qcmap
|
Constructor Summary | |
---|---|
RDBMSStorage()
INTERNAL: Creates a storage definition which gets its settings from system variables. |
|
RDBMSStorage(java.util.Map properties)
INTERNAL: Creates a storage definition that reads its settings from the specified properties. |
|
RDBMSStorage(java.lang.String propfile)
INTERNAL: Creates a storage definition that reads its settings from the specified property file. |
Method Summary | |
---|---|
void |
clearCache()
|
void |
clearCache(IdentityIF namespace)
|
void |
close()
INTERNAL: Closes the storage definition, which allows it to free its resources. |
StorageAccessIF |
createAccess(boolean readonly)
|
QueryIF |
createQuery(JDOQuery jdoquery,
RDBMSAccess access,
ObjectAccessIF oaccess,
AccessRegistrarIF registrar,
boolean lookup_identities)
|
QueryIF |
createQuery(java.lang.String name,
RDBMSAccess access,
ObjectAccessIF oaccess,
AccessRegistrarIF registrar)
|
TransactionIF |
createTransaction(boolean readonly)
INTERNAL: Creates a new storage access instance. |
IdentityIF |
generateIdentity(java.lang.Object type)
|
ConnectionFactoryIF |
getConnectionFactory(boolean readonly)
|
java.lang.String |
getDatabase()
INTERNAL: Returns the database type. |
java.lang.Object |
getHelperObject(int identifier,
IdentityIF namespace)
INTERNAL: Returns the shared caches. |
protected java.io.InputStream |
getInputStream(java.lang.String property,
java.lang.String filename)
|
RDBMSMapping |
getMapping()
INTERNAL: Returns the optimized object relational mapping declaration. |
java.lang.String[] |
getPlatforms()
INTERNAL: Returns the database platforms. |
java.util.Map |
getProperties()
INTERNAL: Gets the properties held by the storage. |
java.lang.String |
getProperty(java.lang.String property)
INTERNAL: Gets the value of the specified storage property. |
java.lang.String |
getProperty(java.lang.String property,
java.lang.String default_value)
|
protected QueryDescriptor |
getQueryDescriptor(java.lang.String name)
|
java.lang.String |
getQueryString(java.lang.String name)
|
SQLGeneratorIF |
getSQLGenerator()
|
StorageCacheIF |
getStorageCache()
INTERNAL: Returns the shared storage cache, if any. |
protected void |
init(java.util.Map properties)
INTERNAL: Method shared by constructors to properly initialize members. |
boolean |
isSharedCache()
INTERNAL: Returns true if shared cache is enabled. |
void |
notifyCluster()
INTERNAL: Notify cluster that transaction has been committed, so that batched cluster events can be broadcasted. |
void |
writeReport(java.io.Writer out,
TopicMapReferenceIF reference,
IdentityIF namespace,
boolean dumpCaches)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map qcmap
Constructor Detail |
---|
public RDBMSStorage() throws java.io.IOException
java.io.IOException
public RDBMSStorage(java.lang.String propfile) throws java.io.IOException
java.io.IOException
public RDBMSStorage(java.util.Map properties) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected java.io.InputStream getInputStream(java.lang.String property, java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected void init(java.util.Map properties) throws java.io.IOException
java.io.IOException
public RDBMSMapping getMapping()
StorageIF
getMapping
in interface StorageIF
public IdentityIF generateIdentity(java.lang.Object type)
public java.util.Map getProperties()
StorageIF
getProperties
in interface StorageIF
public java.lang.String getProperty(java.lang.String property)
StorageIF
getProperty
in interface StorageIF
public java.lang.String getProperty(java.lang.String property, java.lang.String default_value)
public StorageAccessIF createAccess(boolean readonly)
public TransactionIF createTransaction(boolean readonly)
StorageIF
createTransaction
in interface StorageIF
public boolean isSharedCache()
StorageIF
isSharedCache
in interface StorageIF
public StorageCacheIF getStorageCache()
StorageIF
getStorageCache
in interface StorageIF
public java.lang.String getDatabase()
public java.lang.String[] getPlatforms()
public void close()
StorageIF
close
in interface StorageIF
public void notifyCluster()
StorageIF
notifyCluster
in interface StorageIF
public java.lang.Object getHelperObject(int identifier, IdentityIF namespace)
StorageIF
getHelperObject
in interface StorageIF
public java.lang.String getQueryString(java.lang.String name)
protected QueryDescriptor getQueryDescriptor(java.lang.String name)
public QueryIF createQuery(java.lang.String name, RDBMSAccess access, ObjectAccessIF oaccess, AccessRegistrarIF registrar)
public QueryIF createQuery(JDOQuery jdoquery, RDBMSAccess access, ObjectAccessIF oaccess, AccessRegistrarIF registrar, boolean lookup_identities)
public SQLGeneratorIF getSQLGenerator()
public ConnectionFactoryIF getConnectionFactory(boolean readonly)
public void clearCache()
public void clearCache(IdentityIF namespace)
public void writeReport(java.io.Writer out, TopicMapReferenceIF reference, IdentityIF namespace, boolean dumpCaches) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |