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

make the TableBase insert* methods protected - should only be used by the lib. #71

Closed
bmunkholm opened this issue Dec 13, 2012 · 3 comments

Comments

@bmunkholm
Copy link
Contributor

No description provided.

@ghost ghost assigned nmihajlovski Dec 13, 2012
@nmihajlovski
Copy link
Contributor

Those methods were removed as part of the issue #70.

@bmunkholm
Copy link
Contributor Author

Ups - I think they should still be used. They are faster than the new
single line ones.

On Thu, Dec 20, 2012 at 7:22 PM, Nikolche Mihajlovski <
notifications@github.com> wrote:

Those methods were removed as part of the issue #70#70
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/71#issuecomment-11584620.

@bmunkholm bmunkholm reopened this Dec 20, 2012
@nmihajlovski
Copy link
Contributor

Hmm, it's not possible to make them protected without changing the design, because AbstractTable needs these methods to be public, to be able to call them. So, if the methods are protected, we need to call them from the same package, or from a sub-class of Table.

Another option is to construct some delegator object in the Table class, and put the insertXXX methods in the delegator, but the delegator will need a way to be exposed outside of the table (e.g. public method again) - this solution will decrease the number of directly exposed methods, but it's makes the design more complicated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants