org.apache.cassandra.cql.jdbc
Class JdbcBytes

java.lang.Object
  extended by org.apache.cassandra.cql.jdbc.AbstractJdbcType<java.nio.ByteBuffer>
      extended by org.apache.cassandra.cql.jdbc.JdbcBytes

public class JdbcBytes
extends AbstractJdbcType<java.nio.ByteBuffer>


Field Summary
static JdbcBytes instance
           
 
Method Summary
 java.nio.ByteBuffer compose(java.nio.ByteBuffer bytes)
           
 int getJdbcType()
           
 int getPrecision(java.nio.ByteBuffer obj)
           
 int getScale(java.nio.ByteBuffer obj)
           
 java.lang.String getString(java.nio.ByteBuffer bytes)
           
 java.lang.Class<java.nio.ByteBuffer> getType()
           
 boolean isCaseSensitive()
           
 boolean isCurrency()
           
 boolean isSigned()
           
 boolean needsQuotes()
           
 java.lang.String toString(java.nio.ByteBuffer obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final JdbcBytes instance
Method Detail

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in class AbstractJdbcType<java.nio.ByteBuffer>

getScale

public int getScale(java.nio.ByteBuffer obj)
Specified by:
getScale in class AbstractJdbcType<java.nio.ByteBuffer>

getPrecision

public int getPrecision(java.nio.ByteBuffer obj)
Specified by:
getPrecision in class AbstractJdbcType<java.nio.ByteBuffer>

isCurrency

public boolean isCurrency()
Specified by:
isCurrency in class AbstractJdbcType<java.nio.ByteBuffer>

isSigned

public boolean isSigned()
Specified by:
isSigned in class AbstractJdbcType<java.nio.ByteBuffer>

toString

public java.lang.String toString(java.nio.ByteBuffer obj)
Specified by:
toString in class AbstractJdbcType<java.nio.ByteBuffer>

needsQuotes

public boolean needsQuotes()
Specified by:
needsQuotes in class AbstractJdbcType<java.nio.ByteBuffer>

getString

public java.lang.String getString(java.nio.ByteBuffer bytes)
Specified by:
getString in class AbstractJdbcType<java.nio.ByteBuffer>

getType

public java.lang.Class<java.nio.ByteBuffer> getType()
Specified by:
getType in class AbstractJdbcType<java.nio.ByteBuffer>

getJdbcType

public int getJdbcType()
Specified by:
getJdbcType in class AbstractJdbcType<java.nio.ByteBuffer>

compose

public java.nio.ByteBuffer compose(java.nio.ByteBuffer bytes)
Specified by:
compose in class AbstractJdbcType<java.nio.ByteBuffer>


Copyright © 2011 The Apache Software Foundation