Class GrouperBoxDbUser
java.lang.Object
edu.internet2.middleware.grouperBox.GrouperBoxDbUser
- All Implemented Interfaces:
edu.internet2.middleware.grouperClient.jdbc.GcSqlAssignPrimaryKey
public class GrouperBoxDbUser
extends Object
implements edu.internet2.middleware.grouperClient.jdbc.GcSqlAssignPrimaryKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdeleteBatch(Collection<GrouperBoxDbUser> grouperBoxDbUsers) delete batchbooleanbooleangetBoxId()trick to tell difference between inserts and updatesgetLogin()getName()inthashCode()Computes the hash code based on the origin and destination nodesvoidvoidsetBoxIdForInsert(String boxIdForInsert) trick to tell difference between inserts and updatesvoidsetCreatedAt(Timestamp createdAt) voidvoidsetModifiedAt(Timestamp modifiedAt) voidvoidsetSpaceUsed(Long spaceUsed) voidvoidsetSubjectId(String subjectId) voidstore()static intstoreBatch(Collection<GrouperBoxDbUser> grouperBoxDbUsers) store batch of inserts or updates but not both
-
Constructor Details
-
GrouperBoxDbUser
public GrouperBoxDbUser()
-
-
Method Details
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()- Specified by:
gcSqlAssignNewPrimaryKeyForInsertin interfaceedu.internet2.middleware.grouperClient.jdbc.GcSqlAssignPrimaryKey
-
retrieveAllFromDatabase
-
equals
-
hashCode
public int hashCode()Computes the hash code based on the origin and destination nodes -
store
public void store() -
deleteBatch
delete batch- Parameters:
gcGrouperSyncGroups-- Returns:
- rows deleted (groups and logs)
-
storeBatch
store batch of inserts or updates but not both- Parameters:
grouperBoxDbUsers-- Returns:
- number of changes
-
getBoxIdForInsert
trick to tell difference between inserts and updates- Returns:
-
setBoxIdForInsert
trick to tell difference between inserts and updates- Parameters:
boxIdForInsert-
-
getSubjectId
-
setSubjectId
-
getBoxId
-
setBoxId
-
getCreatedAt
-
setCreatedAt
-
getLogin
-
setLogin
-
getModifiedAt
-
setModifiedAt
-
getName
-
setName
-
getSpaceUsed
-
setSpaceUsed
-
getStatus
-
setStatus
-