Class ProfileFactory
java.lang.Object
com.echothree.model.data.party.server.factory.ProfileFactory
- All Implemented Interfaces:
BaseFactory<ProfilePK,Profile>
@ApplicationScoped
public class ProfileFactory
extends Object
implements BaseFactory<ProfilePK,Profile>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of ProfileFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(PartyPK partyPK, String nickname, IconPK iconPK, String pronunciation, GenderPK genderPK, String pronouns, Integer birthday, BirthdayFormatPK birthdayFormatPK, String occupation, String hobbies, String location, MimeTypePK bioMimeTypePK, String bio, MimeTypePK signatureMimeTypePK, String signature, Long fromTime, Long thruTime) create(Party party, String nickname, Icon icon, String pronunciation, Gender gender, String pronouns, Integer birthday, BirthdayFormat birthdayFormat, String occupation, String hobbies, String location, MimeType bioMimeType, String bio, MimeType signatureMimeType, String signature, Long fromTime, Long thruTime) voidcreate(Collection<ProfileValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<ProfilePK> pks) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromPK(EntityPermission entityPermission, ProfilePK pk) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromValue(EntityPermission entityPermission, ProfileValue value) static ProfileFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidvoidremove(Collection<ProfilePK> pks) voidvoidstore(Collection<Profile> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
PRFL_PROFILEID
- See Also:
-
PRFL_PAR_PARTYID
- See Also:
-
PRFL_NICKNAME
- See Also:
-
PRFL_ICN_ICONID
- See Also:
-
PRFL_PRONUNCIATION
- See Also:
-
PRFL_GNDR_GENDERID
- See Also:
-
PRFL_PRONOUNS
- See Also:
-
PRFL_BIRTHDAY
- See Also:
-
PRFL_BDYF_BIRTHDAYFORMATID
- See Also:
-
PRFL_OCCUPATION
- See Also:
-
PRFL_HOBBIES
- See Also:
-
PRFL_LOCATION
- See Also:
-
PRFL_BIOMIMETYPEID
- See Also:
-
PRFL_BIO
- See Also:
-
PRFL_SIGNATUREMIMETYPEID
- See Also:
-
PRFL_SIGNATURE
- See Also:
-
PRFL_FROMTIME
- See Also:
-
PRFL_THRUTIME
- See Also:
-
-
Constructor Details
-
ProfileFactory
protected ProfileFactory()Creates a new instance of ProfileFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<ProfilePK,Profile>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<ProfilePK,Profile>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<ProfilePK,Profile>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<ProfilePK,Profile>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<ProfilePK,Profile>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
- Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
- Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<ProfileValue> getValuesFromPKs(Collection<ProfilePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
- Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<Profile> getEntitiesFromPKs(EntityPermission entityPermission, Collection<ProfilePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromCache
-
getEntityFromPK
public Profile getEntityFromPK(EntityPermission entityPermission, ProfilePK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<ProfilePK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<ProfilePK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public ProfilePK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<Profile> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<Profile> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<Profile> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Profile getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Profile getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Profile getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<Profile> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public Profile getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public Profile create(Party party, String nickname, Icon icon, String pronunciation, Gender gender, String pronouns, Integer birthday, BirthdayFormat birthdayFormat, String occupation, String hobbies, String location, MimeType bioMimeType, String bio, MimeType signatureMimeType, String signature, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public Profile create(PartyPK partyPK, String nickname, IconPK iconPK, String pronunciation, GenderPK genderPK, String pronouns, Integer birthday, BirthdayFormatPK birthdayFormatPK, String occupation, String hobbies, String location, MimeTypePK bioMimeTypePK, String bio, MimeTypePK signatureMimeTypePK, String signature, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<ProfileValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<ProfilePK,Profile> - Throws:
PersistenceDatabaseException
-