Skip to content

Refactor DAO classes and DB scripts #43

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

Merged
merged 16 commits into from
Nov 16, 2015
Merged

Refactor DAO classes and DB scripts #43

merged 16 commits into from
Nov 16, 2015

Conversation

dilee
Copy link
Contributor

@dilee dilee commented Nov 3, 2015

Purpose
Refactoring DAO classes and DB scripts.

@dilee dilee closed this Nov 11, 2015
@dilee dilee reopened this Nov 11, 2015
@dilee dilee changed the title Refactored oracle DB script Refactored Device and Application DAO classes Nov 11, 2015
@dilee dilee changed the title Refactored Device and Application DAO classes Refactored DB scripts Nov 11, 2015
@dilee dilee changed the title Refactored DB scripts Refactored DB scripts and DAO classes Nov 16, 2015
@harshanL harshanL merged commit f8a2117 into wso2:master Nov 16, 2015
@dilee dilee changed the title Refactored DB scripts and DAO classes Refactored DAO classes and DB scripts Aug 15, 2017
mappingIds.add(rs.getInt(1));
}
return mappingIds;
// rs = stmt.getGeneratedKeys();
Copy link

Choose a reason for hiding this comment

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

Remove commented code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 77c4c34

@@ -39,6 +39,8 @@
public int addOperation(Operation operation) throws OperationManagementDAOException {
int operationId;
PreparedStatement stmt = null;
ByteArrayOutputStream bao = null;
ObjectOutputStream oos = null;
try {
Copy link

Choose a reason for hiding this comment

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

Cant we use try with resource here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in #1275

int operationId;
try {
operationId = super.addOperation(operation);
operation.setCreatedTimeStamp(new Timestamp(new java.util.Date().getTime()).toString());
operation.setId(operationId);
operation.setEnabled(true);
ProfileOperation profileOp = (ProfileOperation) operation;
//ProfileOperation profileOp = (ProfileOperation) operation;
Copy link

Choose a reason for hiding this comment

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

Remove commented line. And, can we change this to Java try with resource?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in #1275

@prabushi
Copy link

prabushi commented Apr 4, 2019

Add a description.

@dilee dilee changed the title Refactored DAO classes and DB scripts Refactor DAO classes and DB scripts Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants