Class BaseAttachmentRecordMapper

java.lang.Object
com.easydesk.om.BaseAttachmentRecordMapper
All Implemented Interfaces:
Serializable, RecordMapper<Attachment>
Direct Known Subclasses:
AttachmentRecordMapper

public class BaseAttachmentRecordMapper extends Object implements RecordMapper<Attachment>
Maps ResultSet rows into Attachment objects. The skeleton for this class was autogenerated by Torque on: [Sun Oct 18 20:57:18 KST 2026]
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Long
    getAttachmentId(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field attachmentId in Attachment.
    protected Long
    getCounterId(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field counterId in Attachment.
    protected Long
    getCreatedBy(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field createdBy in Attachment.
    protected Date
    getCreatedDate(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field createdDate in Attachment.
    protected String
    getData(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field data in Attachment.
    protected String
    getFileName(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field fileName in Attachment.
    protected Long
    getItemId(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field itemId in Attachment.
    protected String
    getMimeType(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field mimeType in Attachment.
    protected Long
    getModifiedBy(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field modifiedBy in Attachment.
    protected Date
    getModifiedDate(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field modifiedDate in Attachment.
    protected String
    getName(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field name in Attachment.
    protected long
    getSize(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field size in Attachment.
    protected Integer
    getTypeId(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field typeId in Attachment.
     
    protected boolean
    isRemoved(ResultSet resultSet, int columnIndex)
    Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field removed in Attachment.
    processRow(ResultSet resultSet, int offset, Criteria criteria)
    Constructs the object from the current row in the resultSet.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseAttachmentRecordMapper

      public BaseAttachmentRecordMapper()
  • Method Details

    • initStrategy

      public MappingStrategy<Attachment> initStrategy()
    • processRow

      public Attachment processRow(ResultSet resultSet, int offset, Criteria criteria) throws TorqueException
      Constructs the object from the current row in the resultSet.
      Specified by:
      processRow in interface RecordMapper<Attachment>
      Parameters:
      resultSet - the resultSet to operate on, already pointing to the correct row. Not null.
      offset - a possible offset in the columns to be considered (if previous columns contain other objects), or 0 for no offset.
      criteria - The criteria which created the result set. If set, the attributes to set in the data object are determined from the select columns in the criteria; if no matching column can be found, null is returned. If not set, all of the table's columns are read from the result set in the order defined in the table definition.
      Returns:
      the mapped object, not null.
      Throws:
      TorqueException - when reading fields from the RecordSet fails or if a Criteria is passed which contains select columns other than the columns in the EASYDESK_ATTACHMENT table.
    • getAttachmentId

      protected Long getAttachmentId(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field attachmentId in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getItemId

      protected Long getItemId(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field itemId in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getTypeId

      protected Integer getTypeId(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field typeId in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getName

      protected String getName(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field name in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getData

      protected String getData(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field data in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getFileName

      protected String getFileName(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field fileName in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getMimeType

      protected String getMimeType(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field mimeType in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getModifiedBy

      protected Long getModifiedBy(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field modifiedBy in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getCreatedBy

      protected Long getCreatedBy(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field createdBy in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getModifiedDate

      protected Date getModifiedDate(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field modifiedDate in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getCreatedDate

      protected Date getCreatedDate(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field createdDate in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • isRemoved

      protected boolean isRemoved(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field removed in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getSize

      protected long getSize(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field size in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException
    • getCounterId

      protected Long getCounterId(ResultSet resultSet, int columnIndex) throws TorqueException
      Reads the value of the columnIndex'th column in the resultSet so that it can be used to set the field counterId in Attachment.
      Parameters:
      resultSet - the ResultSet to read from, not null.
      columnIndex - the index in the resultSet which should be read.
      Returns:
      the content of the column.
      Throws:
      SQLException - if a problem occurs when reading from the resultSet.
      TorqueException