Package de.xima.fc.api.entity
Class DatenbankZugriffAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<DatenbankZugriff>
-
- de.xima.fc.api.entity.DatenbankZugriffAPI
-
public class DatenbankZugriffAPI extends AEntityAPI<DatenbankZugriff>
API class for manipulation ofDatenbankZugriff
entities.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description DatenbankZugriffAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.de.xima.cmn.db.model.SerializableResultSet
executeDBquery(UserContext uc, Mandant mandant, String abfrageName, IReplacerParams placeholderParams, boolean suppressStatementLimits, Serializable... parameters)
de.xima.cmn.db.model.SerializableResultSet
executePublicDBquery(UserContext uc, Mandant client, String queryName, boolean suppressStatementLimits, Serializable[] parameters)
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 QueryPreparedStatement
on the Master-Server.DatenbankZugriff
getByMandantAndName(UserContext uc, Mandant mandant, String name)
DatenbankZugriff
getByUUID(UserContext uc, Mandant client, String uuid)
Returns the DB access with the given UUIDDatenbankZugriff
getByUUID(UserContext uc, Mandant client, UUID uuid)
Returns the DB access with the given UUIDde.xima.cmn.db.model.SerializableResultSet
query(UserContext uc, Mandant mandant, String abfrageName, Serializable... parameters)
de.xima.cmn.db.model.SerializableResultSet
query(UserContext uc, Integer dbZugriffID, String sql, Serializable... args)
Deprecated.int
update(UserContext uc, Integer dbZugriffID, String sql, Serializable... args)
Method for executing a updatePreparedStatement
on 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, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
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 QueryPreparedStatement
on the Master-Server.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.dbZugriffID
-Integer
theDatenbankZugriff
ID to which thePreparedStatement
to be executed.sql
-String
the SQL string of thePreparedStatement
s.suppressStatementLimits
-Boolean
flag to suppress the global result limit of the SQL query.args
-Array
ofSerializable
for setting the parameter ofPreparedStatement
s.- 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 QueryPreparedStatement
on the Master-Server.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.dbZugriffID
-Integer
theDatenbankZugriff
ID to which thePreparedStatement
to be executed.sql
-String
the SQL string of thePreparedStatement
s.args
-Array
ofSerializable
for setting the parameter ofPreparedStatement
s.- 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 updatePreparedStatement
on the Master-Server.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.dbZugriffID
-Integer
theDatenbankZugriff
ID to which thePreparedStatement
to be executed.sql
-String
the SQL string of thePreparedStatement
s.args
-Array
ofSerializable
for setting the parameter ofPreparedStatement
s.- Returns:
- Number of the updated rows.
- Throws:
PropertyVetoException
- if a error occurs.- Since:
- 2.4.3
-
getByMandantAndName
public DatenbankZugriff getByMandantAndName(UserContext uc, Mandant mandant, String name)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
- to which theDatenbankZugriff
is associated.name
-String
the name ofDatenbankZugriff
s- Returns:
DatenbankZugriff
which was searched.- Since:
- 2.4.3
-
getByUUID
public DatenbankZugriff getByUUID(UserContext uc, Mandant client, String uuid)
Returns the DB access with the given UUID- Parameters:
uc
-UserContext
to useclient
-Mandant
context in which to look for DB accessuuid
-String
UUID of the DB access- Returns:
DatenbankZugriff
for the given UUID and client- Since:
- 6.x.x
-
getByUUID
public DatenbankZugriff getByUUID(UserContext uc, Mandant client, UUID uuid)
Returns the DB access with the given UUID- Parameters:
uc
-UserContext
to useclient
-Mandant
context in which to look for DB accessuuid
-UUID
UUID of the DB access- Returns:
DatenbankZugriff
for 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 updatePreparedStatement
on the Master-Server.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.dbZugriffId
-Integer
theDatenbankZugriff
ID to which thePreparedStatement
to be executed.sql
-String
the SQL string of thePreparedStatement
s.- 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
-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.- 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
-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.- 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
-
-