├── InterfaceAbstractDemo ├── .classpath ├── .project ├── .settings │ └── org.eclipse.core.resources.prefs ├── README.md ├── bin │ ├── Abstract │ │ ├── BaseCustomerManager.class │ │ ├── CustomerCheckService.class │ │ ├── CustomerService.class │ │ └── Entity.class │ ├── Adapters │ │ └── MernisServiceAdapter.class │ ├── Concrete │ │ ├── CustomerCheckManager.class │ │ ├── NeroCustomerManager.class │ │ └── StarbucksCustomerManager.class │ ├── Entities │ │ └── Customer.class │ ├── Main.class │ └── tr │ │ └── gov │ │ └── nvi │ │ └── tckimlik │ │ └── WS │ │ ├── KPSPublic.class │ │ ├── KPSPublicLocator.class │ │ ├── KPSPublicSoap.class │ │ ├── KPSPublicSoapProxy.class │ │ └── KPSPublicSoapStub.class ├── demo.png └── src │ ├── Abstract │ ├── BaseCustomerManager.java │ ├── CustomerCheckService.java │ ├── CustomerService.java │ └── Entity.java │ ├── Adapters │ └── MernisServiceAdapter.java │ ├── Concrete │ ├── CustomerCheckManager.java │ ├── NeroCustomerManager.java │ └── StarbucksCustomerManager.java │ ├── Entities │ └── Customer.java │ ├── Main.java │ └── tr │ └── gov │ └── nvi │ └── tckimlik │ └── WS │ ├── KPSPublic.java │ ├── KPSPublicLocator.java │ ├── KPSPublicSoap.java │ ├── KPSPublicSoapProxy.java │ └── KPSPublicSoapStub.java ├── README.md ├── day2 ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── Category.class │ ├── CategoryManager.class │ ├── Course.class │ ├── CourseManager.class │ ├── Main.class │ ├── Student.class │ └── StudentManager.class └── src │ ├── Category.java │ ├── CategoryManager.java │ ├── Course.java │ ├── CourseManager.java │ ├── Main.java │ ├── Student.java │ └── StudentManager.java ├── day2Homework2 ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ ├── Classes.java │ ├── Methods.java │ ├── Product.java │ ├── ProductManager.java │ └── SayiBulma.java ├── day3Homework1 ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ ├── day3Homework1 │ ├── CustomerManager.java │ ├── KrediUI.java │ └── Main.java │ ├── krediManager │ ├── BaseKrediManager.java │ ├── OgrenciKrediManager.java │ ├── OgretmenKrediManager.java │ └── TarimKrediManager.java │ └── logger │ ├── BaseLogger.java │ ├── DatabaseLogger.java │ └── FileLogger.java ├── day3Homework2 ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── day3Homework2 │ ├── BaseUserManager.java │ ├── Instructor.java │ ├── InstructorManager.java │ ├── Main.java │ ├── Student.java │ ├── StudentManager.java │ └── User.java ├── day4Homework1 ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── abstractClasses │ ├── GameCalculator.java │ ├── KidsGameCalculator.java │ ├── Main.java │ ├── MenGameCalculator.java │ ├── OlderGameCalculator.java │ └── WomenGameCalculator.java ├── bin │ ├── abstractDemo │ │ ├── BaseDatabaseManager.class │ │ ├── CustomerManager.class │ │ ├── Main.class │ │ ├── OracleDatabaseManager.class │ │ └── SqlServerDatabaseManager.class │ ├── day4Homework1 │ │ ├── GameCalculator.class │ │ └── KidsGameCalculator.class │ ├── interfaceDemo │ │ ├── Eatable.class │ │ ├── Main.class │ │ ├── OutSourceWorker.class │ │ ├── Robot.class │ │ ├── Workable.class │ │ └── Worker.class │ ├── interfaces │ │ ├── CustomerDal.class │ │ ├── CustomerManager.class │ │ ├── Main.class │ │ ├── MySqlCustomerDal.class │ │ └── OracleCustomerDal.class │ └── staticDemo │ │ ├── DatabaseHelper$Connection.class │ │ ├── DatabaseHelper$Crud.class │ │ ├── DatabaseHelper.class │ │ ├── Main.class │ │ ├── Product.class │ │ ├── ProductManager.class │ │ ├── ProductValidator$Baska.class │ │ └── ProductValidator.class └── src │ ├── abstractDemo │ ├── BaseDatabaseManager.java │ ├── CustomerManager.java │ ├── Main.java │ ├── OracleDatabaseManager.java │ └── SqlServerDatabaseManager.java │ ├── day4Homework1 │ ├── GameCalculator.java │ └── KidsGameCalculator.java │ ├── interfaceDemo │ ├── Eatable.java │ ├── Main.java │ ├── OutSourceWorker.java │ ├── Robot.java │ ├── Workable.java │ └── Worker.java │ ├── interfaces │ ├── CustomerDal.java │ ├── CustomerManager.java │ ├── Main.java │ ├── MySqlCustomerDal.java │ └── OracleCustomerDal.java │ └── staticDemo │ ├── DatabaseHelper.java │ ├── Main.java │ ├── Product.java │ ├── ProductManager.java │ └── ProductValidator.java ├── eCommerceProject ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── README.md ├── bin │ └── eCommerceProject │ │ ├── Main.class │ │ ├── business │ │ ├── abstracts │ │ │ └── AuthService.class │ │ └── concretes │ │ │ └── AuthManager.class │ │ ├── core │ │ └── utils │ │ │ ├── GoogleManagerAdapter.class │ │ │ ├── GoogleService.class │ │ │ └── Result.class │ │ ├── dataAccess │ │ ├── abstracts │ │ │ └── UserDao.class │ │ └── concretes │ │ │ └── HibernateUserDao.class │ │ ├── entities │ │ ├── abstracts │ │ │ └── Entity.class │ │ └── concretes │ │ │ └── User.class │ │ └── googleService │ │ └── GoogleManager.class ├── output.PNG └── src │ └── eCommerceProject │ ├── Main.java │ ├── business │ ├── abstracts │ │ └── AuthService.java │ └── concretes │ │ └── AuthManager.java │ ├── core │ └── utils │ │ ├── GoogleManagerAdapter.java │ │ ├── RegisterService.java │ │ └── Result.java │ ├── dataAccess │ ├── abstracts │ │ └── UserDao.java │ └── concretes │ │ └── HibernateUserDao.java │ ├── entities │ ├── abstracts │ │ └── Entity.java │ └── concretes │ │ └── User.java │ └── googleService │ └── GoogleManager.java ├── gameProject ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── README.md ├── bin │ ├── Abstract │ │ ├── CampaignService.class │ │ ├── Entity.class │ │ ├── GameService.class │ │ ├── GamerService.class │ │ ├── SaleService.class │ │ └── UserCheckService.class │ ├── Adapters │ │ └── MernisServiceAdapter.class │ ├── Concrete │ │ ├── CampaignManager.class │ │ ├── GameManager.class │ │ ├── GamerManager.class │ │ ├── SaleManager.class │ │ └── UserCheckManager.class │ ├── Entities │ │ ├── Campaign.class │ │ ├── Game.class │ │ └── Gamer.class │ ├── Main.class │ └── tr │ │ └── gov │ │ └── nvi │ │ └── tckimlik │ │ └── WS │ │ ├── KPSPublic.class │ │ ├── KPSPublicLocator.class │ │ ├── KPSPublicSoap.class │ │ ├── KPSPublicSoapProxy.class │ │ └── KPSPublicSoapStub.class ├── cikti.PNG └── src │ ├── Abstract │ ├── CampaignService.java │ ├── Entity.java │ ├── GameService.java │ ├── GamerService.java │ ├── SaleService.java │ └── UserCheckService.java │ ├── Adapters │ └── MernisServiceAdapter.java │ ├── Concrete │ ├── CampaignManager.java │ ├── GameManager.java │ ├── GamerManager.java │ ├── SaleManager.java │ └── UserCheckManager.java │ ├── Entities │ ├── Campaign.java │ ├── Game.java │ └── Gamer.java │ ├── Main.java │ └── tr │ └── gov │ └── nvi │ └── tckimlik │ └── WS │ ├── KPSPublic.java │ ├── KPSPublicLocator.java │ ├── KPSPublicSoap.java │ ├── KPSPublicSoapProxy.java │ └── KPSPublicSoapStub.java ├── inheritance ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── inheritance │ ├── CorporateCustomer.java │ ├── Customer.java │ ├── CustomerManager.java │ ├── IndividualCustomer.java │ ├── Main.java │ └── SendikaCustomer.java ├── inheritance2 ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── inheritance2 │ ├── CustomerManager.java │ ├── DatabaseLogger.java │ ├── EmailLogger.java │ ├── FileLogger.java │ ├── LogManager.java │ ├── Logger.java │ └── Main.java ├── interfaces ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── bin │ └── interfaces │ │ ├── Customer.class │ │ ├── CustomerManager.class │ │ ├── DatabaseLogger.class │ │ ├── EmailLogger.class │ │ ├── FileLogger.class │ │ ├── Logger.class │ │ ├── Main.class │ │ ├── SmsLogger.class │ │ └── Utils.class └── src │ └── interfaces │ ├── Customer.java │ ├── CustomerManager.java │ ├── DatabaseLogger.java │ ├── EmailLogger.java │ ├── FileLogger.java │ ├── Logger.java │ ├── Main.java │ ├── SmsLogger.java │ └── Utils.java ├── nLayeredDemo ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── bin │ └── nLayeredDemo │ │ ├── Main.class │ │ ├── business │ │ ├── abstracts │ │ │ └── ProductService.class │ │ └── concretes │ │ │ └── ProductManager.class │ │ ├── core │ │ ├── JLoggerManagerAdapter.class │ │ └── LoggerService.class │ │ ├── dataAccess │ │ ├── abstracts │ │ │ └── ProductDao.class │ │ └── concretes │ │ │ ├── AbcProductDao.class │ │ │ └── HibernateProductDao.class │ │ ├── entities │ │ ├── abstracts │ │ │ └── Entity.class │ │ └── concretes │ │ │ └── Product.class │ │ └── jLogger │ │ └── JLoggerManager.class └── src │ └── nLayeredDemo │ ├── Main.java │ ├── business │ ├── abstracts │ │ └── ProductService.java │ └── concretes │ │ └── ProductManager.java │ ├── core │ ├── JLoggerManagerAdapter.java │ └── LoggerService.java │ ├── dataAccess │ ├── abstracts │ │ └── ProductDao.java │ └── concretes │ │ ├── AbcProductDao.java │ │ └── HibernateProductDao.java │ ├── entities │ ├── abstracts │ │ └── Entity.java │ └── concretes │ │ └── Product.java │ └── jLogger │ └── JLoggerManager.java ├── northwind ├── NorthwindApplication.java └── northwind │ ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs │ ├── src │ ├── main │ │ ├── java │ │ │ └── kodlamaio │ │ │ │ └── northwind │ │ │ │ ├── NorthwindApplication.java │ │ │ │ ├── api │ │ │ │ └── controllers │ │ │ │ │ └── ProductsController.java │ │ │ │ ├── business │ │ │ │ ├── abstracts │ │ │ │ │ └── ProductService.java │ │ │ │ └── concretes │ │ │ │ │ └── ProductManager.java │ │ │ │ ├── dataAccess │ │ │ │ └── abstracts │ │ │ │ │ └── ProductDao.java │ │ │ │ └── entities │ │ │ │ └── concretes │ │ │ │ └── Product.java │ │ └── resources │ │ │ └── application.properties │ └── test │ │ └── java │ │ └── kodlamaio │ │ └── northwind │ │ └── NorthwindApplicationTests.java │ └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── kodlamaio │ │ │ └── northwind │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── application.properties │ └── kodlamaio │ │ └── northwind │ │ ├── NorthwindApplication.class │ │ ├── api │ │ └── controllers │ │ │ └── ProductsController.class │ │ ├── business │ │ ├── abstracts │ │ │ └── ProductService.class │ │ └── concretes │ │ │ └── ProductManager.class │ │ ├── dataAccess │ │ └── abstracts │ │ │ └── ProductDao.class │ │ └── entities │ │ └── concretes │ │ └── Product.class │ └── test-classes │ └── kodlamaio │ └── northwind │ └── NorthwindApplicationTests.class └── oopIntro ├── .classpath ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── bin └── oopIntro │ ├── Category.class │ ├── Main.class │ ├── Product.class │ └── ProductManager.class └── src └── oopIntro ├── Category.java ├── Main.java ├── Product.java └── ProductManager.java /InterfaceAbstractDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | InterfaceAbstractDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jem.workbench.JavaEMFNature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/Main.java=UTF-8 3 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8 4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8 5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8 6 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8 7 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/README.md: -------------------------------------------------------------------------------- 1 | # interfaceAbstractDemo uml sınıf diyagramı 2 | umlClassDiagram 3 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Abstract/BaseCustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Abstract/BaseCustomerManager.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Abstract/CustomerCheckService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Abstract/CustomerCheckService.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Abstract/CustomerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Abstract/CustomerService.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Abstract/Entity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Abstract/Entity.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Adapters/MernisServiceAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Adapters/MernisServiceAdapter.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Concrete/CustomerCheckManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Concrete/CustomerCheckManager.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Concrete/NeroCustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Concrete/NeroCustomerManager.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Concrete/StarbucksCustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Concrete/StarbucksCustomerManager.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Entities/Customer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Entities/Customer.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/Main.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class -------------------------------------------------------------------------------- /InterfaceAbstractDemo/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/demo.png -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Abstract/BaseCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Customer; 4 | 5 | public abstract class BaseCustomerManager implements CustomerService{ 6 | 7 | @Override 8 | public void save(Customer customer) { 9 | System.out.println("saved to db: " + customer.getFirstName()); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Abstract/CustomerCheckService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Customer; 4 | 5 | public interface CustomerCheckService { 6 | boolean checkIfRealPerson(Customer customer); 7 | } 8 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Abstract/CustomerService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Customer; 4 | 5 | public interface CustomerService { 6 | void save(Customer customer); 7 | } 8 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Abstract/Entity.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Adapters/MernisServiceAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/InterfaceAbstractDemo/src/Adapters/MernisServiceAdapter.java -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Concrete/CustomerCheckManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import Abstract.CustomerCheckService; 4 | import Entities.Customer; 5 | 6 | public class CustomerCheckManager implements CustomerCheckService{ 7 | 8 | @Override 9 | public boolean checkIfRealPerson(Customer customer) { 10 | return true; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Concrete/NeroCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import Abstract.BaseCustomerManager; 4 | 5 | public class NeroCustomerManager extends BaseCustomerManager{ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Concrete/StarbucksCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import Abstract.BaseCustomerManager; 4 | import Abstract.CustomerCheckService; 5 | import Entities.Customer; 6 | 7 | public class StarbucksCustomerManager extends BaseCustomerManager{ 8 | 9 | CustomerCheckService customerCheckService; 10 | public StarbucksCustomerManager(CustomerCheckService customerCheckService) { 11 | this.customerCheckService = customerCheckService; 12 | } 13 | 14 | @Override 15 | public void save(Customer customer) { 16 | if(customerCheckService.checkIfRealPerson(customer)) { 17 | super.save(customer); 18 | } 19 | else { 20 | System.out.println("kullanici bulunamadi"); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Entities/Customer.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | 4 | import Abstract.Entity; 5 | 6 | public class Customer implements Entity{ 7 | private int id; 8 | private String firstName; 9 | private String lastName; 10 | private java.util.Date dateOfBirth; 11 | private String nationalityId; 12 | 13 | public Customer() { 14 | } 15 | 16 | public Customer(int id, String nationalityId, String firstName, String lastName, java.util.Date dateOfBirth) { 17 | this.id = id; 18 | this.nationalityId = nationalityId; 19 | this.firstName = firstName; 20 | this.lastName = lastName; 21 | this.dateOfBirth = dateOfBirth; 22 | } 23 | 24 | public int getId() { 25 | return id; 26 | } 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | public String getFirstName() { 31 | return firstName; 32 | } 33 | public void setFirstName(String firstName) { 34 | this.firstName = firstName; 35 | } 36 | public String getLastName() { 37 | return lastName; 38 | } 39 | public void setLastName(String lastName) { 40 | this.lastName = lastName; 41 | } 42 | public java.util.Date getDateOfBirth() { 43 | return dateOfBirth; 44 | } 45 | public void setDateOfBirth(java.util.Date date) { 46 | this.dateOfBirth = date; 47 | } 48 | public String getNationalityId() { 49 | return nationalityId; 50 | } 51 | public void setNationalityId(String nationalityId) { 52 | this.nationalityId = nationalityId; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/Main.java: -------------------------------------------------------------------------------- 1 | import Adapters.MernisServiceAdapter; 2 | import Concrete.StarbucksCustomerManager; 3 | import Entities.Customer; 4 | 5 | import java.util.GregorianCalendar; 6 | 7 | public class Main { 8 | 9 | 10 | public static void main(String[] args) { 11 | Customer customer = new Customer(); 12 | customer.setFirstName("ZEYNEP"); 13 | customer.setLastName("SALMAN"); 14 | customer.setDateOfBirth(new GregorianCalendar(2002, 04 , 10).getTime()); 15 | customer.setNationalityId("1122333"); 16 | StarbucksCustomerManager starbucksCustomerManager = new StarbucksCustomerManager(new MernisServiceAdapter()); 17 | starbucksCustomerManager.save(customer); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/tr/gov/nvi/tckimlik/WS/KPSPublic.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublic.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublic extends javax.xml.rpc.Service { 11 | public java.lang.String getKPSPublicSoapAddress(); 12 | 13 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException; 14 | 15 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; 16 | } 17 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicLocator.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicLocator extends org.apache.axis.client.Service implements tr.gov.nvi.tckimlik.WS.KPSPublic { 11 | 12 | public KPSPublicLocator() { 13 | } 14 | 15 | 16 | public KPSPublicLocator(org.apache.axis.EngineConfiguration config) { 17 | super(config); 18 | } 19 | 20 | public KPSPublicLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { 21 | super(wsdlLoc, sName); 22 | } 23 | 24 | // Use to get a proxy class for KPSPublicSoap 25 | private java.lang.String KPSPublicSoap_address = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx"; 26 | 27 | public java.lang.String getKPSPublicSoapAddress() { 28 | return KPSPublicSoap_address; 29 | } 30 | 31 | // The WSDD service name defaults to the port name. 32 | private java.lang.String KPSPublicSoapWSDDServiceName = "KPSPublicSoap"; 33 | 34 | public java.lang.String getKPSPublicSoapWSDDServiceName() { 35 | return KPSPublicSoapWSDDServiceName; 36 | } 37 | 38 | public void setKPSPublicSoapWSDDServiceName(java.lang.String name) { 39 | KPSPublicSoapWSDDServiceName = name; 40 | } 41 | 42 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException { 43 | java.net.URL endpoint; 44 | try { 45 | endpoint = new java.net.URL(KPSPublicSoap_address); 46 | } 47 | catch (java.net.MalformedURLException e) { 48 | throw new javax.xml.rpc.ServiceException(e); 49 | } 50 | return getKPSPublicSoap(endpoint); 51 | } 52 | 53 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 54 | try { 55 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(portAddress, this); 56 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 57 | return _stub; 58 | } 59 | catch (org.apache.axis.AxisFault e) { 60 | return null; 61 | } 62 | } 63 | 64 | public void setKPSPublicSoapEndpointAddress(java.lang.String address) { 65 | KPSPublicSoap_address = address; 66 | } 67 | 68 | /** 69 | * For the given interface, get the stub implementation. 70 | * If this service has no port for the given interface, 71 | * then ServiceException is thrown. 72 | */ 73 | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 74 | try { 75 | if (tr.gov.nvi.tckimlik.WS.KPSPublicSoap.class.isAssignableFrom(serviceEndpointInterface)) { 76 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(new java.net.URL(KPSPublicSoap_address), this); 77 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 78 | return _stub; 79 | } 80 | } 81 | catch (java.lang.Throwable t) { 82 | throw new javax.xml.rpc.ServiceException(t); 83 | } 84 | throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 85 | } 86 | 87 | /** 88 | * For the given interface, get the stub implementation. 89 | * If this service has no port for the given interface, 90 | * then ServiceException is thrown. 91 | */ 92 | public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 93 | if (portName == null) { 94 | return getPort(serviceEndpointInterface); 95 | } 96 | java.lang.String inputPortName = portName.getLocalPart(); 97 | if ("KPSPublicSoap".equals(inputPortName)) { 98 | return getKPSPublicSoap(); 99 | } 100 | else { 101 | java.rmi.Remote _stub = getPort(serviceEndpointInterface); 102 | ((org.apache.axis.client.Stub) _stub).setPortName(portName); 103 | return _stub; 104 | } 105 | } 106 | 107 | public javax.xml.namespace.QName getServiceName() { 108 | return new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublic"); 109 | } 110 | 111 | private java.util.HashSet ports = null; 112 | 113 | public java.util.Iterator getPorts() { 114 | if (ports == null) { 115 | ports = new java.util.HashSet(); 116 | ports.add(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublicSoap")); 117 | } 118 | return ports.iterator(); 119 | } 120 | 121 | /** 122 | * Set the endpoint address for the specified port name. 123 | */ 124 | public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 125 | 126 | if ("KPSPublicSoap".equals(portName)) { 127 | setKPSPublicSoapEndpointAddress(address); 128 | } 129 | else 130 | { // Unknown Port Name 131 | throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); 132 | } 133 | } 134 | 135 | /** 136 | * Set the endpoint address for the specified port name. 137 | */ 138 | public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 139 | setEndpointAddress(portName.getLocalPart(), address); 140 | } 141 | 142 | } 143 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoap.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublicSoap extends java.rmi.Remote { 11 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException; 12 | } 13 | -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.java: -------------------------------------------------------------------------------- 1 | package tr.gov.nvi.tckimlik.WS; 2 | 3 | public class KPSPublicSoapProxy implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 4 | private String _endpoint = null; 5 | private tr.gov.nvi.tckimlik.WS.KPSPublicSoap kPSPublicSoap = null; 6 | 7 | public KPSPublicSoapProxy() { 8 | _initKPSPublicSoapProxy(); 9 | } 10 | 11 | public KPSPublicSoapProxy(String endpoint) { 12 | _endpoint = endpoint; 13 | _initKPSPublicSoapProxy(); 14 | } 15 | 16 | private void _initKPSPublicSoapProxy() { 17 | try { 18 | kPSPublicSoap = (new tr.gov.nvi.tckimlik.WS.KPSPublicLocator()).getKPSPublicSoap(); 19 | if (kPSPublicSoap != null) { 20 | if (_endpoint != null) 21 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 | else 23 | _endpoint = (String)((javax.xml.rpc.Stub)kPSPublicSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); 24 | } 25 | 26 | } 27 | catch (javax.xml.rpc.ServiceException serviceException) {} 28 | } 29 | 30 | public String getEndpoint() { 31 | return _endpoint; 32 | } 33 | 34 | public void setEndpoint(String endpoint) { 35 | _endpoint = endpoint; 36 | if (kPSPublicSoap != null) 37 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 | 39 | } 40 | 41 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() { 42 | if (kPSPublicSoap == null) 43 | _initKPSPublicSoapProxy(); 44 | return kPSPublicSoap; 45 | } 46 | 47 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException{ 48 | if (kPSPublicSoap == null) 49 | _initKPSPublicSoapProxy(); 50 | return kPSPublicSoap.TCKimlikNoDogrula(TCKimlikNo, ad, soyad, dogumYili); 51 | } 52 | 53 | 54 | } -------------------------------------------------------------------------------- /InterfaceAbstractDemo/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoapStub.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicSoapStub extends org.apache.axis.client.Stub implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 11 | private java.util.Vector cachedSerClasses = new java.util.Vector(); 12 | private java.util.Vector cachedSerQNames = new java.util.Vector(); 13 | private java.util.Vector cachedSerFactories = new java.util.Vector(); 14 | private java.util.Vector cachedDeserFactories = new java.util.Vector(); 15 | 16 | static org.apache.axis.description.OperationDesc [] _operations; 17 | 18 | static { 19 | _operations = new org.apache.axis.description.OperationDesc[1]; 20 | _initOperationDesc1(); 21 | } 22 | 23 | private static void _initOperationDesc1(){ 24 | org.apache.axis.description.OperationDesc oper; 25 | org.apache.axis.description.ParameterDesc param; 26 | oper = new org.apache.axis.description.OperationDesc(); 27 | oper.setName("TCKimlikNoDogrula"); 28 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNo"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false); 29 | oper.addParameter(param); 30 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Ad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 31 | param.setOmittable(true); 32 | oper.addParameter(param); 33 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Soyad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 34 | param.setOmittable(true); 35 | oper.addParameter(param); 36 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "DogumYili"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); 37 | oper.addParameter(param); 38 | oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); 39 | oper.setReturnClass(boolean.class); 40 | oper.setReturnQName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrulaResult")); 41 | oper.setStyle(org.apache.axis.constants.Style.WRAPPED); 42 | oper.setUse(org.apache.axis.constants.Use.LITERAL); 43 | _operations[0] = oper; 44 | 45 | } 46 | 47 | public KPSPublicSoapStub() throws org.apache.axis.AxisFault { 48 | this(null); 49 | } 50 | 51 | public KPSPublicSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 52 | this(service); 53 | super.cachedEndpoint = endpointURL; 54 | } 55 | 56 | public KPSPublicSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 57 | if (service == null) { 58 | super.service = new org.apache.axis.client.Service(); 59 | } else { 60 | super.service = service; 61 | } 62 | ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); 63 | } 64 | 65 | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { 66 | try { 67 | org.apache.axis.client.Call _call = super._createCall(); 68 | if (super.maintainSessionSet) { 69 | _call.setMaintainSession(super.maintainSession); 70 | } 71 | if (super.cachedUsername != null) { 72 | _call.setUsername(super.cachedUsername); 73 | } 74 | if (super.cachedPassword != null) { 75 | _call.setPassword(super.cachedPassword); 76 | } 77 | if (super.cachedEndpoint != null) { 78 | _call.setTargetEndpointAddress(super.cachedEndpoint); 79 | } 80 | if (super.cachedTimeout != null) { 81 | _call.setTimeout(super.cachedTimeout); 82 | } 83 | if (super.cachedPortName != null) { 84 | _call.setPortName(super.cachedPortName); 85 | } 86 | java.util.Enumeration keys = super.cachedProperties.keys(); 87 | while (keys.hasMoreElements()) { 88 | java.lang.String key = (java.lang.String) keys.nextElement(); 89 | _call.setProperty(key, super.cachedProperties.get(key)); 90 | } 91 | return _call; 92 | } 93 | catch (java.lang.Throwable _t) { 94 | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); 95 | } 96 | } 97 | 98 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException { 99 | if (super.cachedEndpoint == null) { 100 | throw new org.apache.axis.NoEndPointException(); 101 | } 102 | org.apache.axis.client.Call _call = createCall(); 103 | _call.setOperation(_operations[0]); 104 | _call.setUseSOAPAction(true); 105 | _call.setSOAPActionURI("http://tckimlik.nvi.gov.tr/WS/TCKimlikNoDogrula"); 106 | _call.setEncodingStyle(null); 107 | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); 108 | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); 109 | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 110 | _call.setOperationName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrula")); 111 | 112 | setRequestHeaders(_call); 113 | setAttachments(_call); 114 | try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(TCKimlikNo), ad, soyad, new java.lang.Integer(dogumYili)}); 115 | 116 | if (_resp instanceof java.rmi.RemoteException) { 117 | throw (java.rmi.RemoteException)_resp; 118 | } 119 | else { 120 | extractAttachments(_call); 121 | try { 122 | return ((java.lang.Boolean) _resp).booleanValue(); 123 | } catch (java.lang.Exception _exception) { 124 | return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue(); 125 | } 126 | } 127 | } catch (org.apache.axis.AxisFault axisFaultException) { 128 | throw axisFaultException; 129 | } 130 | } 131 | 132 | } 133 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JavaCamp 2 | 3 | ### Day 1 4 | ### Day 2 5 | - lecture 6 | - lecture - oopIntro 7 | - Homework 2 8 | ### Day 3 9 | - lecture - inheritance 10 | - lecture - inheritance2 11 | - Homework 1 12 | - Homework 2 13 | ### Day 4 14 | - lecture - interfaces 15 | - Homework 1 16 | - Homework 2 - InterfaceAbstractDemo 17 | - Homework 3 - gameProject 18 | ### Day 5 19 | - lecture - nLayeredDemo 20 | - Homework 1 - eCommerceProject 21 | ### Day 6 22 | - lecture - northwind 23 | - Homework 3 - HrmsProject 24 | -------------------------------------------------------------------------------- /day2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /day2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /day2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /day2/bin/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/Category.class -------------------------------------------------------------------------------- /day2/bin/CategoryManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/CategoryManager.class -------------------------------------------------------------------------------- /day2/bin/Course.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/Course.class -------------------------------------------------------------------------------- /day2/bin/CourseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/CourseManager.class -------------------------------------------------------------------------------- /day2/bin/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/Main.class -------------------------------------------------------------------------------- /day2/bin/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/Student.class -------------------------------------------------------------------------------- /day2/bin/StudentManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/bin/StudentManager.class -------------------------------------------------------------------------------- /day2/src/Category.java: -------------------------------------------------------------------------------- 1 | 2 | public class Category { 3 | int id; 4 | String name; 5 | 6 | public Category() { 7 | 8 | } 9 | 10 | public Category(int id, String name) { 11 | this.id = id; 12 | this.name = name; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /day2/src/CategoryManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/src/CategoryManager.java -------------------------------------------------------------------------------- /day2/src/Course.java: -------------------------------------------------------------------------------- 1 | 2 | public class Course { 3 | int id; 4 | String name; 5 | 6 | public Course() { 7 | 8 | } 9 | 10 | public Course(int id, String name) { 11 | this.id = id; 12 | this.name = name; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /day2/src/CourseManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/src/CourseManager.java -------------------------------------------------------------------------------- /day2/src/Main.java: -------------------------------------------------------------------------------- 1 | 2 | public class Main { 3 | 4 | public static void main(String[] args) { 5 | 6 | categoryTest(); 7 | 8 | courseTest(); 9 | 10 | studentTest(); 11 | } 12 | 13 | private static void studentTest() 14 | { 15 | Student student1 = new Student(1, "zeynep", "duru", "zeynep@duru.com", 123); 16 | Student student2 = new Student(1, "eda", "ipek", "eda@ipek.com", 456); 17 | 18 | Student[] students = {student1, student2}; 19 | StudentManager studentManager = new StudentManager(); 20 | 21 | for (Student student : students) { 22 | studentManager.Add(student); 23 | } 24 | } 25 | 26 | private static void courseTest() 27 | { 28 | Course course1 = new Course(1, "java + react"); 29 | Course course2 = new Course(2, "c# + angular"); 30 | 31 | Course[] courses = {course1, course2}; 32 | CourseManager courseManager = new CourseManager(); 33 | 34 | for (Course course : courses) { 35 | courseManager.Add(course); 36 | } 37 | } 38 | 39 | private static void categoryTest() 40 | { 41 | Category category1 = new Category(1, "java"); 42 | Category category2 = new Category(2, "c#"); 43 | 44 | Category[] categories = {category1, category2}; 45 | CategoryManager manager = new CategoryManager(); 46 | 47 | for (Category category: categories) { 48 | manager.Add(category); 49 | } 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /day2/src/Student.java: -------------------------------------------------------------------------------- 1 | 2 | public class Student { 3 | int id; 4 | String firstName; 5 | String lastName; 6 | String email; 7 | int password; 8 | 9 | public Student() { 10 | 11 | } 12 | 13 | public Student(int id, String firstName, String lastName, String email, int password) { 14 | this.id = id; 15 | this.firstName = firstName; 16 | this.lastName = lastName; 17 | this.email = email; 18 | this.password = password; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /day2/src/StudentManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2/src/StudentManager.java -------------------------------------------------------------------------------- /day2Homework2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /day2Homework2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /day2Homework2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day2Homework2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /day2Homework2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /day2Homework2/src/Classes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2Homework2/src/Classes.java -------------------------------------------------------------------------------- /day2Homework2/src/Methods.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2Homework2/src/Methods.java -------------------------------------------------------------------------------- /day2Homework2/src/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2Homework2/src/Product.java -------------------------------------------------------------------------------- /day2Homework2/src/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2Homework2/src/ProductManager.java -------------------------------------------------------------------------------- /day2Homework2/src/SayiBulma.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day2Homework2/src/SayiBulma.java -------------------------------------------------------------------------------- /day3Homework1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /day3Homework1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /day3Homework1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day3Homework1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /day3Homework1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /day3Homework1/src/day3Homework1/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/day3Homework1/CustomerManager.java -------------------------------------------------------------------------------- /day3Homework1/src/day3Homework1/KrediUI.java: -------------------------------------------------------------------------------- 1 | package day3Homework1; 2 | 3 | import krediManager.BaseKrediManager; 4 | 5 | public class KrediUI { 6 | public void krediHesapla(BaseKrediManager baseKrediManager) { 7 | baseKrediManager.hesapla(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /day3Homework1/src/day3Homework1/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/day3Homework1/Main.java -------------------------------------------------------------------------------- /day3Homework1/src/krediManager/BaseKrediManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/krediManager/BaseKrediManager.java -------------------------------------------------------------------------------- /day3Homework1/src/krediManager/OgrenciKrediManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/krediManager/OgrenciKrediManager.java -------------------------------------------------------------------------------- /day3Homework1/src/krediManager/OgretmenKrediManager.java: -------------------------------------------------------------------------------- 1 | package krediManager; 2 | 3 | public class OgretmenKrediManager extends BaseKrediManager{ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day3Homework1/src/krediManager/TarimKrediManager.java: -------------------------------------------------------------------------------- 1 | package krediManager; 2 | 3 | public class TarimKrediManager extends BaseKrediManager{ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day3Homework1/src/logger/BaseLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/logger/BaseLogger.java -------------------------------------------------------------------------------- /day3Homework1/src/logger/DatabaseLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/logger/DatabaseLogger.java -------------------------------------------------------------------------------- /day3Homework1/src/logger/FileLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework1/src/logger/FileLogger.java -------------------------------------------------------------------------------- /day3Homework2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /day3Homework2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /day3Homework2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day3Homework2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /day3Homework2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/BaseUserManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework2/src/day3Homework2/BaseUserManager.java -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/Instructor.java: -------------------------------------------------------------------------------- 1 | package day3Homework2; 2 | 3 | public class Instructor extends User{ 4 | private int id; 5 | private String firstName; 6 | private String lastName; 7 | } 8 | -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/InstructorManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework2/src/day3Homework2/InstructorManager.java -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day3Homework2/src/day3Homework2/Main.java -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/Student.java: -------------------------------------------------------------------------------- 1 | package day3Homework2; 2 | 3 | public class Student extends User{ 4 | private int id; 5 | private String firstName; 6 | private String lastName; 7 | } 8 | -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/StudentManager.java: -------------------------------------------------------------------------------- 1 | package day3Homework2; 2 | 3 | public class StudentManager extends BaseUserManager{ 4 | public void addComment(String yorum) { 5 | System.out.println(yorum + ": yorumu eklendi."); 6 | } 7 | 8 | public void deleteComment() { 9 | System.out.println("yorum silindi."); 10 | } 11 | 12 | public void updateComment() { 13 | System.out.println(": yorum guncellendi."); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /day3Homework2/src/day3Homework2/User.java: -------------------------------------------------------------------------------- 1 | package day3Homework2; 2 | 3 | public class User { 4 | private int id; 5 | private String firstName; 6 | private String lastName; 7 | private String email; 8 | private String password; 9 | 10 | public User() { 11 | } 12 | 13 | public User(int id, String firstName, String lastName, String email, String password) { 14 | super(); 15 | this.id = id; 16 | this.firstName = firstName; 17 | this.lastName = lastName; 18 | this.email = email; 19 | this.password = password; 20 | } 21 | 22 | public int getId() { 23 | return id; 24 | } 25 | 26 | public void setId(int id) { 27 | this.id = id; 28 | } 29 | 30 | public String getFirstName() { 31 | return firstName; 32 | } 33 | 34 | public void setFirstName(String firstName) { 35 | this.firstName = firstName; 36 | } 37 | 38 | public String getLastName() { 39 | return lastName; 40 | } 41 | 42 | public void setLastName(String lastName) { 43 | this.lastName = lastName; 44 | } 45 | 46 | public String getEmail() { 47 | return email; 48 | } 49 | 50 | public void setEmail(String email) { 51 | this.email = email; 52 | } 53 | 54 | public String getPassword() { 55 | return password; 56 | } 57 | 58 | public void setPassword(String password) { 59 | this.password = password; 60 | } 61 | 62 | 63 | } 64 | -------------------------------------------------------------------------------- /day4Homework1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /day4Homework1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day4Homework1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /day4Homework1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/GameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/abstractClasses/GameCalculator.java -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/KidsGameCalculator.java: -------------------------------------------------------------------------------- 1 | package day4Homework1; 2 | 3 | public class KidsGameCalculator extends GameCalculator{ 4 | 5 | @Override 6 | public void hesapla() { 7 | System.out.println(); 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/Main.java: -------------------------------------------------------------------------------- 1 | package day4Homework1; 2 | 3 | public class Main { 4 | public static void main(String[] args) { 5 | GameCalculator gameCalculator = new WomenGameCalculator(); 6 | //referans tutma 7 | //bir operasyona parametre olarak gameCalculator verip istersen women istersen kids ekleyebiilrisn 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/MenGameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/abstractClasses/MenGameCalculator.java -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/OlderGameCalculator.java: -------------------------------------------------------------------------------- 1 | package day4Homework1; 2 | 3 | public class OlderGameCalculator extends GameCalculator{ 4 | 5 | @Override 6 | public void hesapla() { 7 | 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /day4Homework1/abstractClasses/WomenGameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/abstractClasses/WomenGameCalculator.java -------------------------------------------------------------------------------- /day4Homework1/bin/abstractDemo/BaseDatabaseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/abstractDemo/BaseDatabaseManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/abstractDemo/CustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/abstractDemo/CustomerManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/abstractDemo/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/abstractDemo/Main.class -------------------------------------------------------------------------------- /day4Homework1/bin/abstractDemo/OracleDatabaseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/abstractDemo/OracleDatabaseManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/abstractDemo/SqlServerDatabaseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/abstractDemo/SqlServerDatabaseManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/day4Homework1/GameCalculator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/day4Homework1/GameCalculator.class -------------------------------------------------------------------------------- /day4Homework1/bin/day4Homework1/KidsGameCalculator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/day4Homework1/KidsGameCalculator.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/Eatable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/Eatable.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/Main.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/OutSourceWorker.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/OutSourceWorker.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/Robot.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/Robot.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/Workable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/Workable.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaceDemo/Worker.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaceDemo/Worker.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaces/CustomerDal.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaces/CustomerDal.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaces/CustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaces/CustomerManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaces/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaces/Main.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaces/MySqlCustomerDal.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaces/MySqlCustomerDal.class -------------------------------------------------------------------------------- /day4Homework1/bin/interfaces/OracleCustomerDal.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/interfaces/OracleCustomerDal.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/DatabaseHelper$Connection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/DatabaseHelper$Connection.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/DatabaseHelper$Crud.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/DatabaseHelper$Crud.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/DatabaseHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/DatabaseHelper.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/Main.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/Product.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/ProductManager.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/ProductValidator$Baska.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/ProductValidator$Baska.class -------------------------------------------------------------------------------- /day4Homework1/bin/staticDemo/ProductValidator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/bin/staticDemo/ProductValidator.class -------------------------------------------------------------------------------- /day4Homework1/src/abstractDemo/BaseDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public abstract class BaseDatabaseManager { 4 | public abstract void getData(); 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/abstractDemo/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/abstractDemo/CustomerManager.java -------------------------------------------------------------------------------- /day4Homework1/src/abstractDemo/Main.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | CustomerManager customerManager = new CustomerManager(); 7 | customerManager.baseDatabaseManager = new SqlServerDatabaseManager(); 8 | customerManager.getCustomer(); 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /day4Homework1/src/abstractDemo/OracleDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class OracleDatabaseManager extends BaseDatabaseManager { 4 | 5 | @Override 6 | public void getData() { 7 | // TODO Auto-generated method stub 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /day4Homework1/src/abstractDemo/SqlServerDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class SqlServerDatabaseManager extends BaseDatabaseManager{ 4 | 5 | @Override 6 | public void getData() { 7 | // TODO Auto-generated method stub 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /day4Homework1/src/day4Homework1/GameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/day4Homework1/GameCalculator.java -------------------------------------------------------------------------------- /day4Homework1/src/day4Homework1/KidsGameCalculator.java: -------------------------------------------------------------------------------- 1 | package day4Homework1; 2 | 3 | public class KidsGameCalculator extends GameCalculator{ 4 | 5 | @Override 6 | public void hesapla() { 7 | System.out.println(); 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/Eatable.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public interface Eatable { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/Main.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/OutSourceWorker.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class OutSourceWorker implements Workable{ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/Robot.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class Robot implements Workable{ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/Workable.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public interface Workable { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaceDemo/Worker.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class Worker implements Workable, Eatable { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaces/CustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public interface CustomerDal { 4 | void add(); 5 | } 6 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaces/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/interfaces/CustomerManager.java -------------------------------------------------------------------------------- /day4Homework1/src/interfaces/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/interfaces/Main.java -------------------------------------------------------------------------------- /day4Homework1/src/interfaces/MySqlCustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class MySqlCustomerDal implements CustomerDal{ 4 | 5 | @Override 6 | public void add() { 7 | // TODO Auto-generated method stub 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /day4Homework1/src/interfaces/OracleCustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class OracleCustomerDal implements CustomerDal{ 4 | 5 | @Override 6 | public void add() { 7 | 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /day4Homework1/src/staticDemo/DatabaseHelper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/staticDemo/DatabaseHelper.java -------------------------------------------------------------------------------- /day4Homework1/src/staticDemo/Main.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | ProductManager manager = new ProductManager(); 7 | Product product = new Product(); 8 | product.id=1; 9 | manager.add(product); 10 | 11 | DatabaseHelper.Crud.delete(); 12 | DatabaseHelper.Connection.createConnection(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /day4Homework1/src/staticDemo/Product.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class Product { 4 | int id; 5 | String name; 6 | } 7 | -------------------------------------------------------------------------------- /day4Homework1/src/staticDemo/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/staticDemo/ProductManager.java -------------------------------------------------------------------------------- /day4Homework1/src/staticDemo/ProductValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/day4Homework1/src/staticDemo/ProductValidator.java -------------------------------------------------------------------------------- /eCommerceProject/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /eCommerceProject/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | eCommerceProject 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /eCommerceProject/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /eCommerceProject/README.md: -------------------------------------------------------------------------------- 1 | # Icerik 2 | Bir e-ticaret sisteminde sisteme kayıt ve sisteme giriş için gerekli gereksinim ve kabul kriterleri: (Bu sisteme ait Java backend yazmak istiyoruz.) 3 | 4 | Kullanıcılar sisteme bilgilerini girerek üye olabilmelidir. 5 | 6 | Sisteme temel kullanıcı bilgileri , e-posta ve parolayla üye olunabilmelidir. Temel kullanıcı bilgileri : ad, soyad, e-posta, parola. Temel bilgilerin tamamı zorunludur. 7 | Parola en az 6 karakterden oluşmalıdır. 8 | E-posta alanı e-posta formatında olmalıdır. (Regex ile yapınız. Araştırma konusu) 9 | E-Posta daha önce kullanılmamış olmalıdır. 10 | Ad ve soyad en az iki karakterden oluşmalıdır. 11 | Üyelik sonucu kullanıcıya doğrulama e-postası gönderilmelidir. (Simulasyon) 12 | Doğrulama linki tıklandığında üyelik tamamlanmalıdır. (Simulasyon) 13 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir. 14 | Kullanıcılar sisteme Google hesapları ile üye olabilmelidir. (Simulasyon) 15 | 16 | İlerleyen zamanlarda başka yetkilendirme servisleri de kullanılabilir. (Sistemi dış servis entegrasyonu olacak şekilde yapılandırınız.) 17 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir. 18 | Kullanıcılar e-posta ve parola bilgisiyle sisteme giriş yapabilmelidir. 19 | 20 | E-posta ve parola zorunludur 21 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir. 22 | 23 | Bu isterleri katmanlı mimaride simüle ediniz. 24 | 25 | ## Output 26 |  27 | -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/Main.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/business/abstracts/AuthService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/business/abstracts/AuthService.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/business/concretes/AuthManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/business/concretes/AuthManager.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/core/utils/GoogleManagerAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/core/utils/GoogleManagerAdapter.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/core/utils/GoogleService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/core/utils/GoogleService.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/core/utils/Result.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/core/utils/Result.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/dataAccess/abstracts/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/dataAccess/abstracts/UserDao.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/dataAccess/concretes/HibernateUserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/dataAccess/concretes/HibernateUserDao.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/entities/abstracts/Entity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/entities/abstracts/Entity.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/entities/concretes/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/entities/concretes/User.class -------------------------------------------------------------------------------- /eCommerceProject/bin/eCommerceProject/googleService/GoogleManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/bin/eCommerceProject/googleService/GoogleManager.class -------------------------------------------------------------------------------- /eCommerceProject/output.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/output.PNG -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/src/eCommerceProject/Main.java -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/business/abstracts/AuthService.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.business.abstracts; 2 | 3 | import eCommerceProject.core.utils.Result; 4 | import eCommerceProject.entities.concretes.User; 5 | 6 | public interface AuthService { 7 | void login(String email, String password); 8 | Result register(User user); 9 | } 10 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/business/concretes/AuthManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/src/eCommerceProject/business/concretes/AuthManager.java -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/core/utils/GoogleManagerAdapter.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.core.utils; 2 | 3 | import eCommerceProject.googleService.GoogleManager; 4 | 5 | public class GoogleManagerAdapter implements GoogleService { 6 | 7 | @Override 8 | public void registerToSystem(String message) { 9 | GoogleManager manager = new GoogleManager(); 10 | manager.register(message); 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/core/utils/RegisterService.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.core.utils; 2 | 3 | public interface GoogleService { 4 | void registerToSystem(String message); 5 | } 6 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/core/utils/Result.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.core.utils; 2 | 3 | public class Result { 4 | private String message; 5 | private boolean success; 6 | 7 | public Result(boolean success, String message) { 8 | this(success); //this Class demek yani bu ifade aslinda: Result(boolean success) demek (satir 11 e gider) 9 | this.message = message; 10 | } 11 | public Result(boolean success) { 12 | this.success = success; 13 | } 14 | 15 | 16 | public String getMessage() { 17 | return message; 18 | } 19 | public void setMessage(String message) { 20 | this.message = message; 21 | } 22 | public boolean getSuccess() { 23 | return success; 24 | } 25 | public void setSuccess(boolean success) { 26 | this.success = success; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/dataAccess/abstracts/UserDao.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.dataAccess.abstracts; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import eCommerceProject.entities.concretes.User; 7 | 8 | public interface UserDao { 9 | void add(User user); 10 | void delete(User user); 11 | void update(User user); 12 | User get(String email); 13 | void getAll(); 14 | ArrayList getAllUsers(); 15 | boolean emailExist(String email); 16 | List getAllEmails(); 17 | } 18 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/dataAccess/concretes/HibernateUserDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/eCommerceProject/src/eCommerceProject/dataAccess/concretes/HibernateUserDao.java -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/entities/abstracts/Entity.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.entities.abstracts; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/entities/concretes/User.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.entities.concretes; 2 | 3 | import eCommerceProject.entities.abstracts.Entity; 4 | 5 | public class User implements Entity{ 6 | private int id; 7 | private String firstName; 8 | private String lastName; 9 | private String email; 10 | private String password; 11 | 12 | public User() { 13 | } 14 | 15 | public User(int id, String firstName, String lastName, String email, String password) { 16 | super(); 17 | this.id = id; 18 | this.firstName = firstName; 19 | this.lastName = lastName; 20 | this.email = email; 21 | this.password = password; 22 | } 23 | 24 | public int getId() { 25 | return id; 26 | } 27 | 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | 32 | public String getFirstName() { 33 | return firstName; 34 | } 35 | 36 | public void setFirstName(String firstName) { 37 | this.firstName = firstName; 38 | } 39 | 40 | public String getLastName() { 41 | return lastName; 42 | } 43 | 44 | public void setLastName(String lastName) { 45 | this.lastName = lastName; 46 | } 47 | 48 | public String getEmail() { 49 | return email; 50 | } 51 | 52 | public void setEmail(String email) { 53 | this.email = email; 54 | } 55 | 56 | public String getPassword() { 57 | return password; 58 | } 59 | 60 | public void setPassword(String password) { 61 | this.password = password; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /eCommerceProject/src/eCommerceProject/googleService/GoogleManager.java: -------------------------------------------------------------------------------- 1 | package eCommerceProject.googleService; 2 | 3 | public class GoogleManager { 4 | public void register(String message) { 5 | System.out.println(message); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /gameProject/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /gameProject/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | gameProject 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jem.workbench.JavaEMFNature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /gameProject/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8 3 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8 4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8 5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8 6 | -------------------------------------------------------------------------------- /gameProject/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.release=disabled 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /gameProject/README.md: -------------------------------------------------------------------------------- 1 | # output 2 |  3 | -------------------------------------------------------------------------------- /gameProject/bin/Abstract/CampaignService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/CampaignService.class -------------------------------------------------------------------------------- /gameProject/bin/Abstract/Entity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/Entity.class -------------------------------------------------------------------------------- /gameProject/bin/Abstract/GameService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/GameService.class -------------------------------------------------------------------------------- /gameProject/bin/Abstract/GamerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/GamerService.class -------------------------------------------------------------------------------- /gameProject/bin/Abstract/SaleService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/SaleService.class -------------------------------------------------------------------------------- /gameProject/bin/Abstract/UserCheckService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Abstract/UserCheckService.class -------------------------------------------------------------------------------- /gameProject/bin/Adapters/MernisServiceAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Adapters/MernisServiceAdapter.class -------------------------------------------------------------------------------- /gameProject/bin/Concrete/CampaignManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Concrete/CampaignManager.class -------------------------------------------------------------------------------- /gameProject/bin/Concrete/GameManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Concrete/GameManager.class -------------------------------------------------------------------------------- /gameProject/bin/Concrete/GamerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Concrete/GamerManager.class -------------------------------------------------------------------------------- /gameProject/bin/Concrete/SaleManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Concrete/SaleManager.class -------------------------------------------------------------------------------- /gameProject/bin/Concrete/UserCheckManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Concrete/UserCheckManager.class -------------------------------------------------------------------------------- /gameProject/bin/Entities/Campaign.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Entities/Campaign.class -------------------------------------------------------------------------------- /gameProject/bin/Entities/Game.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Entities/Game.class -------------------------------------------------------------------------------- /gameProject/bin/Entities/Gamer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Entities/Gamer.class -------------------------------------------------------------------------------- /gameProject/bin/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/Main.class -------------------------------------------------------------------------------- /gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class -------------------------------------------------------------------------------- /gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class -------------------------------------------------------------------------------- /gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class -------------------------------------------------------------------------------- /gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class -------------------------------------------------------------------------------- /gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class -------------------------------------------------------------------------------- /gameProject/cikti.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/cikti.PNG -------------------------------------------------------------------------------- /gameProject/src/Abstract/CampaignService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Campaign; 4 | 5 | public interface CampaignService { 6 | void add(Campaign campaign); 7 | void delete(Campaign campaign); 8 | void update(Campaign campaign); 9 | } 10 | -------------------------------------------------------------------------------- /gameProject/src/Abstract/Entity.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /gameProject/src/Abstract/GameService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Game; 4 | 5 | public interface GameService { 6 | void add(Game game); 7 | void delete(Game game); 8 | void update(Game game); 9 | } 10 | -------------------------------------------------------------------------------- /gameProject/src/Abstract/GamerService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Gamer; 4 | 5 | public interface GamerService { 6 | void add(Gamer gamer); 7 | void delete(Gamer gamer); 8 | void update(Gamer gamer); 9 | } 10 | -------------------------------------------------------------------------------- /gameProject/src/Abstract/SaleService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Campaign; 4 | import Entities.Game; 5 | import Entities.Gamer; 6 | 7 | public interface SaleService { 8 | void sale(Game game, Gamer gamer); 9 | void campaignSale(Game game, Gamer gamer, Campaign campaign); 10 | } 11 | -------------------------------------------------------------------------------- /gameProject/src/Abstract/UserCheckService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Gamer; 4 | 5 | public interface UserCheckService { 6 | boolean checkIfRealPerson(Gamer gamer); 7 | } 8 | -------------------------------------------------------------------------------- /gameProject/src/Adapters/MernisServiceAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Adapters/MernisServiceAdapter.java -------------------------------------------------------------------------------- /gameProject/src/Concrete/CampaignManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Concrete/CampaignManager.java -------------------------------------------------------------------------------- /gameProject/src/Concrete/GameManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Concrete/GameManager.java -------------------------------------------------------------------------------- /gameProject/src/Concrete/GamerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Concrete/GamerManager.java -------------------------------------------------------------------------------- /gameProject/src/Concrete/SaleManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Concrete/SaleManager.java -------------------------------------------------------------------------------- /gameProject/src/Concrete/UserCheckManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/gameProject/src/Concrete/UserCheckManager.java -------------------------------------------------------------------------------- /gameProject/src/Entities/Campaign.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | import Abstract.Entity; 4 | 5 | public class Campaign implements Entity{ 6 | private int id; 7 | private String name; 8 | private double discountRate; 9 | 10 | public Campaign(int id, String name, double discountRate) { 11 | this.id = id; 12 | this.name = name; 13 | this.discountRate = discountRate; 14 | } 15 | 16 | public int getId() { 17 | return id; 18 | } 19 | 20 | public void setId(int id) { 21 | this.id = id; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | 32 | public double getDiscountRate() { 33 | return discountRate; 34 | } 35 | 36 | public void setDiscountRate(double discountRate) { 37 | this.discountRate = discountRate; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /gameProject/src/Entities/Game.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | import Abstract.Entity; 4 | 5 | public class Game implements Entity{ 6 | private int id; 7 | private String name; 8 | private double unitPrice; 9 | 10 | public Game(int id, String name, double unitPrice) { 11 | super(); 12 | this.id = id; 13 | this.name = name; 14 | this.unitPrice = unitPrice; 15 | } 16 | 17 | public int getId() { 18 | return id; 19 | } 20 | 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | public double getUnitPrice() { 34 | return unitPrice; 35 | } 36 | 37 | public void setUnitPrice(double unitPrice) { 38 | this.unitPrice = unitPrice; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /gameProject/src/Entities/Gamer.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | import java.util.Date; 3 | 4 | import Abstract.Entity; 5 | 6 | public class Gamer implements Entity{ 7 | private int id; 8 | private String firstName; 9 | private String lastName; 10 | private String email; 11 | private Date dateOfBirth; 12 | private String nationalityId; 13 | 14 | public Gamer(int id, String firstName, String lastName, String email, Date dateOfBirth, String nationalityId) { 15 | super(); 16 | this.id = id; 17 | this.firstName = firstName; 18 | this.lastName = lastName; 19 | this.email = email; 20 | this.dateOfBirth = dateOfBirth; 21 | this.nationalityId = nationalityId; 22 | } 23 | 24 | public int getId() { 25 | return id; 26 | } 27 | 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | 32 | public String getFirstName() { 33 | return firstName; 34 | } 35 | 36 | public void setFirstName(String firstName) { 37 | this.firstName = firstName; 38 | } 39 | 40 | public String getLastName() { 41 | return lastName; 42 | } 43 | 44 | public void setLastName(String lastName) { 45 | this.lastName = lastName; 46 | } 47 | 48 | public String getEmail() { 49 | return email; 50 | } 51 | 52 | public void setEmail(String email) { 53 | this.email = email; 54 | } 55 | 56 | public Date getDateOfBirth() { 57 | return dateOfBirth; 58 | } 59 | 60 | public void setDateOfBirth(Date dateOfBirth) { 61 | this.dateOfBirth = dateOfBirth; 62 | } 63 | 64 | public String getNationalityId() { 65 | return nationalityId; 66 | } 67 | 68 | public void setNationalityId(String nationalityId) { 69 | this.nationalityId = nationalityId; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /gameProject/src/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.Date; 2 | 3 | import Adapters.MernisServiceAdapter; 4 | import Concrete.CampaignManager; 5 | import Concrete.GameManager; 6 | import Concrete.GamerManager; 7 | import Concrete.SaleManager; 8 | import Concrete.UserCheckManager; 9 | import Entities.Campaign; 10 | import Entities.Game; 11 | import Entities.Gamer; 12 | 13 | public class Main { 14 | 15 | @SuppressWarnings("deprecation") 16 | public static void main(String[] args) { 17 | Gamer gamer = new Gamer(1, "zeynep", "salman", "zeynep@zeynep.com", new Date(2002, 04, 10), "11122333"); 18 | GamerManager gamerManager = new GamerManager(new MernisServiceAdapter()); 19 | gamerManager.add(gamer); 20 | 21 | Game game = new Game(1, "abc", 100); 22 | GameManager gameManager = new GameManager(); 23 | gameManager.add(game); 24 | 25 | Campaign campaign = new Campaign(1, "yaz indirimi", 20); 26 | CampaignManager campaignManager = new CampaignManager(); 27 | campaignManager.add(campaign); 28 | 29 | SaleManager saleManager = new SaleManager(); 30 | saleManager.campaignSale(game, gamer, campaign); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /gameProject/src/tr/gov/nvi/tckimlik/WS/KPSPublic.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublic.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublic extends javax.xml.rpc.Service { 11 | public java.lang.String getKPSPublicSoapAddress(); 12 | 13 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException; 14 | 15 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; 16 | } 17 | -------------------------------------------------------------------------------- /gameProject/src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicLocator.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicLocator extends org.apache.axis.client.Service implements tr.gov.nvi.tckimlik.WS.KPSPublic { 11 | 12 | public KPSPublicLocator() { 13 | } 14 | 15 | 16 | public KPSPublicLocator(org.apache.axis.EngineConfiguration config) { 17 | super(config); 18 | } 19 | 20 | public KPSPublicLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { 21 | super(wsdlLoc, sName); 22 | } 23 | 24 | // Use to get a proxy class for KPSPublicSoap 25 | private java.lang.String KPSPublicSoap_address = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx"; 26 | 27 | public java.lang.String getKPSPublicSoapAddress() { 28 | return KPSPublicSoap_address; 29 | } 30 | 31 | // The WSDD service name defaults to the port name. 32 | private java.lang.String KPSPublicSoapWSDDServiceName = "KPSPublicSoap"; 33 | 34 | public java.lang.String getKPSPublicSoapWSDDServiceName() { 35 | return KPSPublicSoapWSDDServiceName; 36 | } 37 | 38 | public void setKPSPublicSoapWSDDServiceName(java.lang.String name) { 39 | KPSPublicSoapWSDDServiceName = name; 40 | } 41 | 42 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException { 43 | java.net.URL endpoint; 44 | try { 45 | endpoint = new java.net.URL(KPSPublicSoap_address); 46 | } 47 | catch (java.net.MalformedURLException e) { 48 | throw new javax.xml.rpc.ServiceException(e); 49 | } 50 | return getKPSPublicSoap(endpoint); 51 | } 52 | 53 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 54 | try { 55 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(portAddress, this); 56 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 57 | return _stub; 58 | } 59 | catch (org.apache.axis.AxisFault e) { 60 | return null; 61 | } 62 | } 63 | 64 | public void setKPSPublicSoapEndpointAddress(java.lang.String address) { 65 | KPSPublicSoap_address = address; 66 | } 67 | 68 | /** 69 | * For the given interface, get the stub implementation. 70 | * If this service has no port for the given interface, 71 | * then ServiceException is thrown. 72 | */ 73 | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 74 | try { 75 | if (tr.gov.nvi.tckimlik.WS.KPSPublicSoap.class.isAssignableFrom(serviceEndpointInterface)) { 76 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(new java.net.URL(KPSPublicSoap_address), this); 77 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 78 | return _stub; 79 | } 80 | } 81 | catch (java.lang.Throwable t) { 82 | throw new javax.xml.rpc.ServiceException(t); 83 | } 84 | throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 85 | } 86 | 87 | /** 88 | * For the given interface, get the stub implementation. 89 | * If this service has no port for the given interface, 90 | * then ServiceException is thrown. 91 | */ 92 | public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 93 | if (portName == null) { 94 | return getPort(serviceEndpointInterface); 95 | } 96 | java.lang.String inputPortName = portName.getLocalPart(); 97 | if ("KPSPublicSoap".equals(inputPortName)) { 98 | return getKPSPublicSoap(); 99 | } 100 | else { 101 | java.rmi.Remote _stub = getPort(serviceEndpointInterface); 102 | ((org.apache.axis.client.Stub) _stub).setPortName(portName); 103 | return _stub; 104 | } 105 | } 106 | 107 | public javax.xml.namespace.QName getServiceName() { 108 | return new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublic"); 109 | } 110 | 111 | private java.util.HashSet ports = null; 112 | 113 | public java.util.Iterator getPorts() { 114 | if (ports == null) { 115 | ports = new java.util.HashSet(); 116 | ports.add(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublicSoap")); 117 | } 118 | return ports.iterator(); 119 | } 120 | 121 | /** 122 | * Set the endpoint address for the specified port name. 123 | */ 124 | public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 125 | 126 | if ("KPSPublicSoap".equals(portName)) { 127 | setKPSPublicSoapEndpointAddress(address); 128 | } 129 | else 130 | { // Unknown Port Name 131 | throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); 132 | } 133 | } 134 | 135 | /** 136 | * Set the endpoint address for the specified port name. 137 | */ 138 | public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 139 | setEndpointAddress(portName.getLocalPart(), address); 140 | } 141 | 142 | } 143 | -------------------------------------------------------------------------------- /gameProject/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoap.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublicSoap extends java.rmi.Remote { 11 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException; 12 | } 13 | -------------------------------------------------------------------------------- /gameProject/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.java: -------------------------------------------------------------------------------- 1 | package tr.gov.nvi.tckimlik.WS; 2 | 3 | public class KPSPublicSoapProxy implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 4 | private String _endpoint = null; 5 | private tr.gov.nvi.tckimlik.WS.KPSPublicSoap kPSPublicSoap = null; 6 | 7 | public KPSPublicSoapProxy() { 8 | _initKPSPublicSoapProxy(); 9 | } 10 | 11 | public KPSPublicSoapProxy(String endpoint) { 12 | _endpoint = endpoint; 13 | _initKPSPublicSoapProxy(); 14 | } 15 | 16 | private void _initKPSPublicSoapProxy() { 17 | try { 18 | kPSPublicSoap = (new tr.gov.nvi.tckimlik.WS.KPSPublicLocator()).getKPSPublicSoap(); 19 | if (kPSPublicSoap != null) { 20 | if (_endpoint != null) 21 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 | else 23 | _endpoint = (String)((javax.xml.rpc.Stub)kPSPublicSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); 24 | } 25 | 26 | } 27 | catch (javax.xml.rpc.ServiceException serviceException) {} 28 | } 29 | 30 | public String getEndpoint() { 31 | return _endpoint; 32 | } 33 | 34 | public void setEndpoint(String endpoint) { 35 | _endpoint = endpoint; 36 | if (kPSPublicSoap != null) 37 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 | 39 | } 40 | 41 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() { 42 | if (kPSPublicSoap == null) 43 | _initKPSPublicSoapProxy(); 44 | return kPSPublicSoap; 45 | } 46 | 47 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException{ 48 | if (kPSPublicSoap == null) 49 | _initKPSPublicSoapProxy(); 50 | return kPSPublicSoap.TCKimlikNoDogrula(TCKimlikNo, ad, soyad, dogumYili); 51 | } 52 | 53 | 54 | } -------------------------------------------------------------------------------- /gameProject/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoapStub.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicSoapStub extends org.apache.axis.client.Stub implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 11 | private java.util.Vector cachedSerClasses = new java.util.Vector(); 12 | private java.util.Vector cachedSerQNames = new java.util.Vector(); 13 | private java.util.Vector cachedSerFactories = new java.util.Vector(); 14 | private java.util.Vector cachedDeserFactories = new java.util.Vector(); 15 | 16 | static org.apache.axis.description.OperationDesc [] _operations; 17 | 18 | static { 19 | _operations = new org.apache.axis.description.OperationDesc[1]; 20 | _initOperationDesc1(); 21 | } 22 | 23 | private static void _initOperationDesc1(){ 24 | org.apache.axis.description.OperationDesc oper; 25 | org.apache.axis.description.ParameterDesc param; 26 | oper = new org.apache.axis.description.OperationDesc(); 27 | oper.setName("TCKimlikNoDogrula"); 28 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNo"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false); 29 | oper.addParameter(param); 30 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Ad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 31 | param.setOmittable(true); 32 | oper.addParameter(param); 33 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Soyad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 34 | param.setOmittable(true); 35 | oper.addParameter(param); 36 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "DogumYili"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); 37 | oper.addParameter(param); 38 | oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); 39 | oper.setReturnClass(boolean.class); 40 | oper.setReturnQName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrulaResult")); 41 | oper.setStyle(org.apache.axis.constants.Style.WRAPPED); 42 | oper.setUse(org.apache.axis.constants.Use.LITERAL); 43 | _operations[0] = oper; 44 | 45 | } 46 | 47 | public KPSPublicSoapStub() throws org.apache.axis.AxisFault { 48 | this(null); 49 | } 50 | 51 | public KPSPublicSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 52 | this(service); 53 | super.cachedEndpoint = endpointURL; 54 | } 55 | 56 | public KPSPublicSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 57 | if (service == null) { 58 | super.service = new org.apache.axis.client.Service(); 59 | } else { 60 | super.service = service; 61 | } 62 | ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); 63 | } 64 | 65 | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { 66 | try { 67 | org.apache.axis.client.Call _call = super._createCall(); 68 | if (super.maintainSessionSet) { 69 | _call.setMaintainSession(super.maintainSession); 70 | } 71 | if (super.cachedUsername != null) { 72 | _call.setUsername(super.cachedUsername); 73 | } 74 | if (super.cachedPassword != null) { 75 | _call.setPassword(super.cachedPassword); 76 | } 77 | if (super.cachedEndpoint != null) { 78 | _call.setTargetEndpointAddress(super.cachedEndpoint); 79 | } 80 | if (super.cachedTimeout != null) { 81 | _call.setTimeout(super.cachedTimeout); 82 | } 83 | if (super.cachedPortName != null) { 84 | _call.setPortName(super.cachedPortName); 85 | } 86 | java.util.Enumeration keys = super.cachedProperties.keys(); 87 | while (keys.hasMoreElements()) { 88 | java.lang.String key = (java.lang.String) keys.nextElement(); 89 | _call.setProperty(key, super.cachedProperties.get(key)); 90 | } 91 | return _call; 92 | } 93 | catch (java.lang.Throwable _t) { 94 | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); 95 | } 96 | } 97 | 98 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException { 99 | if (super.cachedEndpoint == null) { 100 | throw new org.apache.axis.NoEndPointException(); 101 | } 102 | org.apache.axis.client.Call _call = createCall(); 103 | _call.setOperation(_operations[0]); 104 | _call.setUseSOAPAction(true); 105 | _call.setSOAPActionURI("http://tckimlik.nvi.gov.tr/WS/TCKimlikNoDogrula"); 106 | _call.setEncodingStyle(null); 107 | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); 108 | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); 109 | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 110 | _call.setOperationName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrula")); 111 | 112 | setRequestHeaders(_call); 113 | setAttachments(_call); 114 | try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(TCKimlikNo), ad, soyad, new java.lang.Integer(dogumYili)}); 115 | 116 | if (_resp instanceof java.rmi.RemoteException) { 117 | throw (java.rmi.RemoteException)_resp; 118 | } 119 | else { 120 | extractAttachments(_call); 121 | try { 122 | return ((java.lang.Boolean) _resp).booleanValue(); 123 | } catch (java.lang.Exception _exception) { 124 | return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue(); 125 | } 126 | } 127 | } catch (org.apache.axis.AxisFault axisFaultException) { 128 | throw axisFaultException; 129 | } 130 | } 131 | 132 | } 133 | -------------------------------------------------------------------------------- /inheritance/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inheritance/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritance/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritance 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /inheritance/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /inheritance/src/inheritance/CorporateCustomer.java: -------------------------------------------------------------------------------- 1 | package inheritance; 2 | 3 | public class CorporateCustomer extends Customer{ 4 | String companyName; 5 | String taxNumber; 6 | } 7 | -------------------------------------------------------------------------------- /inheritance/src/inheritance/Customer.java: -------------------------------------------------------------------------------- 1 | package inheritance; 2 | 3 | //base | super class 4 | public class Customer { 5 | int id; 6 | String customerNumber; 7 | } 8 | -------------------------------------------------------------------------------- /inheritance/src/inheritance/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance/src/inheritance/CustomerManager.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/IndividualCustomer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance/src/inheritance/IndividualCustomer.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance/src/inheritance/Main.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/SendikaCustomer.java: -------------------------------------------------------------------------------- 1 | package inheritance; 2 | 3 | public class SendikaCustomer extends Customer{ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /inheritance2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inheritance2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritance2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritance2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /inheritance2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance2/src/inheritance2/CustomerManager.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/DatabaseLogger.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class DatabaseLogger extends Logger { 4 | @Override 5 | public void log() { 6 | System.out.println("database loglama"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/EmailLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance2/src/inheritance2/EmailLogger.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/FileLogger.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class FileLogger extends Logger { 4 | @Override 5 | public void log() { 6 | System.out.println("dosya"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/LogManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance2/src/inheritance2/LogManager.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/Logger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/inheritance2/src/inheritance2/Logger.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/Main.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | //LogManager logManager= new LogManager(); 7 | //logManager.log(1); 8 | 9 | CustomerManager customerManager = new CustomerManager(); 10 | customerManager.add(new FileLogger());//Logger istiyor benden 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /interfaces/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /interfaces/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfaces 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /interfaces/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /interfaces/bin/interfaces/Customer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/Customer.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/CustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/CustomerManager.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/DatabaseLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/DatabaseLogger.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/EmailLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/EmailLogger.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/FileLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/FileLogger.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/Logger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/Logger.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/Main.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/SmsLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/SmsLogger.class -------------------------------------------------------------------------------- /interfaces/bin/interfaces/Utils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/bin/interfaces/Utils.class -------------------------------------------------------------------------------- /interfaces/src/interfaces/Customer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/Customer.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/CustomerManager.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/DatabaseLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/DatabaseLogger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/EmailLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/EmailLogger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/FileLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/FileLogger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/Logger.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public interface Logger { 4 | void log(String message); 5 | } 6 | -------------------------------------------------------------------------------- /interfaces/src/interfaces/Main.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | Logger[] loggers = {new SmsLogger(), new EmailLogger(), new DatabaseLogger()}; 7 | CustomerManager customerManager = new CustomerManager(loggers); 8 | 9 | 10 | Customer customer = new Customer(1, "zeynep", "zey"); 11 | customerManager.add(customer); 12 | 13 | 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /interfaces/src/interfaces/SmsLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/SmsLogger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/Utils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/interfaces/src/interfaces/Utils.java -------------------------------------------------------------------------------- /nLayeredDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /nLayeredDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | nLayeredDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /nLayeredDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/Main.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/business/abstracts/ProductService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/business/abstracts/ProductService.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/business/concretes/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/business/concretes/ProductManager.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/core/JLoggerManagerAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/core/JLoggerManagerAdapter.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/core/LoggerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/core/LoggerService.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/dataAccess/abstracts/ProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/dataAccess/abstracts/ProductDao.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/dataAccess/concretes/AbcProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/dataAccess/concretes/AbcProductDao.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/dataAccess/concretes/HibernateProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/dataAccess/concretes/HibernateProductDao.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/entities/abstracts/Entity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/entities/abstracts/Entity.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/entities/concretes/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/entities/concretes/Product.class -------------------------------------------------------------------------------- /nLayeredDemo/bin/nLayeredDemo/jLogger/JLoggerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/bin/nLayeredDemo/jLogger/JLoggerManager.class -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/Main.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/business/abstracts/ProductService.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.entities.concretes.Product; 6 | 7 | public interface ProductService { 8 | void add(Product product); 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/business/concretes/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/business/concretes/ProductManager.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/core/JLoggerManagerAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/core/JLoggerManagerAdapter.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/core/LoggerService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/core/LoggerService.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/abstracts/ProductDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/dataAccess/abstracts/ProductDao.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/concretes/AbcProductDao.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.dataAccess.concretes; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.dataAccess.abstracts.ProductDao; 6 | import nLayeredDemo.entities.concretes.Product; 7 | 8 | public class AbcProductDao implements ProductDao{ 9 | 10 | @Override 11 | public void add(Product product) { 12 | System.out.println("abc ile eklendi " + product.getName()); 13 | 14 | } 15 | 16 | @Override 17 | public void update(Product product) { 18 | // TODO Auto-generated method stub 19 | 20 | } 21 | 22 | @Override 23 | public void delete(Product product) { 24 | // TODO Auto-generated method stub 25 | 26 | } 27 | 28 | @Override 29 | public Product get(int id) { 30 | // TODO Auto-generated method stub 31 | return null; 32 | } 33 | 34 | @Override 35 | public List getAll() { 36 | // TODO Auto-generated method stub 37 | return null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/concretes/HibernateProductDao.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.dataAccess.concretes; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.dataAccess.abstracts.ProductDao; 6 | import nLayeredDemo.entities.concretes.Product; 7 | 8 | public class HibernateProductDao implements ProductDao{ 9 | 10 | @Override 11 | public void add(Product product) { 12 | System.out.println("Hibernate ile eklendi " + product.getName()); 13 | 14 | } 15 | 16 | @Override 17 | public void update(Product product) { 18 | // TODO Auto-generated method stub 19 | 20 | } 21 | 22 | @Override 23 | public void delete(Product product) { 24 | // TODO Auto-generated method stub 25 | 26 | } 27 | 28 | @Override 29 | public Product get(int id) { 30 | // TODO Auto-generated method stub 31 | return null; 32 | } 33 | 34 | @Override 35 | public List getAll() { 36 | // TODO Auto-generated method stub 37 | return null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/entities/abstracts/Entity.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.entities.abstracts; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/entities/concretes/Product.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.entities.concretes; 2 | 3 | import nLayeredDemo.entities.abstracts.Entity; 4 | 5 | public class Product implements Entity { 6 | private int id; 7 | private int categoryId; 8 | private String name; 9 | private double unitPrice; 10 | private int unitsInStock; 11 | 12 | public Product() {} 13 | 14 | public Product(int id, int categoryId, String name, double unitPrice, int unitsInStock) { 15 | super(); 16 | this.id = id; 17 | this.categoryId = categoryId; 18 | this.name = name; 19 | this.unitPrice = unitPrice; 20 | this.unitsInStock = unitsInStock; 21 | } 22 | 23 | public int getId() { 24 | return id; 25 | } 26 | 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | 31 | public int getCategoryId() { 32 | return categoryId; 33 | } 34 | 35 | public void setCategoryId(int categoryId) { 36 | this.categoryId = categoryId; 37 | } 38 | 39 | public String getName() { 40 | return name; 41 | } 42 | 43 | public void setName(String name) { 44 | this.name = name; 45 | } 46 | 47 | public double getUnitPrice() { 48 | return unitPrice; 49 | } 50 | 51 | public void setUnitPrice(double unitPrice) { 52 | this.unitPrice = unitPrice; 53 | } 54 | 55 | public int getUnitsInStock() { 56 | return unitsInStock; 57 | } 58 | 59 | public void setUnitsInStock(int unitsInStock) { 60 | this.unitsInStock = unitsInStock; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/jLogger/JLoggerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/nLayeredDemo/src/nLayeredDemo/jLogger/JLoggerManager.java -------------------------------------------------------------------------------- /northwind/NorthwindApplication.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class NorthwindApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(NorthwindApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /northwind/northwind/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /northwind/northwind/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.compliance=11 5 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 6 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 7 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=11 10 | -------------------------------------------------------------------------------- /northwind/northwind/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/NorthwindApplication.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class NorthwindApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(NorthwindApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/api/controllers/ProductsController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.api.controllers; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.GetMapping; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | import kodlamaio.northwind.business.abstracts.ProductService; 11 | import kodlamaio.northwind.entities.concretes.Product; 12 | 13 | //BU controller'ı; angular react vs.. hepsi kullanabilir; restfull calisiyoruz 14 | 15 | //anatasyon ekliyoruz: 16 | @RestController 17 | @RequestMapping("/api/products") 18 | public class ProductsController { 19 | 20 | //hiç constructor yazmadan Autowired yazarsan da çalisir bu 21 | //ama birden fazla service kullanman gerektiginde hepsinin ustune yazman gerekir 22 | 23 | private ProductService productService; 24 | 25 | @Autowired 26 | public ProductsController(ProductService productService) { 27 | super(); 28 | this.productService = productService; 29 | } 30 | 31 | //bizim servisimiz nasıl destek verecek: 32 | @GetMapping("/getall") 33 | public List getAll(){ 34 | return this.productService.getAll(); 35 | } 36 | //boyle bir metot destegini bu controller vasitasiyla veriyoruz 37 | // kodlamaio/api/products/getall diye bir istekte bulunulursa 38 | //bu metot çalışır 39 | 40 | //hb, trendyol bizim bu istekleri yapabilmemizi saglayan araclardan başka bir şey degil 41 | } 42 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/abstracts/ProductService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.northwind.entities.concretes.Product; 6 | 7 | public interface ProductService { 8 | List getAll(); 9 | } 10 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/concretes/ProductManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.concretes; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import kodlamaio.northwind.business.abstracts.ProductService; 9 | import kodlamaio.northwind.dataAccess.abstracts.ProductDao; 10 | import kodlamaio.northwind.entities.concretes.Product; 11 | 12 | @Service //bu class service gorevi gorecek 13 | 14 | public class ProductManager implements ProductService{ 15 | 16 | private ProductDao productDao; 17 | 18 | @Autowired 19 | public ProductManager(ProductDao productDao) { 20 | super(); 21 | this.productDao = productDao; 22 | } 23 | 24 | 25 | @Override 26 | public List getAll() { 27 | return productDao.findAll(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/dataAccess/abstracts/ProductDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.northwind.entities.concretes.Product; 6 | 7 | public interface ProductDao extends JpaRepository{ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/entities/concretes/Product.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.Id; 7 | import javax.persistence.Table; 8 | 9 | @Entity 10 | @Table(name = "products") 11 | //java community'sinde genelde hep boyle 12 | //C# da konfigurasyonlar ile yapiyoruz bunu 13 | 14 | public class Product { 15 | 16 | 17 | //sıra onemli degil ama başka noktalarda anatosyonlar onem arz edebilir 18 | @Id//islemlerimiz Id Primary Key'e gore yapilacak 19 | @GeneratedValue 20 | @Column(name = "product_id")//hangi ozellik hangi kolona karsilik geliyor 21 | private int id; 22 | 23 | @Column(name = "category_id") 24 | private int categoryId; 25 | 26 | @Column(name = "product_name") 27 | private String productName; 28 | 29 | @Column(name = "unit_price") 30 | private double unitPrice; 31 | 32 | @Column(name = "units_in_stock") 33 | private short unitsInStock; 34 | 35 | @Column(name = "quantity_per_unit") 36 | private String quantityPerUnit; 37 | 38 | public Product() { 39 | // TODO Auto-generated constructor stub 40 | } 41 | 42 | public Product(int id, int categoryId, String productName, double unitPrice, short unitsInStock, 43 | String quantityPerUnit) { 44 | super(); 45 | this.id = id; 46 | this.categoryId = categoryId; 47 | this.productName = productName; 48 | this.unitPrice = unitPrice; 49 | this.unitsInStock = unitsInStock; 50 | this.quantityPerUnit = quantityPerUnit; 51 | } 52 | 53 | public int getId() { 54 | return id; 55 | } 56 | 57 | public void setId(int id) { 58 | this.id = id; 59 | } 60 | 61 | public int getCategoryId() { 62 | return categoryId; 63 | } 64 | 65 | public void setCategoryId(int categoryId) { 66 | this.categoryId = categoryId; 67 | } 68 | 69 | public String getProductName() { 70 | return productName; 71 | } 72 | 73 | public void setProductName(String productName) { 74 | this.productName = productName; 75 | } 76 | 77 | public double getUnitPrice() { 78 | return unitPrice; 79 | } 80 | 81 | public void setUnitPrice(double unitPrice) { 82 | this.unitPrice = unitPrice; 83 | } 84 | 85 | public short getUnitsInStock() { 86 | return unitsInStock; 87 | } 88 | 89 | public void setUnitsInStock(short unitsInStock) { 90 | this.unitsInStock = unitsInStock; 91 | } 92 | 93 | public String getQuantityPerUnit() { 94 | return quantityPerUnit; 95 | } 96 | 97 | public void setQuantityPerUnit(String quantityPerUnit) { 98 | this.quantityPerUnit = quantityPerUnit; 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect 2 | spring.jpa.hibernate.ddl-auto=update 3 | spring.jpa.hibernate.show-sql=true 4 | spring.datasource.url=jdbc:postgresql://localhost:5432/Northwind 5 | spring.datasource.username=postgres 6 | spring.datasource.password=zeyis16 7 | spring.jpa.properties.javax.persistence.validation.mode = none 8 | -------------------------------------------------------------------------------- /northwind/northwind/src/test/java/kodlamaio/northwind/NorthwindApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class NorthwindApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /northwind/northwind/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Build-Jdk-Spec: 11 3 | Implementation-Title: northwind 4 | Implementation-Version: 0.0.1-SNAPSHOT 5 | Created-By: Maven Integration for Eclipse 6 | 7 | -------------------------------------------------------------------------------- /northwind/northwind/target/classes/META-INF/maven/kodlamaio/northwind/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Sat May 29 14:33:18 EET 2021 3 | m2e.projectLocation=C\:\\JavaCampIntro\\northwind\\northwind 4 | m2e.projectName=northwind 5 | groupId=kodlamaio 6 | artifactId=northwind 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /northwind/northwind/target/classes/META-INF/maven/kodlamaio/northwind/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.4.5 9 | 10 | 11 | kodlamaio 12 | northwind 13 | 0.0.1-SNAPSHOT 14 | northwind 15 | Demo project for Spring Boot 16 | 17 | 11 18 | 19 | 20 | 21 | org.springframework.boot 22 | spring-boot-starter-data-jpa 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-web 27 | 28 | 29 | 30 | org.springframework.boot 31 | spring-boot-devtools 32 | runtime 33 | true 34 | 35 | 36 | org.postgresql 37 | postgresql 38 | runtime 39 | 40 | 41 | 42 | org.springframework.boot 43 | spring-boot-starter-test 44 | test 45 | 46 | 47 | 48 | 49 | 50 | 51 | org.springframework.boot 52 | spring-boot-maven-plugin 53 | 54 | 55 | 56 | org.projectlombok 57 | lombok 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /northwind/northwind/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect 2 | spring.jpa.hibernate.ddl-auto=update 3 | spring.jpa.hibernate.show-sql=true 4 | spring.datasource.url=jdbc:postgresql://localhost:5432/Northwind 5 | spring.datasource.username=postgres 6 | spring.datasource.password=zeyis16 7 | spring.jpa.properties.javax.persistence.validation.mode = none 8 | -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/NorthwindApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/NorthwindApplication.class -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/api/controllers/ProductsController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/api/controllers/ProductsController.class -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/business/abstracts/ProductService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/business/abstracts/ProductService.class -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/business/concretes/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/business/concretes/ProductManager.class -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/dataAccess/abstracts/ProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/dataAccess/abstracts/ProductDao.class -------------------------------------------------------------------------------- /northwind/northwind/target/classes/kodlamaio/northwind/entities/concretes/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/classes/kodlamaio/northwind/entities/concretes/Product.class -------------------------------------------------------------------------------- /northwind/northwind/target/test-classes/kodlamaio/northwind/NorthwindApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/northwind/northwind/target/test-classes/kodlamaio/northwind/NorthwindApplicationTests.class -------------------------------------------------------------------------------- /oopIntro/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /oopIntro/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | oopIntro 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /oopIntro/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /oopIntro/bin/oopIntro/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/bin/oopIntro/Category.class -------------------------------------------------------------------------------- /oopIntro/bin/oopIntro/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/bin/oopIntro/Main.class -------------------------------------------------------------------------------- /oopIntro/bin/oopIntro/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/bin/oopIntro/Product.class -------------------------------------------------------------------------------- /oopIntro/bin/oopIntro/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/bin/oopIntro/ProductManager.class -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Category.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/src/oopIntro/Category.java -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/src/oopIntro/Main.java -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeynepsl/JavaCamp/d7f95bf50733c8d22cc8e16c61f9a785cc109674/oopIntro/src/oopIntro/Product.java -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/ProductManager.java: -------------------------------------------------------------------------------- 1 | package oopIntro; 2 | 3 | public class ProductManager { 4 | 5 | public void addToCart(Product product) { 6 | System.out.println("sepete eklendi: "+product.getName()); 7 | } 8 | 9 | } 10 | --------------------------------------------------------------------------------