java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.common.dao.AbstractDao<B>
ru.bitel.common.dao.AbstractIdDao<E>
ru.bitel.oss.kernel.entity.server.bean.AbstractEntityAttrDao<ContractObject>
ru.bitel.bgbilling.kernel.contract.object.server.bean.ContractObjectDao
All Implemented Interfaces:
AutoCloseable

public class ContractObjectDao extends AbstractEntityAttrDao<ContractObject>
  • Constructor Details

    • ContractObjectDao

      public ContractObjectDao(Connection con, int userId)
  • Method Details

    • getObjectParameter

      public EntityAttr getObjectParameter(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateObjectParameter

      public boolean updateObjectParameter(int objectId, EntityAttr entityAttr) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterText

      public Optional<EntityAttrText> optObjectParameterText(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterTextAsString

      public Optional<String> optObjectParameterTextAsString(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterBoolean

      public Optional<EntityAttrBoolean> optObjectParameterBoolean(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterBooleanAsBoolean

      public Optional<Boolean> optObjectParameterBooleanAsBoolean(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterDate

      public Optional<EntityAttrDate> optObjectParameterDate(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterDateAsDate

      public Optional<Date> optObjectParameterDateAsDate(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterList

      public Optional<EntityAttrList> optObjectParameterList(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterListAsString

      public Optional<String> optObjectParameterListAsString(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • optObjectParameterAddress

      public Optional<EntityAttrAddress> optObjectParameterAddress(int objectId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getObjectParameterAddressAsString

      public Optional<String> getObjectParameterAddressAsString(int contractId, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getEntitySpecDirectory

      public Directory<? extends EntitySpec> getEntitySpecDirectory() throws ru.bitel.bgbilling.common.BGException
      Overrides:
      getEntitySpecDirectory in class AbstractEntityAttrDao<ContractObject>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getEntitySpecAttrDirectory

      protected Directory<? extends AbstractSpecAttr> getEntitySpecAttrDirectory() throws ru.bitel.bgbilling.common.BGException
      Overrides:
      getEntitySpecAttrDirectory in class AbstractEntityAttrDao<ContractObject>
      Throws:
      ru.bitel.bgbilling.common.BGException
    • contractObjectTable

      public void contractObjectTable(SearchResult<ContractObject> searchResult, int contractId, String titleFilter, int typeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getFromRS

      protected ContractObject getFromRS(ResultSet rs, boolean loadAttributes) throws SQLException
      Specified by:
      getFromRS in class AbstractEntityAttrDao<ContractObject>
      Throws:
      SQLException
    • updateImpl

      protected void updateImpl(ContractObject contractObject) throws ru.bitel.bgbilling.common.BGException, SQLException
      Specified by:
      updateImpl in class ru.bitel.common.dao.AbstractDao<ContractObject>
      Throws:
      ru.bitel.bgbilling.common.BGException
      SQLException
    • list

      public List<ContractObject> list(int contractId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • orderObject

      public void orderObject(int id, boolean up) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException