Skip to content

Commit

Permalink
Merge pull request #2 from Caleumtatsu2010/develop
Browse files Browse the repository at this point in the history
release v1.0
  • Loading branch information
Caleumtatsu2010 authored Sep 26, 2023
2 parents 90e1b7a + cefebe6 commit 773ea28
Show file tree
Hide file tree
Showing 84 changed files with 2,321 additions and 208 deletions.
1 change: 1 addition & 0 deletions .idea/artifacts/techmate_core.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__org_json_json_200902112.xml

This file was deleted.

1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions .idea/runConfigurations/TechmateTomcat9_0_561.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/webContexts.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.caleumtatsu2010.cassandra.models.database.astra.CASToken;
import com.caleumtatsu2010.cassandra.models.database.CASPath;
import com.caleumtatsu2010.cassandra.models.database.astra.CASTokenName;
import com.caleumtatsu2010.cassandra.models.database.astra.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.dbList.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.KeySpace;
import com.caleumtatsu2010.utility.file.properties.PropsUtil;
import com.datastax.oss.driver.api.core.CqlSession;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.caleumtatsu2010.cassandra.dao.CASDao;
import com.caleumtatsu2010.cassandra.models.account.CASAccount;
import com.caleumtatsu2010.cassandra.models.database.CASPath;
import com.caleumtatsu2010.cassandra.models.database.astra.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.dbList.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.KeySpace;
import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.cql.BoundStatement;
Expand Down Expand Up @@ -94,26 +94,6 @@ public void insert(CASAccount account) {
}


// @Override
// public void insert(Product product) {
//
// Connection connection = null;
// PreparedStatement ps = null;
// ResultSet rs = null;
// try {
// connection = connectionUtil.getConn();
// ps = connection.prepareStatement(ProductQueries.insertProduct);
// String[] productAttr = new String[]{"id", "name", "price", "currency", "discountId",
// "quantity", "temp1", "temp2", "temp3", "temp4",
// "star", "ratings", "image", "subCategoryId"};
// StatementUtil.mapParams(ps, product, productAttr);
// ps.executeUpdate();
// System.out.println("Data Added Successfully");
// } catch (Exception e) {
// e.printStackTrace();
// } finally {
// ConnectionUtil.closeAll(connection, ps, rs);
// }

@Override
public void update(CASAccount casAccount, UUID id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.caleumtatsu2010.cassandra.dao.CASDao;
import com.caleumtatsu2010.cassandra.models.cart.CASCart;
import com.caleumtatsu2010.cassandra.models.database.CASPath;
import com.caleumtatsu2010.cassandra.models.database.astra.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.dbList.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.KeySpace;
import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.cql.BoundStatement;
Expand Down Expand Up @@ -76,27 +76,6 @@ public void insert(CASCart cart) {
}


// @Override
// public void insert(Product product) {
//
// Connection connection = null;
// PreparedStatement ps = null;
// ResultSet rs = null;
// try {
// connection = connectionUtil.getConn();
// ps = connection.prepareStatement(ProductQueries.insertProduct);
// String[] productAttr = new String[]{"id", "name", "price", "currency", "discountId",
// "quantity", "temp1", "temp2", "temp3", "temp4",
// "star", "ratings", "image", "subCategoryId"};
// StatementUtil.mapParams(ps, product, productAttr);
// ps.executeUpdate();
// System.out.println("Data Added Successfully");
// } catch (Exception e) {
// e.printStackTrace();
// } finally {
// ConnectionUtil.closeAll(connection, ps, rs);
// }


@Override
public void update(CASCart cart, UUID id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.caleumtatsu2010.cassandra.dao.CASDao;
import com.caleumtatsu2010.cassandra.models.cart.item.CASCartItem;
import com.caleumtatsu2010.cassandra.models.database.CASPath;
import com.caleumtatsu2010.cassandra.models.database.astra.AstraDatabases;
import com.caleumtatsu2010.cassandra.models.database.astra.dbList.AstraDatabases;
import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.cql.BoundStatement;
import com.datastax.oss.driver.api.core.cql.PreparedStatement;
Expand Down Expand Up @@ -42,6 +42,7 @@ public List<CASCartItem> getAll() {
, row.getUuid("cart_id")
, row.getString("product_id")
, row.getInt("num")
, row.getString("check")
));
}
return list;
Expand Down Expand Up @@ -71,28 +72,6 @@ public void insert(CASCartItem cartItem) {
}
}


// @Override
// public void insert(Product product) {
//
// Connection connection = null;
// PreparedStatement ps = null;
// ResultSet rs = null;
// try {
// connection = connectionUtil.getConn();
// ps = connection.prepareStatement(ProductQueries.insertProduct);
// String[] productAttr = new String[]{"id", "name", "price", "currency", "discountId",
// "quantity", "temp1", "temp2", "temp3", "temp4",
// "star", "ratings", "image", "subCategoryId"};
// StatementUtil.mapParams(ps, product, productAttr);
// ps.executeUpdate();
// System.out.println("Data Added Successfully");
// } catch (Exception e) {
// e.printStackTrace();
// } finally {
// ConnectionUtil.closeAll(connection, ps, rs);
// }


@Override
public void update(CASCartItem cartItem, UUID id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ public class CASCartItem {
private UUID cartId;
private String productId;
private int num;
private String check;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.caleumtatsu2010.cassandra.models.database.astra.dbList;

public class AstraDatabases {
public static String techmate = "techmate";
public static String astraDb2 = "";
public static String astraDb3 = "";
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 773ea28

Please sign in to comment.