[exo-jcr-commits] exo-jcr SVN: r3605 - jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/rdbms.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Dec 7 06:10:27 EST 2010
Author: tolusha
Date: 2010-12-07 06:10:27 -0500 (Tue, 07 Dec 2010)
New Revision: 3605
Modified:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/rdbms/FullBackupJob.java
Log:
EXOJCR-1078: implementation RDBMS workspace initialzer
Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/rdbms/FullBackupJob.java
===================================================================
--- jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/rdbms/FullBackupJob.java 2010-12-07 11:10:03 UTC (rev 3604)
+++ jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/rdbms/FullBackupJob.java 2010-12-07 11:10:27 UTC (rev 3605)
@@ -75,26 +75,6 @@
protected static Log log = ExoLogger.getLogger("exo.jcr.component.ext.FullBackupJob");
/**
- * Content is absent.
- */
- public static final byte NULL_LEN = 0;
-
- /**
- * Content length value has byte type.
- */
- public static final byte BYTE_LEN = 1;
-
- /**
- * Content length value has integer type.
- */
- public static final byte INT_LEN = 2;
-
- /**
- * Content length value has long type.
- */
- public static final byte LONG_LEN = 3;
-
- /**
* Indicates the way to get value thru getBinaryStream() method.
*/
public static final int GET_BINARY_STREAM_METHOD = 0;
@@ -424,7 +404,7 @@
InputStream value = getInputStream(rs, i + 1, getValueMethod);
if (value == null)
{
- contentLenWriter.writeByte(NULL_LEN);
+ contentLenWriter.writeByte(RdbmsWorkspaceInitializer.NULL_LEN);
}
else
{
@@ -492,17 +472,17 @@
{
if (len < Byte.MAX_VALUE)
{
- out.writeByte(BYTE_LEN);
+ out.writeByte(RdbmsWorkspaceInitializer.BYTE_LEN);
out.writeByte((byte)len);
}
else if (len < Integer.MAX_VALUE)
{
- out.writeByte(INT_LEN);
+ out.writeByte(RdbmsWorkspaceInitializer.INT_LEN);
out.writeInt((int)len);
}
else
{
- out.writeByte(LONG_LEN);
+ out.writeByte(RdbmsWorkspaceInitializer.LONG_LEN);
out.writeLong(len);
}
}
More information about the exo-jcr-commits
mailing list