Class RegisterLoadPattern
java.lang.Object
ru.bitel.bgbilling.kernel.integration.server.bean.RegisterLoadPattern
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRegisterLoadPattern
(String key, String title, int fileType, String[] balanceItemTypes, int registerType) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
int
getTitle()
loadRegister
(Connection con, RegisterLoadData data) processString
(Connection con, RegisterItemManager itemManager, Register register, String[] line, Date pdate) разбирает одну линию, возвращает не-null с текстом ошибки, если она естьvoid
setBalanceItemTypes
(int[] paymentType) void
setCommentDelimiter
(String commentDelimiter) void
setCommentPositions
(String[] commentPositions) void
setContractId
(int contractId) void
setDateFormat
(DateFormat dateFormat) void
setDatePos
(int datePos) void
setEncoding
(String encoding) void
setHandlerClassName
(String handlerClassName) void
setIdPos
(int idPos) void
setPattern
(Pattern pattern) void
setPatternTitle
(String patternTitle) void
setRegisterType
(int registerType) void
setSearchContracts
(SearchContracts contractFinders) void
setSummaPos
(int[] summaPos) void
setSummaPos
(String[] summaPos) void
setSummaReplace
(String summaReplace) void
setType
(int type) void
setZeroEncoding
(boolean zeroEncoding)
-
Field Details
-
TYPE_TXT
public static final int TYPE_TXT- See Also:
-
TYPE_DBF
public static final int TYPE_DBF- See Also:
-
-
Constructor Details
-
RegisterLoadPattern
-
-
Method Details
-
loadRegister
public Register loadRegister(Connection con, RegisterLoadData data) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
processString
public String processString(Connection con, RegisterItemManager itemManager, Register register, String[] line, Date pdate) разбирает одну линию, возвращает не-null с текстом ошибки, если она есть -
getKey
-
setEncoding
- Throws:
UnsupportedEncodingException
-
setSummaPos
public void setSummaPos(int[] summaPos) -
setSummaPos
-
setIdPos
public void setIdPos(int idPos) -
setContractId
public void setContractId(int contractId) -
setCommentPositions
-
setSearchContracts
-
getPaymentComment
-
setSummaReplace
-
setType
public void setType(int type) -
setPattern
-
setBalanceItemTypes
public void setBalanceItemTypes(int[] paymentType) -
getTitle
-
setDatePos
public void setDatePos(int datePos) -
setDateFormat
-
setZeroEncoding
public void setZeroEncoding(boolean zeroEncoding) -
getPatternTitle
-
setPatternTitle
-
getRegisterType
public int getRegisterType() -
setRegisterType
public void setRegisterType(int registerType) -
setCommentDelimiter
-
getHandlerClassName
-
setHandlerClassName
-