|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration
eu.etaxonomy.cdm.io.common.CdmIoBase<STATE>
public abstract class CdmIoBase<STATE extends IoStateBase>
| Field Summary | |
|---|---|
protected String |
ioName
|
| Fields inherited from class eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration |
|---|
applicationContext |
| Fields inherited from interface eu.etaxonomy.cdm.io.common.ICdmIO |
|---|
FEATURE_STORE, NOMREF_DETAIL_STORE, NOMREF_STORE, PERSON_STORE, REF_DETAIL_STORE, REFERENCE_STORE, SPECIMEN_STORE, TAXON_STORE, TAXONNAME_STORE, TEAM_STORE, USER_STORE |
| Constructor Summary | |
|---|---|
CdmIoBase()
|
|
| Method Summary | ||
|---|---|---|
boolean |
addObserver(IIoObserver observer)
Adds a new observer for this object. |
|
void |
addObservers(Set<IIoObserver> newObservers)
Adds a set of new observer for this object. |
|
boolean |
check(STATE state)
|
|
void |
commitTransaction(org.springframework.transaction.TransactionStatus txStatus)
|
|
int |
countObservers()
Returns the number of observers of this Observable object. |
|
int |
countSteps()
|
|
protected abstract boolean |
doCheck(STATE state)
|
|
protected abstract void |
doInvoke(STATE state)
invoke method to be implemented by implementing classes |
|
void |
fire(IIoEvent event)
If this object fires an event then notify all of its observers. |
|
protected void |
fireProgressEvent(String message,
String location)
|
|
protected void |
fireWarningEvent(String message,
String dataLocation,
Integer severity)
|
|
protected void |
fireWarningEvent(String message,
String dataLocation,
Integer severity,
int stackDepth)
|
|
void |
flush()
flush the current session |
|
protected
|
getInstance(Class<? extends T> clazz)
|
|
Set<IIoObserver> |
getObservers()
Sets the observers for this object |
|
protected String |
getSuccessString(boolean success)
|
|
boolean |
invoke(STATE state)
|
|
protected boolean |
isBlank(String str)
|
|
protected abstract boolean |
isIgnore(STATE state)
Returns true if this (IO-)class should be ignored during the import/export process. |
|
protected boolean |
isNotBlank(String str)
|
|
boolean |
removeObserver(IIoObserver observer)
Removes an observer from this object |
|
void |
removeObservers()
Clears the observer list so that this object no longer has any observers. |
|
void |
rollbackTransaction(org.springframework.transaction.TransactionStatus txStatus)
|
|
org.springframework.transaction.TransactionStatus |
startTransaction()
|
|
org.springframework.transaction.TransactionStatus |
startTransaction(Boolean readOnly)
|
|
void |
updateProgress(STATE state,
String message)
|
|
void |
updateProgress(STATE state,
String message,
int worked)
|
|
void |
warnProgress(STATE state,
String message,
Throwable e)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String ioName
| Constructor Detail |
|---|
public CdmIoBase()
| Method Detail |
|---|
public boolean addObserver(IIoObserver observer)
IIoObservable
addObserver in interface IIoObservablepublic Set<IIoObserver> getObservers()
IIoObservable
getObservers in interface IIoObservablepublic void addObservers(Set<IIoObserver> newObservers)
IIoObservable
addObservers in interface IIoObservablepublic int countObservers()
IIoObservable
countObservers in interface IIoObservablepublic boolean removeObserver(IIoObserver observer)
IIoObservable
removeObserver in interface IIoObservablepublic void removeObservers()
IIoObservable
removeObservers in interface IIoObservablepublic void fire(IIoEvent event)
ICdmIO
fire in interface ICdmIO<STATE extends IoStateBase>public int countSteps()
public boolean invoke(STATE state)
invoke in interface ICdmIO<STATE extends IoStateBase>protected abstract void doInvoke(STATE state)
state - public void flush()
public org.springframework.transaction.TransactionStatus startTransaction()
startTransaction in interface ICdmApplicationConfigurationstartTransaction in class CdmApplicationDefaultConfigurationpublic org.springframework.transaction.TransactionStatus startTransaction(Boolean readOnly)
startTransaction in interface ICdmApplicationConfigurationstartTransaction in class CdmApplicationDefaultConfigurationpublic void commitTransaction(org.springframework.transaction.TransactionStatus txStatus)
commitTransaction in interface ICdmApplicationConfigurationcommitTransaction in class CdmApplicationDefaultConfigurationpublic void rollbackTransaction(org.springframework.transaction.TransactionStatus txStatus)
public boolean check(STATE state)
check in interface ICdmIO<STATE extends IoStateBase>protected abstract boolean doCheck(STATE state)
protected abstract boolean isIgnore(STATE state)
config -
protected <T extends CdmBase> T getInstance(Class<? extends T> clazz)
protected String getSuccessString(boolean success)
public void updateProgress(STATE state,
String message)
updateProgress in interface ICdmIO<STATE extends IoStateBase>
public void updateProgress(STATE state,
String message,
int worked)
updateProgress in interface ICdmIO<STATE extends IoStateBase>
public void warnProgress(STATE state,
String message,
Throwable e)
warnProgress in interface ICdmIO<STATE extends IoStateBase>
protected void fireProgressEvent(String message,
String location)
protected void fireWarningEvent(String message,
String dataLocation,
Integer severity)
protected void fireWarningEvent(String message,
String dataLocation,
Integer severity,
int stackDepth)
protected boolean isBlank(String str)
protected boolean isNotBlank(String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||