public class DBQueryManager extends Object
| Constructor and Description |
|---|
DBQueryManager() |
| Modifier and Type | Method and Description |
|---|---|
static de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
boolean suppressStatementLimits,
boolean publicOnly,
Serializable... parameters) |
static de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
boolean suppressStatementLimits,
Serializable... parameters) |
static de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
IReplacerParams placeholderParams,
boolean suppressStatementLimits,
boolean publicOnly,
Serializable... parameters) |
static de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
IReplacerParams placeholderParams,
boolean suppressStatementLimits,
Serializable... parameters) |
static de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
Serializable... parameters)
Deprecated.
use
executeDBquery(IEntityContext, Mandant, String, boolean, Serializable...). Suppression of
statement-limits disabled! |
static de.xima.cmn.db.model.SerializableResultSet |
executePublicDBquery(IEntityContext ec,
Mandant mandant,
String datenquellenName,
boolean suppressStatementLimits,
Serializable... parameters) |
static Integer |
executeSql(IEntityContext ec,
Long dbZugriffId,
String sql) |
static PreparedStatement |
prepareStatement(Connection con,
String sql,
IReplacerParams replacerParameters) |
static de.xima.cmn.db.model.SerializableResultSet |
query(Connection con,
String sql,
boolean suppressStatementLimits,
Serializable... args) |
static de.xima.cmn.db.model.SerializableResultSet |
query(Connection con,
String sql,
IReplacerParams params,
boolean suppressStatementLimits,
Serializable... args) |
static de.xima.cmn.db.model.SerializableResultSet |
query(IEntityContext ec,
Integer dbZugriffId,
String sql,
boolean suppressStatementLimits,
Serializable... args) |
static de.xima.cmn.db.model.SerializableResultSet |
query(IEntityContext ec,
Integer dbZugriffId,
String sql,
IReplacerParams params,
boolean suppressStatementLimits,
Serializable... args) |
static de.xima.cmn.db.model.SerializableResultSet |
query(IEntityContext ec,
Integer dbZugriffId,
String sql,
Serializable... args)
Deprecated.
use
query(IEntityContext, Integer, String, boolean, Serializable...). Suppression of
statement-limits disabled! |
static int |
update(IEntityContext ec,
Integer dbZugriffId,
String sql,
Serializable... args) |
public static int update(IEntityContext ec, Integer dbZugriffId, String sql, Serializable... args) throws PropertyVetoException
ec - the IEntityContextdbZugriffId - Integer the id of the database-connectionsql - String the sqlargs - Serializable parametersInteger the number of updated rowsPropertyVetoException - on errors in the database-connection properties@Deprecated public static de.xima.cmn.db.model.SerializableResultSet query(IEntityContext ec, Integer dbZugriffId, String sql, Serializable... args) throws PropertyVetoException
query(IEntityContext, Integer, String, boolean, Serializable...). Suppression of
statement-limits disabled!PropertyVetoExceptionpublic static de.xima.cmn.db.model.SerializableResultSet query(IEntityContext ec, Integer dbZugriffId, String sql, boolean suppressStatementLimits, Serializable... args) throws PropertyVetoException
PropertyVetoExceptionpublic static de.xima.cmn.db.model.SerializableResultSet query(IEntityContext ec, Integer dbZugriffId, String sql, IReplacerParams params, boolean suppressStatementLimits, Serializable... args) throws PropertyVetoException
ec - IEntityContextdbZugriffId - Integer the id of the database-connectionsql - String the sqlsuppressStatementLimits - Boolean if the statement limit should be suppressedargs - Serializable parametersSerializableResultSetPropertyVetoException - on errors in the database-connection propertiespublic static de.xima.cmn.db.model.SerializableResultSet query(Connection con, String sql, boolean suppressStatementLimits, Serializable... args) throws SQLException
SQLExceptionpublic static de.xima.cmn.db.model.SerializableResultSet query(Connection con, String sql, IReplacerParams params, boolean suppressStatementLimits, Serializable... args) throws SQLException
con - Connection to use for the query.sql - SQL statement to execute. May contain parameters.params - placeholderParameterssuppressStatementLimits - Boolean if the statement limit should be suppressedargs - Additional arguments for the prepared statement.null when the database returned no result.SQLException - When the query could not be executed.public static Integer executeSql(IEntityContext ec, Long dbZugriffId, String sql) throws PropertyVetoException
ec - the IEntityContextdbZugriffId - Long the id of the database-connectionsql - String the sqlPropertyVetoException - on errors in the database-connection properties@Deprecated public static de.xima.cmn.db.model.SerializableResultSet executeDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
executeDBquery(IEntityContext, Mandant, String, boolean, Serializable...). Suppression of
statement-limits disabled!public static de.xima.cmn.db.model.SerializableResultSet executeDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
ec - the IEntityContextmandant - the ManagedBeanCreationExceptiondatenquellenName - String the name of the datasourcesuppressStatementLimits - Boolean if the statement limi should be supressedparameters - Serializable parametersSerializableResultSetPropertyVetoException - if the properties of the connection are not corretIllegalArgumentException - if the parameter count doesn´t matchpublic static de.xima.cmn.db.model.SerializableResultSet executeDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, IReplacerParams placeholderParams, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
public static de.xima.cmn.db.model.SerializableResultSet executePublicDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
public static de.xima.cmn.db.model.SerializableResultSet executeDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, boolean suppressStatementLimits, boolean publicOnly, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
public static de.xima.cmn.db.model.SerializableResultSet executeDBquery(IEntityContext ec, Mandant mandant, String datenquellenName, IReplacerParams placeholderParams, boolean suppressStatementLimits, boolean publicOnly, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
public static PreparedStatement prepareStatement(Connection con, String sql, IReplacerParams replacerParameters) throws SQLException
SQLExceptionCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.