|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.persistence.proxy.RDBMSStorage
public class RDBMSStorage
INTERNAL: A storage definition implementation for relational databases.
Field Summary | |
---|---|
protected Map |
qcmap
|
Constructor Summary | |
---|---|
RDBMSStorage()
INTERNAL: Creates a storage definition which gets its settings from system variables. |
|
RDBMSStorage(Map properties)
INTERNAL: Creates a storage definition that reads its settings from the specified properties. |
|
RDBMSStorage(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(String name,
RDBMSAccess access,
ObjectAccessIF oaccess,
AccessRegistrarIF registrar)
|
TransactionIF |
createTransaction(boolean readonly)
INTERNAL: Creates a new storage access instance. |
IdentityIF |
generateIdentity(Object type)
|
ConnectionFactoryIF |
getConnectionFactory(boolean readonly)
|
String |
getDatabase()
INTERNAL: Returns the database type. |
Object |
getHelperObject(int identifier,
IdentityIF namespace)
INTERNAL: Returns the shared caches. |
protected InputStream |
getInputStream(String property,
String filename)
|
RDBMSMapping |
getMapping()
INTERNAL: Returns the optimized object relational mapping declaration. |
String[] |
getPlatforms()
INTERNAL: Returns the database platforms. |
Map |
getProperties()
INTERNAL: Gets the properties held by the storage. |
String |
getProperty(String property)
INTERNAL: Gets the value of the specified storage property. |
String |
getProperty(String property,
String default_value)
|
protected QueryDescriptor |
getQueryDescriptor(String name)
|
String |
getQueryString(String name)
|
SQLGeneratorIF |
getSQLGenerator()
|
StorageCacheIF |
getStorageCache()
INTERNAL: Returns the shared storage cache, if any. |
protected void |
init(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(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 Map qcmap
Constructor Detail |
---|
public RDBMSStorage() throws IOException
IOException
public RDBMSStorage(String propfile) throws IOException
IOException
public RDBMSStorage(Map properties) throws IOException
IOException
Method Detail |
---|
protected InputStream getInputStream(String property, String filename) throws FileNotFoundException
FileNotFoundException
protected void init(Map properties) throws IOException
IOException
public RDBMSMapping getMapping()
StorageIF
getMapping
in interface StorageIF
public IdentityIF generateIdentity(Object type)
public Map getProperties()
StorageIF
getProperties
in interface StorageIF
public String getProperty(String property)
StorageIF
getProperty
in interface StorageIF
public String getProperty(String property, 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 String getDatabase()
public String[] getPlatforms()
public void close()
StorageIF
close
in interface StorageIF
public void notifyCluster()
StorageIF
notifyCluster
in interface StorageIF
public Object getHelperObject(int identifier, IdentityIF namespace)
StorageIF
getHelperObject
in interface StorageIF
public String getQueryString(String name)
protected QueryDescriptor getQueryDescriptor(String name)
public QueryIF createQuery(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(Writer out, TopicMapReferenceIF reference, IdentityIF namespace, boolean dumpCaches) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |