All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.ddlutils.io.DatabaseIO.class Maven / Gradle / Ivy

Go to download

DdlUtils is a small, easy-to-use component for working with Database Definition (DDL) files.

There is a newer version: 1.3
Show newest version
????4?!org/apache/ddlutils/io/DatabaseIOjava/lang/ObjectcglZDDLUTILS_NAMESPACELjava/lang/String;(http://db.apache.org/ddlutils/schema/1.1
QNAME_ATTRIBUTE_PRIMARY_KEYLjavax/xml/namespace/QName;QNAME_ELEMENT_DATABASEQNAME_ELEMENT_REFERENCEQNAME_ATTRIBUTE_LOCALBASE64_ATTR_NAMEbase64QNAME_ELEMENT_FOREIGN_KEYQNAME_ATTRIBUTE_NAMEQNAME_ATTRIBUTE_AUTO_INCREMENTQNAME_ATTRIBUTE_FOREIGNQNAME_ATTRIBUTE_VERSIONE Lorg/apache/commons/logging/Log;QNAME_ATTRIBUTE_FOREIGN_TABLE!QNAME_ATTRIBUTE_DEFAULT_ID_METHODQNAME_ATTRIBUTE_JAVA_NAME
ALLATORIxDEMOQNAME_ELEMENT_UNIQUE_COLUMNQNAME_ATTRIBUTE_DESCRIPTIONQNAME_ELEMENT_UNIQUEQNAME_ELEMENT_INDEX_COLUMNQNAME_ATTRIBUTE_ON_DELETEQNAME_ATTRIBUTE_DEFAULTQNAME_ATTRIBUTE_ON_UPDATEQNAME_ELEMENT_TABLEQNAME_ATTRIBUTE_SIZEQNAME_ELEMENT_COLUMNQNAME_ATTRIBUTE_REQUIREDQNAME_ATTRIBUTE_TYPEQNAME_ELEMENT_INDEX$()Ljavax/xml/stream/XMLInputFactory; javax/xml/stream/XMLInputFactory-newInstance/,
.0!OS]^]I^VWDV>D@UFdD@2o@s@}}LivUwDdL+Hvbj@iDvBlOb4%org/apache/ddlutils/model/IndexColumn6&(Ljava/lang/String;)Ljava/lang/String;8
79java/lang/Boolean;TRUELjava/lang/Boolean;=>	<?setProperty'(Ljava/lang/String;Ljava/lang/Object;)VAB
.Corg/apache/ddlutils/model/TableE
F9a#Lorg/apache/ddlutils/io/DatabaseIO;H(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/Database;+org/apache/ddlutils/io/DdlUtilsXMLExceptionKjava/io/IOExceptionM#javax/xml/stream/XMLStreamExceptionO javax/xml/stream/XMLStreamReaderQgetEventType()ISTRUnextWTRXgetName()Ljavax/xml/namespace/QName;Z[R\
	^9(Ljavax/xml/namespace/QName;Ljavax/xml/namespace/QName;)Z`
aJ
c(Ljava/lang/Throwable;)Vef
Lg"org/apache/ddlutils/model/Databasei
initialize()Vkl
jm"Ljavax/xml/stream/XMLStreamReader;java/lang/Throwablepread?(Lorg/xml/sax/InputSource;)Lorg/apache/ddlutils/model/Database;org/xml/sax/InputSourcetgetCharacterStream()Ljava/io/Reader;vw
ux6(Ljava/io/Reader;)Lorg/apache/ddlutils/model/Database;rz
{Lorg/xml/sax/InputSource;E(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/Index;(org/apache/ddlutils/model/NonUniqueIndexel
??getAttributeCount?TR?getAttributeName(I)Ljavax/xml/namespace/QName;??R?
	?getAttributeValue(I)Ljava/lang/String;??R?org/apache/ddlutils/model/Index?setName(Ljava/lang/String;)V????F(Ljavax/xml/stream/XMLStreamReader;Lorg/apache/ddlutils/model/Index;)V?
?%(Ljavax/xml/stream/XMLStreamReader;)V?
?javax/xml/namespace/QName?I(Ljavax/xml/stream/XMLStreamReader;Lorg/apache/ddlutils/model/Database;)V&
	?E(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/Table;?
?addTable$(Lorg/apache/ddlutils/model/Table;)V??
j?H?
?$Lorg/apache/ddlutils/model/Database;`(Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;Ljavax/xml/namespace/QName;Ljava/lang/String;)VgetLocalPart()Ljava/lang/String;??
??.org/apache/ddlutils/io/PrettyPrintingXmlWriter?writeAttribute9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V??
??0Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;K(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/IndexColumn;
7?
7?'
	?7(Ljavax/xml/stream/XMLStreamReader;I)Ljava/lang/String;?
?setSize??
7?T(Lorg/apache/ddlutils/model/Index;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)VindentIfPrettyPrinting(I)V??
??isUnique()Z????!
	?+
	?N(Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;Ljavax/xml/namespace/QName;)V?
?Z????
?getColumnCount?T??printlnIfPrettyPrinting?l
??	getColumn*(I)Lorg/apache/ddlutils/model/IndexColumn;????[(Lorg/apache/ddlutils/model/IndexColumn;ZLorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V?
?3(Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V?
?!Lorg/apache/ddlutils/model/Index;%org/apache/ddlutils/model/UniqueIndex?
??H?
?Y(Lorg/apache/ddlutils/model/ForeignKey;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V
	?
	?$org/apache/ddlutils/model/ForeignKey?getForeignTableName??
??
??getOnUpdate/()Lorg/apache/ddlutils/model/CascadeActionEnum;??
??+org/apache/ddlutils/model/CascadeActionEnum?NONE-Lorg/apache/ddlutils/model/CascadeActionEnum;??	??%
	
??getOnDelete?
?#
	getReferenceCount	T
?
getReference((I)Lorg/apache/ddlutils/model/Reference;
?X(Lorg/apache/ddlutils/model/Reference;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V
&Lorg/apache/ddlutils/model/ForeignKey;R(Ljavax/xml/stream/XMLStreamReader;I)Lorg/apache/ddlutils/model/CascadeActionEnum;java/lang/StringtoLowerCase?
getEnumA(Ljava/lang/String;)Lorg/apache/ddlutils/model/CascadeActionEnum;
?java/lang/StringBuilder
?LMiDb@igNjM`@ks@iT`"!insert.(ILjava/lang/String;)Ljava/lang/StringBuilder;#$
%append-(Ljava/lang/String;)Ljava/lang/StringBuilder;'(
)WJQWGQ+getAttributeLocalName-?R.toString0?
1e?
L3IgetNamespaceURI6?
?7#org/apache/commons/lang/StringUtils9isEmpty(Ljava/lang/String;)Z;<
:=equals(Ljava/lang/Object;)Z?@
A
?AsetUseInternalDtd(Z)V	FwriteElementStart'(Ljava/lang/String;Ljava/lang/String;)VHI
?JBjMpLkMeI
?O(
	QDDD@ScNwDlFknD|ULA]WHkE`Y(BjMpLkY"
	[	WCWK@]
	_q@gM`aKT@c
pOlPpD(BjMpLke
	g
DQlF@@Qi
	kdefaultm$
	oaDc@pMqhal`UmNaq
	sAVWULKu 
	wcNwDlFky
	{J@BqG@}KdWdodL`
	?IFI?
	?OdL`?K4@@@?NktuEdU`???WHW	n\?
	?S`PpHwDa?)
	?L
@?U|Q`?*
	?SWLK?
	?I(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/Reference;#org/apache/ddlutils/model/Reference?
??setLocalColumnName??
??setForeignColumnName??
??8(Ljava/lang/String;)Lorg/apache/ddlutils/model/Database;java/io/File?
?34(Ljava/io/File;)Lorg/apache/ddlutils/model/Database;r?
?getLocalColumnName??
??getForeignColumnName??
??%Lorg/apache/ddlutils/model/Reference;setValidateXml	?write7(Lorg/apache/ddlutils/model/Database;Ljava/io/Writer;)VUTF-8?%(Ljava/io/Writer;Ljava/lang/String;)Ve?
??setDefaultNamespace??
??writeDocumentStart?l
??W(Lorg/apache/ddlutils/model/Database;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V?
?writeDocumentEnd?l
??Ljava/io/Writer;?
?	addColumn*(Lorg/apache/ddlutils/model/IndexColumn;)V????U(Lorg/apache/ddlutils/model/Column;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V org/apache/ddlutils/model/Column?
??isPrimaryKey??
??valueOf(Z)Ljava/lang/String;??
?
isRequired??
??getType??
??getSize??
??getDefaultValue??
??isAutoIncrement??
??getDescription??
??getJavaName??
??"Lorg/apache/ddlutils/model/Column;isUseInternalDtdK(Ljavax/xml/stream/XMLStreamReader;Lorg/apache/ddlutils/model/ForeignKey;)V?
?addReference((Lorg/apache/ddlutils/model/Reference;)V??
??F(Ljavax/xml/stream/XMLStreamReader;Lorg/apache/ddlutils/model/Table;)VF(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/Column;?
?%(Lorg/apache/ddlutils/model/Column;)V?
FJ(Ljavax/xml/stream/XMLStreamReader;)Lorg/apache/ddlutils/model/ForeignKey;

addForeignKey)(Lorg/apache/ddlutils/model/ForeignKey;)V
F	H~
addIndex$(Lorg/apache/ddlutils/model/Index;)V

F~
!Lorg/apache/ddlutils/model/Table;
7?
7?'Lorg/apache/ddlutils/model/IndexColumn;
F?
F?setDescription?
F?

j?
j?setIdMethod ?
j!
setVersion#?
j$?
&=(Lorg/apache/ddlutils/model/Database;Ljava/io/OutputStream;)V+(Ljava/io/OutputStream;Ljava/lang/String;)Ve)
?*Ljava/io/OutputStream;&(Ljavax/xml/stream/XMLStreamReader;I)ZUwT`.equalsIgnoreCase0<
1CI@3java/io/FileReader5(Ljava/io/File;)Ve7
68%org/apache/ddlutils/io/ModelValidator:
;?'javax/xml/transform/stream/StreamSource=(Ljava/io/Reader;)Ve?
>@validate(Ljavax/xml/transform/Source;)VBC
;DcloseFl
6G	I bjTiE%OjU%BiNvD%S`@aDwcNwcHiD%KgetAbsolutePathM?
?Norg/apache/commons/logging/LogPwarn(Ljava/lang/Object;)VRSQT 3JIJIV@AWPCWPCIV,
XcreateXMLStreamReader4(Ljava/io/Reader;)Ljavax/xml/stream/XMLStreamReader;Z[
.\HJ
^Ljava/io/File;java/lang/StringBuffera
b?java/io/Readerd([C)Irf
eg([CII)Ljava/lang/StringBuffer;'i
bjjava/io/StringReaderl
b1
m3Ljava/io/Reader;[CqwriteElementEndsl
?tOpMiv
??setForeignTableNamey?
?z
??
}setOnUpdate0(Lorg/apache/ddlutils/model/CascadeActionEnum;)V?
??setOnDelete??
???
?
?%org/apache/commons/logging/LogFactory?getLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;??
??T(Lorg/apache/ddlutils/model/Table;Lorg/apache/ddlutils/io/PrettyPrintingXmlWriter;)V
F?
F?
F?getForeignKeyCount?T
F?
getIndexCount?T
F?%(I)Lorg/apache/ddlutils/model/Column;??
F??
?
getForeignKey)(I)Lorg/apache/ddlutils/model/ForeignKey;??
F??
?getIndex$(I)Lorg/apache/ddlutils/model/Index;??
F??
?
??
??-
?
setPrimaryKey?E
??setRequired?E
??setType??
??
??setDefaultValue??
??setAutoIncrement?E
??
?setJavaName??
??writeNamespace?I
??
j?getIdMethod??
j?
getVersion??
j?
getTableCount?T
j?getTable$(I)Lorg/apache/ddlutils/model/Table;??
j??
?
isValidateXml9(Lorg/apache/ddlutils/model/Database;Ljava/lang/String;)Vjava/lang/Exception?java/io/BufferedWriter?java/io/FileWriter?
?3(Ljava/io/Writer;)Ve?
????
?flush?l
??
?G
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
Deprecated
SourceFile!	?



	?








 
!
"
#
$
%
&
'
(
)
*
+
,,?T?1L3+Z[5?:?@?D?G?@?D??HI?02??HJ?RM+?V?+?Y?????*+?]?_?b?!*+?dM??L?LY+?h?L?LY+?h?,?,?n,?4N04N>P0>P?RHIRHo?:??<-?*
0z4?5>??dH?L?P>?=??q?R?q?RjNIP	?Lrs?=	*+?y?|??	HI	H}?}?LH~??K??Y??MY>+???-+??:*???b?,+???????ѿ*Y+Z,????,??KHIKHo?&	?Z??)6Z>LF?Io?5?R??*??q?R??PN???<>?7+?YY>???*+?]???b?,*+??????ֿ*+????̿?? <HI<Ho<H??"ft?s?$?1;??>?@?,q?Rj?q?Rj?PN??h-?
+,??-????*HIH?H
H	?,g???L??	]?7Y??MY>+???E+??:*???b?,+??????*???b?
,*+?????????*+??,??]HI]Ho?*
k??&)?8?D?N?V?[??N?R7?+q?R7??q?R7?PN??@i*,Y??+???
?̧??η?+*,??+???չ??2,??Y>+???*+??+???,?????,??*,??? iHIiH?iH??.??k,?5B:*D:Y*^?c?h??k?q?????????? ???!q?????L~??K??Y??MY>+???-+??:*???b?,+???????ѿ*Y+Z,???,??KHIKHo?&	????)6?>\F?Ie?5?R??*??q?R??PN??=?+,Y??*Z*,Z??Ѳ?+???ղ?+???ն???*,?+?????+???*,?+????+??(,??Y>+??*+??,????,??*,??? ?HI?H?H??BT???&?/:>uHhW_jd$l?y$~y?c???4>?
???q?????L??U+??YN???-??:?6?LY?Y? "?:?&-?*,?G?*+?/?*?2?4??? UHIUHoUH5?9	??}R?'?q?RF??9??L`??+?8?>?,??+???B??,+?C?? HIH
H
?D
=???q???DE?>*?G??HIH5?
?????O
+,?8,???K?? 
HI
H?
H
?
??LLl?8???YN?:?P?R??YT?G?P?_??YV?:?P???YX?G?P?λ?YZ?:?P?\??Y^?G?P?`??Yb?:?P????Yd?G?P?̻?Yf?:?P?h??Yj?G?P?l??Yn?P?p??Yr?:?P?t??Yv?G?P?x??Yz?:?P?|??Y~?G?P???Y??:?P????Y??G?P????Y??:?P????Y??G?P???Y??:?P???Y??G?P????Y??:?P????Y??G?P????Y??:?P????Y??G?P????f3?$?6?H^Zl~4???;????????9??/A?S?e?w?????????
^??Y??MY>+???F+??:*???b?,+??????*?|?b?,+?????????*+??,??^HI^Ho?*
y?b)W8|D0OyW?\e?N?R??+q?R???q?R??PNH???&=?"+?YY>?
???????????῱?&HI&Ho?&	????! %??3??q?R?
q?R?Pr??D??*ZYXY+??????HIH	???L?}	+,Y??*Z*,Z*,?`?Ѳ?+???ղ|+???շ?? +HI+H?+H??{?'[*??L?E?>*????HIH5?
?N???s!??Y,???M*+,[,?ö?,?ɶ̱? !HI!H?!H????|V? ^?LH???@>?;+?YY>???+?]:*?h?b?,*+?Ϲ???п*+????ǿ?? @HI@Ho@H??*
?b???'?6?;???????2q?R???q?R??PN????,Y??*Z*,Z,*Z*,Z,*Z*,Z,*Z,?R?Ѳ?+?׷ղ?+?ڸ޷ղ?+??޷ղ?+??ղ?+??ղp+??ղl+???޷ղx+??ղ?+??շ?? ?HI?H??H??6
R?!?+?8?E?OY?c"p
z????o?L???/*?G??HI?5????>>?9+?YY>???+?]:*?`?b?,*+??????ҿ*+????ɿ?? >HI>Ho>H?*
??????'?4L9?=&????0q?R???q?R??PN??M?>??+?YY>???+?]:*?R?b?,*+????ҿ*??b?,*+??
????*?ηb?,*+?????*?̷b?,*+?????*+??????? ?HI?Ho?H?B?m?'+4?@?M?Y?e
q?}????)?G??0q?RF??q?RF???PN???6*-Y???
?h???\??-*Z*-Z??+??ղ?+??շ??*6HI6H6H56H??B`?(?2?5??=?q?7???7????L??d?FY?MY>+???F+??:*???b?,+?????*?x?b?,+????????*Y+Z,???,??dHIdHo?.5/X?)?8$DNO/W?_8bZ?N?RF?+q?RF??q?RF?PNJ?<~?jY?MY>+???`+??:*???b?,+????6?*?t?b?,+???"??*???b?,+???%????*Y+Z,?'??,??~HI~Ho?6
?n]) 8OD?S?_&jqy?|??T?Rj?+q?Rj??q?Rj???PN?(?s!??Y,??+M*+,[,?ö?,?ɶ̱? !HI!H?!H,?5?Ms ??L???@>?;+?YY>???+?]:*?\?b?,*+?Ϲ???п*+????ǿ?? @HI@Ho@H??*
??X5O'6?;???????2q?R???q?R??PN-??[+??N/?:-?2???4?G-?2????LY?Y? "?:?&-?*,?G?*+?/?*?2?4?? [HI[Ho[H5??%??%?(?8?q?R?q?R?Lr??0M*?????6Y+?9M?;Y?Y,?A?E,?x,?H?)?N*?J?Y? L?:?&+?O?*?2?UM?F?N?LY-?h?:,?2,?H?):*?J?Y? W?G?&+?O?*?2?UM??6Y+?9M*Y?Y,?]?_N,?/,?H-?:*?J?Y? L?:?&+?O?*?2?U-?N?LY-?h?N?LY-?h?:,?1,?H?*M*?J?Y? W?G?&+?O?*?2?U?(,0N	$[N	$ekorN[ge???N???P???N????N????0HI0H`??%??	.T$?(,E0	1YU2[\?e?koEr	tY?2??Z???J???P?G????????????J??PG	?-???/q??6N$?q??6NIq??6qN%???6jN%??6PINIq??6qN?$?qAq?Lrz?m?*???a?bY?cM?YXN+-?hY6?+,-?kW??쿻;Y?Y?mY,?n?o?A?E*Y?Y?mY,?n?o?]?_??*Y?Y+?]?_?M?LY,?h?M?LY,?h?0rP1crPeqrP0|N1c|Neq|N??HI?Hp?2?3?A$V1qM#e?rSs?|y})?Q?ebre?q?ebr?2q?eLPIN?L??E	+Y?u?۱?	HI	H??)??L??x+??Lw?:+?2???+?? HIHoH5?
????q??L?]???Y?xMY>+???x+??:*??b?,+???{?N?*???b?,+???|?3?*??b?,*+?~???*??b?
,*+?~??????*Y+Z,????,???HI?Ho?>	???)8jDqS?_?l?xI?????????U?R??+q?R???q?R????PN???+?VY=??+?YY=???HIHo?????%?R?q?R?Pel?N*Z*Z?????J???G??HI??m????w?+,Y??*Z*,Z???Ѳ?+???ղx+???ն??+???
+???_,??Y>+???*+???,?????Y>+???*+???,?????Y>+???*+???,?????,??*,??? ?HI?H?H??J?/S?&;:?>HiUZ?d?q?v?????????S
:?F??q?F?B?q?F?B??L????Y??MY>+????+??:*???b?,+?????ο*???b?,*+???????*???b?,*+??????*???b?,+??????*???b?,*+?????g*?p?b?,+?????M*?l?b?,*+?????4*?x?b?,+?????*???b?,+???????*+??,??HIHo?bPar)?8?D]R?^?k?w????z?M??? ???Z????a	???Z
?R??+q?R???q?R????PN???`+,*Z*,Y[*,?_???IJ?+?ŷղt+?ȷղ?+?˷նΞ#,??Y>+?΢*+???,?????*,??? `HI`H?`H??2?x W*?4;!@nH?UnZ}_??*?Aj??q?j??L???/*????HI?f???#@N??Y??Y,?ݷ?N*+-[???-?"-?汿:-?-?????N?LY-?h??&&(&%5?&35?? @HI@H?@H	?6
?O??l ?&l,?0?3U596????O?%q?j?q?	q?q@q?j??	??L?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy