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>kindMapprivate static java.util.HashMap<java.lang.String,ISVNWCDb.SVNWCDbKind>kindMap2private static java.util.EnumMap<ISVNWCDb.SVNWCDbStatus,java.lang.String>presenceMapprivate 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 SVNSqlJetStatementbindf(SVNSqlJetStatement stmt, java.lang.String format, java.lang.Object... binds)static byte[]getColumnBlob(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static booleangetColumnBoolean(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SvnChecksumgetColumnChecksum(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNDategetColumnDate(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNDepthgetColumnDepth(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNEventActiongetColumnEventAction(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static java.util.List<Structure<StructureFields.InheritedProperties>>getColumnInheritedProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static longgetColumnInt64(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static ISVNWCDb.SVNWCDbKindgetColumnKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNNodeKindgetColumnNodeKind(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static java.io.FilegetColumnPath(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static ISVNWCDb.SVNWCDbStatusgetColumnPresence(SVNSqlJetStatement stmt)static ISVNWCDb.SVNWCDbStatusgetColumnPresence(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNPropertiesgetColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static longgetColumnRevNum(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNStatusTypegetColumnStatusType(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static java.lang.StringgetColumnText(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.StringgetKindText(ISVNWCDb.SVNWCDbKind kind)static ISVNWCDb.SVNWCDbLockgetLockFromColumns(SVNSqlJetStatement stmt, java.lang.Enum<?> tokenField, java.lang.Enum<?> owner, java.lang.Enum<?> comment, java.lang.Enum<?> date)static java.lang.StringgetPresenceText(ISVNWCDb.SVNWCDbStatus status)static longgetTranslatedSize(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static booleanhasColumnProperties(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static booleanisColumnNull(SVNSqlJetStatement stmt, java.lang.Enum<?> f)static SVNDepthparseDepth(java.lang.String depthStr)static ISVNWCDb.SVNWCDbKindparseKind(java.lang.String kindString)static ISVNWCDb.SVNWCDbStatusparsePresence(java.lang.String presenceString)static voidreset(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
-
-