public class DbPorter extends DbToolBase
| Modifier and Type | Class and Description |
|---|---|
static class |
DbPorter.CaDbEntryType |
static class |
DbPorter.OcspDbEntryType |
| Modifier and Type | Field and Description |
|---|---|
protected DbSchemaInfo |
dbSchemaInfo |
protected int |
dbSchemaVersion |
static String |
DIRNAME_CERT |
static String |
DIRNAME_CRL |
static String |
EXPORT_PROCESS_LOG_FILENAME |
static String |
FILENAME_CA_CERTSTORE |
static String |
FILENAME_CA_CONFIGURATION |
static String |
FILENAME_OCSP_CERTSTORE |
static String |
IMPORT_PROCESS_LOG_FILENAME |
static String |
IMPORT_TO_OCSP_PROCESS_LOG_FILENAME |
protected int |
maxX500nameLen |
static String |
PREFIX_FILENAME_CERTS |
static int |
VERSION |
baseDir, connection, datasource, stopMe| Constructor and Description |
|---|
DbPorter(org.xipki.datasource.DataSourceWrapper datasource,
String baseDir,
AtomicBoolean stopMe) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
binary(org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType fileOrValue) |
protected org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType |
buildFileOrBase64Binary(String base64Content,
String fileName) |
protected org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType |
buildFileOrBinary(byte[] content,
String fileName) |
protected org.xipki.ca.dbtool.jaxb.ca.FileOrValueType |
buildFileOrValue(String content,
String fileName) |
static void |
echoToFile(String content,
File file) |
static Schema |
retrieveSchema(String schemaPath) |
protected String |
value(org.xipki.ca.dbtool.jaxb.ca.FileOrValueType fileOrValue) |
buildFilename, commit, count, createStatement, deleteFromTableWithLargerId, deleteTmpFiles, disableAutoCommit, getDbConfProperties, getZipOutputStream, max, max, min, min, prepareStatement, recoverAutoCommit, releaseResources, releaseResources, rollback, setBoolean, setInt, setLong, setSavepoint, shutdown, tableExists, tableHasColumn, translate, writeLinepublic static final String FILENAME_CA_CONFIGURATION
public static final String FILENAME_CA_CERTSTORE
public static final String FILENAME_OCSP_CERTSTORE
public static final String DIRNAME_CRL
public static final String DIRNAME_CERT
public static final String PREFIX_FILENAME_CERTS
public static final String EXPORT_PROCESS_LOG_FILENAME
public static final String IMPORT_PROCESS_LOG_FILENAME
public static final String IMPORT_TO_OCSP_PROCESS_LOG_FILENAME
public static final int VERSION
protected final int dbSchemaVersion
protected final int maxX500nameLen
protected final DbSchemaInfo dbSchemaInfo
public DbPorter(org.xipki.datasource.DataSourceWrapper datasource,
String baseDir,
AtomicBoolean stopMe)
throws org.xipki.datasource.DataAccessException
org.xipki.datasource.DataAccessExceptionprotected org.xipki.ca.dbtool.jaxb.ca.FileOrValueType buildFileOrValue(String content, String fileName) throws IOException
IOExceptionprotected String value(org.xipki.ca.dbtool.jaxb.ca.FileOrValueType fileOrValue) throws IOException
IOExceptionprotected org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType buildFileOrBase64Binary(String base64Content, String fileName) throws IOException
IOExceptionprotected org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType buildFileOrBinary(byte[] content,
String fileName)
throws IOException
IOExceptionprotected byte[] binary(org.xipki.ca.dbtool.jaxb.ca.FileOrBinaryType fileOrValue)
throws IOException
IOExceptionpublic static final Schema retrieveSchema(String schemaPath) throws JAXBException
JAXBExceptionpublic static void echoToFile(String content, File file) throws IOException
IOExceptionCopyright © 2018. All rights reserved.