public abstract class AbstractLanguageResource extends AbstractResource implements LanguageResource
Modifier and Type | Field and Description |
---|---|
protected DataStore |
dataStore
The data store this LR lives in.
|
protected Object |
lrPersistentId
The persistence ID of this LR.
|
name
features
Constructor and Description |
---|
AbstractLanguageResource() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clear the internal state of the resource
|
DataStore |
getDataStore()
Get the data store that this LR lives in.
|
Object |
getLRPersistenceId()
Returns the persistence id of this LR, if it has been stored in
a datastore.
|
LanguageResource |
getParent()
Returns the parent LR of this LR.
|
boolean |
isModified()
Returns true of an LR has been modified since the last sync.
|
void |
setDataStore(DataStore dataStore)
Set the data store that this LR lives in.
|
void |
setLRPersistenceId(Object lrID)
Sets the persistence id of this LR.
|
void |
setParent(LanguageResource parentLR)
Sets the parent LR of this LR.
|
void |
sync()
Save: synchonise the in-memory image of the LR with the persistent
image.
|
checkParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
getFeatures, setFeatures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameterValue, init, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
protected transient DataStore dataStore
protected transient Object lrPersistentId
public DataStore getDataStore()
getDataStore
in interface LanguageResource
public void setDataStore(DataStore dataStore) throws PersistenceException
setDataStore
in interface LanguageResource
PersistenceException
public Object getLRPersistenceId()
getLRPersistenceId
in interface LanguageResource
public void setLRPersistenceId(Object lrID)
setLRPersistenceId
in interface LanguageResource
public void sync() throws PersistenceException, SecurityException
sync
in interface LanguageResource
PersistenceException
SecurityException
public void cleanup()
cleanup
in interface Resource
cleanup
in class AbstractResource
public boolean isModified()
isModified
in interface LanguageResource
public LanguageResource getParent() throws PersistenceException, SecurityException
getParent
in interface LanguageResource
PersistenceException
SecurityException
public void setParent(LanguageResource parentLR) throws PersistenceException, SecurityException
setParent
in interface LanguageResource
PersistenceException
SecurityException
Copyright © 2024 GATE. All rights reserved.