com.caucho.amber.type
Class ByteArrayType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.AmberArrayType
          extended by com.caucho.amber.type.ByteArrayType

public class ByteArrayType
extends AmberArrayType

The type of a property.


Method Summary
static ByteArrayType create()
          Returns the singleton ByteArray type.
 int generateLoad(JavaWriter out, java.lang.String rs, java.lang.String indexVar, int index)
          Generates a string to load the property.
 int generateLoadNative(JavaWriter out, int index)
          Generates a string to load the property.
 void generateSet(JavaWriter out, java.lang.String pstmt, java.lang.String index, java.lang.String value)
          Generates a string to set the property.
 java.lang.String getJavaObjectTypeName()
          Returns the java type for a single entry.
 java.lang.String getJavaTypeName()
          Returns the java type.
 java.lang.String getName()
          Returns the type name.
 java.lang.Object getObject(java.sql.ResultSet rs, int index)
          Gets the value.
 java.lang.String getPrimitiveArrayTypeName()
          Returns the corresponding primitive array type name.
 void setParameter(java.sql.PreparedStatement pstmt, int index, java.lang.Object value)
          Sets the value.
 
Methods inherited from class com.caucho.amber.type.AmberType
findItem, fromObject, generateCastFromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ByteArrayType create()
Returns the singleton ByteArray type.


getName

public java.lang.String getName()
Returns the type name.

Specified by:
getName in class AmberType

getJavaTypeName

public java.lang.String getJavaTypeName()
Returns the java type.

Overrides:
getJavaTypeName in class AmberType

getJavaObjectTypeName

public java.lang.String getJavaObjectTypeName()
Returns the java type for a single entry.

Specified by:
getJavaObjectTypeName in class AmberArrayType

getPrimitiveArrayTypeName

public java.lang.String getPrimitiveArrayTypeName()
Returns the corresponding primitive array type name.

Specified by:
getPrimitiveArrayTypeName in class AmberArrayType

generateLoad

public int generateLoad(JavaWriter out,
                        java.lang.String rs,
                        java.lang.String indexVar,
                        int index)
                 throws java.io.IOException
Generates a string to load the property.

Overrides:
generateLoad in class AmberType
Throws:
java.io.IOException

generateLoadNative

public int generateLoadNative(JavaWriter out,
                              int index)
                       throws java.io.IOException
Generates a string to load the property.

Overrides:
generateLoadNative in class AmberType
Throws:
java.io.IOException

generateSet

public void generateSet(JavaWriter out,
                        java.lang.String pstmt,
                        java.lang.String index,
                        java.lang.String value)
                 throws java.io.IOException
Generates a string to set the property.

Overrides:
generateSet in class AmberType
Throws:
java.io.IOException

setParameter

public void setParameter(java.sql.PreparedStatement pstmt,
                         int index,
                         java.lang.Object value)
                  throws java.sql.SQLException
Sets the value.

Overrides:
setParameter in class AmberType
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(java.sql.ResultSet rs,
                                  int index)
                           throws java.sql.SQLException
Gets the value.

Overrides:
getObject in class AmberType
Throws:
java.sql.SQLException