HashMap<String, Class> fieldss = new HashMap();
for (Iterator<IType> i = types.iterator(); i.hasNext();) {
IType r = i.next();
IAnnotation ia = r.getAnnotation("Entity");
if (ia != null && ia.exists()) {
IField[] fields = r.getFields();
for (IField f : fields) {
IField sf = (IField) f;
if (sf instanceof SourceField) {
SourceField ssf = (SourceField) sf;
String sigString = ssf.getTypeSignature();
IAnnotation[] ias = sf.getAnnotations();
if (ias == null || ias.length == 0 && true) {
sigString = Signature.getTypeErasure(sigString);
String simpleName = Signature
.toString(sigString);
String name = sf.getElementName();
if (isSupportedType(simpleName)) {
fieldss.put(name, getSupported(simpleName));
} else {
fieldss.put(name, Blob.class);
}
}
}
}
} else {
IAnnotation ib = r.getAnnotation("PersistenceCapable");
if (ib != null && ib.exists()) {
IField[] fields = r.getFields();
for (IField f : fields) {
IField sf = (IField) f;
if (sf instanceof SourceField) {
SourceField ssf = (SourceField) sf;
String sigString = ssf.getTypeSignature();
IAnnotation iaf = sf
.getAnnotation("Persistent");
IAnnotation iaPk = sf
.getAnnotation("PrimaryKey");
if (iaf != null && iaf.exists()
&& (iaPk == null || !iaPk.exists())) {
sigString = Signature
.getTypeErasure(sigString);
String simpleName = Signature
.toString(sigString);