|
|
|
|
|
|
|
|
import com.healthmarketscience.jackcess.complex.ComplexColumnInfo; |
|
|
import com.healthmarketscience.jackcess.complex.ComplexColumnInfo; |
|
|
import com.healthmarketscience.jackcess.complex.ComplexValue; |
|
|
import com.healthmarketscience.jackcess.complex.ComplexValue; |
|
|
import com.healthmarketscience.jackcess.complex.ComplexValueForeignKey; |
|
|
import com.healthmarketscience.jackcess.complex.ComplexValueForeignKey; |
|
|
|
|
|
import com.healthmarketscience.jackcess.expr.Identifier; |
|
|
import com.healthmarketscience.jackcess.impl.complex.ComplexValueForeignKeyImpl; |
|
|
import com.healthmarketscience.jackcess.impl.complex.ComplexValueForeignKeyImpl; |
|
|
import com.healthmarketscience.jackcess.util.ColumnValidator; |
|
|
import com.healthmarketscience.jackcess.util.ColumnValidator; |
|
|
import com.healthmarketscience.jackcess.util.SimpleColumnValidator; |
|
|
import com.healthmarketscience.jackcess.util.SimpleColumnValidator; |
|
|
|
|
|
|
|
|
return withErrorContext(msg, getDatabase(), getTable().getName(), getName()); |
|
|
return withErrorContext(msg, getDatabase(), getTable().getName(), getName()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
boolean isThisColumn(Identifier identifier) { |
|
|
|
|
|
return(getTable().isThisTable(identifier) && |
|
|
|
|
|
identifier.getObjectName().equalsIgnoreCase(getName())); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private static String withErrorContext( |
|
|
private static String withErrorContext( |
|
|
String msg, DatabaseImpl db, String tableName, String colName) { |
|
|
String msg, DatabaseImpl db, String tableName, String colName) { |
|
|
return msg + " (Db=" + db.getName() + ";Table=" + tableName + ";Column=" + |
|
|
return msg + " (Db=" + db.getName() + ";Table=" + tableName + ";Column=" + |