Package org.compiere.model
Class MBankStatementLoader
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_C_BankStatementLoader
-
- org.compiere.model.MBankStatementLoader
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_BankStatementLoader
,I_Persistent
,Evaluatee
public class MBankStatementLoader extends X_C_BankStatementLoader
Bank Statement Loader Model This class is responsible for creating an instance of the bank statement loader class to use. It also inserts the data into the I_BankStatement table. The loader objects can access their configuration (e.g. file, URL, password etc) using the corresponding get methods provided by this class. As this class is derived from PO, "Persistent Object" it has access to the loader configuration that has been entered for this loader. How these values are interpreted is the responsibility of the loader. There are two file names provided, getFileName() and getLocalFileName(). The first one is the file name as entered on the loader configuration tab, the second one is the file name parameter from the loader process. Recommended behavior for a file based loader would be to use the file name from the process parameter if available, and resort to the file name from the loader configuration as a second option. For a HTTP based loader the file name from the loader configuration should be used to construct the URL to connect to (combined with the other parameters). In this scenario the file name from the process parameter can be used to save the acquired statement data to disk. author Maarten Klinker, Eldir Tomassen- Version:
- $Id: MBankStatementLoader.java,v 1.3 2006/07/30 00:51:04 jjanke Exp $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields inherited from interface org.compiere.model.I_C_BankStatementLoader
accessLevel, COLUMNNAME_AccountNo, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_BranchID, COLUMNNAME_C_BankAccount_ID, COLUMNNAME_C_BankStatementLoader_ID, COLUMNNAME_C_BankStatementLoader_UU, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateFormat, COLUMNNAME_DateLastRun, COLUMNNAME_Description, COLUMNNAME_FileName, COLUMNNAME_FinancialInstitutionID, COLUMNNAME_HostAddress, COLUMNNAME_HostPort, COLUMNNAME_IsActive, COLUMNNAME_Name, COLUMNNAME_Password, COLUMNNAME_PIN, COLUMNNAME_ProxyAddress, COLUMNNAME_ProxyLogon, COLUMNNAME_ProxyPassword, COLUMNNAME_ProxyPort, COLUMNNAME_StmtLoaderClass, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_UserID, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MBankStatementLoader(Properties ctx, int C_BankStatementLoader_ID, String trxName)
Create a Statement Loader Added for compatibility with new PO infrastructure (bug# 968136)MBankStatementLoader(Properties ctx, int C_BankStatementLoader_ID, String fileName, String trxName)
Create a Statement LoaderMBankStatementLoader(Properties ctx, ResultSet rs, String trxName)
Create a Statement Loader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorDescription()
Return the most recent error descriptionString
getErrorMessage()
Return the most recent errorint
getLoadCount()
The total number of statement lines loadedString
getLocalFileName()
Return Local File Nameboolean
loadLines()
Start loading Bankstatementsboolean
saveLine()
Load a bank statement into the I_BankStatement tableString
toString()
Return Name-
Methods inherited from class org.compiere.model.X_C_BankStatementLoader
get_AccessLevel, getAccountNo, getBranchID, getC_BankAccount, getC_BankAccount_ID, getC_BankStatementLoader_ID, getC_BankStatementLoader_UU, getDateFormat, getDateLastRun, getDescription, getFileName, getFinancialInstitutionID, getHostAddress, getHostPort, getKeyNamePair, getName, getPassword, getPIN, getProxyAddress, getProxyLogon, getProxyPassword, getProxyPort, getStmtLoaderClass, getUserID, initPO, setAccountNo, setBranchID, setC_BankAccount_ID, setC_BankStatementLoader_ID, setC_BankStatementLoader_UU, setDateFormat, setDateLastRun, setDescription, setFileName, setFinancialInstitutionID, setHostAddress, setHostPort, setName, setPassword, setPIN, setProxyAddress, setProxyLogon, setProxyPassword, setProxyPort, setStmtLoaderClass, setUserID
-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_C_BankStatementLoader
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
-
-
-
Constructor Detail
-
MBankStatementLoader
public MBankStatementLoader(Properties ctx, int C_BankStatementLoader_ID, String trxName)
Create a Statement Loader Added for compatibility with new PO infrastructure (bug# 968136)- Parameters:
ctx
- Current contextC_BankStatementLoader_ID
- loader to usetrxName
- transaction
-
MBankStatementLoader
public MBankStatementLoader(Properties ctx, int C_BankStatementLoader_ID, String fileName, String trxName)
Create a Statement Loader- Parameters:
ctx
- Current contextC_BankStatementLoader_ID
- loader to usefileName
- input filetrxName
- transaction
-
MBankStatementLoader
public MBankStatementLoader(Properties ctx, ResultSet rs, String trxName)
Create a Statement Loader- Parameters:
ctx
- Current contextrs
- ResultSettrxName
- transaction
-
-
Method Detail
-
toString
public String toString()
Return Name- Overrides:
toString
in classX_C_BankStatementLoader
- Returns:
- Name
-
getLocalFileName
public String getLocalFileName()
Return Local File Name- Returns:
- Name
-
loadLines
public boolean loadLines()
Start loading Bankstatements- Returns:
- true if loading completed successfully
-
saveLine
public boolean saveLine()
Load a bank statement into the I_BankStatement table- Returns:
- Statement line was loaded successfully This method is called by the BankStatementLoadere whenever a complete statement line has been read.
-
getErrorMessage
public String getErrorMessage()
Return the most recent error- Returns:
- Error message This error message will be handled as a Adempiere message, (e.g. it can be translated)
-
getErrorDescription
public String getErrorDescription()
Return the most recent error description- Returns:
- Error description This is an additional error description, it can be used to provided descriptive information, such as a file name or SQL error, that can not be translated by the Adempiere message system.
-
getLoadCount
public int getLoadCount()
The total number of statement lines loaded- Returns:
- Number of imported statement lines
-
-