org.melati.admin
Class Copy
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.melati.servlet.ConfigServlet
org.melati.servlet.PoemServlet
org.melati.servlet.TemplateServlet
org.melati.admin.Copy
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class Copy
- extends TemplateServlet
Copy one db to another.
- Since:
- 3 Oct 2007
- Author:
- timp
- See Also:
- Serialized Form
|
Constructor Summary |
Copy()
|
|
Method Summary |
static org.melati.poem.Database |
copy()
|
static org.melati.poem.Database |
copy(org.melati.poem.Database fromDbIn,
org.melati.poem.Database toDbIn)
|
static org.melati.poem.Database |
copy(java.lang.String from,
java.lang.String to)
|
protected java.lang.String |
doTemplateRequest(Melati melati,
ServletTemplateContext templateContext)
Override this method to build up your own output. |
protected void |
prePoemSession(Melati melati)
Set the ServletTemplateEngine and ServletTemplateContext in our Melati. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Copy
public Copy()
prePoemSession
protected void prePoemSession(Melati melati)
throws java.lang.Exception
- Set the ServletTemplateEngine and ServletTemplateContext in our Melati.
This allows us to parse any uploaded files before we enter
our PoemSession (so we don't hang on to transactions
unnecessarily).
- Overrides:
prePoemSession in class TemplateServlet
- Parameters:
melati - the current Melati
- Throws:
java.lang.Exception - if anything goes wrong- See Also:
TemplateServlet.prePoemSession(org.melati.Melati)
doTemplateRequest
protected java.lang.String doTemplateRequest(Melati melati,
ServletTemplateContext templateContext)
throws java.lang.Exception
- Override this method to build up your own output.
- Specified by:
doTemplateRequest in class TemplateServlet
- Parameters:
melati - the current MelatitemplateContext - the current ServletTemplateContext
- Returns:
- a Template name, possibly excluding extension.
- Throws:
java.lang.Exception- See Also:
TemplateServlet.doTemplateRequest(org.melati.Melati, org.melati.template.ServletTemplateContext)
copy
public static org.melati.poem.Database copy(java.lang.String from,
java.lang.String to)
- Parameters:
from - to -
- Returns:
- the updated db
copy
public static org.melati.poem.Database copy(org.melati.poem.Database fromDbIn,
org.melati.poem.Database toDbIn)
- Parameters:
fromDb - toDb -
- Returns:
- the updated db
copy
public static org.melati.poem.Database copy()
- Returns:
- the updated db
Copyright © 2000-2009 PanEris. All Rights Reserved.