Commits

tbrugz committed 0cb9b20

model: moved parameterCount: View -> Relation

Comments (0)

Files changed (3)

src/tbrugz/sqldump/dbmodel/Relation.java

 
 public interface Relation extends NamedDBObject {
 	
+	/*
+	 * redeclaring NamedDBObject' getters so that introspection may work
+	 * 
+	 * see:
+	 * - http://stackoverflow.com/questions/185004/java-beans-introspector-getbeaninfo-does-not-pickup-any-superinterfaces-propert
+	 * - http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4275879
+	 */
+	@Override
+	public String getName();
+	
+	@Override
+	public String getSchemaName();
+	
 	public void setName(String name);
 
 	public void setSchemaName(String schemaName);
 	public String getRemarks();
 	
 	public String getRelationType();
+	
+	public Integer getParameterCount();
 
 }

src/tbrugz/sqldump/dbmodel/Table.java

 		}
 		return sb.toString();
 	}
+	
+	@Override
+	public Integer getParameterCount() {
+		return null;
+	}
+	
 }

src/tbrugz/sqldump/dbmodel/View.java

 		this.constraints = constraints;
 	}
 
+	@Override
 	public Integer getParameterCount() {
 		return parameterCount;
 	}