Ejemplo n.º 1
0
 /** INTERNAL: Add TIMESTAMP, TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE */
 protected Hashtable buildClassTypes() {
   Hashtable classTypeMapping = super.buildClassTypes();
   classTypeMapping.put("TIMESTAMP", oracle.sql.TIMESTAMP.class);
   classTypeMapping.put("TIMESTAMP WITH TIME ZONE", oracle.sql.TIMESTAMPTZ.class);
   classTypeMapping.put("TIMESTAMP WITH LOCAL TIME ZONE", oracle.sql.TIMESTAMPLTZ.class);
   return classTypeMapping;
 }
Ejemplo n.º 2
0
 /**
  * INTERNAL: Add XMLType as the default database type for org.w3c.dom.Documents. Add TIMESTAMP,
  * TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE
  */
 protected Hashtable buildFieldTypes() {
   Hashtable fieldTypes = super.buildFieldTypes();
   fieldTypes.put(org.w3c.dom.Document.class, new FieldTypeDefinition("sys.XMLType"));
   // Bug#3381652 10g database does not accept Time for DATE field
   fieldTypes.put(java.sql.Time.class, new FieldTypeDefinition("TIMESTAMP", false));
   fieldTypes.put(java.sql.Timestamp.class, new FieldTypeDefinition("TIMESTAMP", false));
   fieldTypes.put(oracle.sql.TIMESTAMP.class, new FieldTypeDefinition("TIMESTAMP", false));
   fieldTypes.put(
       oracle.sql.TIMESTAMPTZ.class, new FieldTypeDefinition("TIMESTAMP WITH TIME ZONE", false));
   fieldTypes.put(
       oracle.sql.TIMESTAMPLTZ.class,
       new FieldTypeDefinition("TIMESTAMP WITH LOCAL TIME ZONE", false));
   return fieldTypes;
 }