Created
February 10, 2009 15:12
-
-
Save lebesnec/61417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final String DRIVER = "org.apache.derby.jdbc.EmbeddedDriver"; | |
public static final String PROTOCOL = "jdbc:derby:"; | |
public static final String DATABASE_NAME = "myGreatDatabase"; | |
private Connection connection = null; | |
private void () { | |
try { | |
Class.forName(DRIVER).newInstance(); | |
connection = DriverManager.getConnection(PROTOCOL + DATABASE_NAME + ";create=true"); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment