Class SvnWcDbStatementUtil
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc17.db.SvnWcDbStatementUtil
-
public class SvnWcDbStatementUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.EnumMap<ISVNWCDb.SVNWCDbKind,java.lang.String>
kindMap
private static java.util.HashMap<java.lang.String,ISVNWCDb.SVNWCDbKind>
kindMap2
private static java.util.EnumMap<ISVNWCDb.SVNWCDbStatus,java.lang.String>
presenceMap
private static java.util.HashMap<java.lang.String,ISVNWCDb.SVNWCDbStatus>
presenceMap2
-
Constructor Summary
Constructors Constructor Description SvnWcDbStatementUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SVNSqlJetStatement
bindf(SVNSqlJetStatement stmt, java.lang.String format, java.lang.Object... binds)
static byte[]
getColumnBlob(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static boolean
getColumnBoolean(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SvnChecksum
getColumnChecksum(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNDate
getColumnDate(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNDepth
getColumnDepth(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNEventAction
getColumnEventAction(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static java.util.List<Structure<StructureFields.InheritedProperties>>
getColumnInheritedProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static long
getColumnInt64(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static ISVNWCDb.SVNWCDbKind
getColumnKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNNodeKind
getColumnNodeKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static java.io.File
getColumnPath(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static ISVNWCDb.SVNWCDbStatus
getColumnPresence(SVNSqlJetStatement stmt)
static ISVNWCDb.SVNWCDbStatus
getColumnPresence(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNProperties
getColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static long
getColumnRevNum(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNStatusType
getColumnStatusType(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static java.lang.String
getColumnText(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static <T extends java.lang.Enum<T>>
TgetColumnToken(SVNSqlJetStatement stmt, java.lang.Enum<?> f, java.util.Map<java.lang.String,T> tokenMap)
static java.lang.String
getKindText(ISVNWCDb.SVNWCDbKind kind)
static ISVNWCDb.SVNWCDbLock
getLockFromColumns(SVNSqlJetStatement stmt, java.lang.Enum<?> tokenField, java.lang.Enum<?> owner, java.lang.Enum<?> comment, java.lang.Enum<?> date)
static java.lang.String
getPresenceText(ISVNWCDb.SVNWCDbStatus status)
static long
getTranslatedSize(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static boolean
hasColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static boolean
isColumnNull(SVNSqlJetStatement stmt, java.lang.Enum<?> f)
static SVNDepth
parseDepth(java.lang.String depthStr)
static ISVNWCDb.SVNWCDbKind
parseKind(java.lang.String kindString)
static ISVNWCDb.SVNWCDbStatus
parsePresence(java.lang.String presenceString)
static void
reset(SVNSqlJetStatement stmt)
-
-
-
Field Detail
-
presenceMap
private static final java.util.EnumMap<ISVNWCDb.SVNWCDbStatus,java.lang.String> presenceMap
-
presenceMap2
private static final java.util.HashMap<java.lang.String,ISVNWCDb.SVNWCDbStatus> presenceMap2
-
kindMap
private static final java.util.EnumMap<ISVNWCDb.SVNWCDbKind,java.lang.String> kindMap
-
kindMap2
private static final java.util.HashMap<java.lang.String,ISVNWCDb.SVNWCDbKind> kindMap2
-
-
Method Detail
-
bindf
public static SVNSqlJetStatement bindf(SVNSqlJetStatement stmt, java.lang.String format, java.lang.Object... binds) throws SVNException
- Throws:
SVNException
-
getPresenceText
public static java.lang.String getPresenceText(ISVNWCDb.SVNWCDbStatus status)
-
getKindText
public static java.lang.String getKindText(ISVNWCDb.SVNWCDbKind kind)
-
parsePresence
public static ISVNWCDb.SVNWCDbStatus parsePresence(java.lang.String presenceString)
-
parseKind
public static ISVNWCDb.SVNWCDbKind parseKind(java.lang.String kindString)
-
parseDepth
public static SVNDepth parseDepth(java.lang.String depthStr)
-
getColumnPresence
public static ISVNWCDb.SVNWCDbStatus getColumnPresence(SVNSqlJetStatement stmt) throws SVNException
- Throws:
SVNException
-
getColumnPresence
public static ISVNWCDb.SVNWCDbStatus getColumnPresence(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnKind
public static ISVNWCDb.SVNWCDbKind getColumnKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnProperties
public static SVNProperties getColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnInheritedProperties
public static java.util.List<Structure<StructureFields.InheritedProperties>> getColumnInheritedProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
hasColumnProperties
public static boolean hasColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnText
public static java.lang.String getColumnText(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnPath
public static java.io.File getColumnPath(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnDepth
public static SVNDepth getColumnDepth(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
isColumnNull
public static boolean isColumnNull(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnInt64
public static long getColumnInt64(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnBlob
public static byte[] getColumnBlob(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnBoolean
public static boolean getColumnBoolean(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnRevNum
public static long getColumnRevNum(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getTranslatedSize
public static long getTranslatedSize(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnToken
public static <T extends java.lang.Enum<T>> T getColumnToken(SVNSqlJetStatement stmt, java.lang.Enum<?> f, java.util.Map<java.lang.String,T> tokenMap) throws SVNException
- Throws:
SVNException
-
getColumnChecksum
public static SvnChecksum getColumnChecksum(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnDate
public static SVNDate getColumnDate(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getLockFromColumns
public static ISVNWCDb.SVNWCDbLock getLockFromColumns(SVNSqlJetStatement stmt, java.lang.Enum<?> tokenField, java.lang.Enum<?> owner, java.lang.Enum<?> comment, java.lang.Enum<?> date) throws SVNException
- Throws:
SVNException
-
reset
public static void reset(SVNSqlJetStatement stmt) throws SVNException
- Throws:
SVNException
-
getColumnEventAction
public static SVNEventAction getColumnEventAction(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnStatusType
public static SVNStatusType getColumnStatusType(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
getColumnNodeKind
public static SVNNodeKind getColumnNodeKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
-