Class IdentifiedRecordTemplate

    • Constructor Detail

      • IdentifiedRecordTemplate

        public IdentifiedRecordTemplate​(RecordTemplate wrappedTemplate)
        A IdentifiedRecordTemplate is built upon a wrapped template.
    • Method Detail

      • getWrappedTemplate

        public RecordTemplate getWrappedTemplate()
        Returns the wrapped template.
      • getFieldNames

        public String[] getFieldNames()
        Returns all the field names of the DataRecord built on this template.
        Specified by:
        getFieldNames in interface RecordTemplate
      • checkDataRecord

        public boolean checkDataRecord​(DataRecord record)
        Returns true if the data record is built on this template and all the constraints are ok.
        Specified by:
        checkDataRecord in interface RecordTemplate
      • getExternalId

        public String getExternalId()
        Returns the external template id.
      • setExternalId

        public void setExternalId​(String externalId)
        Gives an external id to the template.
      • getInternalId

        public int getInternalId()
        Gets the internal id.
      • setInternalId

        public void setInternalId​(int id)
        Sets the internal id.
      • getTemplateName

        public String getTemplateName()
      • setTemplateName

        public void setTemplateName​(String templateName)
      • setEncrypted

        public void setEncrypted​(boolean encrypted)
      • isEncrypted

        public boolean isEncrypted()
      • getInstanceId

        public String getInstanceId()