Interface SourceTracker

All Known Implementing Classes:
ClassMapping, ClassMappingInfo, ClassMetaData, MultiQueryMetaData, NonPersistentMetaData, PersistenceUnitInfoImpl, QueryMetaData, QueryResultMapping, Sequence, SequenceMapping, SequenceMetaData, Table

public interface SourceTracker
Interface that can optionally be implemented by metadata to include the source file from which the metadata was originally parsed.
Author:
Abe White
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the column number in the line of the file at which this instance was parsed.
    int
    Return the line number of the file at which this instance was parsed.
    Return the domain-meaningful name of the resource that was loaded from this source.
    Return the file from which this instance was parsed.
    Return the domain-dependent scope of this instance within its file.
    int
    Return the type of source.
  • Field Details

  • Method Details

    • getSourceFile

      File getSourceFile()
      Return the file from which this instance was parsed.
    • getSourceScope

      Object getSourceScope()
      Return the domain-dependent scope of this instance within its file.
    • getSourceType

      int getSourceType()
      Return the type of source.
    • getResourceName

      String getResourceName()
      Return the domain-meaningful name of the resource that was loaded from this source. I.e., if we had loaded the source for a Java class, this would return the name of the class.
    • getLineNumber

      int getLineNumber()
      Return the line number of the file at which this instance was parsed.
    • getColNumber

      int getColNumber()
      Return the column number in the line of the file at which this instance was parsed.