public class IMAP168JpaMigrateCommand extends Object implements JpaMigrateCommand
JIRA IMAP-168 is "mailboxes can't be identified 100% unambiguously using virtual hosting". MAILBOX.NAME contains data such as "#mail.eric@localhost.net" "#mail.eric@localhost.net.INBOX" "#mail.eric@localhost.net.INBOX.test" "#mail.eric@localhost.net.Trash" It needs to be splitted into MAILBOX.NAMESPACE | MAILBOX.USER0 | MAILBOX.NAME with "#mail" | "eric@localhost.net" | "" ==> was created before, but is not used anymore "#mail" | "eric@localhost.net" | "INBOX" "#mail" | "eric@localhost.net" | "INBOX.test" "#mail" | "eric@localhost.net" | "Trash"
Constructor and Description |
---|
IMAP168JpaMigrateCommand() |
Modifier and Type | Method and Description |
---|---|
void |
migrate(javax.persistence.EntityManager em)
Executes the needed SQL commands on the database via the provided JPA entity manager.
|
public void migrate(javax.persistence.EntityManager em) throws JpaMigrateException
JpaMigrateCommand
migrate
in interface JpaMigrateCommand
em
- the provided Entity ManagerJpaMigrateException
org.apache.james.mailbox.jpa.migrator.command
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.