mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
Fixed usage of iBatis namespaces
- Turned namespacing on - Collapsed SqlMapConfig.xml files with the exception of that for activities, which uses a different datasource bean - Tried to use it and discovered a "feature": If any ID has a '.' in it, then it is assumed to be namespaced already ... - Fixed up all IDs for iBatis objects; replaced '.' with '_' except in our namespaces - Don't panic! It's a find/replace job of ID strings. Errors will be hard and fast, if there are any. All DAO and activities tests run. - The AVM refactor will get some conflicts in the ibatis-context.xml - Either follow the same pattern and fix up the IDs, or - Keep a separate bean until some later time. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -37,13 +37,13 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
{
|
||||
public long insertFeedEntry(ActivityFeedEntity activityFeed) throws SQLException
|
||||
{
|
||||
Long id = (Long)getSqlMapClient().insert("insert.activity.feed", activityFeed);
|
||||
Long id = (Long)getSqlMapClient().insert("alfresco.activities.insert_activity_feed", activityFeed);
|
||||
return (id != null ? id : -1);
|
||||
}
|
||||
|
||||
public int deleteFeedEntries(Date keepDate) throws SQLException
|
||||
{
|
||||
return getSqlMapClient().delete("delete.activity.feed.entries.older.than.date", keepDate);
|
||||
return getSqlMapClient().delete("alfresco.activities.delete_activity_feed_entries_older_than_date", keepDate);
|
||||
}
|
||||
|
||||
public int deleteSiteFeedEntries(String siteId, String format, Date keepDate) throws SQLException
|
||||
@@ -53,7 +53,7 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
params.setActivitySummaryFormat(format);
|
||||
params.setPostDate(keepDate);
|
||||
|
||||
return getSqlMapClient().delete("delete.activity.feed.for.site.entries.older.than.date", params);
|
||||
return getSqlMapClient().delete("alfresco.activities.delete_activity_feed_for_site_entries_older_than_date", params);
|
||||
}
|
||||
|
||||
public int deleteUserFeedEntries(String feedUserId, String format, Date keepDate) throws SQLException
|
||||
@@ -63,13 +63,13 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
params.setActivitySummaryFormat(format);
|
||||
params.setPostDate(keepDate);
|
||||
|
||||
return getSqlMapClient().delete("delete.activity.feed.for.feeduser.entries.older.than.date", params);
|
||||
return getSqlMapClient().delete("alfresco.activities.delete_activity_feed_for_feeduser_entries_older_than_date", params);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<ActivityFeedEntity> selectFeedsToClean(int maxFeedSize) throws SQLException
|
||||
{
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.greater.than.max", maxFeedSize);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_greater_than_max", maxFeedSize);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -92,17 +92,17 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
if ((!excludeThisUser) && (!excludeOtherUsers))
|
||||
{
|
||||
// no excludes => everyone => where feed user is me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser.and.site", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser_and_site", params);
|
||||
}
|
||||
else if ((excludeThisUser) && (!excludeOtherUsers))
|
||||
{
|
||||
// exclude feed user => others => where feed user is me and post user is not me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser.others.and.site", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser_others_and_site", params);
|
||||
}
|
||||
else if ((excludeOtherUsers) && (!excludeThisUser))
|
||||
{
|
||||
// exclude others => me => where feed user is me and post user is me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser.me.and.site", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser_me_and_site", params);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -117,17 +117,17 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
if (!excludeThisUser && !excludeOtherUsers)
|
||||
{
|
||||
// no excludes => everyone => where feed user is me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser", params);
|
||||
}
|
||||
else if (excludeThisUser)
|
||||
{
|
||||
// exclude feed user => others => where feed user is me and post user is not me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser.others", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser_others", params);
|
||||
}
|
||||
else if (excludeOtherUsers)
|
||||
{
|
||||
// exclude others => me => where feed user is me and post user is me
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.feeduser.me", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_feeduser_me", params);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,6 +143,6 @@ public class ActivityFeedDAOImpl extends IBatisSqlMapper implements ActivityFeed
|
||||
params.setActivitySummaryFormat(format);
|
||||
|
||||
// for given site
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("select.activity.feed.for.site", params);
|
||||
return (List<ActivityFeedEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feed_for_site", params);
|
||||
}
|
||||
}
|
||||
|
@@ -42,11 +42,11 @@ public class ActivityPostDAOImpl extends IBatisSqlMapper implements ActivityPost
|
||||
(activityPost.getMaxId() != -1) &&
|
||||
(activityPost.getStatus() != null))
|
||||
{
|
||||
return (List<ActivityPostEntity>)getSqlMapClient().queryForList("select.activity.posts", activityPost);
|
||||
return (List<ActivityPostEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_posts", activityPost);
|
||||
}
|
||||
else if (activityPost.getStatus() != null)
|
||||
{
|
||||
return (List<ActivityPostEntity>)getSqlMapClient().queryForList("select.activity.posts.by.status.only", activityPost);
|
||||
return (List<ActivityPostEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_posts_by_status_only", activityPost);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -56,17 +56,17 @@ public class ActivityPostDAOImpl extends IBatisSqlMapper implements ActivityPost
|
||||
|
||||
public Long getMaxActivitySeq() throws SQLException
|
||||
{
|
||||
return (Long)getSqlMapClient().queryForObject("select.activity.post.max.seq");
|
||||
return (Long)getSqlMapClient().queryForObject("alfresco.activities.select_activity_post_max_seq");
|
||||
}
|
||||
|
||||
public Long getMinActivitySeq() throws SQLException
|
||||
{
|
||||
return (Long)getSqlMapClient().queryForObject("select.activity.post.min.seq");
|
||||
return (Long)getSqlMapClient().queryForObject("alfresco.activities.select_activity_post_min_seq");
|
||||
}
|
||||
|
||||
public Integer getMaxNodeHash() throws SQLException
|
||||
{
|
||||
return (Integer)getSqlMapClient().queryForObject("select.activity.post.max.jobtasknode");
|
||||
return (Integer)getSqlMapClient().queryForObject("alfresco.activities.select_activity_post_max_jobtasknode");
|
||||
}
|
||||
|
||||
public int updatePost(long id, String siteNetwork, String activityData, ActivityPostEntity.STATUS status) throws SQLException
|
||||
@@ -78,7 +78,7 @@ public class ActivityPostDAOImpl extends IBatisSqlMapper implements ActivityPost
|
||||
post.setStatus(status.toString());
|
||||
post.setLastModified(new Date());
|
||||
|
||||
return getSqlMapClient().update("update.activity.post.data", post);
|
||||
return getSqlMapClient().update("alfresco.activities.update_activity_post_data", post);
|
||||
}
|
||||
|
||||
public int updatePostStatus(long id, ActivityPostEntity.STATUS status) throws SQLException
|
||||
@@ -88,7 +88,7 @@ public class ActivityPostDAOImpl extends IBatisSqlMapper implements ActivityPost
|
||||
post.setStatus(status.toString());
|
||||
post.setLastModified(new Date());
|
||||
|
||||
return getSqlMapClient().update("update.activity.post.status", post);
|
||||
return getSqlMapClient().update("alfresco.activities.update_activity_post_status", post);
|
||||
}
|
||||
|
||||
public int deletePosts(Date keepDate, ActivityPostEntity.STATUS status) throws SQLException
|
||||
@@ -97,12 +97,12 @@ public class ActivityPostDAOImpl extends IBatisSqlMapper implements ActivityPost
|
||||
params.setPostDate(keepDate);
|
||||
params.setStatus(status.toString());
|
||||
|
||||
return getSqlMapClient().delete("delete.activity.posts.older.than.date", params);
|
||||
return getSqlMapClient().delete("alfresco.activities.delete_activity_posts_older_than_date", params);
|
||||
}
|
||||
|
||||
public long insertPost(ActivityPostEntity activityPost) throws SQLException
|
||||
{
|
||||
Long id = (Long)getSqlMapClient().insert("insert.activity.post", activityPost);
|
||||
Long id = (Long)getSqlMapClient().insert("alfresco.activities.insert_activity_post", activityPost);
|
||||
return (id != null ? id : -1);
|
||||
}
|
||||
}
|
||||
|
@@ -34,13 +34,13 @@ public class FeedControlDAOImpl extends IBatisSqlMapper implements FeedControlDA
|
||||
{
|
||||
public long insertFeedControl(FeedControlEntity activityFeedControl) throws SQLException
|
||||
{
|
||||
Long id = (Long)getSqlMapClient().insert("insert.activity.feedcontrol", activityFeedControl);
|
||||
Long id = (Long)getSqlMapClient().insert("alfresco.activities.insert_activity_feedcontrol", activityFeedControl);
|
||||
return (id != null ? id : -1);
|
||||
}
|
||||
|
||||
public int deleteFeedControl(FeedControlEntity activityFeedControl) throws SQLException
|
||||
{
|
||||
return getSqlMapClient().delete("delete.activity.feedcontrol", activityFeedControl);
|
||||
return getSqlMapClient().delete("alfresco.activities.delete_activity_feedcontrol", activityFeedControl);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -48,12 +48,12 @@ public class FeedControlDAOImpl extends IBatisSqlMapper implements FeedControlDA
|
||||
{
|
||||
FeedControlEntity params = new FeedControlEntity(feedUserId);
|
||||
|
||||
return (List<FeedControlEntity>)getSqlMapClient().queryForList("select.activity.feedcontrols.for.user", params);
|
||||
return (List<FeedControlEntity>)getSqlMapClient().queryForList("alfresco.activities.select_activity_feedcontrols_for_user", params);
|
||||
}
|
||||
|
||||
public long selectFeedControl(FeedControlEntity activityFeedControl) throws SQLException
|
||||
{
|
||||
Long id = (Long)getSqlMapClient().queryForObject("select.activity.feedcontrol", activityFeedControl);
|
||||
Long id = (Long)getSqlMapClient().queryForObject("alfresco.activities.select_activity_feedcontrol", activityFeedControl);
|
||||
return (id != null ? id : -1);
|
||||
}
|
||||
}
|
||||
|
@@ -25,6 +25,9 @@
|
||||
package org.alfresco.repo.domain.audit;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.repo.domain.propval.PropertyIdSearchRow;
|
||||
|
||||
/**
|
||||
* Results bean for <b>alf_audit_entry</b> table.
|
||||
@@ -39,6 +42,7 @@ public class AuditQueryResult
|
||||
private String auditUser;
|
||||
private long auditTime;
|
||||
private Long auditValuesId;
|
||||
private List<PropertyIdSearchRow> auditValues;
|
||||
|
||||
public AuditQueryResult()
|
||||
{
|
||||
@@ -54,6 +58,7 @@ public class AuditQueryResult
|
||||
.append(", auditUser=").append(auditUser)
|
||||
.append(", auditTime").append(new Date(auditTime))
|
||||
.append(", auditValuesId=").append(auditValuesId)
|
||||
.append(", auditValues=").append(auditValues.size())
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
@@ -107,4 +112,14 @@ public class AuditQueryResult
|
||||
{
|
||||
this.auditValuesId = auditValuesId;
|
||||
}
|
||||
|
||||
public List<PropertyIdSearchRow> getAuditValues()
|
||||
{
|
||||
return auditValues;
|
||||
}
|
||||
|
||||
public void setAuditValues(List<PropertyIdSearchRow> auditValues)
|
||||
{
|
||||
this.auditValues = auditValues;
|
||||
}
|
||||
}
|
||||
|
@@ -48,15 +48,16 @@ import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
*/
|
||||
public class AuditDAOImpl extends AbstractAuditDAOImpl
|
||||
{
|
||||
private static final String SELECT_MODEL_BY_CRC = "select.AuditModelByCrc";
|
||||
private static final String INSERT_MODEL = "insert.AuditModel";
|
||||
private static final String SELECT_MODEL_BY_CRC = "alfresco.audit.select_AuditModelByCrc";
|
||||
private static final String INSERT_MODEL = "alfresco.audit.insert_AuditModel";
|
||||
|
||||
private static final String SELECT_APPLICATION_BY_MODEL_ID = "select.AuditApplicationByModelId";
|
||||
private static final String INSERT_APPLICATION = "insert.AuditApplication";
|
||||
private static final String SELECT_APPLICATION_BY_MODEL_ID = "alfresco.audit.select_AuditApplicationByModelId";
|
||||
private static final String INSERT_APPLICATION = "alfresco.audit.insert_AuditApplication";
|
||||
|
||||
private static final String INSERT_ENTRY = "insert.AuditEntry";
|
||||
private static final String INSERT_ENTRY = "alfresco.audit.insert_AuditEntry";
|
||||
|
||||
private static final String SELECT_ENTRIES_SIMPLE = "select.AuditEntriesSimple";
|
||||
private static final String SELECT_ENTRIES_SIMPLE = "alfresco.audit.select_AuditEntriesSimple";
|
||||
private static final String SELECT_ENTRIES_WITH_VALUES = "alfresco.audit.select_AuditEntriesWithValues";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
@@ -162,6 +163,7 @@ public class AuditDAOImpl extends AbstractAuditDAOImpl
|
||||
AuditQueryParameters params = new AuditQueryParameters();
|
||||
if (appName != null)
|
||||
{
|
||||
// Look up the application's ID (this is unique)
|
||||
Pair<String, Long> appNameCrcPair = propertyValueDAO.getPropertyStringCaseSensitiveSearchParameters(appName);
|
||||
params.setAuditAppNameCrcPair(appNameCrcPair);
|
||||
}
|
||||
@@ -173,7 +175,15 @@ public class AuditDAOImpl extends AbstractAuditDAOImpl
|
||||
params.setAuditFromTime(from);
|
||||
params.setAuditToTime(to);
|
||||
|
||||
if (maxResults <= 0)
|
||||
if (maxResults > 0)
|
||||
{
|
||||
List<AuditQueryResult> rows = template.queryForList(SELECT_ENTRIES_SIMPLE, params, 0, maxResults);
|
||||
for (AuditQueryResult row : rows)
|
||||
{
|
||||
rowHandler.processResult(row);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
RowHandler rowHandlerInternal = new RowHandler()
|
||||
{
|
||||
@@ -185,13 +195,5 @@ public class AuditDAOImpl extends AbstractAuditDAOImpl
|
||||
};
|
||||
template.queryWithRowHandler(SELECT_ENTRIES_SIMPLE, params, rowHandlerInternal);
|
||||
}
|
||||
else
|
||||
{
|
||||
List<AuditQueryResult> rows = template.queryForList(SELECT_ENTRIES_SIMPLE, params, 0, maxResults);
|
||||
for (AuditQueryResult row : rows)
|
||||
{
|
||||
rowHandler.processResult(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -48,10 +48,10 @@ public class ContentCleanDAOImpl implements ContentCleanDAO
|
||||
|
||||
private static final int DEFAULT_BATCH_SIZE = 50;
|
||||
|
||||
private static final String INSERT_CONTENT_CLEAN = "insert.ContentCleanUrl";
|
||||
private static final String SELECT_CONTENT_CLEAN_URLS = "select.ContentCleanUrls";
|
||||
private static final String DELETE_CONTENT_CLEAN_BY_URL = "delete.ContentCleanUrl";
|
||||
private static final String DELETE_CONTENT_CLEAN = "delete.ContentCleanUrls";
|
||||
private static final String INSERT_CONTENT_CLEAN = "alfresco.content.insert_ContentCleanUrl";
|
||||
private static final String SELECT_CONTENT_CLEAN_URLS = "alfresco.content.select_ContentCleanUrls";
|
||||
private static final String DELETE_CONTENT_CLEAN_BY_URL = "alfresco.content.delete_ContentCleanUrl";
|
||||
private static final String DELETE_CONTENT_CLEAN = "alfresco.content.delete_ContentCleanUrls";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
@@ -44,16 +44,16 @@ import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
*/
|
||||
public class ContentDataDAOImpl extends AbstractContentDataDAOImpl
|
||||
{
|
||||
private static final String SELECT_CONTENT_URL_BY_ID = "select.ContentUrlById";
|
||||
private static final String SELECT_CONTENT_URL_BY_KEY = "select.ContentUrlByKey";
|
||||
private static final String SELECT_CONTENT_URL_BY_KEY_UNREFERENCED = "select.ContentUrlByKeyUnreferenced";
|
||||
private static final String SELECT_CONTENT_URLS = "select.ContentUrls";
|
||||
private static final String SELECT_CONTENT_DATA_BY_ID = "select.ContentDataById";
|
||||
private static final String SELECT_CONTENT_DATA_BY_NODE_AND_QNAME = "select.ContentDataByNodeAndQName";
|
||||
private static final String INSERT_CONTENT_URL = "insert.ContentUrl";
|
||||
private static final String INSERT_CONTENT_DATA = "insert.ContentData";
|
||||
private static final String DELETE_CONTENT_DATA = "delete.ContentData";
|
||||
private static final String DELETE_CONTENT_URL = "delete.ContentUrl";
|
||||
private static final String SELECT_CONTENT_URL_BY_ID = "alfresco.content.select_ContentUrlById";
|
||||
private static final String SELECT_CONTENT_URL_BY_KEY = "alfresco.content.select_ContentUrlByKey";
|
||||
private static final String SELECT_CONTENT_URL_BY_KEY_UNREFERENCED = "alfresco.content.select_ContentUrlByKeyUnreferenced";
|
||||
private static final String SELECT_CONTENT_URLS = "alfresco.content.select_ContentUrls";
|
||||
private static final String SELECT_CONTENT_DATA_BY_ID = "alfresco.content.select_ContentDataById";
|
||||
private static final String SELECT_CONTENT_DATA_BY_NODE_AND_QNAME = "alfresco.content.select_ContentDataByNodeAndQName";
|
||||
private static final String INSERT_CONTENT_URL = "alfresco.content.insert_ContentUrl";
|
||||
private static final String INSERT_CONTENT_DATA = "alfresco.content.insert_ContentData";
|
||||
private static final String DELETE_CONTENT_DATA = "alfresco.content.delete_ContentData";
|
||||
private static final String DELETE_CONTENT_URL = "alfresco.content.delete_ContentUrl";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
@@ -37,9 +37,9 @@ import org.springframework.orm.ibatis.SqlMapClientTemplate;
|
||||
*/
|
||||
public class EncodingDAOImpl extends AbstractEncodingDAOImpl
|
||||
{
|
||||
private static final String SELECT_ENCODING_BY_ID = "select.EncodingById";
|
||||
private static final String SELECT_ENCODING_BY_KEY = "select.EncodingByKey";
|
||||
private static final String INSERT_ENCODING = "insert.Encoding";
|
||||
private static final String SELECT_ENCODING_BY_ID = "alfresco.content.select_EncodingById";
|
||||
private static final String SELECT_ENCODING_BY_KEY = "alfresco.content.select_EncodingByKey";
|
||||
private static final String INSERT_ENCODING = "alfresco.content.insert_Encoding";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
@@ -41,14 +41,14 @@ import org.springframework.orm.ibatis.SqlMapClientTemplate;
|
||||
*/
|
||||
public class LockDAOImpl extends AbstractLockDAOImpl
|
||||
{
|
||||
private static final String SELECT_LOCKRESOURCE_BY_QNAME = "select.LockResourceByQName";
|
||||
private static final String SELECT_LOCK_BY_ID = "select.LockByID";
|
||||
private static final String SELECT_LOCK_BY_KEY = "select.LockByKey";
|
||||
private static final String SELECT_LOCK_BY_SHARED_IDS = "select.LockBySharedIds";
|
||||
private static final String INSERT_LOCKRESOURCE = "insert.LockResource";
|
||||
private static final String INSERT_LOCK = "insert.Lock";
|
||||
private static final String UPDATE_LOCK = "update.Lock";
|
||||
private static final String UPDATE_EXCLUSIVE_LOCK = "update.ExclusiveLock";
|
||||
private static final String SELECT_LOCKRESOURCE_BY_QNAME = "alfresco.lock.select_LockResourceByQName";
|
||||
private static final String SELECT_LOCK_BY_ID = "alfresco.lock.select_LockByID";
|
||||
private static final String SELECT_LOCK_BY_KEY = "alfresco.lock.select_LockByKey";
|
||||
private static final String SELECT_LOCK_BY_SHARED_IDS = "alfresco.lock.select_LockBySharedIds";
|
||||
private static final String INSERT_LOCKRESOURCE = "alfresco.lock.insert_LockResource";
|
||||
private static final String INSERT_LOCK = "alfresco.lock.insert_Lock";
|
||||
private static final String UPDATE_LOCK = "alfresco.lock.update_Lock";
|
||||
private static final String UPDATE_EXCLUSIVE_LOCK = "alfresco.lock.update_ExclusiveLock";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
@@ -36,9 +36,9 @@ import org.springframework.orm.ibatis.SqlMapClientTemplate;
|
||||
*/
|
||||
public class MimetypeDAOImpl extends AbstractMimetypeDAOImpl
|
||||
{
|
||||
private static final String SELECT_MIMETYPE_BY_ID = "select.MimetypeById";
|
||||
private static final String SELECT_MIMETYPE_BY_KEY = "select.MimetypeByKey";
|
||||
private static final String INSERT_MIMETYPE = "insert.Mimetype";
|
||||
private static final String SELECT_MIMETYPE_BY_ID = "alfresco.content.select_MimetypeById";
|
||||
private static final String SELECT_MIMETYPE_BY_KEY = "alfresco.content.select_MimetypeByKey";
|
||||
private static final String INSERT_MIMETYPE = "alfresco.content.insert_Mimetype";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
@@ -50,32 +50,32 @@ import org.springframework.orm.ibatis.SqlMapClientTemplate;
|
||||
*/
|
||||
public class PropertyValueDAOImpl extends AbstractPropertyValueDAOImpl
|
||||
{
|
||||
private static final String SELECT_PROPERTY_CLASS_BY_ID = "select.PropertyClassByID";
|
||||
private static final String SELECT_PROPERTY_CLASS_BY_NAME = "select.PropertyClassByName";
|
||||
private static final String INSERT_PROPERTY_CLASS = "insert.PropertyClass";
|
||||
private static final String SELECT_PROPERTY_CLASS_BY_ID = "alfresco.propval.select_PropertyClassByID";
|
||||
private static final String SELECT_PROPERTY_CLASS_BY_NAME = "alfresco.propval.select_PropertyClassByName";
|
||||
private static final String INSERT_PROPERTY_CLASS = "alfresco.propval.insert_PropertyClass";
|
||||
|
||||
private static final String SELECT_PROPERTY_DATE_VALUE_BY_ID = "select.PropertyDateValueByID";
|
||||
private static final String SELECT_PROPERTY_DATE_VALUE_BY_VALUE = "select.PropertyDateValueByValue";
|
||||
private static final String INSERT_PROPERTY_DATE_VALUE = "insert.PropertyDateValue";
|
||||
private static final String SELECT_PROPERTY_DATE_VALUE_BY_ID = "alfresco.propval.select_PropertyDateValueByID";
|
||||
private static final String SELECT_PROPERTY_DATE_VALUE_BY_VALUE = "alfresco.propval.select_PropertyDateValueByValue";
|
||||
private static final String INSERT_PROPERTY_DATE_VALUE = "alfresco.propval.insert_PropertyDateValue";
|
||||
|
||||
private static final String SELECT_PROPERTY_STRING_VALUE_BY_ID = "select.PropertyStringValueByID";
|
||||
private static final String SELECT_PROPERTY_STRING_VALUE_BY_VALUE = "select.PropertyStringValueByValue";
|
||||
private static final String INSERT_PROPERTY_STRING_VALUE = "insert.PropertyStringValue";
|
||||
private static final String SELECT_PROPERTY_STRING_VALUE_BY_ID = "alfresco.propval.select_PropertyStringValueByID";
|
||||
private static final String SELECT_PROPERTY_STRING_VALUE_BY_VALUE = "alfresco.propval.select_PropertyStringValueByValue";
|
||||
private static final String INSERT_PROPERTY_STRING_VALUE = "alfresco.propval.insert_PropertyStringValue";
|
||||
|
||||
private static final String SELECT_PROPERTY_DOUBLE_VALUE_BY_ID = "select.PropertyDoubleValueByID";
|
||||
private static final String SELECT_PROPERTY_DOUBLE_VALUE_BY_VALUE = "select.PropertyDoubleValueByValue";
|
||||
private static final String INSERT_PROPERTY_DOUBLE_VALUE = "insert.PropertyDoubleValue";
|
||||
private static final String SELECT_PROPERTY_DOUBLE_VALUE_BY_ID = "alfresco.propval.select_PropertyDoubleValueByID";
|
||||
private static final String SELECT_PROPERTY_DOUBLE_VALUE_BY_VALUE = "alfresco.propval.select_PropertyDoubleValueByValue";
|
||||
private static final String INSERT_PROPERTY_DOUBLE_VALUE = "alfresco.propval.insert_PropertyDoubleValue";
|
||||
|
||||
private static final String SELECT_PROPERTY_SERIALIZABLE_VALUE_BY_ID = "select.PropertySerializableValueByID";
|
||||
private static final String INSERT_PROPERTY_SERIALIZABLE_VALUE = "insert.PropertySerializableValue";
|
||||
private static final String SELECT_PROPERTY_SERIALIZABLE_VALUE_BY_ID = "alfresco.propval.select_PropertySerializableValueByID";
|
||||
private static final String INSERT_PROPERTY_SERIALIZABLE_VALUE = "alfresco.propval.insert_PropertySerializableValue";
|
||||
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_ID = "select.PropertyValueById";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_LOCAL_VALUE = "select.PropertyValueByLocalValue";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_DOUBLE_VALUE = "select.PropertyValueByDoubleValue";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_STRING_VALUE = "select.PropertyValueByStringValue";
|
||||
private static final String INSERT_PROPERTY_VALUE = "insert.PropertyValue";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_ID = "alfresco.propval.select_PropertyValueById";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_LOCAL_VALUE = "alfresco.propval.select_PropertyValueByLocalValue";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_DOUBLE_VALUE = "alfresco.propval.select_PropertyValueByDoubleValue";
|
||||
private static final String SELECT_PROPERTY_VALUE_BY_STRING_VALUE = "alfresco.propval.select_PropertyValueByStringValue";
|
||||
private static final String INSERT_PROPERTY_VALUE = "alfresco.propval.insert_PropertyValue";
|
||||
|
||||
private static final String INSERT_PROPERTY_LINK = "insert.PropertyLink";
|
||||
private static final String INSERT_PROPERTY_LINK = "alfresco.propval.insert_PropertyLink";
|
||||
|
||||
private SqlMapClientTemplate template;
|
||||
|
||||
|
Reference in New Issue
Block a user