Package de.xima.fc.api.entity
Class DatenbankZugriffAPI
API class for manipulation of
DatenbankZugriff entities.- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.xima.cmn.db.model.SerializableResultSetexecuteDBquery(UserContext uc, Mandant mandant, String abfrageName, boolean suppressStatementLimits, Serializable... parameters) Method for executing a query with parameter.de.xima.cmn.db.model.SerializableResultSetexecuteDBquery(UserContext uc, Mandant mandant, String abfrageName, IReplacerParams placeholderParams, boolean suppressStatementLimits, Serializable... parameters) de.xima.cmn.db.model.SerializableResultSetexecutePublicDBquery(UserContext uc, Mandant client, String queryName, boolean suppressStatementLimits, Serializable[] parameters) de.xima.cmn.db.model.SerializableResultSetexecutePublicDBquery(UserContext uc, Mandant client, String queryName, boolean suppressStatementLimits, Serializable[] parameters, IReplacerParams replacerParams) executeSQL(UserContext uc, Integer dbZugriffId, String sql) Deprecated.de.xima.cmn.db.model.SerializableResultSetexecuteSQL(UserContext uc, Integer dbZugriffID, String sql, boolean suppressStatementLimits, Serializable... args) Method for executing a QueryPreparedStatementon the Master-Server.getByMandantAndName(UserContext uc, Mandant mandant, String name) getByUUID(UserContext uc, Mandant client, String uuid) Returns the DB access with the given UUIDgetByUUID(UserContext uc, Mandant client, UUID uuid) Returns the DB access with the given UUIDde.xima.cmn.db.model.SerializableResultSetquery(UserContext uc, Mandant mandant, String abfrageName, Serializable... parameters) de.xima.cmn.db.model.SerializableResultSetquery(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) Deprecated.intupdate(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) Method for executing a updatePreparedStatementon the Master-Server.Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updateMethods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
DatenbankZugriffAPI
public DatenbankZugriffAPI()
-
-
Method Details
-
executeSQL
public de.xima.cmn.db.model.SerializableResultSet executeSQL(UserContext uc, Integer dbZugriffID, String sql, boolean suppressStatementLimits, Serializable... args) throws PropertyVetoException Method for executing a QueryPreparedStatementon the Master-Server.- Parameters:
uc-UserContextthe user context in which the action is to be performed.dbZugriffID-IntegertheDatenbankZugriffID to which thePreparedStatementto be executed.sql-Stringthe SQL string of thePreparedStatements.suppressStatementLimits-Booleanflag to suppress the global result limit of the SQL query.args-ArrayofSerializablefor setting the parameter ofPreparedStatements.- Returns:
- Serializable database result object with the query result.
- Throws:
PropertyVetoException- if a error occurs.- Since:
- 2.4.3
-
query
@Deprecated public de.xima.cmn.db.model.SerializableResultSet query(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) throws PropertyVetoException Deprecated.useexecuteSQL(UserContext, Integer, String, boolean, Serializable...). Suppression of statement-limits disabled!Method for executing a QueryPreparedStatementon the Master-Server.- Parameters:
uc-UserContextthe user context in which the action is to be performed.dbZugriffID-IntegertheDatenbankZugriffID to which thePreparedStatementto be executed.sql-Stringthe SQL string of thePreparedStatements.args-ArrayofSerializablefor setting the parameter ofPreparedStatements.- Returns:
- Serializable database result object with the query result.
- Throws:
PropertyVetoException- if a error occurs.
-
update
public int update(UserContext uc, Integer dbZugriffID, String sql, Serializable... args) throws PropertyVetoException Method for executing a updatePreparedStatementon the Master-Server.- Parameters:
uc-UserContextthe user context in which the action is to be performed.dbZugriffID-IntegertheDatenbankZugriffID to which thePreparedStatementto be executed.sql-Stringthe SQL string of thePreparedStatements.args-ArrayofSerializablefor setting the parameter ofPreparedStatements.- Returns:
- Number of the updated rows.
- Throws:
PropertyVetoException- if a error occurs.- Since:
- 2.4.3
-
getByMandantAndName
- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant- to which theDatenbankZugriffis associated.name-Stringthe name ofDatenbankZugriffs- Returns:
DatenbankZugriffwhich was searched.- Since:
- 2.4.3
-
getByUUID
Returns the DB access with the given UUID- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for DB accessuuid-StringUUID of the DB access- Returns:
DatenbankZugrifffor the given UUID and client- Since:
- 6.x.x
-
getByUUID
Returns the DB access with the given UUID- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for DB accessuuid-UUIDUUID of the DB access- Returns:
DatenbankZugrifffor the given UUID and client- Since:
- 6.x.x
-
executeSQL
@Deprecated public Integer executeSQL(UserContext uc, Integer dbZugriffId, String sql) throws PropertyVetoException Deprecated.Method for executing a updatePreparedStatementon the Master-Server.- Parameters:
uc-UserContextthe user context in which the action is to be performed.dbZugriffId-IntegertheDatenbankZugriffID to which thePreparedStatementto be executed.sql-Stringthe SQL string of thePreparedStatements.- Returns:
- Number of the updated rows.
- Throws:
PropertyVetoException- if a error occurs.
-
executeDBquery
public de.xima.cmn.db.model.SerializableResultSet executeDBquery(UserContext uc, Mandant mandant, String abfrageName, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException Method for executing a query with parameter.- Parameters:
uc-UserContextthe 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-Booleanflag to suppress the global result limit of the SQL query.parameters- to be passed to the data source query.- Returns:
- Serializable database result object with the query result.
- Throws:
PropertyVetoException- if a error occurs.IllegalArgumentException- if a error occurs.- Since:
- 4.3.0
-
executeDBquery
public de.xima.cmn.db.model.SerializableResultSet executeDBquery(UserContext uc, Mandant mandant, String abfrageName, IReplacerParams placeholderParams, boolean suppressStatementLimits, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException -
query
@Deprecated public de.xima.cmn.db.model.SerializableResultSet query(UserContext uc, Mandant mandant, String abfrageName, Serializable... parameters) throws PropertyVetoException, IllegalArgumentException Deprecated.useexecuteDBquery(UserContext, Mandant, String, boolean, Serializable...). Suppression of statement-limits disabled!Method for executing a query with parameter.- Parameters:
uc-UserContextthe 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.- Returns:
- Serializable database result object with the query result.
- Throws:
PropertyVetoException- if a error occurs.IllegalArgumentException- if a error occurs.
-
executePublicDBquery
public de.xima.cmn.db.model.SerializableResultSet executePublicDBquery(UserContext uc, Mandant client, String queryName, boolean suppressStatementLimits, Serializable[] parameters) throws PropertyVetoException, IllegalArgumentException -
executePublicDBquery
public de.xima.cmn.db.model.SerializableResultSet executePublicDBquery(UserContext uc, Mandant client, String queryName, boolean suppressStatementLimits, Serializable[] parameters, IReplacerParams replacerParams) throws PropertyVetoException, IllegalArgumentException
-
update(UserContext, Integer, String, Serializable...)