public class DatenbankZugriffAPI extends AEntityAPI<DatenbankZugriff>
DatenbankZugriff
entities.entityClass
Constructor and Description |
---|
DatenbankZugriffAPI() |
Modifier and Type | Method and Description |
---|---|
de.xima.cmn.db.model.SerializableResultSet |
executeDBquery(UserContext uc,
Mandant mandant,
String abfrageName,
boolean suppressStatementLimits,
Serializable... parameters)
Method for executing a query with parameter.
|
Integer |
executeSQL(UserContext uc,
Integer dbZugriffId,
String sql)
Deprecated.
|
de.xima.cmn.db.model.SerializableResultSet |
executeSQL(UserContext uc,
Integer dbZugriffID,
String sql,
boolean suppressStatementLimits,
Serializable... args)
Method for executing a Query
PreparedStatement on the Master-Server. |
DatenbankZugriff |
getByMandantAndName(UserContext uc,
Mandant mandant,
String name)
|
de.xima.cmn.db.model.SerializableResultSet |
query(UserContext uc,
Integer dbZugriffID,
String sql,
Serializable... args)
Deprecated.
use
executeSQL(UserContext, Integer, String, boolean, Serializable...) . Suppression of
statement-limits disabled! |
de.xima.cmn.db.model.SerializableResultSet |
query(UserContext uc,
Mandant mandant,
String abfrageName,
Serializable... parameters)
Deprecated.
use
executeDBquery(UserContext, Mandant, String, boolean, Serializable...) . Suppression of
statement-limits disabled! |
int |
update(UserContext uc,
Integer dbZugriffID,
String sql,
Serializable... args)
Method for executing a update
PreparedStatement on the Master-Server. |
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getBy, getById, getById, resultTotalCount, update, update
getHandlerProvider
public de.xima.cmn.db.model.SerializableResultSet executeSQL(UserContext uc, Integer dbZugriffID, String sql, boolean suppressStatementLimits, Serializable... args) throws PropertyVetoException
PreparedStatement
on the Master-Server.uc
- UserContext
the user context in which the action is to be performed.dbZugriffID
- Integer
the DatenbankZugriff
ID to which the PreparedStatement
to be
executed.sql
- String
the SQL string of the PreparedStatement
s.suppressStatementLimits
- Boolean
flag to suppress the global result limit of the SQL query.args
- Array
of Serializable
for setting the parameter of PreparedStatement
s.PropertyVetoException
- if a error occurs.@Deprecated public de.xima.cmn.db.model.SerializableResultSet query(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) throws PropertyVetoException
executeSQL(UserContext, Integer, String, boolean, Serializable...)
. Suppression of
statement-limits disabled!PreparedStatement
on the Master-Server.uc
- UserContext
the user context in which the action is to be performed.dbZugriffID
- Integer
the DatenbankZugriff
ID to which the PreparedStatement
to be
executed.sql
- String
the SQL string of the PreparedStatement
s.args
- Array
of Serializable
for setting the parameter of PreparedStatement
s.PropertyVetoException
- if a error occurs.public int update(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) throws PropertyVetoException
PreparedStatement
on the Master-Server.uc
- UserContext
the user context in which the action is to be performed.dbZugriffID
- Integer
the DatenbankZugriff
ID to which the PreparedStatement
to be
executed.sql
- String
the SQL string of the PreparedStatement
s.args
- Array
of Serializable
for setting the parameter of PreparedStatement
s.PropertyVetoException
- if a error occurs.public DatenbankZugriff getByMandantAndName(UserContext uc, Mandant mandant, String name)
uc
- UserContext
the user context in which the action is to be performed.mandant
- to which the DatenbankZugriff
is associated.name
- String
the name of DatenbankZugriff
sDatenbankZugriff
which was searched.@Deprecated public Integer executeSQL(UserContext uc, Integer dbZugriffId, String sql) throws PropertyVetoException
update(UserContext, Integer, String, Serializable...)
PreparedStatement
on the Master-Server.uc
- UserContext
the user context in which the action is to be performed.dbZugriffId
- Integer
the DatenbankZugriff
ID to which the PreparedStatement
to be
executed.sql
- String
the SQL string of the PreparedStatement
s.PropertyVetoException
- if a error occurs.public de.xima.cmn.db.model.SerializableResultSet executeDBquery(UserContext uc, Mandant mandant, String abfrageName, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
uc
- UserContext
the user context in which the action is to be performed.mandant
- whose query is executed.abfrageName
- name of the data source to be executed.suppressStatementLimits
- Boolean
flag to suppress the global result limit of the SQL query.parameters
- to be passed to the data source query.PropertyVetoException
- if a error occurs.IllegalArgumentException
- if a error occurs.@Deprecated public de.xima.cmn.db.model.SerializableResultSet query(UserContext uc, Mandant mandant, String abfrageName, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException
executeDBquery(UserContext, Mandant, String, boolean, Serializable...)
. Suppression of
statement-limits disabled!uc
- UserContext
the user context in which the action is to be performed.mandant
- whose query is executed.abfrageName
- name of the data source to be executed.parameters
- to be passed to the data source query.PropertyVetoException
- if a error occurs.IllegalArgumentException
- if a error occurs.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.