|
Adempiere 3.4.0s | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.pipo.AbstractElementHandler
public abstract class AbstractElementHandler
| Field Summary | |
|---|---|
protected CLogger |
log
|
| Constructor Summary | |
|---|---|
AbstractElementHandler()
|
|
| Method Summary | |
|---|---|
int |
copyFile(InputStream source,
OutputStream target)
Copyfile |
int |
copyRecord(Properties ctx,
String tableName,
PO from)
Make backup copy of record. |
int |
get_ID(Properties ctx,
String tableName,
String name)
Get ID from Name for a table. |
int |
get_IDWithColumn(Properties ctx,
String tableName,
String columnName,
Object value)
Get ID from column value for a table. |
int |
get_IDWithMaster(Properties ctx,
String tableName,
String name,
String tableNameMaster,
int masterID)
Get ID from Name for a table with a Master reference ID. |
int |
get_IDWithMaster(Properties ctx,
String tableName,
String name,
String tableNameMaster,
String nameMaster)
Get ID from Name for a table with a Master reference. |
int |
get_IDWithMasterAndColumn(Properties ctx,
String tableName,
String columnName,
String name,
String tableNameMaster,
int masterID)
Get ID from Name for a table with a Master reference. |
protected int |
getClientId(Properties ctx)
Get client id |
int |
getIDbyName(Properties ctx,
String tableName,
String name)
Get ID from Name for a table. |
protected TransformerHandler |
getLogDocument(Properties ctx)
Get share document |
protected String |
getPackageDirectory(Properties ctx)
|
protected int |
getPackageImpId(Properties ctx)
Get AD_Package_Imp_ID |
protected String |
getStringValue(Attributes atts,
String qName)
return null for empty string (""). |
protected String |
getTrxName(Properties ctx)
Get current transaction name |
protected String |
getUpdateMode(Properties ctx)
Get update system maintained dictionary flag |
protected boolean |
isHandleTranslations(Properties ctx)
Returns option - Is export-import of AD translations is needed |
protected boolean |
isProcessElement(Properties ctx,
String entityType)
Process element by entity type and user setting. |
FileInputStream |
OpenInputfile(String filePath)
Open input file for processing |
OutputStream |
OpenOutputfile(String filePath)
Open output file for processing |
int |
record_log(Properties ctx,
int success,
String objectName,
String objectType,
int objectID,
int objectIDBackup,
String objectStatus,
String tableName,
int AD_Table_ID)
Write results to log and records in history table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.adempiere.pipo.ElementHandler |
|---|
create, endElement, startElement |
| Field Detail |
|---|
protected CLogger log
| Constructor Detail |
|---|
public AbstractElementHandler()
| Method Detail |
|---|
public int get_ID(Properties ctx,
String tableName,
String name)
tableName - name -
public int get_IDWithColumn(Properties ctx,
String tableName,
String columnName,
Object value)
tableName - columName - name -
public int record_log(Properties ctx,
int success,
String objectName,
String objectType,
int objectID,
int objectIDBackup,
String objectStatus,
String tableName,
int AD_Table_ID)
throws SAXException
success - tableName - objectType - objectID - objectStatus -
SAXException
public int get_IDWithMaster(Properties ctx,
String tableName,
String name,
String tableNameMaster,
String nameMaster)
tableName - name - tableNameMaster - nameMaster -
public int get_IDWithMasterAndColumn(Properties ctx,
String tableName,
String columnName,
String name,
String tableNameMaster,
int masterID)
tableName - name - tableNameMaster - nameMaster -
public int get_IDWithMaster(Properties ctx,
String tableName,
String name,
String tableNameMaster,
int masterID)
tableName - name - tableNameMaster - masterID -
public int getIDbyName(Properties ctx,
String tableName,
String name)
tableName - name -
public int copyRecord(Properties ctx,
String tableName,
PO from)
tablename - public FileInputStream OpenInputfile(String filePath)
String - file with pathpublic OutputStream OpenOutputfile(String filePath)
String - file with path
public int copyFile(InputStream source,
OutputStream target)
String - file with pathprotected int getClientId(Properties ctx)
ctx -
protected int getPackageImpId(Properties ctx)
ctx -
protected String getUpdateMode(Properties ctx)
ctx -
protected String getTrxName(Properties ctx)
ctx -
protected TransformerHandler getLogDocument(Properties ctx)
ctx -
protected String getPackageDirectory(Properties ctx)
ctx -
protected boolean isProcessElement(Properties ctx,
String entityType)
ctx - entityType -
protected String getStringValue(Attributes atts,
String qName)
atts - qName -
protected boolean isHandleTranslations(Properties ctx)
ctx - entityType -
|
Adempiere 3.4.0s | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||