public class AttributeAssignValue extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, XmlImportableMultiple<AttributeAssignValue>
Modifier and Type | Class and Description |
---|---|
static class |
AttributeAssignValue.AttributeAssignValueType |
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_ATTRIBUTE_ASSIGN_ID
column
|
static String |
COLUMN_CONTEXT_ID
column
|
static String |
COLUMN_CREATED_ON
column
|
static String |
COLUMN_ID
column
|
static String |
COLUMN_LAST_UPDATED
column
|
static String |
COLUMN_VALUE_FLOATING
column
|
static String |
COLUMN_VALUE_INTEGER
column
|
static String |
COLUMN_VALUE_MEMBER_ID
column
|
static String |
COLUMN_VALUE_STRING
column
|
static String |
FIELD_ATTRIBUTE_ASSIGN_ID
constant for field name for: attributeAssignId
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
FIELD_VALUE_FLOATING
constant for field name for: valueFloating
|
static String |
FIELD_VALUE_INTEGER
constant for field name for: valueInteger
|
static String |
FIELD_VALUE_MEMBER_ID
constant for field name for: valueMemberId
|
static String |
FIELD_VALUE_STRING
constant for field name for: valueString
|
static String |
TABLE_GROUPER_ATTRIBUTE_ASSIGN_VALUE
name of the groups attribute def table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Constructor and Description |
---|
AttributeAssignValue() |
Modifier and Type | Method and Description |
---|---|
void |
assignValue(AttributeAssignValue attributeAssignValue)
clear all the values
|
void |
assignValue(String value)
assign a value to any type
|
void |
clearValue()
clear all the values
|
AttributeAssignValue |
clone()
deep clone the fields in this object
|
static String |
dateToString(Date date)
convert a date to a string using the standard web service pattern
yyyy/MM/dd HH:mm:ss.SSS Note that HH is 0-23
|
AttributeAssignValue |
dbVersion()
save the state when retrieving from DB
|
Set<String> |
dbVersionDifferentFields()
see which fields have changed compared to the DB state (last known)
note that attributes will print out: attribute__attributeName
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db
|
void |
delete()
delete this record
|
AttributeAssign |
getAttributeAssign()
get the attribute assign
|
String |
getAttributeAssignId()
attribute assignment in this value assignment
|
String |
getContextId()
context id of the transaction
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
AttributeAssignValue.AttributeAssignValueType |
getCurrentAssignValueType()
get the type of this value
|
String |
getId()
id of this attribute def
|
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
Object |
getValue()
get the value whatever it is or null if none
|
Double |
getValueFloating()
floating point value
|
String |
getValueFriendly()
get value string value
|
Long |
getValueInteger()
integer value
|
String |
getValueMemberId()
memberId value (for subjects)
|
String |
getValueString()
string value
|
void |
internalSetAttributeAssign(AttributeAssign attributeAssign1)
set this for caching
|
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs
|
void |
onPostSave(HibernateSession hibernateSession)
after a save (insert) occurs
|
void |
onPostUpdate(HibernateSession hibernateSession)
after an update occurs
|
void |
onPreDelete(HibernateSession hibernateSession)
before a delete (insert) occurs
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
boolean |
sameValue(AttributeAssignValue attributeAssignValue)
if the argument has the same value as this
|
void |
saveOrUpdate()
save or update this object
|
void |
setAttributeAssignId(String attributeAssignId1)
attribute assignment in this value assignment
|
void |
setContextId(String contextId1)
context id of the transaction
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setId(String id1)
id of this attribute def
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
void |
setValueFloating(Double valueFloating1)
floating point value
|
void |
setValueInteger(Long valueInteger1)
integer value
|
void |
setValueMemberId(String valueMemberId1)
memberId value (for subjects)
|
void |
setValueString(String valueString1)
string value
|
static Date |
stringToDate(String dateString)
convert a string to a date using the standard web service pattern Note
that HH is 0-23
|
String |
toString() |
String |
valueString()
whatever the type, return the string value
|
String |
valueString(boolean convertTimestampToFriendly)
whatever the type, return the string value
|
void |
xmlCopyBusinessPropertiesToExisting(AttributeAssignValue existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(AttributeAssignValue other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(AttributeAssignValue other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
AttributeAssignValue |
xmlRetrieveByIdOrKey(Collection<String> idsToIgnore)
retrieve from db by id or key.
|
AttributeAssignValue |
xmlSaveBusinessProperties(AttributeAssignValue existingRecord)
save the business properties (not update properties)
|
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g.
|
void |
xmlSetId(String theId)
set id key in db
|
XmlExportAttributeAssignValue |
xmlToExportAttributeAssignValue(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
public static final String TABLE_GROUPER_ATTRIBUTE_ASSIGN_VALUE
public static final String COLUMN_CONTEXT_ID
public static final String COLUMN_CREATED_ON
public static final String COLUMN_LAST_UPDATED
public static final String COLUMN_ID
public static final String COLUMN_VALUE_STRING
public static final String COLUMN_VALUE_FLOATING
public static final String COLUMN_VALUE_INTEGER
public static final String COLUMN_VALUE_MEMBER_ID
public static final String COLUMN_ATTRIBUTE_ASSIGN_ID
public static final String FIELD_ATTRIBUTE_ASSIGN_ID
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_ID
public static final String FIELD_LAST_UPDATED_DB
public static final String FIELD_VALUE_FLOATING
public static final String FIELD_VALUE_INTEGER
public static final String FIELD_VALUE_MEMBER_ID
public static final String FIELD_VALUE_STRING
public AttributeAssignValue clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public Double getValueFloating()
public void setValueFloating(Double valueFloating1)
valueFloating1
- public void assignValue(String value)
value
- public String valueString()
public String getValueFriendly()
public String valueString(boolean convertTimestampToFriendly)
convertTimestampToFriendly
- true to convert timestamps to yyyy/MM/dd HH:mm:ss.SSS
as opposed to numbers of millis since 1970public static String dateToString(Date date)
date
- public static Date stringToDate(String dateString)
dateString
- public void clearValue()
public void assignValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue
- public void saveOrUpdate()
public String getContextId()
public void setContextId(String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public String getId()
public void setId(String id1)
id1
- public Timestamp getLastUpdated()
public Long getLastUpdatedDb()
public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1
- public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1
- public Timestamp getCreatedOn()
public Long getCreatedOnDb()
public void setCreatedOn(Timestamp createdOn1)
createdOn1
- public void setCreatedOnDb(Long createdOn1)
createdOn1
- public String getAttributeAssignId()
public AttributeAssign getAttributeAssign()
public void setAttributeAssignId(String attributeAssignId1)
attributeAssignId1
- the attributeNameId to setpublic String getValueString()
public void setValueString(String valueString1)
valueString1
- the valueString to setpublic Long getValueInteger()
public void setValueInteger(Long valueInteger1)
valueInteger1
- the valueInteger to setpublic String getValueMemberId()
public void setValueMemberId(String valueMemberId1)
valueMemberId1
- the valueMemberId to setpublic XmlExportAttributeAssignValue xmlToExportAttributeAssignValue(GrouperVersion grouperVersion)
grouperVersion
- public AttributeAssignValue xmlRetrieveByIdOrKey(Collection<String> idsToIgnore)
XmlImportableMultiple
xmlRetrieveByIdOrKey
in interface XmlImportableMultiple<AttributeAssignValue>
idsToIgnore
- these are ids already processed, do not pick theseXmlImportableMultiple.xmlRetrieveByIdOrKey(java.util.Collection)
public void xmlCopyBusinessPropertiesToExisting(AttributeAssignValue existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<AttributeAssignValue>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(AttributeAssignValue other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<AttributeAssignValue>
other
- the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(AttributeAssignValue other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<AttributeAssignValue>
other
- the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public AttributeAssignValue xmlSaveBusinessProperties(AttributeAssignValue existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<AttributeAssignValue>
existingRecord
- null if insert, the object if exists in DB
generally just copy the hibernate version number, and last updated to the
object and store itXmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<AttributeAssignValue>
XmlImportableBase.xmlSaveUpdateProperties()
public void delete()
public String toString()
toString
in class Object
Object.toString()
public String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<AttributeAssignValue>
XmlImportableBase.xmlGetId()
public void xmlSetId(String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<AttributeAssignValue>
XmlImportableBase.xmlSetId(java.lang.String)
public String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<AttributeAssignValue>
XmlImportableBase.xmlToString()
public boolean sameValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue
- public Object getValue()
public AttributeAssignValue.AttributeAssignValueType getCurrentAssignValueType()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
onPostDelete
in class GrouperAPI
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
onPostSave
in class GrouperAPI
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
onPostUpdate
in class GrouperAPI
HibGrouperLifecycle.onPostUpdate(HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public AttributeAssignValue dbVersion()
dbVersion
in class GrouperAPI
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public Set<String> dbVersionDifferentFields()
GrouperAPI
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public void internalSetAttributeAssign(AttributeAssign attributeAssign1)
attributeAssign1
- Copyright © 2016 Internet2. All rights reserved.