diff options
author | Eike Stepper | 2012-01-14 10:27:01 +0000 |
---|---|---|
committer | Eike Stepper | 2012-01-14 10:27:01 +0000 |
commit | 0266166cb9ff9535c150250073ea1e57b42d2693 (patch) | |
tree | c006a3bc0ba1f6e1d8a2bc032eedc346f71eab0d /plugins/org.eclipse.net4j.db.tests | |
parent | 7416443692cdda72d1f704ea4fc5ececcc669df7 (diff) | |
download | cdo-0266166cb9ff9535c150250073ea1e57b42d2693.tar.gz cdo-0266166cb9ff9535c150250073ea1e57b42d2693.tar.xz cdo-0266166cb9ff9535c150250073ea1e57b42d2693.zip |
Adjusted copyrights to 2012
Diffstat (limited to 'plugins/org.eclipse.net4j.db.tests')
11 files changed, 670 insertions, 670 deletions
diff --git a/plugins/org.eclipse.net4j.db.tests/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.net4j.db.tests/.settings/org.eclipse.jdt.ui.prefs index aaef0ccba1..6726e7034a 100644 --- a/plugins/org.eclipse.net4j.db.tests/.settings/org.eclipse.jdt.ui.prefs +++ b/plugins/org.eclipse.net4j.db.tests/.settings/org.eclipse.jdt.ui.prefs @@ -1,120 +1,120 @@ -#Thu Feb 04 09:44:24 CET 2010 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> -sp_cleanup.add_default_serial_version_id=true -sp_cleanup.add_generated_serial_version_id=false -sp_cleanup.add_missing_annotations=true -sp_cleanup.add_missing_deprecated_annotations=true -sp_cleanup.add_missing_methods=false -sp_cleanup.add_missing_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_missing_override_annotations_interface_methods=false -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=true -sp_cleanup.format_source_code=true -sp_cleanup.format_source_code_changes_only=false -sp_cleanup.make_local_variable_final=false -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_type_abstract_if_missing_method=false -sp_cleanup.make_variable_declarations_final=false -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=true -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_trailing_whitespaces=true -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=true -sp_cleanup.remove_unused_imports=true -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_blocks=true -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_parentheses_in_expressions=true -sp_cleanup.use_this_for_non_static_field_access=true -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=true -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true +#Thu Feb 04 09:44:24 CET 2010
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=true
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=true
+cleanup.format_source_code=true
+cleanup.format_source_code_changes_only=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=true
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=false
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_parentheses_in_expressions=true
+cleanup.use_this_for_non_static_field_access=true
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=true
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup_profile=_EMFT
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_EMFT
+formatter_settings_version=11
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=false
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=true
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=false
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=true
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=true
+sp_cleanup.use_this_for_non_static_field_access=true
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=true
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/plugins/org.eclipse.net4j.db.tests/build.properties b/plugins/org.eclipse.net4j.db.tests/build.properties index 196672fc8a..292501fdfd 100644 --- a/plugins/org.eclipse.net4j.db.tests/build.properties +++ b/plugins/org.eclipse.net4j.db.tests/build.properties @@ -1,20 +1,20 @@ -# Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - copyright.txt,\ - plugin.properties,\ - about.html -src.includes = copyright.txt,\ - about.html +# Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Eike Stepper - initial API and implementation
+
+# NLS_MESSAGEFORMAT_VAR
+
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ copyright.txt,\
+ plugin.properties,\
+ about.html
+src.includes = copyright.txt,\
+ about.html
diff --git a/plugins/org.eclipse.net4j.db.tests/copyright.txt b/plugins/org.eclipse.net4j.db.tests/copyright.txt index e921242cf0..8f6328980e 100644 --- a/plugins/org.eclipse.net4j.db.tests/copyright.txt +++ b/plugins/org.eclipse.net4j.db.tests/copyright.txt @@ -1,8 +1,8 @@ -Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. -All rights reserved. This program and the accompanying materials -are made available under the terms of the Eclipse Public License v1.0 -which accompanies this distribution, and is available at -http://www.eclipse.org/legal/epl-v10.html - -Contributors: +Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+
+Contributors:
Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.net4j.db.tests/plugin.properties b/plugins/org.eclipse.net4j.db.tests/plugin.properties index f2e253a25e..00f93d4820 100644 --- a/plugins/org.eclipse.net4j.db.tests/plugin.properties +++ b/plugins/org.eclipse.net4j.db.tests/plugin.properties @@ -1,11 +1,11 @@ -# Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Eike Stepper - initial API and implementation - -pluginName = Net4j DB Framework Tests -providerName = Eclipse Modeling Project +# Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Eike Stepper - initial API and implementation
+
+pluginName = Net4j DB Framework Tests
+providerName = Eclipse Modeling Project
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AbstractDBTest.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AbstractDBTest.java index d62bcbd9ac..731f8f4fa0 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AbstractDBTest.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AbstractDBTest.java @@ -1,128 +1,128 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -import org.eclipse.net4j.db.DBType; -import org.eclipse.net4j.db.DBUtil; -import org.eclipse.net4j.db.IDBAdapter; -import org.eclipse.net4j.db.IDBConnectionProvider; -import org.eclipse.net4j.db.ddl.IDBField; -import org.eclipse.net4j.db.ddl.IDBIndex; -import org.eclipse.net4j.db.ddl.IDBSchema; -import org.eclipse.net4j.db.ddl.IDBTable; -import org.eclipse.net4j.util.tests.AbstractOMTest; - -import javax.sql.DataSource; - -import java.sql.Connection; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public abstract class AbstractDBTest<DATA_SOURCE extends DataSource> extends AbstractOMTest -{ - protected IDBAdapter dbAdapter; - - protected IDBConnectionProvider dbConnectionProvider; - - @SuppressWarnings("unchecked") - @Override - protected void doSetUp() throws Exception - { - dbAdapter = createDBAdapter(); - DATA_SOURCE dataSource = (DATA_SOURCE)dbAdapter.createJDBCDataSource(); - configureDataSource(dataSource); - dbConnectionProvider = DBUtil.createConnectionProvider(dataSource); - } - - @Override - protected void doTearDown() throws Exception - { - } - - protected abstract IDBAdapter createDBAdapter(); - - protected abstract void configureDataSource(DATA_SOURCE dataSource); - - protected Connection getConnection() - { - return dbConnectionProvider.getConnection(); - } - - public void testDBTypes() throws Exception - { - IDBSchema schema = DBUtil.createSchema("testDBTypes"); //$NON-NLS-1$ - DBType[] dbTypes = DBType.values(); - - int count = 0; - int i = 0; - for (DBType dbType : dbTypes) - { - IDBTable table = schema.addTable("table_" + i); //$NON-NLS-1$ - table.addField("field", dbType); //$NON-NLS-1$ - ++count; - - if (dbAdapter.isTypeIndexable(dbType)) - { - IDBTable idx_table = schema.addTable("idx_table" + i); //$NON-NLS-1$ - IDBField idx_field = idx_table.addField("field", dbType); //$NON-NLS-1$ - idx_table.addIndex(IDBIndex.Type.NON_UNIQUE, idx_field); - ++count; - - IDBTable uni_table = schema.addTable("uni_table" + i); //$NON-NLS-1$ - IDBField uni_field = uni_table.addField("field", dbType); //$NON-NLS-1$ - uni_table.addIndex(IDBIndex.Type.UNIQUE, uni_field); - ++count; - - IDBTable pk_table = schema.addTable("pk_table" + i); //$NON-NLS-1$ - IDBField pk_field = pk_table.addField("field", dbType); //$NON-NLS-1$ - pk_table.addIndex(IDBIndex.Type.PRIMARY_KEY, pk_field); - ++count; - } - - ++i; - } - - Set<IDBTable> tables = schema.create(dbAdapter, dbConnectionProvider); - assertEquals(count, tables.size()); - } - - // public void testEscapeStrings() throws Exception - // { - // IDBSchema schema = DBUtil.createSchema("testEscapeStrings"); //$NON-NLS-1$ - // IDBTable table = schema.addTable("testtable"); //$NON-NLS-1$ - // IDBField field = table.addField("strval", DBType.VARCHAR, 255); //$NON-NLS-1$ - // schema.create(dbAdapter, dbConnectionProvider); - // - // insertString(field, "My name is 'nobody', not body"); //$NON-NLS-1$ - // insertString(field, "a = 'hello'"); //$NON-NLS-1$ - // insertString(field, "'hello' == a"); //$NON-NLS-1$ - // insertString(field, "'hello'"); //$NON-NLS-1$ - // } - // - // private void insertString(IDBField field, String val) - // { - // Connection connection = getConnection(); - // IDBTable table = field.getTable(); - // - // try - // { - // DBUtil.insertRow(connection, dbAdapter, table, val); - // Object[] result = DBUtil.select(connection, (String)null, field); - // assertEquals(val, result[0]); - // } - // finally - // { - // DBUtil.update(connection, "DELETE FROM " + table); //$NON-NLS-1$ - // } - // } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+import org.eclipse.net4j.db.DBType;
+import org.eclipse.net4j.db.DBUtil;
+import org.eclipse.net4j.db.IDBAdapter;
+import org.eclipse.net4j.db.IDBConnectionProvider;
+import org.eclipse.net4j.db.ddl.IDBField;
+import org.eclipse.net4j.db.ddl.IDBIndex;
+import org.eclipse.net4j.db.ddl.IDBSchema;
+import org.eclipse.net4j.db.ddl.IDBTable;
+import org.eclipse.net4j.util.tests.AbstractOMTest;
+
+import javax.sql.DataSource;
+
+import java.sql.Connection;
+import java.util.Set;
+
+/**
+ * @author Eike Stepper
+ */
+public abstract class AbstractDBTest<DATA_SOURCE extends DataSource> extends AbstractOMTest
+{
+ protected IDBAdapter dbAdapter;
+
+ protected IDBConnectionProvider dbConnectionProvider;
+
+ @SuppressWarnings("unchecked")
+ @Override
+ protected void doSetUp() throws Exception
+ {
+ dbAdapter = createDBAdapter();
+ DATA_SOURCE dataSource = (DATA_SOURCE)dbAdapter.createJDBCDataSource();
+ configureDataSource(dataSource);
+ dbConnectionProvider = DBUtil.createConnectionProvider(dataSource);
+ }
+
+ @Override
+ protected void doTearDown() throws Exception
+ {
+ }
+
+ protected abstract IDBAdapter createDBAdapter();
+
+ protected abstract void configureDataSource(DATA_SOURCE dataSource);
+
+ protected Connection getConnection()
+ {
+ return dbConnectionProvider.getConnection();
+ }
+
+ public void testDBTypes() throws Exception
+ {
+ IDBSchema schema = DBUtil.createSchema("testDBTypes"); //$NON-NLS-1$
+ DBType[] dbTypes = DBType.values();
+
+ int count = 0;
+ int i = 0;
+ for (DBType dbType : dbTypes)
+ {
+ IDBTable table = schema.addTable("table_" + i); //$NON-NLS-1$
+ table.addField("field", dbType); //$NON-NLS-1$
+ ++count;
+
+ if (dbAdapter.isTypeIndexable(dbType))
+ {
+ IDBTable idx_table = schema.addTable("idx_table" + i); //$NON-NLS-1$
+ IDBField idx_field = idx_table.addField("field", dbType); //$NON-NLS-1$
+ idx_table.addIndex(IDBIndex.Type.NON_UNIQUE, idx_field);
+ ++count;
+
+ IDBTable uni_table = schema.addTable("uni_table" + i); //$NON-NLS-1$
+ IDBField uni_field = uni_table.addField("field", dbType); //$NON-NLS-1$
+ uni_table.addIndex(IDBIndex.Type.UNIQUE, uni_field);
+ ++count;
+
+ IDBTable pk_table = schema.addTable("pk_table" + i); //$NON-NLS-1$
+ IDBField pk_field = pk_table.addField("field", dbType); //$NON-NLS-1$
+ pk_table.addIndex(IDBIndex.Type.PRIMARY_KEY, pk_field);
+ ++count;
+ }
+
+ ++i;
+ }
+
+ Set<IDBTable> tables = schema.create(dbAdapter, dbConnectionProvider);
+ assertEquals(count, tables.size());
+ }
+
+ // public void testEscapeStrings() throws Exception
+ // {
+ // IDBSchema schema = DBUtil.createSchema("testEscapeStrings"); //$NON-NLS-1$
+ // IDBTable table = schema.addTable("testtable"); //$NON-NLS-1$
+ // IDBField field = table.addField("strval", DBType.VARCHAR, 255); //$NON-NLS-1$
+ // schema.create(dbAdapter, dbConnectionProvider);
+ //
+ // insertString(field, "My name is 'nobody', not body"); //$NON-NLS-1$
+ // insertString(field, "a = 'hello'"); //$NON-NLS-1$
+ // insertString(field, "'hello' == a"); //$NON-NLS-1$
+ // insertString(field, "'hello'"); //$NON-NLS-1$
+ // }
+ //
+ // private void insertString(IDBField field, String val)
+ // {
+ // Connection connection = getConnection();
+ // IDBTable table = field.getTable();
+ //
+ // try
+ // {
+ // DBUtil.insertRow(connection, dbAdapter, table, val);
+ // Object[] result = DBUtil.select(connection, (String)null, field);
+ // assertEquals(val, result[0]);
+ // }
+ // finally
+ // {
+ // DBUtil.update(connection, "DELETE FROM " + table); //$NON-NLS-1$
+ // }
+ // }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AllTests.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AllTests.java index 15bce5ce10..4c30b2653b 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AllTests.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/AllTests.java @@ -1,31 +1,31 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -/** - * @author Eike Stepper - */ -public class AllTests -{ - public static Test suite() - { - TestSuite suite = new TestSuite("Tests for Net4j"); //$NON-NLS-1$ - - // $JUnit-BEGIN$ - suite.addTestSuite(DerbyTest.class); - // $JUnit-END$ - - return suite; - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * @author Eike Stepper
+ */
+public class AllTests
+{
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Tests for Net4j"); //$NON-NLS-1$
+
+ // $JUnit-BEGIN$
+ suite.addTestSuite(DerbyTest.class);
+ // $JUnit-END$
+
+ return suite;
+ }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/DerbyTest.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/DerbyTest.java index 91d91b92f4..9f9a3bdc2c 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/DerbyTest.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/DerbyTest.java @@ -1,56 +1,56 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -import org.eclipse.net4j.db.IDBAdapter; -import org.eclipse.net4j.util.io.IOUtil; -import org.eclipse.net4j.util.io.TMPUtil; - -import org.apache.derby.jdbc.EmbeddedDataSource; - -import java.io.File; - -/** - * @author Eike Stepper - */ -public class DerbyTest extends AbstractDBTest<EmbeddedDataSource> -{ - private File dbFolder; - - @Override - protected IDBAdapter createDBAdapter() - { - return new org.eclipse.net4j.db.derby.EmbeddedDerbyAdapter(); - } - - @Override - protected void configureDataSource(EmbeddedDataSource dataSource) - { - dbFolder = TMPUtil.createTempFolder("derby_"); //$NON-NLS-1$ - deleteDBFolder(); - msg("Using DB folder: " + dbFolder.getAbsolutePath()); //$NON-NLS-1$ - - dataSource.setDatabaseName(dbFolder.getAbsolutePath()); - dataSource.setCreateDatabase("create"); //$NON-NLS-1$ - } - - @Override - protected void doTearDown() throws Exception - { - deleteDBFolder(); - super.doTearDown(); - } - - private void deleteDBFolder() - { - IOUtil.delete(dbFolder); - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+import org.eclipse.net4j.db.IDBAdapter;
+import org.eclipse.net4j.util.io.IOUtil;
+import org.eclipse.net4j.util.io.TMPUtil;
+
+import org.apache.derby.jdbc.EmbeddedDataSource;
+
+import java.io.File;
+
+/**
+ * @author Eike Stepper
+ */
+public class DerbyTest extends AbstractDBTest<EmbeddedDataSource>
+{
+ private File dbFolder;
+
+ @Override
+ protected IDBAdapter createDBAdapter()
+ {
+ return new org.eclipse.net4j.db.derby.EmbeddedDerbyAdapter();
+ }
+
+ @Override
+ protected void configureDataSource(EmbeddedDataSource dataSource)
+ {
+ dbFolder = TMPUtil.createTempFolder("derby_"); //$NON-NLS-1$
+ deleteDBFolder();
+ msg("Using DB folder: " + dbFolder.getAbsolutePath()); //$NON-NLS-1$
+
+ dataSource.setDatabaseName(dbFolder.getAbsolutePath());
+ dataSource.setCreateDatabase("create"); //$NON-NLS-1$
+ }
+
+ @Override
+ protected void doTearDown() throws Exception
+ {
+ deleteDBFolder();
+ super.doTearDown();
+ }
+
+ private void deleteDBFolder()
+ {
+ IOUtil.delete(dbFolder);
+ }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/HsqldbTest.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/HsqldbTest.java index 183da07d80..6dcc9c1d5f 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/HsqldbTest.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/HsqldbTest.java @@ -1,33 +1,33 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -import org.eclipse.net4j.db.IDBAdapter; -import org.eclipse.net4j.db.hsqldb.HSQLDBDataSource; - -/** - * @author Eike Stepper - */ -public class HsqldbTest extends AbstractDBTest<HSQLDBDataSource> -{ - @Override - protected IDBAdapter createDBAdapter() - { - return new org.eclipse.net4j.db.hsqldb.HSQLDBAdapter(); - } - - @Override - protected void configureDataSource(HSQLDBDataSource dataSource) - { - dataSource.setDatabase("jdbc:hsqldb:mem:dbtest"); //$NON-NLS-1$ - dataSource.setUser("sa"); //$NON-NLS-1$ - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+import org.eclipse.net4j.db.IDBAdapter;
+import org.eclipse.net4j.db.hsqldb.HSQLDBDataSource;
+
+/**
+ * @author Eike Stepper
+ */
+public class HsqldbTest extends AbstractDBTest<HSQLDBDataSource>
+{
+ @Override
+ protected IDBAdapter createDBAdapter()
+ {
+ return new org.eclipse.net4j.db.hsqldb.HSQLDBAdapter();
+ }
+
+ @Override
+ protected void configureDataSource(HSQLDBDataSource dataSource)
+ {
+ dataSource.setDatabase("jdbc:hsqldb:mem:dbtest"); //$NON-NLS-1$
+ dataSource.setUser("sa"); //$NON-NLS-1$
+ }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/MysqlTest.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/MysqlTest.java index 545f84529f..27441cdc22 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/MysqlTest.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/MysqlTest.java @@ -1,31 +1,31 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -/** - * @author Eike Stepper - */ -public class MysqlTest // extends AbstractDBTest<MysqlDataSource> -{ - // @Override - // protected IDBAdapter createDBAdapter() - // { - // return new org.eclipse.net4j.db.mysql.MYSQLAdapter(); - // } - // - // @Override - // protected void configureDataSource(MysqlDataSource dataSource) - // { - // dataSource.setDatabaseName("dbtest"); - // dataSource.setUser("root"); - // dataSource.setPassword("root"); - // } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+/**
+ * @author Eike Stepper
+ */
+public class MysqlTest // extends AbstractDBTest<MysqlDataSource>
+{
+ // @Override
+ // protected IDBAdapter createDBAdapter()
+ // {
+ // return new org.eclipse.net4j.db.mysql.MYSQLAdapter();
+ // }
+ //
+ // @Override
+ // protected void configureDataSource(MysqlDataSource dataSource)
+ // {
+ // dataSource.setDatabaseName("dbtest");
+ // dataSource.setUser("root");
+ // dataSource.setPassword("root");
+ // }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/TestSchema.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/TestSchema.java index c54ac06f99..2391035295 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/TestSchema.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/TestSchema.java @@ -1,205 +1,205 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests; - -import org.eclipse.net4j.db.DBType; -import org.eclipse.net4j.db.ddl.IDBField; -import org.eclipse.net4j.db.ddl.IDBIndex; -import org.eclipse.net4j.db.ddl.IDBTable; -import org.eclipse.net4j.spi.db.DBSchema; - -/** - * @author Eike Stepper - */ -public class TestSchema extends DBSchema -{ - public static final TestSchema INSTANCE = new TestSchema(); - - /** - * DBTable cdo_repository - */ - public static final IDBTable REPOSITORY = INSTANCE.addTable("cdo_repository"); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_NAME = // - REPOSITORY.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_UUID = // - REPOSITORY.addField("uuid", DBType.VARCHAR, 64); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_STARTS = // - REPOSITORY.addField("starts", DBType.BIGINT); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_STARTED = // - REPOSITORY.addField("started", DBType.BIGINT); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_STOPPED = // - REPOSITORY.addField("stopped", DBType.BIGINT); //$NON-NLS-1$ - - public static final IDBField REPOSITORY_NEXT_CDOID = // - REPOSITORY.addField("next_cdoid", DBType.BIGINT); //$NON-NLS-1$ - - /** - * DBTable cdo_packages - */ - public static final IDBTable PACKAGES = INSTANCE.addTable("cdo_packages"); //$NON-NLS-1$ - - public static final IDBField PACKAGES_ID = // - PACKAGES.addField("id", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField PACKAGES_URI = // - PACKAGES.addField("uri", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField PACKAGES_NAME = // - PACKAGES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField PACKAGES_ECORE = // - PACKAGES.addField("ecore", DBType.CLOB); //$NON-NLS-1$ - - public static final IDBField PACKAGES_DYNAMIC = // - PACKAGES.addField("dynamic", DBType.BOOLEAN); //$NON-NLS-1$ - - public static final IDBField PACKAGES_RANGE_LB = // - PACKAGES.addField("range_lb", DBType.BIGINT); //$NON-NLS-1$ - - public static final IDBField PACKAGES_RANGE_UB = // - PACKAGES.addField("range_ub", DBType.BIGINT); //$NON-NLS-1$ - - public static final IDBIndex INDEX_PACKAGES_PK = // - PACKAGES.addIndex(IDBIndex.Type.PRIMARY_KEY, PACKAGES_ID); - - public static final IDBIndex INDEX_PACKAGES_URI = // - PACKAGES.addIndex(IDBIndex.Type.UNIQUE, PACKAGES_URI); - - /** - * DBTable cdo_classes - */ - public static final IDBTable CLASSES = INSTANCE.addTable("cdo_classes"); //$NON-NLS-1$ - - public static final IDBField CLASSES_ID = // - CLASSES.addField("id", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField CLASSES_PACKAGE = // - CLASSES.addField("package", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField CLASSES_CLASSIFIER = // - CLASSES.addField("classifier", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField CLASSES_NAME = // - CLASSES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField CLASSES_ABSTRACT = // - CLASSES.addField("abstract", DBType.BOOLEAN); //$NON-NLS-1$ - - public static final IDBIndex INDEX_CLASSES_PK = // - CLASSES.addIndex(IDBIndex.Type.PRIMARY_KEY, CLASSES_ID); - - /** - * DBTable cdo_supertypes - */ - public static final IDBTable SUPERTYPES = INSTANCE.addTable("cdo_supertypes"); //$NON-NLS-1$ - - public static final IDBField SUPERTYPES_TYPE = // - SUPERTYPES.addField("type_id", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField SUPERTYPES_SUPERTYPE_PACKAGE = // - SUPERTYPES.addField("supertype_package", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField SUPERTYPES_SUPERTYPE_CLASSIFIER = // - SUPERTYPES.addField("supertype_classifier", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBIndex INDEX_SUPERTYPES_PK = // - SUPERTYPES.addIndex(IDBIndex.Type.PRIMARY_KEY, SUPERTYPES_TYPE); - - /** - * DBTable cdo_features - */ - public static final IDBTable FEATURES = INSTANCE.addTable("cdo_features"); //$NON-NLS-1$ - - public static final IDBField FEATURES_ID = // - FEATURES.addField("id", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField FEATURES_CLASS = // - FEATURES.addField("class", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField FEATURES_FEATURE = // - FEATURES.addField("feature", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField FEATURES_NAME = // - FEATURES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField FEATURES_TYPE = // - FEATURES.addField("type", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField FEATURES_REFERENCE_PACKAGE = // - FEATURES.addField("reference_package", DBType.VARCHAR, 255); //$NON-NLS-1$ - - public static final IDBField FEATURES_REFERENCE_CLASSIFIER = // - FEATURES.addField("reference_classifier", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBField FEATURES_MANY = // - FEATURES.addField("many", DBType.BOOLEAN); //$NON-NLS-1$ - - public static final IDBField FEATURES_CONTAINMENT = // - FEATURES.addField("containment", DBType.BOOLEAN); //$NON-NLS-1$ - - public static final IDBField FEATURES_INDEX = // - FEATURES.addField("idx", DBType.INTEGER); //$NON-NLS-1$ - - public static final IDBIndex INDEX_FEATURES_PK = // - FEATURES.addIndex(IDBIndex.Type.PRIMARY_KEY, FEATURES_ID); - - /** - * Name of object table - */ - public static final String CDO_OBJECTS = "cdo_objects"; //$NON-NLS-1$ - - /** - * Field names of attribute tables - */ - public static final String ATTRIBUTES_ID = "cdo_id"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_VERSION = "cdo_version"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_CLASS = "cdo_class"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_CREATED = "cdo_created"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_REVISED = "cdo_revised"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_RESOURCE = "cdo_resource"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_CONTAINER = "cdo_container"; //$NON-NLS-1$ - - public static final String ATTRIBUTES_FEATURE = "cdo_feature"; //$NON-NLS-1$ - - /** - * Field names of reference tables - */ - public static final String REFERENCES_FEATURE = "cdo_feature"; //$NON-NLS-1$ - - public static final String REFERENCES_SOURCE = "cdo_source"; //$NON-NLS-1$ - - public static final String REFERENCES_VERSION = "cdo_version"; //$NON-NLS-1$ - - public static final String REFERENCES_IDX = "cdo_idx"; //$NON-NLS-1$ - - public static final String REFERENCES_TARGET = "cdo_target"; //$NON-NLS-1$ - - private TestSchema() - { - super("CDO"); //$NON-NLS-1$ - } - - static - { - INSTANCE.lock(); - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests;
+
+import org.eclipse.net4j.db.DBType;
+import org.eclipse.net4j.db.ddl.IDBField;
+import org.eclipse.net4j.db.ddl.IDBIndex;
+import org.eclipse.net4j.db.ddl.IDBTable;
+import org.eclipse.net4j.spi.db.DBSchema;
+
+/**
+ * @author Eike Stepper
+ */
+public class TestSchema extends DBSchema
+{
+ public static final TestSchema INSTANCE = new TestSchema();
+
+ /**
+ * DBTable cdo_repository
+ */
+ public static final IDBTable REPOSITORY = INSTANCE.addTable("cdo_repository"); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_NAME = //
+ REPOSITORY.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_UUID = //
+ REPOSITORY.addField("uuid", DBType.VARCHAR, 64); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_STARTS = //
+ REPOSITORY.addField("starts", DBType.BIGINT); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_STARTED = //
+ REPOSITORY.addField("started", DBType.BIGINT); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_STOPPED = //
+ REPOSITORY.addField("stopped", DBType.BIGINT); //$NON-NLS-1$
+
+ public static final IDBField REPOSITORY_NEXT_CDOID = //
+ REPOSITORY.addField("next_cdoid", DBType.BIGINT); //$NON-NLS-1$
+
+ /**
+ * DBTable cdo_packages
+ */
+ public static final IDBTable PACKAGES = INSTANCE.addTable("cdo_packages"); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_ID = //
+ PACKAGES.addField("id", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_URI = //
+ PACKAGES.addField("uri", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_NAME = //
+ PACKAGES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_ECORE = //
+ PACKAGES.addField("ecore", DBType.CLOB); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_DYNAMIC = //
+ PACKAGES.addField("dynamic", DBType.BOOLEAN); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_RANGE_LB = //
+ PACKAGES.addField("range_lb", DBType.BIGINT); //$NON-NLS-1$
+
+ public static final IDBField PACKAGES_RANGE_UB = //
+ PACKAGES.addField("range_ub", DBType.BIGINT); //$NON-NLS-1$
+
+ public static final IDBIndex INDEX_PACKAGES_PK = //
+ PACKAGES.addIndex(IDBIndex.Type.PRIMARY_KEY, PACKAGES_ID);
+
+ public static final IDBIndex INDEX_PACKAGES_URI = //
+ PACKAGES.addIndex(IDBIndex.Type.UNIQUE, PACKAGES_URI);
+
+ /**
+ * DBTable cdo_classes
+ */
+ public static final IDBTable CLASSES = INSTANCE.addTable("cdo_classes"); //$NON-NLS-1$
+
+ public static final IDBField CLASSES_ID = //
+ CLASSES.addField("id", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField CLASSES_PACKAGE = //
+ CLASSES.addField("package", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField CLASSES_CLASSIFIER = //
+ CLASSES.addField("classifier", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField CLASSES_NAME = //
+ CLASSES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField CLASSES_ABSTRACT = //
+ CLASSES.addField("abstract", DBType.BOOLEAN); //$NON-NLS-1$
+
+ public static final IDBIndex INDEX_CLASSES_PK = //
+ CLASSES.addIndex(IDBIndex.Type.PRIMARY_KEY, CLASSES_ID);
+
+ /**
+ * DBTable cdo_supertypes
+ */
+ public static final IDBTable SUPERTYPES = INSTANCE.addTable("cdo_supertypes"); //$NON-NLS-1$
+
+ public static final IDBField SUPERTYPES_TYPE = //
+ SUPERTYPES.addField("type_id", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField SUPERTYPES_SUPERTYPE_PACKAGE = //
+ SUPERTYPES.addField("supertype_package", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField SUPERTYPES_SUPERTYPE_CLASSIFIER = //
+ SUPERTYPES.addField("supertype_classifier", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBIndex INDEX_SUPERTYPES_PK = //
+ SUPERTYPES.addIndex(IDBIndex.Type.PRIMARY_KEY, SUPERTYPES_TYPE);
+
+ /**
+ * DBTable cdo_features
+ */
+ public static final IDBTable FEATURES = INSTANCE.addTable("cdo_features"); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_ID = //
+ FEATURES.addField("id", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_CLASS = //
+ FEATURES.addField("class", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_FEATURE = //
+ FEATURES.addField("feature", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_NAME = //
+ FEATURES.addField("name", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_TYPE = //
+ FEATURES.addField("type", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_REFERENCE_PACKAGE = //
+ FEATURES.addField("reference_package", DBType.VARCHAR, 255); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_REFERENCE_CLASSIFIER = //
+ FEATURES.addField("reference_classifier", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_MANY = //
+ FEATURES.addField("many", DBType.BOOLEAN); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_CONTAINMENT = //
+ FEATURES.addField("containment", DBType.BOOLEAN); //$NON-NLS-1$
+
+ public static final IDBField FEATURES_INDEX = //
+ FEATURES.addField("idx", DBType.INTEGER); //$NON-NLS-1$
+
+ public static final IDBIndex INDEX_FEATURES_PK = //
+ FEATURES.addIndex(IDBIndex.Type.PRIMARY_KEY, FEATURES_ID);
+
+ /**
+ * Name of object table
+ */
+ public static final String CDO_OBJECTS = "cdo_objects"; //$NON-NLS-1$
+
+ /**
+ * Field names of attribute tables
+ */
+ public static final String ATTRIBUTES_ID = "cdo_id"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_VERSION = "cdo_version"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_CLASS = "cdo_class"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_CREATED = "cdo_created"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_REVISED = "cdo_revised"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_RESOURCE = "cdo_resource"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_CONTAINER = "cdo_container"; //$NON-NLS-1$
+
+ public static final String ATTRIBUTES_FEATURE = "cdo_feature"; //$NON-NLS-1$
+
+ /**
+ * Field names of reference tables
+ */
+ public static final String REFERENCES_FEATURE = "cdo_feature"; //$NON-NLS-1$
+
+ public static final String REFERENCES_SOURCE = "cdo_source"; //$NON-NLS-1$
+
+ public static final String REFERENCES_VERSION = "cdo_version"; //$NON-NLS-1$
+
+ public static final String REFERENCES_IDX = "cdo_idx"; //$NON-NLS-1$
+
+ public static final String REFERENCES_TARGET = "cdo_target"; //$NON-NLS-1$
+
+ private TestSchema()
+ {
+ super("CDO"); //$NON-NLS-1$
+ }
+
+ static
+ {
+ INSTANCE.lock();
+ }
+}
diff --git a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/bundle/Activator.java b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/bundle/Activator.java index eab29037e5..672d548d25 100644 --- a/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/bundle/Activator.java +++ b/plugins/org.eclipse.net4j.db.tests/src/org/eclipse/net4j/db/tests/bundle/Activator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.db.tests.bundle; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -/** - * @author Eike Stepper - */ -public class Activator implements BundleActivator -{ - public void start(BundleContext context) throws Exception - { - } - - public void stop(BundleContext context) throws Exception - { - } -} +/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.tests.bundle;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @author Eike Stepper
+ */
+public class Activator implements BundleActivator
+{
+ public void start(BundleContext context) throws Exception
+ {
+ }
+
+ public void stop(BundleContext context) throws Exception
+ {
+ }
+}
|