diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:43:01 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:43:01 +0000 |
commit | 1f1454e48621e597b3e4fd3ad53251dbb0c46a79 (patch) | |
tree | 7c2dfc59a781c60794fc0c5d92f3a0c4f81f6d28 /connectivity/qa | |
parent | 97db6ea68930caf74c805ee1971c48d69939facb (diff) |
INTEGRATION: CWS dba202f (1.1.2); FILE ADDED
2006/01/23 16:14:14 fs 1.1.2.1: lean column descriptor for creating tables in a HSQLDB database
Diffstat (limited to 'connectivity/qa')
-rw-r--r-- | connectivity/qa/connectivity/tools/HsqlColumnDescriptor.java | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/connectivity/qa/connectivity/tools/HsqlColumnDescriptor.java b/connectivity/qa/connectivity/tools/HsqlColumnDescriptor.java new file mode 100644 index 000000000000..d1f7e7b56e88 --- /dev/null +++ b/connectivity/qa/connectivity/tools/HsqlColumnDescriptor.java @@ -0,0 +1,70 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: HsqlColumnDescriptor.java,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: rt $ $Date: 2006-02-06 16:43:01 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +package connectivity.tools; + +/** is a very simply and rudimentary descriptor of table columns, for creating HSQLDB tables + */ +public class HsqlColumnDescriptor +{ + public String Name; + public String TypeName; + public boolean NotNull; + public boolean PrimaryKey; + + public HsqlColumnDescriptor( String _Name, String _TypeName ) + { + Name = _Name; + TypeName = _TypeName; + NotNull = false; + PrimaryKey = false; + } + + public HsqlColumnDescriptor( String _Name, String _TypeName, boolean _NotNull ) + { + Name = _Name; + TypeName = _TypeName; + NotNull = _NotNull; + PrimaryKey = false; + } + + public HsqlColumnDescriptor( String _Name, String _TypeName, boolean _NotNull, boolean _PrimaryKey ) + { + Name = _Name; + TypeName = _TypeName; + NotNull = _NotNull; + PrimaryKey = _PrimaryKey; + } +}; |