Package com.priint.pubserver.entity
Class ConnectorOfEntityModel
java.lang.Object
com.priint.pubserver.entity.ConnectorOfEntityModel
- All Implemented Interfaces:
Serializable
Connector instance to be used for an entity model.
This class defines a connector-instance to entity-model combination.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the connector instance identifier.Gets the entity model identifier.booleanGets whether the connector gets called during a call to getEntityRootBuckets.voidsetConnectorIdentifier(String connectorIdentifier) Sets the connector instance identifier.voidsetEntityModelIdentifier(String entityModelIdentifier) Sets the entity model identifier.voidsetQueryRootBuckets(boolean queryRootBuckets) Sets whether the connector gets called during a call to getEntityRootBuckets.toString()
-
Constructor Details
-
ConnectorOfEntityModel
public ConnectorOfEntityModel()
-
-
Method Details
-
getConnectorIdentifier
Gets the connector instance identifier.E.g. "com.priint.pubserver.connector.jpa.api.PublishingHubDBConnector:default".
Defaults to an empty string.
- Returns:
- identifier as string
-
setConnectorIdentifier
Sets the connector instance identifier.E.g. "com.priint.pubserver.connector.jpa.api.PublishingHubDBConnector:default"
Throws NullArgumentException if input is
null.- Parameters:
connectorIdentifier-
-
getEntityModelIdentifier
Gets the entity model identifier.Defaults to an empty string.
- Returns:
- identifier as String
-
setEntityModelIdentifier
Sets the entity model identifier.Throws NullArgumentException if input is
null.- Parameters:
entityModelIdentifier-
-
isQueryRootBuckets
public boolean isQueryRootBuckets()Gets whether the connector gets called during a call to getEntityRootBuckets.Defaults to
false.- Returns:
- true if connector instance it is called in a root query.
-
setQueryRootBuckets
public void setQueryRootBuckets(boolean queryRootBuckets) Sets whether the connector gets called during a call to getEntityRootBuckets.- Parameters:
queryRootBuckets-
-
toString
-