|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.services.seo.dao.impl.FriendlyURLEntityDAOImpl
nl.gx.webmanager.services.seo.dao.impl.DBPageFriendlyURLEntityDAOImpl
public final class DBPageFriendlyURLEntityDAOImpl
Data access methods specific for friendly URLs of database pages.
| Constructor Summary | |
|---|---|
DBPageFriendlyURLEntityDAOImpl(SEODatabaseUtil seoDatabaseUtil)
Constructor. |
|
| Method Summary | |
|---|---|
protected java.util.List<java.lang.Object> |
getAvailabilityArguments(FriendlyURLEntity entity)
Returns the SQL arguments for checking the availability of a friendly URL. |
protected java.lang.String |
getAvailabilityQuery()
Returns SQL query that confirms a given friendly URL is unique. |
protected java.lang.String |
getDeleteQuery()
Returns SQL delete query used for deleting friendly URLs. |
FriendlyURLEntity |
getEntity(int versionId)
Returns a friendly URL entity given its version ID. |
FriendlyURLEntity |
getEntity(int dbId,
int typeOfPageId)
Returns a friendly URL entity specific for database pages. |
protected java.util.List<java.lang.Object> |
getInsertArguments(FriendlyURLEntity entity)
Returns the SQL arguments for the insertion of the given friendly URL entity. |
protected java.lang.String |
getInsertQuery()
Returns SQL insert query used for creating friendly URLs. |
protected java.lang.String |
getMatchQuery()
Returns SQL query that returns a matching friendly URL. |
protected java.lang.String |
getMatchQueryNullSequence()
Returns SQL query that returns a matching friendly URL. |
protected java.lang.String |
getReferringQuery()
Returns SQL select query used for returning referring friendly URLs. |
protected java.lang.String |
getSelectByIdQuery()
Returns SQL select query for retrieving friendly URL by id. |
protected boolean |
identifierConflictsWithInMemEntities(FriendlyURLEntity sourceEntity,
java.util.List<FriendlyURLEntity> targetEntities)
Checks whether the source entity is in conflict with one of the target entities. |
protected java.util.List<FriendlyURLEntity> |
selectFriendlyURLs(java.lang.String query,
java.util.List<java.lang.Object> arguments)
Selects friendly URL entities. |
| Methods inherited from class nl.gx.webmanager.services.seo.dao.impl.FriendlyURLEntityDAOImpl |
|---|
activate, create, delete, deleteAll, deleteById, determineSequenceNumber, genericIdentifierConflicts, getCreateFields, getEntityById, getGenericInsertArguments, getReferencedEntity, getSelectFields, getSEODatabaseUtil, getSequenceNumber, getURLTitle, identifierConflicts, insertFriendlyURL, lastCurrent, makeIdentifierUnique, refer, refer, updateIdentifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.services.seo.dao.FriendlyURLEntityDAO |
|---|
activate, create, delete, deleteAll, deleteById, getEntityById, getURLTitle, lastCurrent, makeIdentifierUnique, refer, refer, updateIdentifiers |
| Constructor Detail |
|---|
public DBPageFriendlyURLEntityDAOImpl(SEODatabaseUtil seoDatabaseUtil)
seoDatabaseUtil - Reference to the SEO database util class.| Method Detail |
|---|
public FriendlyURLEntity getEntity(int versionId)
throws FriendlyURLException
getEntity in interface FriendlyURLEntityDAOgetEntity in class FriendlyURLEntityDAOImplversionId - The version identifier of the page or media item version for which its friendly URL
entity is returned.
FriendlyURLException - If any database access fails.
public FriendlyURLEntity getEntity(int dbId,
int typeOfPageId)
throws FriendlyURLException
getEntity in interface DBPageFriendlyURLEntityDAOdbId - Specifies a specific entity of a database page type.typeOfPageId - Specifies a database page type.
FriendlyURLException - If any database access fails.protected java.lang.String getSelectByIdQuery()
getSelectByIdQuery in class FriendlyURLEntityDAOImplprotected java.lang.String getInsertQuery()
getInsertQuery in class FriendlyURLEntityDAOImplprotected java.util.List<java.lang.Object> getInsertArguments(FriendlyURLEntity entity)
getInsertArguments in class FriendlyURLEntityDAOImplentity - Friendly URL entity to return its arguments for.
protected java.util.List<java.lang.Object> getAvailabilityArguments(FriendlyURLEntity entity)
getAvailabilityArguments in class FriendlyURLEntityDAOImplentity - Friendly URL entity to return its arguments for.
protected java.lang.String getAvailabilityQuery()
getAvailabilityQuery in class FriendlyURLEntityDAOImplprotected java.lang.String getMatchQuery()
FriendlyURLEntityDAOImpl.findMatchFromHistory(FriendlyURLEntity).
getMatchQuery in class FriendlyURLEntityDAOImplprotected java.lang.String getMatchQueryNullSequence()
FriendlyURLEntityDAOImpl.findMatchFromHistory(FriendlyURLEntity). Difference with FriendlyURLEntityDAOImpl.getMatchQuery() is that the
sequence is checked for being null.
getMatchQueryNullSequence in class FriendlyURLEntityDAOImpl
protected boolean identifierConflictsWithInMemEntities(FriendlyURLEntity sourceEntity,
java.util.List<FriendlyURLEntity> targetEntities)
identifierConflictsWithInMemEntities in class FriendlyURLEntityDAOImplsourceEntity - Source friendly URL entity.targetEntities - Target friendly URL entities.
true if URL identifier is not unique, false otherwise.protected java.lang.String getDeleteQuery()
getDeleteQuery in class FriendlyURLEntityDAOImplprotected java.lang.String getReferringQuery()
getReferringQuery in class FriendlyURLEntityDAOImpl
protected java.util.List<FriendlyURLEntity> selectFriendlyURLs(java.lang.String query,
java.util.List<java.lang.Object> arguments)
throws java.sql.SQLException
selectFriendlyURLs in class FriendlyURLEntityDAOImplquery - Execute this select query, which must retrieve all friendly URL select fields.arguments - The arguments for the given query.
java.sql.SQLException - If a database access error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||