Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING-CHANGES: insertLong(), insertString() etc, moved into public inner class + ColumnType enum renamed #97

Merged
merged 11 commits into from
Sep 3, 2013

Conversation

mekjaer
Copy link

@mekjaer mekjaer commented Sep 2, 2013

No description provided.

mekjaer added 7 commits August 29, 2013 16:25
…nto inner class.

The methods are still publicly avaible, but does not show up in
autocompletion, unless you call the getter method in Table, that holds
an instance of the inner class.
Performance test added, to easily check if performance takes it hit. It
does not
…ose and more java like

e.g. ColumnType.ColumnTypeString is now ColumnType.STRING etc
ColumnTypeDate(7),
ColumnTypeTable(5),
ColumnTypeMixed(6);
BOOLEAN(1),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider to make the Enums with only first letter Uppercase, and the rest lowercase. That way, it's the same as you write in the typed interface.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is, Enums are constants in java. The convention is to use upper case. See:
http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html

It's correct that it differs from the typed interface differs anyway. But the typed interface is a different animal and also supports simple types e.g. int and long instead of Integer and Long.

@bmunkholm
Copy link
Contributor

Before trying to push something to a branch, you need to pull the latest changes to that branch first. Otherwise it can't be merged automatically, and the differences looks huge.

@@ -0,0 +1,35 @@
package com.tightdb.examples.quickbenchmark;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we move this to /experiment folder, since all under examples are distributed to customers.
It would also be good here to test the difference between add() and the local insert() methods.

@bmunkholm
Copy link
Contributor

+1

mekjaer pushed a commit that referenced this pull request Sep 3, 2013
BREAKING-CHANGES: insertLong(), insertString() etc, moved into public inner class + ColumnType enum renamed
@mekjaer mekjaer merged commit 532c057 into realm:Breaking-updates Sep 3, 2013
@VirajS1202 VirajS1202 mentioned this pull request Jan 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants