Class SVNSqlJetStatement
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement
-
- Direct Known Subclasses:
SVNFSFSRevPropCreateSchema,SVNFSFSRevPropSet,SVNSqlJetTableStatement,SVNSqlJetUnionStatement,SVNWCDbCopyMoveNode,SVNWCDbCreateSchema,SVNWCDbInsertLock,SVNWCDbInsertWCLock,SVNWCDbInsertWorkItem,SVNWCDbReplaceWithBaseDeleted
public abstract class SVNSqlJetStatement extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Object>bindsprivate org.tmatesoft.sqljet.core.table.ISqlJetCursorcursorprotected SVNSqlJetDbsDbprotected org.tmatesoft.sqljet.core.SqlJetTransactionModetransactionMode
-
Constructor Summary
Constructors Constructor Description SVNSqlJetStatement(SVNSqlJetDb sDb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadjustBinds(int i)voidbindBlob(int i, byte[] serialized)voidbindChecksum(int i, SvnChecksum checksum)voidbindf(java.lang.String format, java.lang.Object... data)voidbindIProperties(int i, java.util.Map<java.lang.String,SVNProperties> iprops)voidbindLong(int i, long v)voidbindNull(int i)voidbindProperties(int i, SVNProperties props)voidbindRevision(int i, long revision)voidbindString(int i, java.lang.String string)longcount()longdone()booleaneof()longexec()protected java.lang.ObjectgetBind(int i)java.util.List<java.lang.Object>getBinds()java.lang.ObjectgetColumn(java.lang.Enum<?> f)protected java.lang.ObjectgetColumn(java.lang.String f)byte[]getColumnBlob(java.lang.Enum<?> f)protected byte[]getColumnBlob(java.lang.String f)booleangetColumnBoolean(java.lang.Enum<?> f)java.util.List<Structure<StructureFields.InheritedProperties>>getColumnInheritedProperties(java.lang.Enum<?> f)java.util.List<Structure<StructureFields.InheritedProperties>>getColumnInheritedProperties(java.lang.String f)longgetColumnLong(java.lang.Enum<?> f)protected longgetColumnLong(java.lang.String f)SVNPropertiesgetColumnProperties(java.lang.Enum<?> f)protected SVNPropertiesgetColumnProperties(java.lang.String f)longgetColumnRevnum(java.lang.Enum<?> f)java.lang.StringgetColumnString(java.lang.Enum<?> f)protected java.lang.StringgetColumnString(java.lang.String f)protected org.tmatesoft.sqljet.core.table.ISqlJetCursorgetCursor()SVNSqlJetStatementgetJoinedStatement(java.lang.Enum<?> joinedTable)SVNSqlJetStatementgetJoinedStatement(java.lang.String joinedTable)java.util.Map<java.lang.String,java.lang.Object>getRowValues()booleanhasColumnInheritedProperties(java.lang.Enum<?> f)booleanhasColumnInheritedProperties(java.lang.String f)booleanhasColumnProperties(java.lang.Enum<?> f)protected booleanhasColumnProperties(java.lang.String f)longinsert(java.lang.Object... data)booleanisColumnNull(java.lang.Enum<?> f)protected booleanisColumnNull(java.lang.String f)booleanisNeedsReset()booleannext()voidnextRow()protected org.tmatesoft.sqljet.core.table.ISqlJetCursoropenCursor()static java.util.List<Structure<StructureFields.InheritedProperties>>parseInheritedProperties(byte[] val)static SVNPropertiesparseProperties(byte[] val)voidreset()protected voidsetCursor(org.tmatesoft.sqljet.core.table.ISqlJetCursor cursor)
-
-
-
Field Detail
-
sDb
protected SVNSqlJetDb sDb
-
cursor
private org.tmatesoft.sqljet.core.table.ISqlJetCursor cursor
-
binds
protected java.util.List<java.lang.Object> binds
-
transactionMode
protected org.tmatesoft.sqljet.core.SqlJetTransactionMode transactionMode
-
-
Constructor Detail
-
SVNSqlJetStatement
public SVNSqlJetStatement(SVNSqlJetDb sDb)
-
-
Method Detail
-
openCursor
protected org.tmatesoft.sqljet.core.table.ISqlJetCursor openCursor() throws SVNException- Throws:
SVNException
-
insert
public long insert(java.lang.Object... data) throws SVNException- Throws:
SVNException
-
exec
public long exec() throws SVNException- Throws:
SVNException
-
getBinds
public java.util.List<java.lang.Object> getBinds()
-
isNeedsReset
public boolean isNeedsReset()
-
reset
public void reset() throws SVNException- Throws:
SVNException
-
next
public boolean next() throws SVNException- Throws:
SVNException
-
eof
public boolean eof() throws SVNException- Throws:
SVNException
-
bindf
public void bindf(java.lang.String format, java.lang.Object... data) throws SVNException- Throws:
SVNException
-
adjustBinds
private void adjustBinds(int i)
-
bindNull
public void bindNull(int i)
-
bindLong
public void bindLong(int i, long v)
-
bindString
public void bindString(int i, java.lang.String string)
-
bindProperties
public void bindProperties(int i, SVNProperties props) throws SVNException- Throws:
SVNException
-
bindIProperties
public void bindIProperties(int i, java.util.Map<java.lang.String,SVNProperties> iprops) throws SVNException- Throws:
SVNException
-
bindChecksum
public void bindChecksum(int i, SvnChecksum checksum)
-
bindBlob
public void bindBlob(int i, byte[] serialized)
-
bindRevision
public void bindRevision(int i, long revision)
-
getBind
protected java.lang.Object getBind(int i)
-
count
public long count() throws SVNException- Throws:
SVNException
-
getColumn
public java.lang.Object getColumn(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumn
protected java.lang.Object getColumn(java.lang.String f) throws SVNException- Throws:
SVNException
-
getColumnLong
public long getColumnLong(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumnLong
protected long getColumnLong(java.lang.String f) throws SVNException- Throws:
SVNException
-
getColumnString
public java.lang.String getColumnString(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumnString
protected java.lang.String getColumnString(java.lang.String f) throws SVNException- Throws:
SVNException
-
isColumnNull
public boolean isColumnNull(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
isColumnNull
protected boolean isColumnNull(java.lang.String f) throws SVNException- Throws:
SVNException
-
getColumnBlob
public byte[] getColumnBlob(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumnBlob
protected byte[] getColumnBlob(java.lang.String f) throws SVNException- Throws:
SVNException
-
getColumnBoolean
public boolean getColumnBoolean(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getJoinedStatement
public SVNSqlJetStatement getJoinedStatement(java.lang.String joinedTable) throws SVNException
- Throws:
SVNException
-
getJoinedStatement
public SVNSqlJetStatement getJoinedStatement(java.lang.Enum<?> joinedTable) throws SVNException
- Throws:
SVNException
-
getColumnProperties
public SVNProperties getColumnProperties(java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
hasColumnProperties
public boolean hasColumnProperties(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumnInheritedProperties
public java.util.List<Structure<StructureFields.InheritedProperties>> getColumnInheritedProperties(java.lang.Enum<?> f) throws SVNException
- Throws:
SVNException
-
hasColumnInheritedProperties
public boolean hasColumnInheritedProperties(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getColumnProperties
protected SVNProperties getColumnProperties(java.lang.String f) throws SVNException
- Throws:
SVNException
-
hasColumnProperties
protected boolean hasColumnProperties(java.lang.String f) throws SVNException- Throws:
SVNException
-
getColumnInheritedProperties
public java.util.List<Structure<StructureFields.InheritedProperties>> getColumnInheritedProperties(java.lang.String f) throws SVNException
- Throws:
SVNException
-
hasColumnInheritedProperties
public boolean hasColumnInheritedProperties(java.lang.String f) throws SVNException- Throws:
SVNException
-
parseProperties
public static SVNProperties parseProperties(byte[] val) throws SVNException
- Throws:
SVNException
-
parseInheritedProperties
public static java.util.List<Structure<StructureFields.InheritedProperties>> parseInheritedProperties(byte[] val) throws SVNException
- Throws:
SVNException
-
done
public long done() throws SVNException- Throws:
SVNException
-
nextRow
public void nextRow() throws SVNException- Throws:
SVNException
-
getColumnRevnum
public long getColumnRevnum(java.lang.Enum<?> f) throws SVNException- Throws:
SVNException
-
getCursor
protected org.tmatesoft.sqljet.core.table.ISqlJetCursor getCursor()
-
setCursor
protected void setCursor(org.tmatesoft.sqljet.core.table.ISqlJetCursor cursor)
-
getRowValues
public java.util.Map<java.lang.String,java.lang.Object> getRowValues() throws SVNException- Throws:
SVNException
-
-