Class CometSnippet
- java.lang.Object
-
- com.priint.pubserver.comet.bridge.snippet.CometSnippet
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class CometSnippet extends java.lang.Object implements java.io.SerializableThe type Comet snippet.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCometSnippet.QueryParameterThe enum Query parameter.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIND_BY_DOCUMENT_IDThe constant FIND_BY_DOCUMENT_ID.static java.lang.StringFIND_BY_DOCUMENT_ID_AND_TEMPLATEThe constant FIND_BY_DOCUMENT_ID_AND_TEMPLATE.static java.lang.StringFIND_BY_DOCUMENT_PATH_AND_NAMEThe constant FIND_BY_DOCUMENT_PATH_AND_NAME.static java.lang.StringFIND_BY_DOCUMENT_PATH_AND_NAME_AND_TEMPLATEThe constant FIND_BY_DOCUMENT_PATH_AND_NAME_AND_TEMPLATE.static java.lang.StringFIND_BY_IDThe constant FIND_BY_ID.static java.lang.StringFIND_BY_ITEM_ID_AND_CONTEXTThe constant FIND_BY_ITEM_ID_AND_CONTEXT.static java.lang.StringFIND_BY_OBJECT_IDThe constant FIND_BY_OBJECT_ID.static java.lang.StringFIND_BY_PUBLICATION_ROOT_IDThe constant FIND_BY_PUBLICATION_ROOT_ID.static java.lang.StringFIND_BY_PUBLICATION_ROOT_ID_AND_TEMPLATEThe constant FIND_BY_PUBLICATION_ROOT_ID_AND_TEMPLATE.static java.lang.StringFIND_BY_PUBLICATION_TYPEThe constant FIND_BY_PUBLICATION_TYPE.static java.lang.StringFIND_BY_PUBLICATION_TYPE_AND_TEMPLATEThe constant FIND_BY_PUBLICATION_TYPE_AND_TEMPLATE.static java.lang.StringFIND_BY_TEMPLATEThe constant FIND_BY_TEMPLATE.static java.lang.StringIDENTIFY_SNIPPETThe constant IDENTIFY_SNIPPET.
-
Constructor Summary
Constructors Constructor Description CometSnippet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterReadFromJPA()After read from jpa.voidafterReadFromXML()After read from xml.static javax.persistence.QuerybindSnippet(javax.persistence.Query result, CometSnippet snippet, java.lang.String namedQuery)Bind snippet query.java.lang.StringgetAssortment()Gets assortment.java.lang.IntegergetCometGroupId()Gets comet group id.java.lang.StringgetComponent()Gets component.java.lang.StringgetCountry()Gets country.java.lang.StringgetCreatedBy()Gets created by.java.util.DategetCreatedOn()Gets created on.java.lang.StringgetDescription()Gets description.java.lang.StringgetDocumentName()Gets document name.java.lang.StringgetDocumentPath()Gets document path.java.lang.StringgetFileId()Gets file id.java.lang.DoublegetHeight()Gets height.java.lang.IntegergetId()Gets id.java.lang.StringgetItemEntityClass()Gets item entity class.java.lang.StringgetItemEntityId()Gets item entity id.java.lang.StringgetItemGroupId()Gets item group id.java.lang.StringgetItemId()Gets item id.java.lang.StringgetLabel()Gets label.java.lang.StringgetLanguage()Gets language.java.lang.StringgetLayer()Gets layer.java.lang.StringgetMarket()Gets market.java.lang.StringgetObjectEntityClass()Gets object entity class.java.lang.StringgetObjectEntityId()Gets object entity id.java.lang.StringgetObjectGroupId()Gets object group id.java.lang.StringgetObjectId()Gets object id.java.lang.StringgetPageNumber()Gets page number.java.lang.StringgetParentObjectEntityClass()Gets parent object entity class.java.lang.StringgetParentObjectEntityId()Gets parent object entity id.java.lang.StringgetParentObjectGroupId()Gets parent object group id.java.lang.StringgetParentObjectId()Gets parent object id.java.lang.StringgetProject()Gets project.java.lang.StringgetPublication()Gets publication.java.lang.StringgetPublicationPlannerDocumentId()Gets publication planner document id.java.lang.StringgetPublicationPlannerRootPublicationId()Gets publication planner root publication id.java.lang.StringgetPublicationType()Gets publication type.java.lang.IntegergetRecordId()Gets record id.java.lang.IntegergetRecordId2()Gets record id 2.java.lang.IntegergetRecordId3()Gets record id 3.java.lang.StringgetRecordStringId()Gets record string id.java.lang.StringgetSnippetContext()Gets snippet context.java.lang.StringgetTargetgroup()Gets targetgroup.java.lang.IntegergetTemplateId()Gets template id.java.lang.StringgetUpdatedBy()Gets updated by.java.util.DategetUpdatedOn()Gets updated on.java.lang.StringgetWell()Gets well.java.lang.DoublegetWidth()Gets width.java.lang.DoublegetX()Gets x.java.lang.DoublegetY()Gets y.voidsetAssortment(java.lang.String assortment)Sets assortment.voidsetCometGroupId(java.lang.Integer cometGroupId)Sets comet group id.voidsetComponent(java.lang.String component)Sets component.voidsetCountry(java.lang.String country)Sets country.voidsetCreatedBy(java.lang.String createdBy)Sets created by.voidsetCreatedOn(java.util.Date createdOn)Sets created on.voidsetDescription(java.lang.String description)Sets description.voidsetDocumentName(java.lang.String documentName)Sets document name.voidsetDocumentPath(java.lang.String documentPath)Sets document path.voidsetFileId(java.lang.String fileId)Sets file id.voidsetHeight(java.lang.Double height)Sets height.voidsetId(java.lang.Integer id)Sets id.voidsetItemEntityClass(java.lang.String itemEntityClass)Sets item entity class.voidsetItemEntityId(java.lang.String itemEntityId)Sets item entity id.voidsetItemGroupId(java.lang.String itemGroupId)Sets item group id.voidsetItemId(java.lang.String itemId)Sets item id.voidsetLabel(java.lang.String label)Sets label.voidsetLanguage(java.lang.String language)Sets language.voidsetLayer(java.lang.String layer)Sets layer.voidsetMarket(java.lang.String market)Sets market.voidsetObjectEntityClass(java.lang.String objectEntityClass)Sets object entity class.voidsetObjectEntityId(java.lang.String objectEntityId)Sets object entity id.voidsetObjectGroupId(java.lang.String objectGroupId)Sets object group id.voidsetObjectId(java.lang.String objectId)Sets object id.voidsetOrVerifyDocumentParameters(java.lang.String documentName, java.lang.String documentPath, java.lang.String publicationPlannerDocumentId, java.lang.String publication, java.lang.String publicationType)Sets or verify document parameters.voidsetPageNumber(java.lang.String pageNumber)Sets page number.voidsetParentObjectEntityClass(java.lang.String parentObjectEntityClass)Sets parent object entity class.voidsetParentObjectEntityId(java.lang.String parentObjectEntityId)Sets parent object entity id.voidsetParentObjectGroupId(java.lang.String parentObjectGroupId)Sets parent object group id.voidsetParentObjectId(java.lang.String parentObjectId)Sets parent object id.voidsetProject(java.lang.String project)Sets project.voidsetPublication(java.lang.String publication)Sets publication.voidsetPublicationPlannerDocumentId(java.lang.String publicationPlannerDocumentId)Sets publication planner document id.voidsetPublicationPlannerRootPublicationId(java.lang.String publicationPlannerRootPublicationId)Sets publication planner root publication id.voidsetPublicationType(java.lang.String publicationType)Sets publication type.voidsetRecordId(java.lang.Integer recordId)Sets record id.voidsetRecordId2(java.lang.Integer recordId2)Sets record id 2.voidsetRecordId3(java.lang.Integer recordId3)Sets record id 3.voidsetRecordStringId(java.lang.String recordStringId)Sets record string id.voidsetSnippetContext(java.lang.String snippetContext)Sets snippet context.voidsetTargetgroup(java.lang.String targetgroup)Sets targetgroup.voidsetTemplateId(java.lang.Integer templateId)Sets template id.voidsetUpdatedBy(java.lang.String updatedBy)Sets updated by.voidsetUpdatedOn(java.util.Date updatedOn)Sets updated on.voidsetWell(java.lang.String well)Sets well.voidsetWidth(java.lang.Double width)Sets width.voidsetX(java.lang.Double x)Sets x.voidsetY(java.lang.Double y)Sets y.voidupdateWith(CometSnippet other)Update with.
-
-
-
Field Detail
-
FIND_BY_DOCUMENT_ID
public static final java.lang.String FIND_BY_DOCUMENT_ID
The constant FIND_BY_DOCUMENT_ID.- See Also:
- Constant Field Values
-
FIND_BY_OBJECT_ID
public static final java.lang.String FIND_BY_OBJECT_ID
The constant FIND_BY_OBJECT_ID.- See Also:
- Constant Field Values
-
FIND_BY_DOCUMENT_PATH_AND_NAME
public static final java.lang.String FIND_BY_DOCUMENT_PATH_AND_NAME
The constant FIND_BY_DOCUMENT_PATH_AND_NAME.- See Also:
- Constant Field Values
-
FIND_BY_PUBLICATION_TYPE
public static final java.lang.String FIND_BY_PUBLICATION_TYPE
The constant FIND_BY_PUBLICATION_TYPE.- See Also:
- Constant Field Values
-
FIND_BY_PUBLICATION_ROOT_ID
public static final java.lang.String FIND_BY_PUBLICATION_ROOT_ID
The constant FIND_BY_PUBLICATION_ROOT_ID.- See Also:
- Constant Field Values
-
FIND_BY_DOCUMENT_ID_AND_TEMPLATE
public static final java.lang.String FIND_BY_DOCUMENT_ID_AND_TEMPLATE
The constant FIND_BY_DOCUMENT_ID_AND_TEMPLATE.- See Also:
- Constant Field Values
-
FIND_BY_TEMPLATE
public static final java.lang.String FIND_BY_TEMPLATE
The constant FIND_BY_TEMPLATE.- See Also:
- Constant Field Values
-
FIND_BY_DOCUMENT_PATH_AND_NAME_AND_TEMPLATE
public static final java.lang.String FIND_BY_DOCUMENT_PATH_AND_NAME_AND_TEMPLATE
The constant FIND_BY_DOCUMENT_PATH_AND_NAME_AND_TEMPLATE.- See Also:
- Constant Field Values
-
FIND_BY_PUBLICATION_TYPE_AND_TEMPLATE
public static final java.lang.String FIND_BY_PUBLICATION_TYPE_AND_TEMPLATE
The constant FIND_BY_PUBLICATION_TYPE_AND_TEMPLATE.- See Also:
- Constant Field Values
-
FIND_BY_PUBLICATION_ROOT_ID_AND_TEMPLATE
public static final java.lang.String FIND_BY_PUBLICATION_ROOT_ID_AND_TEMPLATE
The constant FIND_BY_PUBLICATION_ROOT_ID_AND_TEMPLATE.- See Also:
- Constant Field Values
-
IDENTIFY_SNIPPET
public static final java.lang.String IDENTIFY_SNIPPET
The constant IDENTIFY_SNIPPET.- See Also:
- Constant Field Values
-
FIND_BY_ID
public static final java.lang.String FIND_BY_ID
The constant FIND_BY_ID.- See Also:
- Constant Field Values
-
FIND_BY_ITEM_ID_AND_CONTEXT
public static final java.lang.String FIND_BY_ITEM_ID_AND_CONTEXT
The constant FIND_BY_ITEM_ID_AND_CONTEXT.- See Also:
- Constant Field Values
-
-
Method Detail
-
bindSnippet
public static javax.persistence.Query bindSnippet(javax.persistence.Query result, CometSnippet snippet, java.lang.String namedQuery)Bind snippet query.- Parameters:
result- the resultsnippet- the snippetnamedQuery- the named query- Returns:
- the query
-
afterReadFromJPA
public void afterReadFromJPA()
After read from jpa.
-
afterReadFromXML
public void afterReadFromXML()
After read from xml.
-
getId
public java.lang.Integer getId()
Gets id.- Returns:
- the id
-
setId
public void setId(java.lang.Integer id)
Sets id.- Parameters:
id- the id
-
getProject
public java.lang.String getProject()
Gets project.- Returns:
- the project
-
setProject
public void setProject(java.lang.String project)
Sets project.- Parameters:
project- the project
-
getDocumentName
public java.lang.String getDocumentName()
Gets document name.- Returns:
- the document name
-
setDocumentName
public void setDocumentName(java.lang.String documentName)
Sets document name.- Parameters:
documentName- the document name
-
getDocumentPath
public java.lang.String getDocumentPath()
Gets document path.- Returns:
- the document path
-
setDocumentPath
public void setDocumentPath(java.lang.String documentPath)
Sets document path.- Parameters:
documentPath- the document path
-
getPublication
public java.lang.String getPublication()
Gets publication.- Returns:
- the publication
-
setPublication
public void setPublication(java.lang.String publication)
Sets publication.- Parameters:
publication- the publication
-
getPublicationPlannerDocumentId
public java.lang.String getPublicationPlannerDocumentId()
Gets publication planner document id.- Returns:
- the publication planner document id
-
setPublicationPlannerDocumentId
public void setPublicationPlannerDocumentId(java.lang.String publicationPlannerDocumentId)
Sets publication planner document id.- Parameters:
publicationPlannerDocumentId- the publication planner document id
-
getPublicationType
public java.lang.String getPublicationType()
Gets publication type.- Returns:
- the publication type
-
setPublicationType
public void setPublicationType(java.lang.String publicationType)
Sets publication type.- Parameters:
publicationType- the publication type
-
getRecordId
public java.lang.Integer getRecordId()
Gets record id.- Returns:
- the record id
-
setRecordId
public void setRecordId(java.lang.Integer recordId)
Sets record id.- Parameters:
recordId- the record id
-
getRecordId2
public java.lang.Integer getRecordId2()
Gets record id 2.- Returns:
- the record id 2
-
setRecordId2
public void setRecordId2(java.lang.Integer recordId2)
Sets record id 2.- Parameters:
recordId2- the record id 2
-
getRecordId3
public java.lang.Integer getRecordId3()
Gets record id 3.- Returns:
- the record id 3
-
setRecordId3
public void setRecordId3(java.lang.Integer recordId3)
Sets record id 3.- Parameters:
recordId3- the record id 3
-
getRecordStringId
public java.lang.String getRecordStringId()
Gets record string id.- Returns:
- the record string id
-
setRecordStringId
public void setRecordStringId(java.lang.String recordStringId)
Sets record string id.- Parameters:
recordStringId- the record string id
-
getObjectId
public java.lang.String getObjectId()
Gets object id.- Returns:
- the object id
-
setObjectId
public void setObjectId(java.lang.String objectId)
Sets object id.- Parameters:
objectId- the object id
-
getObjectGroupId
public java.lang.String getObjectGroupId()
Gets object group id.- Returns:
- the object group id
-
setObjectGroupId
public void setObjectGroupId(java.lang.String objectGroupId)
Sets object group id.- Parameters:
objectGroupId- the object group id
-
getObjectEntityId
public java.lang.String getObjectEntityId()
Gets object entity id.- Returns:
- the object entity id
-
setObjectEntityId
public void setObjectEntityId(java.lang.String objectEntityId)
Sets object entity id.- Parameters:
objectEntityId- the object entity id
-
getObjectEntityClass
public java.lang.String getObjectEntityClass()
Gets object entity class.- Returns:
- the object entity class
-
setObjectEntityClass
public void setObjectEntityClass(java.lang.String objectEntityClass)
Sets object entity class.- Parameters:
objectEntityClass- the object entity class
-
getParentObjectId
public java.lang.String getParentObjectId()
Gets parent object id.- Returns:
- the parent object id
-
setParentObjectId
public void setParentObjectId(java.lang.String parentObjectId)
Sets parent object id.- Parameters:
parentObjectId- the parent object id
-
getParentObjectGroupId
public java.lang.String getParentObjectGroupId()
Gets parent object group id.- Returns:
- the parent object group id
-
setParentObjectGroupId
public void setParentObjectGroupId(java.lang.String parentObjectGroupId)
Sets parent object group id.- Parameters:
parentObjectGroupId- the parent object group id
-
getParentObjectEntityId
public java.lang.String getParentObjectEntityId()
Gets parent object entity id.- Returns:
- the parent object entity id
-
setParentObjectEntityId
public void setParentObjectEntityId(java.lang.String parentObjectEntityId)
Sets parent object entity id.- Parameters:
parentObjectEntityId- the parent object entity id
-
getParentObjectEntityClass
public java.lang.String getParentObjectEntityClass()
Gets parent object entity class.- Returns:
- the parent object entity class
-
setParentObjectEntityClass
public void setParentObjectEntityClass(java.lang.String parentObjectEntityClass)
Sets parent object entity class.- Parameters:
parentObjectEntityClass- the parent object entity class
-
getLanguage
public java.lang.String getLanguage()
Gets language.- Returns:
- the language
-
setLanguage
public void setLanguage(java.lang.String language)
Sets language.- Parameters:
language- the language
-
getCountry
public java.lang.String getCountry()
Gets country.- Returns:
- the country
-
setCountry
public void setCountry(java.lang.String country)
Sets country.- Parameters:
country- the country
-
getWell
public java.lang.String getWell()
Gets well.- Returns:
- the well
-
setWell
public void setWell(java.lang.String well)
Sets well.- Parameters:
well- the well
-
getAssortment
public java.lang.String getAssortment()
Gets assortment.- Returns:
- the assortment
-
setAssortment
public void setAssortment(java.lang.String assortment)
Sets assortment.- Parameters:
assortment- the assortment
-
getCometGroupId
public java.lang.Integer getCometGroupId()
Gets comet group id.- Returns:
- the comet group id
-
setCometGroupId
public void setCometGroupId(java.lang.Integer cometGroupId)
Sets comet group id.- Parameters:
cometGroupId- the comet group id
-
getTemplateId
public java.lang.Integer getTemplateId()
Gets template id.- Returns:
- the template id
-
setTemplateId
public void setTemplateId(java.lang.Integer templateId)
Sets template id.- Parameters:
templateId- the template id
-
getWidth
public java.lang.Double getWidth()
Gets width.- Returns:
- the width
-
setWidth
public void setWidth(java.lang.Double width)
Sets width.- Parameters:
width- the width
-
getHeight
public java.lang.Double getHeight()
Gets height.- Returns:
- the height
-
setHeight
public void setHeight(java.lang.Double height)
Sets height.- Parameters:
height- the height
-
getCreatedOn
public java.util.Date getCreatedOn()
Gets created on.- Returns:
- the created on
-
setCreatedOn
public void setCreatedOn(java.util.Date createdOn)
Sets created on.- Parameters:
createdOn- the created on
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets created by.- Returns:
- the created by
-
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
Sets created by.- Parameters:
createdBy- the created by
-
getUpdatedOn
public java.util.Date getUpdatedOn()
Gets updated on.- Returns:
- the updated on
-
setUpdatedOn
public void setUpdatedOn(java.util.Date updatedOn)
Sets updated on.- Parameters:
updatedOn- the updated on
-
getUpdatedBy
public java.lang.String getUpdatedBy()
Gets updated by.- Returns:
- the updated by
-
setUpdatedBy
public void setUpdatedBy(java.lang.String updatedBy)
Sets updated by.- Parameters:
updatedBy- the updated by
-
getPublicationPlannerRootPublicationId
public java.lang.String getPublicationPlannerRootPublicationId()
Gets publication planner root publication id.- Returns:
- the publication planner root publication id
-
setPublicationPlannerRootPublicationId
public void setPublicationPlannerRootPublicationId(java.lang.String publicationPlannerRootPublicationId)
Sets publication planner root publication id.- Parameters:
publicationPlannerRootPublicationId- the publication planner root publication id
-
getFileId
public java.lang.String getFileId()
Gets file id.- Returns:
- the file id
-
setFileId
public void setFileId(java.lang.String fileId)
Sets file id.- Parameters:
fileId- the file id
-
getX
public java.lang.Double getX()
Gets x.- Returns:
- the x
-
setX
public void setX(java.lang.Double x)
Sets x.- Parameters:
x- the x
-
getY
public java.lang.Double getY()
Gets y.- Returns:
- the y
-
setY
public void setY(java.lang.Double y)
Sets y.- Parameters:
y- the y
-
getLabel
public java.lang.String getLabel()
Gets label.- Returns:
- the label
-
setLabel
public void setLabel(java.lang.String label)
Sets label.- Parameters:
label- the label
-
getDescription
public java.lang.String getDescription()
Gets description.- Returns:
- the description
-
setDescription
public void setDescription(java.lang.String description)
Sets description.- Parameters:
description- the description
-
getComponent
public java.lang.String getComponent()
Gets component.- Returns:
- the component
-
setComponent
public void setComponent(java.lang.String component)
Sets component.- Parameters:
component- the component
-
getTargetgroup
public java.lang.String getTargetgroup()
Gets targetgroup.- Returns:
- the targetgroup
-
setTargetgroup
public void setTargetgroup(java.lang.String targetgroup)
Sets targetgroup.- Parameters:
targetgroup- the targetgroup
-
getMarket
public java.lang.String getMarket()
Gets market.- Returns:
- the market
-
setMarket
public void setMarket(java.lang.String market)
Sets market.- Parameters:
market- the market
-
getSnippetContext
public java.lang.String getSnippetContext()
Gets snippet context.- Returns:
- the snippet context
-
setSnippetContext
public void setSnippetContext(java.lang.String snippetContext)
Sets snippet context.- Parameters:
snippetContext- the snippet context
-
getLayer
public java.lang.String getLayer()
Gets layer.- Returns:
- the layer
-
setLayer
public void setLayer(java.lang.String layer)
Sets layer.- Parameters:
layer- the layer
-
getPageNumber
public java.lang.String getPageNumber()
Gets page number.- Returns:
- the page number
-
setPageNumber
public void setPageNumber(java.lang.String pageNumber)
Sets page number.- Parameters:
pageNumber- the page number
-
getItemId
public java.lang.String getItemId()
Gets item id.- Returns:
- the itemId
-
setItemId
public void setItemId(java.lang.String itemId)
Sets item id.- Parameters:
itemId- the itemId to set
-
getItemGroupId
public java.lang.String getItemGroupId()
Gets item group id.- Returns:
- the itemGroupId
-
setItemGroupId
public void setItemGroupId(java.lang.String itemGroupId)
Sets item group id.- Parameters:
itemGroupId- the itemGroupId to set
-
getItemEntityId
public java.lang.String getItemEntityId()
Gets item entity id.- Returns:
- the itemEntityId
-
setItemEntityId
public void setItemEntityId(java.lang.String itemEntityId)
Sets item entity id.- Parameters:
itemEntityId- the itemEntityId to set
-
getItemEntityClass
public java.lang.String getItemEntityClass()
Gets item entity class.- Returns:
- the itemEntityClass
-
setItemEntityClass
public void setItemEntityClass(java.lang.String itemEntityClass)
Sets item entity class.- Parameters:
itemEntityClass- the itemEntityClass to set
-
updateWith
public void updateWith(CometSnippet other)
Update with.- Parameters:
other- the other
-
setOrVerifyDocumentParameters
public void setOrVerifyDocumentParameters(java.lang.String documentName, java.lang.String documentPath, java.lang.String publicationPlannerDocumentId, java.lang.String publication, java.lang.String publicationType) throws CometExceptionSets or verify document parameters.- Parameters:
documentName- the document namedocumentPath- the document pathpublicationPlannerDocumentId- the publication planner document idpublication- the publicationpublicationType- the publication type- Throws:
CometException- the comet exception
-
-