|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDsDbManager<RECORDCLASS extends IDsRecord>
Method Summary | |
---|---|
void |
delete(int p_iPrimaryKeyValue)
marks the class object given by the p_iPrimaryKey value as deleted if that record is marked as not deletable an Runtime exception will be thrown |
de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper |
getAttributeHelper()
|
DsClass |
getClassDef()
|
java.lang.String |
getClassName()
|
de.uplanet.jdbc.JdbcConnection |
getConnection()
|
de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper |
getCustomAttributeHelper()
|
de.uplanet.lucy.server.usermanager.ds.DbColumn |
getDbColumnByGuid(java.lang.String p_strGUID)
returns an DbColumn Object for the class attribute given by the parameter p_strGuid |
de.uplanet.lucy.server.usermanager.ds.DbColumn |
getDbColumnByGuid(java.lang.String p_strGUID,
java.util.Map<java.lang.String,DsClass> p_tblAliasToClassMap)
returns an DbColumn Object for the class attribute given by the parameter p_strGuid |
java.lang.String |
getLastSqlStmt()
|
int |
insert(IDsRecord p_insertRecord)
inserts an new record object. |
java.util.List<RECORDCLASS> |
select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where,
IDsOrder[] p_orderFields,
int p_iFirstRow,
int p_iRows,
IDsSelectIterator p_iterator,
boolean p_bDistinct,
java.lang.String... p_selectfieldGuids)
|
java.util.List<RECORDCLASS> |
select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where,
IDsOrder[] p_orderFields,
int p_iFirstRow,
int p_iRows,
IDsSelectIterator p_iterator,
java.lang.String... p_selectfieldGuids)
|
java.util.List<RECORDCLASS> |
select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where,
IDsOrder[] p_orderFields,
int p_iFirstRow,
int p_iRows,
java.lang.String... p_selectfieldGuids)
select an list of records. |
java.util.List<RECORDCLASS> |
select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where,
IDsOrder[] p_orderFields,
java.lang.String... p_selectfieldGuids)
select an list of records. |
RECORDCLASS |
selectByGuid(java.lang.String p_strGuid,
java.lang.String... p_selectFieldGuids)
returns one record coresponding to the given guid. |
RECORDCLASS |
selectByPrimaryKey(int p_iPrimaryKeyValue,
java.util.Collection<java.lang.String> p_selectFieldGuids)
returns one record coresponding to the given primary key. |
RECORDCLASS |
selectByPrimaryKey(int p_iPrimaryKeyValue,
java.lang.String... p_selectFieldGuids)
returns one record coresponding to the given primary key. |
int |
selectCount(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter)
returns the count of records found in the class |
RECORDCLASS |
selectFullByGuid(java.lang.String p_strGuid)
returns one record, that is full read. or null when no record found by the given guid. |
RECORDCLASS |
selectFullByPrimaryKey(int p_iPrimaryKeyValue)
returns one record, that is full read. or null when no record found by the given primary key. |
java.util.List<RECORDCLASS> |
selectFullRecord(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter,
IDsOrder[] p_orderFields)
returns a full list of records (all fields (Attributes) in the record will be set, like select * from) |
java.util.List<RECORDCLASS> |
selectFullRecord(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter,
IDsOrder[] p_orderFields,
int p_iFirstRow,
int p_iRows)
returns a full list of records in the record all fields will be set |
RECORDCLASS |
selectIterate(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where,
IDsOrder[] p_orderFields,
IDsSelectIterator p_iterator,
java.lang.String... p_selectfieldGuids)
|
void |
setCustomAttributeHelper(de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper p_helper)
|
int |
update(int p_pkValue,
IDsRecord p_updateRecord)
updates an user manager object. |
Method Detail |
---|
java.lang.String getLastSqlStmt()
de.uplanet.jdbc.JdbcConnection getConnection()
java.lang.String getClassName()
DsClass getClassDef()
DsClass
java.util.List<RECORDCLASS> selectFullRecord(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter, IDsOrder[] p_orderFields) throws java.sql.SQLException
p_whereFilter
- can be null, used to set an filter for the select statementp_orderFields
- can be null, used to set an order to the select statement
java.sql.SQLException
java.util.List<RECORDCLASS> selectFullRecord(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter, IDsOrder[] p_orderFields, int p_iFirstRow, int p_iRows) throws java.sql.SQLException
p_whereFilter
- can be null, used to set an filter for the select statementp_orderFields
- can be null, used to set an order to the select statementp_iFirstRow
- used for pageing, the starting rowp_iRows
- the maximal count of records or -1 for all
java.sql.SQLException
int selectCount(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_whereFilter) throws java.sql.SQLException
p_whereFilter
-
java.sql.SQLException
RECORDCLASS selectFullByPrimaryKey(int p_iPrimaryKeyValue) throws java.sql.SQLException
p_iPrimaryKeyValue
-
null
when no record found
java.sql.SQLException
RECORDCLASS selectFullByGuid(java.lang.String p_strGuid) throws java.sql.SQLException
p_strGuid
-
null
when not found
java.sql.SQLException
RECORDCLASS selectByGuid(java.lang.String p_strGuid, java.lang.String... p_selectFieldGuids) throws java.sql.SQLException
p_strGuid
- the guidp_selectFieldGuids
- The fields, which will read from the db and will be set in the record object
null
if no record found, or an record object filled with the fields
(+ primary key) given by the l_selctFieldGuids
java.sql.SQLException
RECORDCLASS selectByPrimaryKey(int p_iPrimaryKeyValue, java.lang.String... p_selectFieldGuids) throws java.sql.SQLException
p_iPrimaryKeyValue
- the primary keyp_selectFieldGuids
- The fields, which will read from the db and will be set in the record object
null
if no record found, or an record object filled with the fields (+ primary key) given by the
l_selectFieldGuids
or throws a DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
RECORDCLASS selectByPrimaryKey(int p_iPrimaryKeyValue, java.util.Collection<java.lang.String> p_selectFieldGuids) throws java.sql.SQLException
p_iPrimaryKeyValue
- the primary keyp_selectFieldGuids
- The fields, which will read from the db and will be set in the record object
null
if no record found, or an record object filled with the fields (+ primary key) given by the
l_selectFieldGuids
or throws a DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
java.util.List<RECORDCLASS> select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where, IDsOrder[] p_orderFields, java.lang.String... p_selectfieldGuids) throws java.sql.SQLException
p_where
- used for the where clause IDsFilter
(can be null)p_orderFields
- used for the order by clause. (can be null)p_selectfieldGuids
- field guids depends on the STRGUID field in DSATTR (at least one element)
DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
RECORDCLASS selectIterate(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where, IDsOrder[] p_orderFields, IDsSelectIterator p_iterator, java.lang.String... p_selectfieldGuids) throws java.sql.SQLException
p_where
- the where clause (can be null)p_orderFields
- the sort fields (can be null)p_iterator
- the iterator called, to select the records (must not be null)p_selectfieldGuids
- field guids depends on the STRGUID field in DSATTR (at least one element)
DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
java.util.List<RECORDCLASS> select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where, IDsOrder[] p_orderFields, int p_iFirstRow, int p_iRows, java.lang.String... p_selectfieldGuids) throws java.sql.SQLException
p_where
- used for the where clause IDsFilter
(can be null)p_orderFields
- used for the order by clause. (can be null)p_iFirstRow
- start row index or <= 0 for first row startp_iRows
- maximal count of rows return , or -1 for all rows shoudl returnedp_selectfieldGuids
- field guids depends on the STRGUID field in DSATTR (at least one element)
DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
java.util.List<RECORDCLASS> select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where, IDsOrder[] p_orderFields, int p_iFirstRow, int p_iRows, IDsSelectIterator p_iterator, java.lang.String... p_selectfieldGuids) throws java.sql.SQLException
p_where
- can be nullp_orderFields
- can be nullp_iFirstRow
- <= 0 starts at begin (used for pageing)p_iRows
- -1 for all, otherwise the maximal read countp_iterator
- can be null, can be used to check if an record should added to the return List or to end
the readingp_selectfieldGuids
-
DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
java.util.List<RECORDCLASS> select(de.uplanet.lucy.server.usermanager.ds.IDsFilter p_where, IDsOrder[] p_orderFields, int p_iFirstRow, int p_iRows, IDsSelectIterator p_iterator, boolean p_bDistinct, java.lang.String... p_selectfieldGuids) throws java.sql.SQLException
p_where
- can be nullp_orderFields
- can be nullp_iFirstRow
- <= 0 starts at begin (used for pageing)p_iRows
- -1 for all, otherwise the maximal read countp_iterator
- can be null, can be used to check if an record should added to the return List or to end
the readingp_bDistinct
- Distinct select?p_selectfieldGuids
-
DsRuntimeException
if a record with a bad type is readed
java.sql.SQLException
int update(int p_pkValue, IDsRecord p_updateRecord) throws java.sql.SQLException
p_pkValue
- The primary keyp_updateRecord
- The update record
java.sql.SQLException
int insert(IDsRecord p_insertRecord) throws java.sql.SQLException
p_insertRecord
- not nullable (on null an IllegalArgumentException will be thrown)
0
if the insert fails
java.sql.SQLException
void delete(int p_iPrimaryKeyValue) throws java.sql.SQLException, java.lang.RuntimeException
p_iPrimaryKeyValue
-
java.sql.SQLException
java.lang.RuntimeException
de.uplanet.lucy.server.usermanager.ds.DbColumn getDbColumnByGuid(java.lang.String p_strGUID)
getDbColumnByGuid
in interface de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
p_strGUID
- may not be null
DbColumn
de.uplanet.lucy.server.usermanager.ds.DbColumn getDbColumnByGuid(java.lang.String p_strGUID, java.util.Map<java.lang.String,DsClass> p_tblAliasToClassMap)
getDbColumnByGuid
in interface de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
p_strGUID
- The Column
guid (must not be null
)p_tblAliasToClassMap
- saves the table mapping (the table alias to the correspondig class definition)
DbColumn
void setCustomAttributeHelper(de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper p_helper)
p_helper
- Helper for custom fields.de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper getCustomAttributeHelper()
de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper getAttributeHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |