|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.persist.JDBCDataStore | +--gate.persist.OracleDataStore
Fields inherited from interface gate.DataStore |
DATASTORE_FEATURE_NAME, LR_ID_FEATURE_NAME |
Constructor Summary | |
OracleDataStore()
default constructor - just call the super constructor (may change in the future) |
Method Summary | |
void |
close()
Close the data store. |
void |
create()
Create a new data store. |
boolean |
equals(Object obj)
checks if two databases are identical |
List |
findLrIds(List constraints)
Get a list of LRs that satisfy some set or restrictions |
List |
findLrIds(List constraints,
String lrType)
Get a list of LRs IDs that satisfy some set or restrictions and are of a particular type |
List |
findLrIds(List constraints,
String lrType,
List orderByConstraints,
int limitcount)
Get a list of LRs IDs that satisfy some set or restrictions and are of a particular type |
long |
getLrsCount(List constraints,
String lrType)
Return count of LRs which matches the constraints. |
String |
getStorageUrl()
Get the URL for the underlying storage mechanism. |
boolean |
isAutoSaving()
Get the autosaving behaviour of the LR. |
boolean |
lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store. |
void |
open()
Open a connection to the data store. |
static Object |
readBLOB(Blob src)
reads the content of the specified BLOB object and returns the object contained. |
static void |
readCLOB(Clob src,
StringBuffer dest)
reads the content of a CLOB into the specified StringBuffer |
void |
setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store. |
void |
setSecurityInfo(LanguageResource lr,
SecurityInfo si)
set security information for LR . |
void |
setStorageUrl(String storageUrl)
Set the URL for the underlying storage mechanism. |
Long |
timestamp()
Gets a timestamp marker that will be used for all changes made in the database so that subsequent calls to deleteSince() could restore (partly) the database state as it was before the update. |
void |
unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store. |
static void |
writeBLOB(Object src,
Blob dest)
writes the specified object into the BLOB NOTE: the object should be serializable |
static void |
writeCLOB(StringBuffer src,
Clob dest)
writes the content of a StringBuffer into the specified CLOB object |
static void |
writeCLOB(String src,
Clob dest)
writes the content of a String into the specified CLOB object |
Methods inherited from class gate.persist.JDBCDataStore |
addDatastoreListener, adopt, beginTrans, canReadLR, canWriteLR, commitTrans, datastoreClosed, datastoreCreated, datastoreOpened, delete, delete, deleteSince, getComment, getDatabaseID, getIconName, getLr, getLrIds, getLrName, getLrNames, getLrTypes, getName, getSecurityInfo, getSession, removeDatastoreListener, resourceLoaded, resourceRenamed, resourceUnloaded, rollbackTrans, setName, setSession, sync |
Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Constructor Detail |
public OracleDataStore()
Method Detail |
public void setStorageUrl(String storageUrl) throws PersistenceException
setStorageUrl
in class JDBCDataStore
public String getStorageUrl()
getStorageUrl
in class JDBCDataStore
public void create() throws PersistenceException, UnsupportedOperationException
create
in class JDBCDataStore
public void open() throws PersistenceException
open
in class JDBCDataStore
public void close() throws PersistenceException
close
in class JDBCDataStore
public void setAutoSaving(boolean autoSaving) throws UnsupportedOperationException, PersistenceException
setAutoSaving
in class JDBCDataStore
public boolean isAutoSaving()
isAutoSaving
in class JDBCDataStore
public Long timestamp() throws PersistenceException
timestamp
in class JDBCDataStore
public static void readCLOB(Clob src, StringBuffer dest) throws SQLException, IOException
public static void writeCLOB(String src, Clob dest) throws SQLException, IOException
public static void writeCLOB(StringBuffer src, Clob dest) throws SQLException, IOException
public static Object readBLOB(Blob src) throws SQLException, IOException, ClassNotFoundException
public static void writeBLOB(Object src, Blob dest) throws SQLException, IOException
public void setSecurityInfo(LanguageResource lr, SecurityInfo si) throws PersistenceException, SecurityException
public boolean equals(Object obj)
equals
in class Object
NOTE: the same database may be represented by different OracleDataStore instances
but the IDs will be the same
public boolean lockLr(LanguageResource lr) throws PersistenceException, SecurityException
public void unlockLr(LanguageResource lr) throws PersistenceException, SecurityException
public List findLrIds(List constraints) throws PersistenceException
findLrIds
in class JDBCDataStore
constraints
- list of Restriction objectspublic List findLrIds(List constraints, String lrType) throws PersistenceException
findLrIds
in class JDBCDataStore
constraints
- list of Restriction objectslrType
- type of Lrs. DBHelper.DOCUMENT_CLASS or DBHelper.CORPUS_CLASSpublic List findLrIds(List constraints, String lrType, List orderByConstraints, int limitcount) throws PersistenceException
constraints
- list of Restriction objectslrType
- type of Lrs. DBHelper.DOCUMENT_CLASS or DBHelper.CORPUS_CLASSorderByConstraints
- liat of OrderByRestriction objectslimitcount
- limit returning objects -1 for unlimitedpublic long getLrsCount(List constraints, String lrType) throws PersistenceException
constraints
- list of Restriction objectslrType
- type of Lrs. DBHelper.DOCUMENT_CLASS or DBHelper.CORPUS_CLASS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |