|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.meta.NonPersistentMetaData
public class NonPersistentMetaData
Metadata about a persistence-aware type.
Field Summary | |
---|---|
static int |
TYPE_NON_MAPPED_INTERFACE
|
static int |
TYPE_PERSISTENCE_AWARE
|
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker |
---|
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML |
Fields inherited from interface org.apache.openjpa.lib.xml.Commentable |
---|
EMPTY_COMMENTS |
Constructor Summary | |
---|---|
protected |
NonPersistentMetaData(Class cls,
MetaDataRepository repos,
int type)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
int |
getColNumber()
|
String[] |
getComments()
|
Class |
getDescribedType()
Persistence-aware type. |
int |
getLineNumber()
|
int |
getListingIndex()
The index in which this class was listed in the metadata. |
MetaDataRepository |
getRepository()
Owning repository. |
String |
getResourceName()
|
File |
getSourceFile()
|
Object |
getSourceScope()
|
int |
getSourceType()
|
int |
getType()
The type of metadata. |
void |
setColNumber(int colNum)
|
void |
setComments(String[] comments)
|
void |
setLineNumber(int lineNum)
|
void |
setListingIndex(int index)
The index in which this field was listed in the metadata. |
void |
setSource(File file,
int srcType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_PERSISTENCE_AWARE
public static final int TYPE_NON_MAPPED_INTERFACE
Constructor Detail |
---|
protected NonPersistentMetaData(Class cls, MetaDataRepository repos, int type)
Method Detail |
---|
public MetaDataRepository getRepository()
getRepository
in interface MetaDataContext
public Class getDescribedType()
public int getType()
public int getListingIndex()
-1
if this class was not listed in the metadata.
public void setListingIndex(int index)
-1
if this class was not listed in the metadata.
public File getSourceFile()
getSourceFile
in interface SourceTracker
public Object getSourceScope()
getSourceScope
in interface SourceTracker
public int getSourceType()
getSourceType
in interface SourceTracker
public void setSource(File file, int srcType)
public int getLineNumber()
getLineNumber
in interface SourceTracker
public void setLineNumber(int lineNum)
public int getColNumber()
getColNumber
in interface SourceTracker
public void setColNumber(int colNum)
public String getResourceName()
getResourceName
in interface SourceTracker
public String[] getComments()
getComments
in interface Commentable
public void setComments(String[] comments)
setComments
in interface Commentable
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |