public PasswordManagement() {
try {
System.out.print(" Loading JDBC Driver -> " + driverClass + "\n");
Class.forName(driverClass).newInstance();
System.out.print(" Connecting to -> " + connectionURL + "\n");
this.con = DriverManager.getConnection(connectionURL, userID, userPassword);
System.out.print(" Connected as -> " + userID + "\n");
System.out.print(" Looking for Warnings\n");
SQLWarning sqlw = con.getWarnings();
if (sqlw != null && sqlw.getErrorCode() == 28002) {
System.out.println(" WARNING: ORA-28002: Your password will expire soon!");
System.out.println(" MESSAGE: " + sqlw.getMessage());
}
System.out.print(" Warning check process completed\n");
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}
The progress and work done after the advent of computers has resulted in more dedicated hosting services coming up everyday, and many of them are cheap web hosting services.
Monday, January 7, 2008
Friday, January 4, 2008
Creating a simple domain(bean) class
import java.io.File;
public class BatchingFile {
private String name;
private String folder;
private String path;
public BatchingFile(File file) {
setName(file.getName());
setFolder(file.getParent());
setPath(file.getAbsolutePath());
}
public String getFolder() {
return folder;
}
public void setFolder(String folder) {
this.folder = folder;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
}
Thanks to the progress and development of web hosting and website design as well as everything else related to internet, now there is a great business opportunity in the form of seo.
public class BatchingFile {
private String name;
private String folder;
private String path;
public BatchingFile(File file) {
setName(file.getName());
setFolder(file.getParent());
setPath(file.getAbsolutePath());
}
public String getFolder() {
return folder;
}
public void setFolder(String folder) {
this.folder = folder;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
}
Thanks to the progress and development of web hosting and website design as well as everything else related to internet, now there is a great business opportunity in the form of seo.
Labels:
Java
Subscribe to:
Posts (Atom)