Merge pull request #532 from leogtzr/master

Adding initialization-on-demand idiom and noninstantiable class instead of interface constant idiom
This commit is contained in:
Ilkka Seppälä
2017-01-23 08:21:07 +02:00
committed by GitHub
13 changed files with 32 additions and 21 deletions

View File

@ -22,10 +22,13 @@
*/
package com.iluwatar.dao;
public interface CustomerSchemaSql {
public final class CustomerSchemaSql {
String CREATE_SCHEMA_SQL = "CREATE TABLE CUSTOMERS (ID NUMBER, FNAME VARCHAR(100), "
private CustomerSchemaSql() {}
public static final String CREATE_SCHEMA_SQL = "CREATE TABLE CUSTOMERS (ID NUMBER, FNAME VARCHAR(100), "
+ "LNAME VARCHAR(100))";
String DELETE_SCHEMA_SQL = "DROP TABLE CUSTOMERS";
public static final String DELETE_SCHEMA_SQL = "DROP TABLE CUSTOMERS";
}