From f6bbcd2187dcafdd04693c1a692a3a4ab2f97d17 Mon Sep 17 00:00:00 2001 From: mdb Date: Sat, 22 Mar 2003 01:20:13 +0000 Subject: [PATCH] Added another constructor. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1072 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/jdbc/jora/Table.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Table.java b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Table.java index 70425441..a3a215f2 100644 --- a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Table.java +++ b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Table.java @@ -67,6 +67,22 @@ public class Table { init(className, tableName, s, keys, false); } + /** Constructor for table object. Make association between Java class + * and database table. + * + * @param tclassName name of Java class + * @param tableName name of database table mapped on this Java class + * @param key table's primary key. This parameter is used in UPDATE/DELETE + * operations to locate record in the table. + * @param s session, which should be opened before first access to the table + * @param mixedCaseConvert whether or not to convert mixed case field + * names into underscore separated uppercase column names. + */ + public Table(String className, String tableName, Session s, String[] keys, + boolean mixedCaseConvert) { + init(className, tableName, s, keys, mixedCaseConvert); + } + /** Constructor for table object. Make association between Java class * and database table. Name of Java class should be the same as name of * the database table