diff options
author | bvosburgh | 2008-09-12 05:20:22 +0000 |
---|---|---|
committer | bvosburgh | 2008-09-12 05:20:22 +0000 |
commit | 9a4a93e9c623edf8b2fa8f12eda4af78e94c96ac (patch) | |
tree | a91e196bd31cdf40278555bdf4ce5b739dc6d68f /jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java | |
parent | 3c751de5e716860007a8c030215d623a1897ca40 (diff) | |
download | webtools.dali-9a4a93e9c623edf8b2fa8f12eda4af78e94c96ac.tar.gz webtools.dali-9a4a93e9c623edf8b2fa8f12eda4af78e94c96ac.tar.xz webtools.dali-9a4a93e9c623edf8b2fa8f12eda4af78e94c96ac.zip |
[242321] database case-sensitivity
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java index 4ea223d068..ef4d334af0 100644 --- a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java +++ b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/Table.java @@ -45,16 +45,24 @@ public interface Table int columnsSize(); /** - * Return the names of the table's columns. + * Return the column with specified name. The name must be an exact match + * of the column's name. + * @see #getColumnForIdentifier(String) */ - Iterator<String> columnNames(); + Column getColumnNamed(String name); /** - * Return the column with specified name. The name should be an SQL - * identifier (i.e. quoted when case-sensitive, unquoted when - * case-insensitive). + * Return the table's column identifers, sorted by name. */ - Column getColumnNamed(String name); + Iterator<String> sortedColumnIdentifiers(); + + /** + * Return the column for the specified identifier. The identifier should + * be an SQL identifier (i.e. quoted when case-sensitive or containing + * special characters, unquoted otherwise). + * @see #getColumnNamed(String) + */ + Column getColumnForIdentifier(String identifier); // ********** primary key columns ********** |