public DatabaseField(String fieldName, DatabaseTable databaseTable) { this.index = -1; this.sqlType = -1; this.name = fieldName; this.table = databaseTable; initDDLFields(); }
public DatabaseField(String qualifiedName) { this.index = -1; this.sqlType = -1; int index = qualifiedName.lastIndexOf('.'); if (index == -1) { this.name = qualifiedName; this.table = new DatabaseTable(); } else { this.name = qualifiedName.substring(index + 1, qualifiedName.length()); this.table = new DatabaseTable(qualifiedName.substring(0, index)); } initDDLFields(); }