Class PrinterDescriptionFactory
java.lang.Object
com.echothree.model.data.printer.server.factory.PrinterDescriptionFactory
- All Implemented Interfaces:
BaseFactory<PrinterDescriptionPK,PrinterDescription>
@ApplicationScoped
public class PrinterDescriptionFactory
extends Object
implements BaseFactory<PrinterDescriptionPK,PrinterDescription>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of PrinterDescriptionFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(PrinterPK printerPK, LanguagePK languagePK, String description, Long fromTime, Long thruTime) voidcreate(Collection<PrinterDescriptionValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<PrinterDescriptionPK> 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, PrinterDescriptionPK 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, PrinterDescriptionValue value) static PrinterDescriptionFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(PrinterDescription entity) voidvoidstore(PrinterDescription entity) voidstore(Collection<PrinterDescription> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
PRND_PRINTERDESCRIPTIONID
- See Also:
-
PRND_PRN_PRINTERID
- See Also:
-
PRND_LANG_LANGUAGEID
- See Also:
-
PRND_DESCRIPTION
- See Also:
-
PRND_FROMTIME
- See Also:
-
PRND_THRUTIME
- See Also:
-
-
Constructor Details
-
PrinterDescriptionFactory
protected PrinterDescriptionFactory()Creates a new instance of PrinterDescriptionFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<PrinterDescriptionPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<PrinterDescriptionPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<PrinterDescriptionValue> getValuesFromPKs(Collection<PrinterDescriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public PrinterDescriptionValue getValueFromPK(PrinterDescriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<PrinterDescriptionValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public PrinterDescriptionValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<PrinterDescription> getEntitiesFromPKs(EntityPermission entityPermission, Collection<PrinterDescriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public PrinterDescription getEntityFromValue(EntityPermission entityPermission, PrinterDescriptionValue value) -
getEntityFromCache
-
getEntityFromPK
public PrinterDescription getEntityFromPK(EntityPermission entityPermission, PrinterDescriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<PrinterDescriptionPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<PrinterDescriptionPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public PrinterDescriptionPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PrinterDescription> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PrinterDescription> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PrinterDescription> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PrinterDescription getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PrinterDescription getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PrinterDescription getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<PrinterDescription> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public PrinterDescription getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public PrinterDescription create(Printer printer, Language language, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public PrinterDescription create(PrinterPK printerPK, LanguagePK languagePK, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<PrinterDescriptionValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<PrinterDescriptionPK,PrinterDescription> - Throws:
PersistenceDatabaseException
-