public abstract class AbstractSync extends java.lang.Object implements ServiceI, TransactionProviderI, L10nLocaleChangeListenerI
Modifier and Type | Field and Description |
---|---|
static java.math.BigDecimal |
D_ONE |
static java.math.BigDecimal |
D_ZERO |
static org.apache.log4j.Logger |
log |
static java.lang.String |
SLASH |
Constructor and Description |
---|
AbstractSync() |
Modifier and Type | Method and Description |
---|---|
void |
addBO(BO _bo) |
void |
addFeatureListener(FeatureListenerI fl) |
void |
allowRestart() |
boolean |
canStopRun()
Returns TRUE if this ServiceI can execute a run directly after a stop, FALSE if it must be unprepared and prepared again.
|
boolean |
canUnpreparePrepare()
Returns TRUE if this ServiceI can be prepared again after an unprepare, FALSE if it needs to be reinstantiated.
|
boolean |
char2bool(java.lang.String c)
returns boolean depending upon the string (i.e. true if 1 else false..)
|
float |
char2float(java.lang.String c)
gets the float value out of string and returns the same.
|
int |
char2int(java.lang.String c)
gets the int value out of string and returns the same.
|
void |
commit() |
void |
commit(Transaction tx) |
java.lang.String |
formatNum(java.lang.String str,
java.lang.String form) |
byte[] |
getBLOB(java.lang.Long id) |
BO |
getBO(java.lang.Long id) |
BO[] |
getBOs(java.lang.Long[] ids) |
electric.xml.Element |
getConfRoot() |
Transaction |
getCurrentTx() |
Benutzer |
getCurrentUser()
Returns
Benutzer object containing the current user |
ErrorHandler |
getEh() |
long |
getKeepAliveTimeout() |
static byte[] |
getLocalFile(java.io.File infile) |
Transaction |
getNewTransaction() |
Transaction |
getNewTransaction(java.lang.String desc) |
Transaction |
getNewTransaction(java.lang.String desc,
TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransaction(TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransactionWithInstrumentedSchema() |
Transaction |
getNewTransactionWithInstrumentedSchema(java.lang.String desc) |
Transaction |
getNewTransactionWithInstrumentedSchema(java.lang.String desc,
TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransactionWithInstrumentedSchema(TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTx()
Retrieves a new Transaction object.
|
Transaction |
getNewTx(java.lang.String desc)
Retrieves a new Transaction object, providing a description.
|
BackendConnectionManager |
getRcl() |
SchemaI |
getSchema() |
AbstractScript |
getScript() |
java.lang.String |
getScriptLanguage() |
java.lang.String |
getServer() |
java.lang.String |
getSlash() |
Transaction |
getTx()
Returns the current Transaction
|
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query) |
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query,
boolean warn) |
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query,
boolean warn,
java.lang.Object nullValue) |
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query,
java.lang.Object[] o) |
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query,
java.lang.Object[] o,
boolean warn) |
java.lang.Object |
ifSetQuery1BO(java.lang.String val,
java.lang.String query,
java.lang.Object[] o,
boolean warn,
java.lang.Object nullValue) |
void |
initMyTISMConnection() |
void |
initScript() |
void |
initScriptPostConnect() |
boolean |
isActivateL10nProvider() |
boolean |
isAvailable(java.lang.String feature) |
boolean |
isAvailable(java.lang.String feature,
boolean defaultIfNoDBM) |
boolean |
isAvailableWithNoise(java.lang.String feature) |
boolean |
isAvailableWithNoise(java.lang.String feature,
boolean defaultIfNoDBM) |
boolean |
isNotSet(java.lang.String str) |
boolean |
isPleaseStop() |
boolean |
isServerAuthoritativeSyncServer() |
boolean |
isSet(java.lang.String str) |
java.lang.String |
justify(java.lang.String str,
int len,
java.lang.String dir) |
java.lang.String |
justifyNum(java.lang.String str,
int len,
java.lang.String dir) |
long |
keepAlive(long millis)
If there is a watchdog for this ServiceI, tell it to hold on for the passed amount of milliseconds.
|
java.lang.String |
left(java.lang.String str,
int len) |
void |
logon(netrexx.lang.Rexx _user,
netrexx.lang.Rexx _passwd) |
java.lang.String |
maxLen(java.lang.String str,
int len) |
java.lang.String |
maxLen(java.lang.String str,
int len,
java.lang.String nullValue) |
java.lang.String |
oqlString(java.lang.String val) |
java.lang.String |
oqlString(java.lang.String val,
java.lang.String nullValue) |
void |
prepare(electric.xml.Element _confRoot)
Prepares this ServiceI for running.
|
void |
prepareFromFile(java.lang.String _file) |
void |
processLocaleChanged(java.util.Locale oldLocale,
java.util.Locale newLocale) |
static void |
putLocalFile(java.io.File outfile,
byte[] data) |
java.lang.Object |
query1BO(java.lang.String query) |
java.lang.Object |
query1BO(java.lang.String query,
boolean warn) |
java.lang.Object |
query1BO(java.lang.String query,
boolean warn,
java.lang.Object nullValue) |
java.lang.Object |
query1BO(java.lang.String query,
java.lang.Object[] o) |
java.lang.Object |
query1BO(java.lang.String query,
java.lang.Object[] o,
boolean warn) |
java.lang.Object |
query1BO(java.lang.String query,
java.lang.Object[] o,
boolean warn,
java.lang.Object nullValue) |
java.util.List |
queryBO(java.lang.String s) |
java.util.List |
queryBO(java.lang.String s,
java.lang.Object[] o) |
void |
removeFeatureListener(FeatureListenerI fl) |
java.lang.String |
right(java.lang.String str,
int len) |
TransactionAnswer |
saveBO(Transaction _tx)
Persists the changes recorded in the passed transaction tx to the database.
|
TransactionAnswer |
saveBO(Transaction _tx,
boolean ignoreConflicts) |
void |
setActivateL10nProvider(boolean $25) |
void |
setConfRoot(electric.xml.Element $21) |
void |
setCurrentTx(Transaction $24) |
void |
setDbm(DBManLocalI _dbm)
Sets the DBManLocalI instance for this ServiceI to the passed value.
|
void |
setEh(ErrorHandler $20) |
void |
setKeepAliveTimeout(long $23) |
void |
setPleaseStop(boolean $22) |
void |
setSchema(SchemaI $17) |
void |
setScript(AbstractScript $18) |
void |
setScriptLanguage(java.lang.String $19) |
void |
setTransactionDescription(java.lang.String desc)
Sets the default description for new Transaction instances to the passed String, typically a description of the run business service (BS).
|
java.lang.String |
sqlString(java.lang.String val) |
java.lang.String |
sqlString(java.lang.String val,
java.lang.String nullValue) |
void |
stop()
Asks this ServiceI instance to terminate.
|
java.lang.String |
strip(java.lang.String str) |
java.lang.String |
strip(java.lang.String str,
java.lang.String nullValue) |
java.math.BigDecimal |
toBigDecimal(java.lang.String s) |
java.math.BigDecimal |
toBigDecimal(java.lang.String s,
java.math.BigDecimal nv) |
java.lang.Boolean |
toBoolean(java.lang.String s) |
java.lang.Boolean |
toBoolean(java.lang.String s,
java.lang.Boolean nv) |
java.lang.Float |
toFloat(java.lang.String s) |
java.lang.Float |
toFloat(java.lang.String s,
java.lang.Float nv) |
java.lang.Integer |
toInteger(java.lang.String s) |
java.lang.Integer |
toInteger(java.lang.String s,
java.lang.Integer nv) |
void |
unprepare()
Cleans up this ServiceI.
|
java.lang.String |
validateField(java.lang.String val) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
saveWithRetries, saveWithRetries
public static final java.math.BigDecimal D_ZERO
public static final java.math.BigDecimal D_ONE
public static final org.apache.log4j.Logger log
public static final java.lang.String SLASH
public java.lang.String getSlash()
public BackendConnectionManager getRcl()
public java.lang.String getServer()
public Transaction getTx()
public Transaction getNewTransaction(java.lang.String desc)
getNewTransaction
in interface TransactionBuilderI
public Transaction getNewTransaction(java.lang.String desc, TemporaryIdSupplierI tempIdSupplier)
getNewTransaction
in interface TransactionBuilderI
public Transaction getNewTransaction()
getNewTransaction
in interface TransactionBuilderI
public Transaction getNewTransaction(TemporaryIdSupplierI tempIdSupplier)
getNewTransaction
in interface TransactionBuilderI
public Transaction getNewTransactionWithInstrumentedSchema(java.lang.String desc)
getNewTransactionWithInstrumentedSchema
in interface TransactionBuilderI
public Transaction getNewTransactionWithInstrumentedSchema(java.lang.String desc, TemporaryIdSupplierI tempIdSupplier)
getNewTransactionWithInstrumentedSchema
in interface TransactionBuilderI
public Transaction getNewTransactionWithInstrumentedSchema()
getNewTransactionWithInstrumentedSchema
in interface TransactionBuilderI
public Transaction getNewTransactionWithInstrumentedSchema(TemporaryIdSupplierI tempIdSupplier)
getNewTransactionWithInstrumentedSchema
in interface TransactionBuilderI
public Transaction getNewTx(java.lang.String desc)
desc
- A description for the transaction.public Transaction getNewTx()
public void processLocaleChanged(java.util.Locale oldLocale, java.util.Locale newLocale)
processLocaleChanged
in interface L10nLocaleChangeListenerI
public void setDbm(DBManLocalI _dbm)
ServiceI
public void setTransactionDescription(java.lang.String desc)
ServiceI
setTransactionDescription
in interface ServiceI
public void prepare(electric.xml.Element _confRoot)
ServiceI
prepare
in interface ServiceI
ServiceI.canUnpreparePrepare()
public void unprepare()
ServiceI
unprepare
in interface ServiceI
ServiceI.canUnpreparePrepare()
public void allowRestart()
public void stop()
ServiceI
public long keepAlive(long millis)
ServiceI
public boolean canStopRun()
ServiceI
canStopRun
in interface ServiceI
public boolean canUnpreparePrepare()
ServiceI
canUnpreparePrepare
in interface ServiceI
public void prepareFromFile(java.lang.String _file)
public void initMyTISMConnection()
public void initScript()
public void initScriptPostConnect()
public void logon(netrexx.lang.Rexx _user, netrexx.lang.Rexx _passwd)
public TransactionAnswer saveBO(Transaction _tx)
TransactionProviderI
saveBO
in interface TransactionProviderI
_tx
- the Transaction to savepublic TransactionAnswer saveBO(Transaction _tx, boolean ignoreConflicts)
saveBO
in interface TransactionProviderI
public void commit()
public void commit(Transaction tx)
public java.util.List queryBO(java.lang.String s)
public java.util.List queryBO(java.lang.String s, java.lang.Object[] o)
public BO getBO(java.lang.Long id)
public BO[] getBOs(java.lang.Long[] ids)
public boolean isServerAuthoritativeSyncServer()
public Benutzer getCurrentUser()
Benutzer
object containing the current userpublic byte[] getBLOB(java.lang.Long id)
public static byte[] getLocalFile(java.io.File infile)
public static void putLocalFile(java.io.File outfile, byte[] data)
public java.lang.String justifyNum(java.lang.String str, int len, java.lang.String dir)
public java.lang.String justify(java.lang.String str, int len, java.lang.String dir)
public java.lang.String left(java.lang.String str, int len)
public java.lang.String right(java.lang.String str, int len)
public java.lang.String maxLen(java.lang.String str, int len)
public java.lang.String maxLen(java.lang.String str, int len, java.lang.String nullValue)
public java.lang.String formatNum(java.lang.String str, java.lang.String form)
public java.lang.String strip(java.lang.String str)
public java.lang.String strip(java.lang.String str, java.lang.String nullValue)
public boolean isSet(java.lang.String str)
public boolean isNotSet(java.lang.String str)
public java.lang.Object query1BO(java.lang.String query)
public java.lang.Object query1BO(java.lang.String query, boolean warn)
public java.lang.Object query1BO(java.lang.String query, boolean warn, java.lang.Object nullValue)
public java.lang.Object query1BO(java.lang.String query, java.lang.Object[] o)
public java.lang.Object query1BO(java.lang.String query, java.lang.Object[] o, boolean warn)
public java.lang.Object query1BO(java.lang.String query, java.lang.Object[] o, boolean warn, java.lang.Object nullValue)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query, boolean warn)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query, boolean warn, java.lang.Object nullValue)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query, java.lang.Object[] o)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query, java.lang.Object[] o, boolean warn)
public java.lang.Object ifSetQuery1BO(java.lang.String val, java.lang.String query, java.lang.Object[] o, boolean warn, java.lang.Object nullValue)
public java.lang.String sqlString(java.lang.String val)
public java.lang.String sqlString(java.lang.String val, java.lang.String nullValue)
public java.lang.String oqlString(java.lang.String val)
public java.lang.String oqlString(java.lang.String val, java.lang.String nullValue)
public java.lang.String validateField(java.lang.String val)
public void addBO(BO _bo)
public boolean char2bool(java.lang.String c)
public int char2int(java.lang.String c)
public float char2float(java.lang.String c)
public java.lang.Boolean toBoolean(java.lang.String s)
public java.lang.Boolean toBoolean(java.lang.String s, java.lang.Boolean nv)
public java.lang.Integer toInteger(java.lang.String s)
public java.lang.Integer toInteger(java.lang.String s, java.lang.Integer nv)
public java.lang.Float toFloat(java.lang.String s)
public java.lang.Float toFloat(java.lang.String s, java.lang.Float nv)
public java.math.BigDecimal toBigDecimal(java.lang.String s)
public java.math.BigDecimal toBigDecimal(java.lang.String s, java.math.BigDecimal nv)
public boolean isAvailable(java.lang.String feature)
public boolean isAvailable(java.lang.String feature, boolean defaultIfNoDBM)
public boolean isAvailableWithNoise(java.lang.String feature)
public boolean isAvailableWithNoise(java.lang.String feature, boolean defaultIfNoDBM)
public void addFeatureListener(FeatureListenerI fl)
public void removeFeatureListener(FeatureListenerI fl)
public SchemaI getSchema()
public void setSchema(SchemaI $17)
public AbstractScript getScript()
public void setScript(AbstractScript $18)
public java.lang.String getScriptLanguage()
public void setScriptLanguage(java.lang.String $19)
public ErrorHandler getEh()
public void setEh(ErrorHandler $20)
public electric.xml.Element getConfRoot()
public void setConfRoot(electric.xml.Element $21)
public boolean isPleaseStop()
public void setPleaseStop(boolean $22)
public long getKeepAliveTimeout()
public void setKeepAliveTimeout(long $23)
public Transaction getCurrentTx()
public void setCurrentTx(Transaction $24)
public boolean isActivateL10nProvider()
public void setActivateL10nProvider(boolean $25)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.