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
ALTER TABLE TABLE_NAME | |
ADD NEW_COLUMN INTEGER REFERENCES TABLE_REFERENCE(ID_PRIMARY_KEY); |
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 class ConexcionFabrica { | |
public IConexion getConexion(String motor) { | |
switch(motor) { | |
case "MYSQL": return new ConexionMySQL(); | |
case "Oracle": return new ConexionOracle(); | |
default: return null; | |
} | |
} |
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 class Conexion { | |
private static Conexion instancia; | |
private Conexion() {} | |
public static Conexion getInstancia() { | |
if(instancia == null) { | |
instancia = new Conexcion(); | |
} | |
return instancia; |