All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.storedobject.core.Database Maven / Gradle / Ivy

package com.storedobject.core;

import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Calendar;

public abstract class Database {

	public static void login(String driver, String ip, int port, String database, String user, String password) throws Exception {
	}

	public static Database get() {
		return null;
	}

	public static void lockDatabase() {
	}

	public abstract String name();

	public abstract String securityLogin();

	public abstract String modelDatabase();

	public abstract String userSQL();

	public abstract boolean isALogin(RawSQL sql, String user);

	public abstract boolean isALogin(String user, String password);

	public String initialPassword() {
		return null;
	}

	public abstract boolean createLogin(String user, String password);

	public abstract boolean dropLogin(String user, String password);

	protected final boolean changePassword(String user, String oldPassword, String newPassword) {
		return true;
	}

	protected abstract boolean alterPassword(String user, String oldPassword, String newPassword);

	protected abstract boolean resetPassword(String user, String securityPassword, String newPassword);

	public String maxTime() {
		return null;
	}

	public abstract String currentTime();

	public Calendar getCurrentTime() {
		return null;
	}

	public String currentTimeSQL() {
		return null;
	}

	public abstract String callProc(String name, String parameter);

	public abstract String getSerial(int tag);

	public abstract String getObjectClassName();

	public static  String format(D date) {
		return null;
	}

	public static  String formatWithTime(D date) {
		return null;
	}

	public static DateFormat dateFormat() {
		return null;
	}

	public static DateFormat dateTimeFormat() {
		return null;
	}

	public int nanoDigits() {
		return 6;
	}

	public final boolean executeSQL(String sql, String securityPassword) {
		return false;
	}

	protected final boolean executeSQL(String sql, String user, String password) {
		return false;
	}

	protected final boolean executeSQL(String sql, String user, String password, boolean ignoreErrors) {
		return false;
	}

	protected final boolean executeSQL(String sql[], String user, String password) {
		return false;
	}

	protected final boolean executeSQL(String sql[], String user, String password, boolean ignoreErrors) {
		return false;
	}

	public final Timestamp maxTimeStamp() {
		return null;
	}

	protected RawSQL getSQL() {
		return null;
	}

	public boolean schemaExists(String schemaName) {
		return false;
	}

	public boolean tableExists(String tableName) {
		return false;
	}

	public ArrayList foreignKeyConstraints(String tableName) {
		return null;
	}

	public abstract ArrayList parentTable(String tableName);

	public abstract String columnType(String columnType, int width, int precision);

	public ArrayList columnDetails(String tableName) {
		return null;
	}

	protected abstract String[] createSchemaDDL(String schemaName);

	public boolean createSchema(String schemaName, String securityPassword) {
		return false;
	}

	public boolean createTable(Class objectClass, String securityPassword) throws Exception {
		return false;
	}

	public boolean validateSecurityPassword(String password) throws Exception {
		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy