Class AttributePeer


public class AttributePeer extends BaseAttributePeer
attribute Artifactizable(Attribute) Optionable(Observer)
Author:
Youngho Cho
  • Field Details

    • ACTIVITY_ATTRIBUTES

      public static final Integer[] ACTIVITY_ATTRIBUTES
      EASYDESK-3906 : ActivityAttribute 의 변환 Table 여기에 있는 속성은 ModuleAttribute 의 대상은 아니지만 검색결과에 항상 포함되며, 검색보기에서 다른 Attribute 처럼 행동한다. 또한 Item 의 AttributeValues 에도 포함되지 않는다.
    • LAST_MODIFIED_DATE__PK

      public static final Integer LAST_MODIFIED_DATE__PK
  • Constructor Details

    • AttributePeer

      public AttributePeer()
      새로운 AttributePeer 인스턴스를 생성한다.
  • Method Details

    • checkExists

      public static boolean checkExists(String name)
      Checks to see if there is another attribute with the same name already in the database. Returns true if there is another Attribute of the same name.
      Parameters:
      name - 확인할 attribute 이름
      Returns:
      true if there is another Attribute of the same name
    • checkExists

      public static boolean checkExists(Attribute attribute)
      Checks to see if there is another attribute with the same name already in the database. Returns true if there is another Attribute of the same name.
      Parameters:
      attribute - 확인할 Attribute
      Returns:
      true if there is another Attribute of the same name
    • getByName

      public static Attribute[] getByName(String... typeName) throws UnknownEntityException, TorqueException
      Parameters:
      typeName -
      Returns:
      Throws:
      UnknownEntityException
      TorqueException
    • getAttributes

      public static List<Attribute> getAttributes(String attributeType, boolean includeDeleted, Column sortColumn, String sortPolarity) throws TorqueException
      Gets a List of all of the Attribute objects in the database.
      Parameters:
      attributeType - user, non-user, typeid
      includeDeleted - 삭제된 attribute 를 포함할지 여부
      sortColumn - 정렬 column
      sortPolarity - 정렬 방향 (asc, desc)
      Returns:
      Attribute 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAttributes

      public static List<Attribute> getAttributes(String attributeType) throws TorqueException
      Gets a List of Attribute objects in the database. 이름 순으로 정렬하며 삭제된 attribute 는 제외한다.
      Parameters:
      attributeType - user, non-user, typeid
      Returns:
      Attribute 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getCommonAttributes

      public static final List<Attribute> getCommonAttributes() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getAllRecords

      public static List<Attribute> getAllRecords() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getAllRecordCount

      public static int getAllRecordCount() throws TorqueException
      Throws:
      TorqueException