com.liferay.portal.tools.samplesqlbuilder
Class SampleSQLBuilder
java.lang.Object
com.liferay.portal.tools.samplesqlbuilder.SampleSQLBuilder
public class SampleSQLBuilder
- extends Object
Constructor Summary |
SampleSQLBuilder(String outputDir,
String dbType,
int maxBlogsEntryCommentCount,
int maxBlogsEntryCount,
int maxGroupCount,
int maxMBCategoryCount,
int maxMBMessageCount,
int maxMBThreadCount,
int maxUserCount,
int maxUserToGroupCount,
int maxWikiNodeCount,
int maxWikiPageCommentCount,
int maxWikiPageCount,
boolean securityEnabled)
|
Method Summary |
protected void |
createSample()
|
protected Map<String,Object> |
getContext()
|
protected Writer |
getWriter(String fileName)
|
void |
insertAssetEntry(AssetEntry assetEntry)
|
void |
insertBlogsEntry(BlogsEntry blogsEntry)
|
void |
insertBlogsStatsUser(BlogsStatsUser blogsStatsUser)
|
void |
insertGroup(Group group,
List<Layout> privateLayouts,
List<Layout> publicLayouts)
|
void |
insertMBCategory(MBCategory mbCategory)
|
void |
insertMBDiscussion(MBDiscussion mbDiscussion)
|
void |
insertMBMessage(MBMessage mbMessage)
|
void |
insertMBStatsUser(MBStatsUser mbStatsUser)
|
void |
insertMBThread(MBThread mbThread)
|
void |
insertSecurity(String name,
long primKey)
|
void |
insertSecurity(String name,
String primKey)
|
void |
insertUser(Contact contact,
Group group,
List<Long> groupIds,
List<Long> organizationIds,
List<Layout> privateLayouts,
List<Layout> publicLayouts,
List<Role> roleIds,
User user)
|
void |
insertWikiNode(WikiNode wikiNode)
|
void |
insertWikiPage(WikiNode wikiNode,
WikiPage wikiPage)
|
static void |
main(String[] args)
|
protected void |
processTemplate(String name,
Map<String,Object> context)
|
protected void |
put(Map<String,Object> context,
String key,
Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleSQLBuilder
public SampleSQLBuilder(String outputDir,
String dbType,
int maxBlogsEntryCommentCount,
int maxBlogsEntryCount,
int maxGroupCount,
int maxMBCategoryCount,
int maxMBMessageCount,
int maxMBThreadCount,
int maxUserCount,
int maxUserToGroupCount,
int maxWikiNodeCount,
int maxWikiPageCommentCount,
int maxWikiPageCount,
boolean securityEnabled)
main
public static void main(String[] args)
insertAssetEntry
public void insertAssetEntry(AssetEntry assetEntry)
throws Exception
- Throws:
Exception
insertBlogsEntry
public void insertBlogsEntry(BlogsEntry blogsEntry)
throws Exception
- Throws:
Exception
insertBlogsStatsUser
public void insertBlogsStatsUser(BlogsStatsUser blogsStatsUser)
throws Exception
- Throws:
Exception
insertGroup
public void insertGroup(Group group,
List<Layout> privateLayouts,
List<Layout> publicLayouts)
throws Exception
- Throws:
Exception
insertMBCategory
public void insertMBCategory(MBCategory mbCategory)
throws Exception
- Throws:
Exception
insertMBDiscussion
public void insertMBDiscussion(MBDiscussion mbDiscussion)
throws Exception
- Throws:
Exception
insertMBMessage
public void insertMBMessage(MBMessage mbMessage)
throws Exception
- Throws:
Exception
insertMBStatsUser
public void insertMBStatsUser(MBStatsUser mbStatsUser)
throws Exception
- Throws:
Exception
insertMBThread
public void insertMBThread(MBThread mbThread)
throws Exception
- Throws:
Exception
insertSecurity
public void insertSecurity(String name,
long primKey)
throws Exception
- Throws:
Exception
insertSecurity
public void insertSecurity(String name,
String primKey)
throws Exception
- Throws:
Exception
insertUser
public void insertUser(Contact contact,
Group group,
List<Long> groupIds,
List<Long> organizationIds,
List<Layout> privateLayouts,
List<Layout> publicLayouts,
List<Role> roleIds,
User user)
throws Exception
- Throws:
Exception
insertWikiNode
public void insertWikiNode(WikiNode wikiNode)
throws Exception
- Throws:
Exception
insertWikiPage
public void insertWikiPage(WikiNode wikiNode,
WikiPage wikiPage)
throws Exception
- Throws:
Exception
createSample
protected void createSample()
throws Exception
- Throws:
Exception
getContext
protected Map<String,Object> getContext()
getWriter
protected Writer getWriter(String fileName)
throws Exception
- Throws:
Exception
processTemplate
protected void processTemplate(String name,
Map<String,Object> context)
throws Exception
- Throws:
Exception
put
protected void put(Map<String,Object> context,
String key,
Object value)